Check the status of a service on Amazon

Asked

Viewed 171 times

0

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

My doubt is the following, having a machine in Amazon, within it there are several services that are running...my problem is that these services can "fall" and I only notice this when a customer has already detected. The doubt is there is some way to make an endpoit (if this is right), in the machine of Amazon I would battery and check if the system is active...I do not know if this is the way I am open to discussions

  • Perhaps a notification service, each time one of the systems failed, would send an email for ex, making this system a common api among the various services

  • Your question is not very clear yet. aws is a very 'full' service, don’t they have an option like this? The services themselves do not offer this?

2 answers

1


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

And if you’re using linux with Docker ECS has many features that improve availability with a lot of automation.

Cloudwatch Logs (Filters) - http://docs.aws.amazon.com/pt_br/AmazonCloudWatch/latest/logs/MonitoringLogData.html

ECS - http://docs.aws.amazon.com/pt_br/AmazonECS/latest/developerguide/ECS_GetStarted.html

0

You can use the service AWS Cloudwatch to create a Dashboard of their services and to trigger alerts as soon as one of the services leaves the standard.

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

Also, if you want to make a solution of your own, you can use their API or the Console (CLI). With CLI you can bash to see 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 Webserver and DBA.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.