Getting Started with Amazon ECS

STEP 1: Creating a Cluster First step is creating a cluster. This can be done with CLI or Amazon Console. To do in CLI, run aws ecs create-cluster –cluster CLUSTER_NAME If you login to Amazon ECS console, you will see newly created cluster. If you want to delete cluster, you can do with command line … Read more

Install Microsoft Azure CLI on Ubuntu

To install Microsoft Azure CLI on Ubuntu, run AZ_REPO=$(lsb_release -cs) echo “deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main” | \ sudo tee /etc/apt/sources.list.d/azure-cli.list Now run curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add – sudo apt-get install apt-transport-https sudo apt-get update && sudo apt-get install azure-cli You will be able to use az command now. Autenticate with Azure … Read more

Cloud Hosting Providers

Here is a list of popular cloud providers. If you just need a server with a lot of CPU/RAM, it may better go with Dedicated Server, some are very cheap, but you don’t get features of cloud like hourly billing, ability to terminate a server, create another, snapshot, auto-scaling, etc. Cloud Servers (VPS) https://www.digitalocean.com – … Read more

Point Domain to Heroku App

To point a domain to heroku application, first add a domain to heroku application under Your Application > Settings. Once domain is added, you will see DNS record like You can login to your domain/DNS provider, add a CNAME record for www and point to the heroku domain provided. Naked Domain For domains with out … Read more

gcloud

Detach a disk from Google Compute Instance Install Google Cloud SDK Google Cloud apt signatures couldn’t be verified Google Cloud SSH using gcloud command line Google Cloud open a port in firewall Create Kubernetes cluser using gcloud Cloud SQL Connect to Google Cloud SQL gcloud components gcloud components list gcloud components install beta gcloud components … Read more

Detach a disk from Google Compute Instance

To remove a disk from Google Compute instance, run gcloud compute instances detach-disk INSTANCE_NAME –disk=DISK Example Here “indiameds” is name of the disk i want to detach from google compute instance with name “debug-instance”. Google Cloud only allow detaching secondary disks. Boot disks can’t be detached, only way to detach a boot disk and attach … Read more

Amazon RDS ERROR 1040 (08004): Too many connections

On an Amazon RDS Aurora data base, when i connect, i get error root@ip-10-0-0-234:/var/www/html# mysql -h sok.cb21y0qmezhd.us-west-2.rds.amazonaws.com -u sok_wp -p0ZEkrkQx sok_wp ERROR 1040 (08004): Too many connections root@ip-10-0-0-234:/var/www/html# This error is due to max_connections setting in MySQL exceeded. By default Amazon RDS set max_connections based on size of RDS instance using following formula. GREATEST({log(DBInstanceClassMemory/805306368)*45},{log(DBInstanceClassMemory/8187281408)*1000}) To … Read more