ceilometer/ceilometer/central
ZhiQiang Fan bd0244ffe6 Add timeout to all http requests
Currently, we generate lots of samples by polling data from other services,
but theses rest requests have no timeout limitation. We have observed that
some requests (for example, keystone due to openssl problem) may stuck for
over several days (maybe forever if we don't restart the service). Other
pollsters in same thread will not be able to work too. The worst thing is
that, when outside (keystone) service becomes normal, Ceilometer cannot
recover itself automatically, cloud operator needs to restart it manually.

So I strongly suggest that we should add timeout limit to **every** rest api
call, this is quite important to improve Ceilometer's robust and reliability.

This patch adds a new option named http_timeout, and applies it to almost
all http requests in Ceilometer project.

Change-Id: I76df2c0a9ffacb252e15edbb125e37ccb2aac4aa
Closes-Bug: #1388778
2014-11-20 03:00:22 +08:00
..
__init__.py Create "central" agent 2012-07-31 09:11:21 -04:00
discovery.py Partition swift pollster resources by tenant 2014-09-15 08:34:39 -04:00
manager.py Add timeout to all http requests 2014-11-20 03:00:22 +08:00
plugin.py Add timeout to all http requests 2014-11-20 03:00:22 +08:00