Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add queueLengthStrategy option to azure-storage-queue scaler. #1406

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions content/docs/2.15/scalers/azure-storage-queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ triggers:
metadata:
queueName: orders
queueLength: '5'
queueLengthStrategy: all|visibleonly
activationQueueLength: '50'
connectionFromEnv: STORAGE_CONNECTIONSTRING_ENV_NAME
accountName: storage-account-name
Expand All @@ -27,6 +28,7 @@ triggers:

- `queueName` - Name of the queue.
- `queueLength` - Target value for queue length passed to the scaler. Example: if one pod can handle 10 messages, set the queue length target to 10. If the actual number of messages in the queue is 30, the scaler scales to 3 pods. (Default: `5`, Optional)
- `queueLengthStrategy` - `all` considers both visible and invisible messages, while `visibleonly` uses Peek to count only visible messages. In `visibleonly`, if the count of messages is 32 or higher, it falls back to the default `all` strategy, counting both visible and invisible messages. (Default: `all`, Optional)
- `activationQueueLength` - Target value for activating the scaler. Learn more about activation [here](./../concepts/scaling-deployments.md#activating-and-scaling-thresholds). (Default: `0`, Optional)
- `connectionFromEnv` - Name of the environment variable your deployment uses to get the connection string.
- `accountName` - Name of the storage account that the queue belongs to.
Expand Down Expand Up @@ -78,6 +80,8 @@ spec:
#
# Optional
queueLength: "5" # default 5
# Optional
queueLengthStrategy: "all" # or visibleonly. Default: all
cloud: Private
endpointSuffix: queue.local.azurestack.external # Required when cloud=Private
authenticationRef:
Expand Down