siddhi-io / siddhi

Stream Processing and Complex Event Processing Engine
http://siddhi.io
Apache License 2.0
1.52k stars 527 forks source link

[4.x.x] Make siddhi application core thread pool size configurable #1807

Closed shadhini closed 1 year ago

shadhini commented 1 year ago

Make siddhi app core thread pool size configurable

When number of triggers per a siddhi application exceeds 6, triggers won't reinitialize after db re-connection due to hard corded core pool size of 5. https://github.com/wso2-support/siddhi/blob/8b1ace31c1d645d5a2fc47844a5a55ef6ddd282d/modules/siddhi-core/src/main/java/org/wso2/siddhi/core/util/parser/SiddhiAppParser.java#L162.

Thus, this PR makes siddhi application core thread pool size configurable.

Here, if the following config is added to the conf/worker/deployment.yaml file, the value given in the config as \ would be used as the core pool size. If not, default value of 5 would be used as the core pool size.

siddhi:
  properties:
    appThreadPoolSize: <APP_THREAD_POOL_SIZE>

e.g:

siddhi:
  properties:
    appThreadPoolSize: 10

Issue link: https://github.com/wso2-enterprise/financial-open-banking/issues/6933

Doc Issue:

Applicable Labels: siddhi-core-4.2.20

Related PRs:

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.