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

High CPU consumption by mailer handler #62

Open
gandham-santhosh opened this issue Nov 9, 2017 · 1 comment
Open

High CPU consumption by mailer handler #62

gandham-santhosh opened this issue Nov 9, 2017 · 1 comment

Comments

@gandham-santhosh
Copy link

Hi, I am using sensu-plugins-mailer for alerts and notifications. I noticed that handler-mailer.rb is consuming 10 to 14% of CPU. I always see that sensu server CPU consumption is 100% as there are too many alert notifications. Can you please let me know if this is normal and what could be other alternatives? Following is the content in my handler.json

"infra_alert": {
"type": "set",
"handlers": [
"debug",
"slack_infra_alerts",
"mail_alert"
]
},
"mail_alert": {
"type": "set",
"filters": [
"not_wip"
],
"handlers": [
"mail_admin",
"mail_at_team_api"
]
},
"mail_admin": {
"type": "pipe",
"command": "handler-mailer.rb -j mailer_admin_team",
"filters": [
"status_not_ok"
]
},

@gandham-santhosh
Copy link
Author

gandham-santhosh commented Nov 10, 2017

I see that 8 to 10 mailer handlers are getting initiated for every 3 to 5 seconds which is consuming 100% of CPU always. But I am not getting why it is initiating so many mailers threads. I really appreciate if someone help me understand

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