Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

CLI to autoscale k8s pods based on Bull queue size

License

Notifications You must be signed in to change notification settings

rosslavery/k8s-bull-autoscaler

Repository files navigation

k8s-bull-autoscaler

CLI to autoscale k8s pods based on Bull queue size

Example Deployment

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: example-queue-autoscaler
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: example-queue-autoscaler
        environment: production
    spec:
      containers:
        - name: example-queue-autoscaler
          image: rosslavery/k8s-bull-autoscaler:latest
          args:
            - --queue-url=http://example-api/queues/count
            - --k8s-deployment=example-worker
            - --poll-period=10000
            - --scale-down-wait=60000
            - --scale-up-wait=60000
            - --messages-per-pod=300
            - --min-pods=1
            - --max-pods=5

About

CLI to autoscale k8s pods based on Bull queue size

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published