You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We made load tests with a seasonal period of 240 (an hour) and it works great, better than expected.
But when modifying it to 5760 (a day) and a season of between 1-4, the tuning service returns 414 - Url too long.
Predictive Horizontal Pod Autoscaler Version
v0.13.0
To Reproduce
Steps to reproduce the behavior:
Install predictive-horizontal-pod-autoscaler crd
Set the PredictiveHorizontalPodAutoscaler manifest like so:
Install the helm chart containing the deployment and the tuning service
See the 414 - URL too long error code
Expected behavior
Expected the tuning service to make it's magic upon a week of data (to implement it into production). Instead it only gets an hour worth of data.
Kubernetes Details (kubectl version):
v1.22
Additional context
We need this feature because we have large peaks (from 20 pods to 100) at a specific time.
The text was updated successfully, but these errors were encountered:
Hi @litan-shamir, sorry for the super slow response!
It looks like the URL being generated to fetch the tuning information is too long, this can easily happen because it's all being sent as a query parameter, you don't need too much data to bump into this as an issue.
Rather than sending all of that data as a query parameter, it's probably better to send it as a body parameter (see the example in the docs).
So instead of:
parameterMode: query
You would use:
parameterMode: body
This would mean the tuning service would need to be updated to parse the body rather than the query parameter, but this should not be so limited by size as sending it as a query parameter.
I'll update the example included in the repository to use the body parameter over the query parameter, because I think in general it's a much better approach.
Thanks for raising this, hopefully this resolves your issue.
Describe the bug
We made load tests with a seasonal period of 240 (an hour) and it works great, better than expected.
But when modifying it to 5760 (a day) and a season of between 1-4, the tuning service returns 414 - Url too long.
Predictive Horizontal Pod Autoscaler Version
v0.13.0
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected the tuning service to make it's magic upon a week of data (to implement it into production). Instead it only gets an hour worth of data.
Kubernetes Details (
kubectl version
):v1.22
Additional context
We need this feature because we have large peaks (from 20 pods to 100) at a specific time.
The text was updated successfully, but these errors were encountered: