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

Create a horizontal autoscaling #62

Open
Rub21 opened this issue Jun 15, 2018 · 4 comments
Open

Create a horizontal autoscaling #62

Rub21 opened this issue Jun 15, 2018 · 4 comments
Labels
kube Related to Kubernetes configuration

Comments

@Rub21
Copy link
Collaborator

Rub21 commented Jun 15, 2018

cc. @batpad

@batpad batpad added the kube Related to Kubernetes configuration label Jun 18, 2018
@batpad
Copy link
Member

batpad commented Jun 18, 2018

@Rub21 can you clarify if you mean this should be for the cluster itself? i.e. whether we should make it so that the nodes of the cluster auto-scale, or just the pods inside the cluster auto-scaling? I think we probably do want both, just want to clarify the intention of this ticket.

@Rub21
Copy link
Collaborator Author

Rub21 commented Jun 21, 2018

@batpad I think to scale horizontally the node is not possible, because the /var/lib/postgresql/data should be read by only one engine, but I really am not sure if that is right...

On the other side we could not scale the db-statefulset pod, statefulset is a pod which is goin to play only one in the cluster. I think the web pod is the only one to scale.

@batpad
Copy link
Member

batpad commented Jun 22, 2018

@Rub21 that is correct - we only ever want 1 instance of the db-statefulset pod.

It would be nice to have some sort of auto-scaling for the web pods. My question, thought, was around if we need to figure out auto-scaling for the Kubernetes cluster itself? Like we may start off with 2 t2-medium machines, but as the project / usage grows, want to grow to say 3 c3.large machines (or equivalent in GCP) - I'm not sure the best way to automate that based on resource usage.

Probably not a huge concern for now, but something to look at for the future.

@spwoodcock
Copy link
Contributor

This is pretty easy to achieve using either default Horizontal Pod Autoscaler, or Keda:

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

No branches or pull requests

3 participants