-
Notifications
You must be signed in to change notification settings - Fork 480
feat: nsq scaler docs #1485
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
Merged
Merged
feat: nsq scaler docs #1485
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0b87ae3
feat: nsq scaler docs
Ulminator ce3f01c
fix: add useHttps/unsafeSsl to nsq scaler docs
Ulminator 67919ed
Merge branch 'main' into nsq_scaler_docs
Ulminator d7b389d
fix: change idleReplicaCount -> minReplicaCount
Ulminator 0493256
Merge branch 'main' into nsq_scaler_docs
Ulminator 763f2d8
fix: move nsq docs from 2.16 to 2.17
Ulminator File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
+++ | ||
title = "NSQ" | ||
availability = "v2.16+" | ||
maintainer = "Community" | ||
category = "Messaging" | ||
description = "Scale applications based on NSQ topic/channel depth." | ||
go_file = "nsq_scaler" | ||
+++ | ||
|
||
### Trigger Specification | ||
|
||
This specification describes the `nsq` trigger that scales based on [NSQ](https://github.com/nsqio/nsq) topic/channel depth. | ||
|
||
```yaml | ||
triggers: | ||
- type: nsq | ||
metadata: | ||
nsqLookupdHTTPAddresses: "nsq-nsqlookupd.nsq:4161" | ||
topic: "example_topic" | ||
channel: "example_channel" | ||
depthThreshold: "10" | ||
activationDepthThreshold: "0" | ||
useHttps: "false" | ||
unsafeSsl: "false" | ||
``` | ||
|
||
**Parameter list:** | ||
|
||
- `nsqLookupdHTTPAddresses` - Comma separated list of [nsqlookupd](https://nsq.io/components/nsqlookupd.html) HTTP addresses in the form `<hostname>:<port>`. | ||
- `topic` - Name of the NSQ datastream that the `channel` relates to. | ||
- `channel` - Name of the channel used to calculate depth. | ||
- `depthThreshold` - Target value for depth to trigger scaling actions. (Default `10`, Optional) | ||
- `activationDepthThreshold` - Target value for depth to activate the scaler. (Default `0`, Optional) | ||
- `useHttps` - Use HTTPS instead of HTTP when communicating with NSQ. (Values: `true`, `false`, Default: `false`, Optional) | ||
- `unsafeSsl` - Skip certificate validation when connecting over HTTPS. (Values: `true`, `false`, Default: `false`, Optional) | ||
|
||
|
||
> **Notice:** | ||
> - Since ["channels are created on first use by subscribing to the named channel"](https://nsq.io/overview/design.html#simplifying-configuration-and-administration), the topic depth is used instead of the channel depth when the channel does not yet exist on an [nsqd](https://nsq.io/components/nsqd.html) instance. This allows KEDA to effectively bootstrap new channels when the `idleReplicaCount` is 0. | ||
> - If the message flow for a channel is paused, KEDA will not scale up consumers of the channel, regardless of the depth. | ||
|
||
### Example | ||
|
||
```yaml | ||
apiVersion: keda.sh/v1alpha1 | ||
kind: ScaledObject | ||
metadata: | ||
name: nsq-scaledobject | ||
spec: | ||
scaleTargetRef: | ||
name: nsq-consumer-deployment | ||
triggers: | ||
- type: nsq | ||
metadata: | ||
nsqLookupdHTTPAddresses: "nsq-nsqlookupd.nsq:4161" | ||
topic: "example_topic" | ||
channel: "example_channel" | ||
depthThreshold: "10" | ||
activationDepthThreshold: "0" | ||
``` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.