[
https://issues.apache.org/jira/browse/CLOUDSTACK-8901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14933204#comment-14933204
]
ASF GitHub Bot commented on CLOUDSTACK-8901:
--------------------------------------------
Github user SudharmaJain commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/880#discussion_r40543530
--- Diff: server/src/com/cloud/configuration/Config.java ---
@@ -1999,7 +1999,9 @@
// StatsCollector
StatsOutPutGraphiteHost("Advanced", ManagementServer.class,
String.class, "stats.output.uri", "", "URI to additionally send StatsCollector
statistics to", null),
- SSVMPSK("Hidden", ManagementServer.class, String.class,
"upload.post.secret.key", "", "PSK with SSVM", null);
+ SSVMPSK("Hidden", ManagementServer.class, String.class,
"upload.post.secret.key", "", "PSK with SSVM", null),
+
+ TemplatePreloaderPoolSize("Advanced", TemplateManager.class,
Integer.class, "template.preloader.pool.size", "8", "Size of the
TemplateManager threadpool", null);
--- End diff --
@koushik-das, changed the mechanism to use configuration.
> PrepareTemplate job thread hard-coded to max 8 threads
> ------------------------------------------------------
>
> Key: CLOUDSTACK-8901
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8901
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Reporter: sudharma jain
>
> The thread pool is hardcoded to use 8 threads,
> com.cloud.template.TemplateManagerImpl.configure(String, Map<String, Object>):
> _preloadExecutor = Executors.newFixedThreadPool(8, new
> NamedThreadFactory("Template-Preloader"));
> Need to make it configurable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)