amazon web services - React on initialization errors for ec2 autoscale instances -


i have webserver running on ec2 behind elb scaled using aws autoscale. when new instance starts fetches recent application code git repository.

what's best way react on errors during initialization?

  • git server might not up/reachable
  • disk might corrupt, git pull exists error (yes has happened me)

this did:

  • on start create file instance_starting
  • once initialization finished delete file
  • the elb health check accesses special url returns error 500 if instance_starting file exists
  • a cloudwatch alarm reports me unhealthy instances

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -