Skip to content

Commit 6b51e20

Browse files
committed
Adjusted threadpool for heavy clusters.
1 parent 1a8033c commit 6b51e20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/servicebus/service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ async def start(self):
6767
await super().start()
6868
try:
6969
# Start the DCS listener
70-
self.executor = ThreadPoolExecutor(thread_name_prefix='ServiceBus', max_workers=100)
70+
self.executor = ThreadPoolExecutor(thread_name_prefix='ServiceBus',
71+
max_workers=100 if self.master else 20)
7172
await self.start_udp_listener()
7273

7374
# cleanup the intercom and broadcast channels

0 commit comments

Comments
 (0)