Check the status of a service at Amazon

0

Well my question is not exactly about code but how to start a project.

My question is the following, having a machine in the amazon, inside it there are several services that are running ... my problem is that these services can "fall" and I only realize this when a client already detected. The problem is that there is some way to do an endpoit (if that is right), in the amazon machine that I would run and check if the system is active ... I do not know if this is the way I am open to discussions

    
asked by anonymous 04.05.2017 / 02:32

2 answers

1

Cloudwatch seems to be a good choice for your problem, it consists of three services (Logs, Events and Alarm) and you can send the logs of your applications to the cloudwatch logs, create custom filter metrics that identify error or change, and with these metrics it is possible to mount alarms using Cloudwath Alarm or Cloudwatch events that can be used to restart an instance, invoke another service. I suggest you read the documentation to get a better understanding.

And if you're using linux with Docker, ECS has many features that improve availability with lots of automation.

Cloudwatch Logs - link

ECS - link

    
03.08.2017 / 21:54
0

You can use the AWS Cloudwatch service to create a dashboard for your services and trigger alerts as soon as one of the services goes out of the way.

For example, trigger an alert when the CPU of the EC2 instance goes over 80%.

In addition, if you want to make your own solution, you can use their API or the Console (CLI). With CLI you can make a bash that refers to the status of a service obtained from a command.

I recommend trying to use Cloudwatch associated with outside services like Pingdom for example. If you have Pingdom test a URL and see if it contains text that comes from the database, in a single test you check the Webserver and the DBA.

    
04.05.2017 / 13:38