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

[K8S] HPA working but loadbalancing not working as expected #43

Open
Ronan-WeScale opened this issue Aug 11, 2023 · 2 comments
Open

[K8S] HPA working but loadbalancing not working as expected #43

Ronan-WeScale opened this issue Aug 11, 2023 · 2 comments

Comments

@Ronan-WeScale
Copy link
Contributor

I have HPA enabled on my cortex-tenant deployment, but after scale, other pod doesn't receive timeseries.
When I check"cortex_tenant_timeseries_received" metrics only the first pod has count
But when I check cortex_tenant_timeseries_batches_received metrics, other pod receive some batch but no much like the first pod :

Result series: 3

pod 1 : 25353
pod 2: 4
pod 3 : 15

Maybe we can add an nginx proxy (or other app) to loadbalance the query between the backend ?
Tell me and I can try to implement it.

@Ronan-WeScale
Copy link
Contributor Author

maybe the problem come from prometheus remote write process, I need to analyse this

@ksrt12
Copy link
Contributor

ksrt12 commented Mar 8, 2024

maybe the problem come from prometheus remote write process

I did some research and the problem is indeed prometheus shards (see queue_config).
Prometheus uses an auto-sizing algorithm for the number of shards, and it's entirely possible that the number of shards is 1, so only 1 cortex-tenant pod is used.

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

2 participants