Last active
May 23, 2021 15:18
-
-
Save cassioeskelsen/732cb7563794dbe5a15f350195b828e1 to your computer and use it in GitHub Desktop.
Exemplo de Keda Scaler para Rabbit
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
| apiVersion: keda.sh/v1alpha1 | |
| kind: ScaledObject | |
| metadata: | |
| name: python-rabbitmq-scaledobject | |
| namespace: default | |
| spec: | |
| scaleTargetRef: | |
| name: keda-python-rabbit # nome do deployment onde esta o container | |
| # a ser executado pela trigger | |
| minReplicaCount: 0 # número mínimo de réplicas que deverão ficar no ar | |
| maxReplicaCount: 10 # número máximo de réplicas que deverão ficar no ar | |
| pollingInterval: 5 # intervalo entre um check e outro no Rabbit | |
| cooldownPeriod: 30 # tempo em segundos que os pods ficarão no ar | |
| # depois que a checagem retornar 0 msg na fila | |
| triggers: | |
| - type: rabbitmq | |
| metadata: | |
| host: "amqp://user:[email protected]:5672" | |
| mode: QueueLength | |
| value: "20" | |
| protocol: amqp | |
| vhostName: / | |
| queueName: keda_demo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment