Skip to content

Latest commit

 

History

History
51 lines (44 loc) · 1.42 KB

liiklus-topic.md

File metadata and controls

51 lines (44 loc) · 1.42 KB

+++ title = "Liiklus Topic" availability = "v1.0+" maintainer = "Community" description = "Scale applications based on Liiklus Topic." go_file = "liiklus_scaler" +++

Trigger Specification

This specification describes the liiklus trigger for Liiklus Topic.

triggers:
- type: liiklus
  metadata:
    # Required
    address: localhost:6565 # Address of the gRPC liiklus API endpoint
    group: my-group         # Make sure that this consumer group name is the same one as the one that is consuming topics
    topic: test-topic
    # Optional
    lagThreshold: "50"      # default 10, the target lag for HPA
    groupVersion: 1         # default 0, the groupVersion to consider when looking at messages. See https://github.com/bsideup/liiklus/blob/22efb7049ebcdd0dcf6f7f5735cdb5af1ae014de/app/src/test/java/com/github/bsideup/liiklus/GroupVersionTest.java

Authentication Parameters

Not supported yet.

Example

apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
  name: liiklus-scaledobject
  namespace: default
spec:
  scaleTargetRef:
    deploymentName: function-deployment
  pollingInterval: 30
  triggers:
  - type: liiklus
    metadata:
      # Required
      address: localhost:6565
      group: my-group       # Make sure that this consumer group name is the same one as the one that is consuming topics
      topic: test-topic
      # Optional
      lagThreshold: "50"    # Default value is set to 10