Fastest Delivery by Myntra and Flipkart is to bangalore
Digital Marketing
Challenges
- Github deployment with webhooks is available but build time is not allows graceful restart
- Docker releases are faster, but developer has to build and release
Autoscaling – HA
- Increased complexity of CapRover have its own load balancer
Conclusion
- CapRover is good for one server having multiple projects
- Might not be ideal for a service scales heavily Azure Autoscaling is good for core api with Azure API Gateway
- Caprover is very simple
- CPU Utilisation – Best Practices
- RAM Utilisation – Best Practices
- Disk: HDD | SSD
- Storage: Ephemeral Storage | Root Disk | OS Disk | Data Disk
- Backup: Cold Storage | Hot Storage
- Storage: Block Storage | Object Storate
- Autoscaling
- Docker/Kubernetes
- Replication
- Snapshot Based Backups
- Automated Backups with Restore and check
- Manual DB Backups
- Cross Region Replication for Disaster Recovery
- Restore and Check
- Chaos day
- Check costs everyday
Other Cases
- Delete all the resources associated with a VM while vm termination – Azure leave disks after vm deletion
- Azure suggests by default – 8GB machine
- Good to start with 512MB RAM
- Azure Cost for 3GBRam-1core is double compared to 4GB-2core
- Azure disks only resize topup – no reduction
- 2020 – GPU machine N series not supports premium disks
- Multi region buckets
- Multi region backups
Linode
- Accounting Services
- Compliance
- Registration of Company
- Foreign Direct Investments
- GST Registration
- Help for startups
- Incubation centers
- Special discounts
- Investment Guidance
Categories
Lambda
- should integrate with request-promise or npm libraries
- lambda should not have db
- function names and api names should be same and core api project
Categories
benchmark your mysql db infra
#! /bin/sh
ssh db1
sudo hdparm -Tt /dev/sda
Categories
MySQL Migration with rsync
# New MySQL Server
ssh ubuntu@db1.shopping.com
sudo systemctl start mysqld
cd /var/lib
sudo mv mysql myql-backup
sudo mkdir mysql
# rsync from existing db
sudo rsync ubuntu@old-db1.shopping.com:/var/lib/mysql /var/lib/mysql
sudo systemctl start mysqld
Issues:
Categories
MySQL Database Best Practices
- collation: utf8mb4_general_ci
- increase query cache
- use SSD
- keep db in local network or same host(do not keep db server in USA, appserver in India)