Pollers (workflow tasks, activity tasks):
WorkerOptions->setMaxConcurrentWorkflowTaskPollers/setMaxConcurrentActivityTaskPollers (default 5 for reach)
Your workers create by default 10 long-poll connections to service that service can dispatch workflow and activity tasks to. Each connection uses a thread from created poller pool.
Executors (for workflow tasks, activity tasks):
WorkerOptions->setMaxConcurrentWorkflowTaskExecutionSize/setMaxConcurrentActivityExecutionSize (default 200 for each)
Pollers deliver tasks to executors that are responsible for executing the workflow and activity tasks. Each executor slot uses thread from executors pool.
WorkerFactoryOptions->MaxWorkflowThreadCount (default 600) number of threads available for workflow executions across all workers created from this factory (includes cached workflows)
@tihomir what is the difference in terms of their roles between the thread named “Workflow Executor”, the thread named “workflow-method” and the thread named “workflow-thread-x”?