Monthly Archives: January 2016

How to make nginx return 404 with json response

Problem I need the the nginx to return a json response instead of the default static html page “nginx is not available temporarily.blabla..” if the content-tyhpe is “application/json” in my case, nginx is used as a web app as well … Continue reading

Posted in devops | Tagged , | Leave a comment

scheduled autoscaling action by cloudformation

how to set up an scheduled autoscaling action AutoScalingRollingUpdate Important If you have enabled rolling updates and scheduled actions, you must suspend scheduled actions before you can update the Auto Scaling group. You can suspend processes by using the AWS … Continue reading

Posted in devops | Tagged | Leave a comment

aws autoscaling policy of memory by cloudformation

Problem Need to add autoscaling policy for ec2 instances memory usage. but the problem is : there is no metric of memory in cloudwatch. So the first issue is to add such a memory metric. fortunately, aws website distribute some … Continue reading

Posted in devops | Tagged , | Leave a comment