make agent load size configurable

This commit is contained in:
Alex Huang 2011-05-06 09:12:59 -07:00
parent da0fdfcfed
commit 80b6df17b9
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory, ResourceS
_monitor = new AgentMonitor(_nodeId, _hostDao, _vmDao, _dcDao, _podDao, this, _alertMgr, _pingTimeout);
registerForHostEvents(_monitor, true, true, false);
_executor = new ThreadPoolExecutor(10, 100, 60l, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory("AgentTaskPool"));
_executor = new ThreadPoolExecutor(16, 100, 60l, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory("AgentTaskPool"));
_connection = new NioServer("AgentManager", _port, workers + 10, this);