This repository was archived by the owner on Feb 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
This repository was archived by the owner on Feb 17, 2022. It is now read-only.
Threading traceback (assumed to be from gevent) swallowed #8
Copy link
Copy link
Open
Description
Every time aurproxy writes out a new configuration, I get a line such as:
2015-07-07 10:41:20,677 [INFO] tellapart.aurproxy.backends.nginx.backend: Applying new configuration.
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib64/python2.7/threading.pyc'> ignored
At first, I thought it was from the run_local('kill -HUP ...') call in the nginx backend's restart(), but changing that to something else has no effect. My guess is something in the gevent code is buggy and I'm not sure of the best way to find it (but would like to see no tracebacks).
I'm starting aurproxy via:
```bash
python -m "tellapart.aurproxy.command" run \
--sentry-dsn='gevent+https://<sentry_user>:<sentry_api_key>@<internal_sentry_server_url>/27' \
--management-port=31325 \
--config "$config_json"With this config json:
{
"backend": "nginx",
"configuration_file": "/etc/nginx/nginx.conf",
"servers": [
{
"context": {
"default_server": "True",
"location_blacklist": []
},
"healthcheck_route": "/healthcheck/",
"hosts": [
"hello_world2.internal"
],
"ports": [
8080
],
"routes": [
{
"locations": [
"/"
],
"sources": [
{
"endpoint": "http",
"environment": "devel",
"job": "hello_world2",
"role": "jschroeder",
"share_adjusters": [
{
"curve": "linear",
"ramp_delay": 5,
"ramp_seconds": 60,
"share_adjuster_class": "tellapart.aurproxy.share.adjusters.RampingShareAdjuster",
"update_frequency": 10
},
{
"healthy_threshold": 2,
"interval": 10,
"port_name": "http",
"route": "/health",
"share_adjuster_class": "tellapart.aurproxy.share.adjusters.HttpHealthCheckShareAdjuster",
"timeout": 5,
"unhealthy_threshold": 3
}
],
"source_class": "tellapart.aurproxy.source.AuroraProxySource",
"zk_servers": "njb-zkl1:2181,njb-zkl2:2181,njb-zkl3:2181"
}
]
}
]
},
{
"context": {
"location_blacklist": []
},
"healthcheck_route": "/healthcheck/",
"hosts": [
"hello_world_flask.internal",
"hello_world_flask",
"hello_world_flask-prod",
"hello_world_flask-prod.internal"
],
"ports": [
8080
],
"routes": [
{
"locations": [
"/"
],
"sources": [
{
"endpoint": "http",
"environment": "devel",
"job": "hello_world_flask",
"role": "jschroeder",
"share_adjusters": [
{
"curve": "linear",
"ramp_delay": 5,
"ramp_seconds": 60,
"share_adjuster_class": "tellapart.aurproxy.share.adjusters.RampingShareAdjuster",
"update_frequency": 10
},
{
"healthy_threshold": 2,
"interval": 10,
"port_name": "http",
"route": "/health",
"share_adjuster_class": "tellapart.aurproxy.share.adjusters.HttpHealthCheckShareAdjuster",
"timeout": 5,
"unhealthy_threshold": 3
}
],
"source_class": "tellapart.aurproxy.source.AuroraProxySource",
"zk_servers": "njb-zkl1:2181,njb-zkl2:2181,njb-zkl3:2181"
}
]
}
],
"share_adjusters": [
{
"curve": "linear",
"seconds": 60,
"share_adjuster_class": "aurproxy.share.adjusters.RampingShareAdjuster",
"update_frequency": 10
},
{
"healthy_threshold": 2,
"interval": 3,
"route": "/health/",
"share_adjuster_class": "aurproxy.share.adjusters.HttpHealthCheckShareAdjuster",
"timeout": 2,
"unhealthy_threshold": 2
}
]
}
]
}Sadly, nothing is being logged to sentry either.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels