Skip to content

Commit

Permalink
Apache Kafka scaler: move partition limitation feature to the correct…
Browse files Browse the repository at this point in the history
… version (kedacore#1020)
  • Loading branch information
tobiaskrause authored Dec 20, 2022
1 parent 2b647e0 commit 30cf86f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions content/docs/2.10/scalers/apache-kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ triggers:
scaleToZeroOnInvalidOffset: false
excludePersistentLag: false
version: 1.0.0
partitionLimitation: '1,2,10-20,31'
```
**Parameter list:**
Expand All @@ -50,6 +51,7 @@ If 'false' (the default), the scaler will keep a single consumer for that partit
partition will be scaled to zero. See the [discussion](https://github.com/kedacore/keda/issues/2612) about this parameter.
- `excludePersistentLag` - When set to `true`, the scaler will exclude partition lag for partitions which current offset is the same as the current offset of the previous polling cycle. This parameter is useful to prevent scaling due to partitions which current offset message is unable to be consumed. If `false` (the default), scaler will include all consumer lag in all partitions as per normal. (Default: `false`, Optional)
- `version` - Version of your Kafka brokers. See [samara](https://github.com/Shopify/sarama) version (Default: `1.0.0`, Optional)
- `partitionLimitation` - Comma separated list of partition ids to scope the scaling on. Allowed patterns are "x,y" and/or ranges "x-y". If set, the calculation of the lag will only take these ids into account. (Default: All partitions, Optional)

> **Note:**
>
Expand Down
2 changes: 0 additions & 2 deletions content/docs/2.8/scalers/apache-kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ triggers:
allowIdleConsumers: false
scaleToZeroOnInvalidOffset: false
version: 1.0.0
partitionLimitation: '1,2,10-20,31'
```
**Parameter list:**
Expand All @@ -49,7 +48,6 @@ partitions on a topic, allowing for idle consumers. (Default: `false`, Optional)
If 'false' (the default), the scaler will keep a single consumer for that partition. Otherwise ('true'), the consumers for that
partition will be scaled to zero. See the [discussion](https://github.com/kedacore/keda/issues/2612) about this parameter.
- `version` - Version of your Kafka brokers. See [samara](https://github.com/Shopify/sarama) version (Default: `1.0.0`, Optional)
- `partitionLimitation` - Comma separated list of partition ids to scope the scaling on. Allowed patterns are "x,y" and/or ranges "x-y". If set, the calculation of the lag will only take these ids into account. (Default: All partitions, Optional)

> **Note:**
>
Expand Down
2 changes: 2 additions & 0 deletions content/docs/2.9/scalers/apache-kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ triggers:
scaleToZeroOnInvalidOffset: false
excludePersistentLag: false
version: 1.0.0
partitionLimitation: '1,2,10-20,31'
```
**Parameter list:**
Expand All @@ -50,6 +51,7 @@ If 'false' (the default), the scaler will keep a single consumer for that partit
partition will be scaled to zero. See the [discussion](https://github.com/kedacore/keda/issues/2612) about this parameter.
- `excludePersistentLag` - When set to `true`, the scaler will exclude partition lag for partitions which current offset is the same as the current offset of the previous polling cycle. This parameter is useful to prevent scaling due to partitions which current offset message is unable to be consumed. If `false` (the default), scaler will include all consumer lag in all partitions as per normal. (Default: `false`, Optional)
- `version` - Version of your Kafka brokers. See [samara](https://github.com/Shopify/sarama) version (Default: `1.0.0`, Optional)
- `partitionLimitation` - Comma separated list of partition ids to scope the scaling on. Allowed patterns are "x,y" and/or ranges "x-y". If set, the calculation of the lag will only take these ids into account. (Default: All partitions, Optional)

> **Note:**
>
Expand Down

0 comments on commit 30cf86f

Please sign in to comment.