Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement socket-alarm plugin #76

Open
unbit opened this issue Apr 9, 2015 · 1 comment
Open

implement socket-alarm plugin #76

unbit opened this issue Apr 9, 2015 · 1 comment

Comments

@unbit
Copy link
Owner

unbit commented Apr 9, 2015

Today a mysql vassal crashed and the customer was not able to detect it promptly.

Instead of adding log alarms for every possibile mysql error situation, implement a plugin doing periodic socket connections and triggering an alarm on error:

[uwsgi]
plugin = socket_alarm
alarm = mysql_is_down xxxx:xxxx
socket-alarm = mysql_is_down 127.0.0.1:3306
@unbit
Copy link
Owner Author

unbit commented Apr 9, 2015

Consider integrating it into the api, every container could have a number of SocketMonitor objects mapped to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant