infinityworks / Guide_Rancher_Monitoring

Easy to follow guide on how to deploy and make the best use of the Rancher community catalog template for Prometheus.
112 stars 9 forks source link

Host affinity for Prometheus and Grafana #27

Open xolan opened 6 years ago

xolan commented 6 years ago

How would one go about setting host affinity for Prometheus and Grafana?

Say I have 8 hosts. I want Prometheus and Grafana to run on one specific host, while the agents run on all.

Currently, it seems random which host Prometheus and Grafana runs on.

Guess I could create my own catalog and customize the template, but I would rather avoid doing that.

Gargam commented 6 years ago

I'm kind of new to this but I was having the same issue.

I finaly created the service using the catalog but without checking "Start services after creation". Then I upgrade the service manually and played with the scheduling tab to deal with my host affinity.

Not sure if it's the best solution, but it did the trick for me.