Add adaptive concurrency parameter for queue-worker#1245
Add adaptive concurrency parameter for queue-worker#1245welteki wants to merge 1 commit intoopenfaas:masterfrom
Conversation
e755985 to
383859a
Compare
383859a to
396950c
Compare
396950c to
5fe3571
Compare
This comment has been minimized.
This comment has been minimized.
| @@ -99,6 +99,8 @@ spec: | |||
| - name: ack_wait | |||
| value: "{{ .Values.queueWorker.ackWait }}" | |||
|
|
|||
There was a problem hiding this comment.
I prefer to if guard these blocks so there is no output when not defined?
{{- will avoid white space from conditional blocks.
Allow users to disable the new adaptive concurrency feature for the queue-worker. Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
5fe3571 to
70687f5
Compare
AI Pull Request OverviewSummary
Approval rating (1-10)7/10 - Solid configuration addition for feature control, but lacks automated testing and potential behavior change implications. Summary per fileSummary per file
Do not include node_modules or vendor directories. Overall AssessmentThe PR introduces a straightforward configuration option to control the adaptive concurrency feature, which is appropriate for allowing users to opt-out. However, the lack of automated tests increases regression risk, and the default enabling of the feature may introduce unexpected behavior changes for enterprise users. The implementation is consistent across both charts, but verification of the environment variable name and its handling in the queue-worker code is recommended. Detailed ReviewDetailed Reviewchart/openfaas/README.md
chart/openfaas/templates/queueworker-dep.yaml
chart/openfaas/values.yaml
chart/queue-worker/README.md
chart/queue-worker/templates/deployment.yaml
chart/queue-worker/values.yaml
General Issues
AI agent details. |
Description
Allow users to disable the new adaptive concurrency feature for the queue-worker.
New parameter in OpenFaaS chart:
jetstreamQueueWorker.adaptiveConcurrencyjetstreamQueueWorker.modeis set tofunction.trueNew parameter in queue-worker chart:
adaptiveConcurrencymodeis set tofunction.trueWhy is this needed?
Support configuration for new adaptive concurrency feature.
Who is this for?
What company is this for? Are you listed in the ADOPTERS.md file?
How Has This Been Tested?
Used the OpenFaaS chart with the new parameter to deploy during testing. Verified the parameter was set.
Verified the queue-worker chart by running:
helm template ./chart/queue-workerTypes of changes
Checklist:
git commit -s