mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-24 05:41:01 +02:00
Set max number of copycat transport server threads to 4
Change-Id: I20c662fdfcabd86b547c7b699b5f97ce3d912a41
This commit is contained in:
parent
28a6974239
commit
1172da7883
@ -64,7 +64,7 @@ public class CopycatTransportServer implements Server {
|
|||||||
this.messagingService = checkNotNull(messagingService);
|
this.messagingService = checkNotNull(messagingService);
|
||||||
this.protocolMessageSubject = String.format("onos-copycat-server-%s", partitionId);
|
this.protocolMessageSubject = String.format("onos-copycat-server-%s", partitionId);
|
||||||
this.newConnectionMessageSubject = String.format("onos-copycat-server-connection-%s", partitionId);
|
this.newConnectionMessageSubject = String.format("onos-copycat-server-connection-%s", partitionId);
|
||||||
this.executorService = Executors.newScheduledThreadPool(Runtime.getRuntime().availableProcessors(),
|
this.executorService = Executors.newScheduledThreadPool(Math.min(4, Runtime.getRuntime().availableProcessors()),
|
||||||
new CatalystThreadFactory("copycat-server-p" + partitionId + "-%d"));
|
new CatalystThreadFactory("copycat-server-p" + partitionId + "-%d"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user