-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[stable/prometheus] Allow multiple server replicas for HA setup #5115
Comments
I create the persistent volume claims, before launching prometheus, so the data lives through tearing prometheus down and back up again. This is the only thing I think that you really need to do so data is not lost. But the issue is if we use more than replica count of 1 for HA which is the next step towards redundancy. How do we map the persistent volume claims to the replicas???
|
I took the approach of deploying the chart twice into two different namespaces and having the pipeline run over the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. |
Has this issue been resolved yet? We should probably remove the replicaCount value for prometheus server if it's not supported. And maybe document how to achieve HA with @jpds approach if it's not possible to solve in an other way? |
@marcuslindfeldt This PR will address the issue by switching Prometheus from a |
@giacomoguiulfo my understanding is that this still does not solve the problem of not having the ability to run more than 1 replicas of prom server ( I tried it crashes :))? so should we still keep the ability to specify multiple replicas in the helm chart? |
@prageethw Did you configured it properly? It is not as simple as changing replicas... |
@giacomoguiulfo I just followed instructions in helm... DO you have a sample that I can have a look, please? |
@prageethw You have to set |
@giacomoguiulfo thanks i will update docs with pr |
Prometheus HA setup is configuration where you can multiple prometheus servers with same configuration scraping same targets.
It really simple setup and usually it would require just setting
replicaCount
to 2.Unfortunately it's not possible in current helm chart because it causes deploying 2 servers trying to use same persistent volume claim.
As result one server is deployed, other one is stuck waiting for volume that is already being used.
Proposed solution:
Migrate prometheus server deployment to stateful set and replace PVC with template inside server manifest.
How to reproduce it:
helm install stable/prometheus --set server.replicaCount=2
Anything else we need to know:
I can help with implementation.
cc @mgoodness
The text was updated successfully, but these errors were encountered: