-
Notifications
You must be signed in to change notification settings - Fork 80
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
Disappearing semaphore array #224
Comments
It turns out there was a bit of misunderstanding of what happened. Additional details: The rails app which was affected was is normally configured for 6 tickets and runs with 9 workers. The healthy status looks like this:
For the affected app, the semid was incorrect, but also the semaphore array present at the instance was:
Where pid 1225 did not exist on the system anymore. |
After a bit of investigation, it has turned out this was a side effect of swapping to systemd and the There are probably some safe guards we can put in place to ensure that if the semaphores are pulled from under the operating processes that it handles it better however I'll open a PR if we can find anything worth while doing there. |
I've run into an issue with a semaphore array disappearing from the system while the app is running. I can't find any details in the logs about what would cause it, but it started happening pretty much as we moved from ubuntu 14.04 to 18.04. There are no other changes that I could see that would be related here.
The system is running with ruby 2.5.5. The exception we get is:
This is with the latest released semian.
The issue starts occurring a number of hours after the deployment, without any obvious pattern of traffic.
I tracked the call down to:
where the
semid: 131072
doesn't exist on the system (normally we have 2 semaphore arrays, but this system had only 1). This was validated usingipcs -s
.Please let me know if there's any more debugging information I can provide.
The text was updated successfully, but these errors were encountered: