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.
Every time aurproxy writes out a new configuration, I get a line such as:
At first, I thought it was from the
run_local('kill -HUP ...')call in the nginx backend'srestart(), 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:
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.