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

Autoscaling with HPA is not working #107

Closed
josephburnett opened this issue Feb 8, 2018 · 3 comments
Closed

Autoscaling with HPA is not working #107

josephburnett opened this issue Feb 8, 2018 · 3 comments
Assignees
Labels
kind/feature Well-understood/specified features, ready for coding.

Comments

@josephburnett
Copy link
Contributor

Even with a slow rampup (10 parallel/100 total, 20/100, 30/100) the server falls over without being scaled up. Defaults are 80% CPU, min 2 and max 10.

@josephburnett josephburnett added the kind/feature Well-understood/specified features, ready for coding. label Feb 8, 2018
@josephburnett josephburnett self-assigned this Feb 8, 2018
@evankanderson
Copy link
Member

evankanderson commented Feb 8, 2018 via email

@josephburnett
Copy link
Contributor Author

I was able to the HPA to scale up on CPU. Created an app with a 100,000 for loop. Ran 250 QPS. Saw an increase from 1 to 3 pods. But it was very slow to happen (~2-3 minutes).

I'm actively working on setting up QPS autoscaling (first #112 then wiring HPA into Prometheus). In the meantime, I agree 50% would be a better threshold.

NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
hpa/p-64e3cf1d-34f7-4efa-8bd2-f638d15960a0--autoscaler Deployment/p-64e3cf1d-34f7-4efa-8bd2-f638d15960a0--ela-deployment 166% / 80% 1 10 3 11m

NAME READY STATUS RESTARTS AGE
po/p-64e3cf1d-34f7-4efa-8bd2-f638d15960a0--ela-deployment-59dfffd7 3/3 Running 0 11m
po/p-64e3cf1d-34f7-4efa-8bd2-f638d15960a0--ela-deployment-59dhknq5 3/3 Running 0 5m
po/p-64e3cf1d-34f7-4efa-8bd2-f638d15960a0--ela-deployment-59dl646h 3/3 Running 0 1m

@YasminBZ
Copy link

YasminBZ commented Feb 5, 2019

Hello @josephburnett please how did you setup the HPA autoscaling for example if i want to autoscale my function using minmemory 128 maxmemory 250 mincpu, maxcpu and a target of 50% ??

Thank you

mgencur pushed a commit to mgencur/serving-1 that referenced this issue May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Well-understood/specified features, ready for coding.
Projects
None yet
Development

No branches or pull requests

3 participants