-
Notifications
You must be signed in to change notification settings - Fork 57
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
Issue with running latest version 0.11.0 on Rails with puma clustered mode (killed thread rule_poller) #14
Comments
Hi, thank you four reporting the issue. I'm able to reproduce this based on steps you provided. The issue here is that when Puma forks the worker process it only duplicates the master thread itself. Any background thread that is a child of the master is not carried to the worker. I'm able to fix this and run the multi-processing normally by having the We will release the fix soon. Please let me know if you have any concerns. |
Hey @haotianw465, that sounds exactly like what we need 👍 |
The issue is fixed in the patch release |
I know that the issue is closed but in my case I have version 0.11.1 and I still get the error: app_1 | W, [2019-01-09T14:05:40.179196 #71] WARN -- : No effective centralized sampling rule match. Fallback to local rules. |
Hi @guidocollino you are seeing # Configure the recorder in app_root/config/initializers/aws_xray.rb
Rails.application.config.xray = {
# default segment name generated by XRay middleware
name: 'myrails',
patch: %I[net_http aws_sdk],
# record db transactions as subsegments
active_record: true
} Do you have |
Steps to reproduce:
It looks like once you enable clustered mode (worker setting in Puma) the background thread for polling sampling rules is being killed unexpectedly.
The text was updated successfully, but these errors were encountered: