keda-redis-scaler

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 17 Imported by: 0

README

KEDA Redis scaler

KEDA external scaler for Redis using Lua script

Install

helm install keda-redis-scaler ghcr.io/sun-asterisk-research/helm-charts/keda-redis-scaler

Usage

Trigger Specification

triggers:
- type: external
  metadata:
    scalerAddress: <address>
    address: <redis-address>
    host: <redis-host>
    port: <redis-port>
    enableTLS: <true-or-false>
    unsafeSSL: <true-or-false>
    username: <redis-username>
    password: <redis-password>
    database: <redis-database>
    script: <lua-script>
    metricName: <metric-name>
    activationValue: <activation-value>
    targetValue: <target-value>

Example ScaledObject.

apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  name: myapp
  namespace: myapp
spec:
  scaleTargetRef:
    name: myapp
  idleReplicaCount: 0
  minReplicaCount: 1
  maxReplicaCount: 2
  triggers:
  - type: external
    metadata:
      scalerAddress: keda-redis-scaler:9000
      address: my-redis:6379
      password: redis-password
      database: "0"
      script: |-
        return redis.call('LLEN', 'my-list')
      targetValue: "10"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL