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
salt-api automatically restart caused by "opening too many files" #40245
Comments
Can you also provide the output of How many minions do you have that the api is running commands against? I do remember something similar to this being fixed at some point. Would you be able to update your master to a newer version of 2016.3, or 2016.11? Thanks, |
Thanks for reply!
|
ZD-2084 |
extending on the idea used in saltstack#32145, when _check_pub_data is called it it will create jid subscriptions, regardless of whether anyone will ever come back to retrieve them; in the case of local_async calls noone ever does. In addition to the above, we use the listen kwarg provided by c59a5ad to know whether we need to subscribe to events in addition to ensuring the ioloop is listening before a call is made. This should fix saltstack#40245, saltstack#20639, saltstack#36374
extending on the idea used in saltstack#32145, when _check_pub_data is called it it will create jid subscriptions, regardless of whether anyone will ever come back to retrieve them; in the case of local_async calls noone ever does. In addition to the above, we use the listen kwarg provided by c59a5ad to know whether we need to subscribe to events in addition to ensuring the ioloop is listening before a call is made. This should fix saltstack#40245, saltstack#20639, saltstack#36374
extending on the idea used in saltstack#32145, when _check_pub_data is called it it will create jid subscriptions, regardless of whether anyone will ever come back to retrieve them; in the case of local_async calls noone ever does. In addition to the above, we use the listen kwarg provided by c59a5ad to know whether we need to subscribe to events in addition to ensuring the ioloop is listening before a call is made. This should fix saltstack#40245, saltstack#20639, saltstack#36374
Description of Issue/Question
When using salt-api for weeks I found some jobs are no result So I checked the salt-master log and I found the error appears as followed
Steps to Reproduce Issue
After the salt-api restart automaticlly, I have beening monitoring the salt-api process
In the beginning the fd number is very small
But with salt-api jobs running, the fd files are growing rapidly
After a few days with salt-api jobs executing(cmd.run/cmd.script/test.ping on minions) , the fd files number will go even higer. The fd files are almost eventpoll or eventfd
The system ulimit info
the system openfile max are almost cost by salt
Versions Report
And here is the salt version info:
The text was updated successfully, but these errors were encountered: