cloudstack/engine
Koushik Das 269a4ef11e CLOUDSTACK-4855: Throttle based on the # of outstanding requests to the directly managed HV host (direct agents)
Cloudstack sends requests to directly managed HV hosts (direct agents) using the direct agent thread pool. The size of the pool is determined by global config direct.agent.pool.size defaulted to 500.

Currently there is no restriction on the number of threads a direct agent can use from this shared thread pool to send requests to the host. This is fine as long as the host is responding to requests
in a reasonable amount of time. But if there is a considerable delay in getting response, the thread remain blocked for that much time. As more commands are send to the slow host threads keep getting
blocked. This can eventually lead to a situation where requests to healthy hosts cannot be processed as there are not enough free threads.

The problem being addressed here is to localize the impact of few bad hosts, so that entire management server is not affected.

One such way is to throttle based on the # of outstanding requests on per host basis. The outstanding requests to a host will be a % of direct agent pool size. This is configurable based on
direct.agent.thread.cap. The default value is 0.1 or 10%, a value of 1 would mean the old behavior where there is no upper cap. This will ensure that the impacted host will be bound by a upper cap on the number of threads it can use to process requests and not the entire pool.
2013-11-04 14:52:26 +05:30
..
api Don't use cast to PrimarydataStoreTO on the resource code 2013-11-01 15:13:16 -07:00
components-api Merge remote-tracking branch 'origin/spring-modularization' 2013-10-23 11:14:42 -07:00
network Updating pom.xml version numbers for release 4.3.0-SNAPSHOT 2013-08-01 10:35:00 -04:00
orchestration CLOUDSTACK-4855: Throttle based on the # of outstanding requests to the directly managed HV host (direct agents) 2013-11-04 14:52:26 +05:30
schema CLOUDSTACK-5025: volumes.display_volume field should be set to 1 by default. DB used to handle this, but VO was missing the default field assignment. Fixed th 2013-11-01 22:48:11 -07:00
service Fix a few xml wellformedness issues 2013-09-21 14:58:56 +08:00
storage CLOUDSTACK-5017: use LocalHostEndPoint in copying from S3 to cache store 2013-11-01 18:07:00 -07:00
pom.xml the cloud-engine-storage-integration-test sub-project should not depend 2013-09-02 14:32:25 +02:00