Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metrics based horizontal autoscaling support for NATS cluster #22

Open
sonttran opened this issue Mar 2, 2021 · 0 comments
Open

Comments

@sonttran
Copy link

sonttran commented Mar 2, 2021

As we already have nats-operator to scale the number of instance of NATS cluster up and down in k8s, it would be great to be able to add metrics based horizontal autoscaling support so NATS cluster can increase/decrease number of instances horizontally on its own based on load.

Something like:

apiVersion: nats.io/v1alpha2
kind: NatsCluster
metadata:
  name: nats-cluster
spec:
  version: "2.1.8"
  size: 3 # default cluster instance
  max: 100 # max cluster instance
  min: 3 # min cluster instance
  targetCPUUtilizationPercentage: 75 # will spin up new instance if pod hitting this threshold
  pod:
    resources:
      limits:
        cpu: "200m"
        memory: "500Mi"
      requests:
        cpu: "100m"
        memory: "100Mi"

Thank you the team for the work so far on NATS. Great product!

cc @wallyqs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant