CLOUDSTACK-8901: PrepareTemplate job thread hard-coded to max 8 threads#880
Conversation
|
cloudstack-pull-rats #713 SUCCESS |
|
cloudstack-pull-analysis #663 SUCCESS |
49ed8ee to
785741e
Compare
|
cloudstack-pull-rats #752 SUCCESS |
|
cloudstack-pull-analysis #703 SUCCESS |
There was a problem hiding this comment.
Use the mechanism described here to add a new configuration. https://cwiki.apache.org/confluence/display/CLOUDSTACK/Configuration.
There was a problem hiding this comment.
@koushik-das, changed the mechanism to use configuration.
785741e to
b2f0c9c
Compare
|
cloudstack-pull-rats #760 SUCCESS |
|
cloudstack-pull-analysis #711 SUCCESS |
There was a problem hiding this comment.
@SudharmaJain You have to implement the Configurable interface. Check for its usage in code.
b2f0c9c to
b610543
Compare
|
cloudstack-pull-rats #772 SUCCESS |
|
cloudstack-pull-analysis #724 SUCCESS |
There was a problem hiding this comment.
Removed the empty line.
|
LGTM. |
|
Rebased against master. |
|
Thanks @SudharmaJain LGTM (just code review), can you do a push -f (travis job failed for some reason) |
|
@bhaisaab I pushed it again. |
|
LGTM tag:easypr Cc @swill |
|
We need another code review. How should I test this, does it have to be a manual test? |
|
LGTM. Verified that a configuration entry is added with default 8 as pool size. Increased the default threadpool size, restarted MS and verified that when multiple prepareTemplate APIs are invoked required number of threads gets created. INFO c.c.t.TemplateManagerImpl (logid:49186ba8) Start to preload template 201 into primary storage 2 |
|
@swill This has the required LGTMs. |
|
Thanks @koushik-das. I will run this through CI just to be sure everything is good... Thx. |
CI RESULTSSummary of the problem(s): Associated Uploads
Uploads will be available until Comment created by |
|
These connectivity issues are unrelated to this PR. I will merge this now... |
CLOUDSTACK-8901: PrepareTemplate job thread hard-coded to max 8 threads The thread pool was hardcoded to use 8 threads,
com.cloud.template.TemplateManagerImpl.configure(String, Map<String, Object>):
_preloadExecutor = Executors.newFixedThreadPool(8, new NamedThreadFactory("Template-Preloader"));
Added the change to pick threadpool size from configuration.
* pr/880:
CLOUDSTACK-8901: PrepareTemplate job thread hard-coded to max 8 threads
Signed-off-by: Will Stevens <williamstevens@gmail.com>
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
The thread pool was hardcoded to use 8 threads,
com.cloud.template.TemplateManagerImpl.configure(String, Map<String, Object>):
_preloadExecutor = Executors.newFixedThreadPool(8, new NamedThreadFactory("Template-Preloader"));
Added the change to pick threadpool size from configuration.