I want UP ELK cluster by nomad. I will use separate type servers for every elastic role.
ELK data and muster will use big server and kibana will use small server.
How I can tell nomad launch kibana groupe to small server - only?
1 Like
Although the title says affinities
you may also want to check out constraints
(which is also mentioned in the article)
HTH
2 Likes
Indeed. I thought this site/ doc captures them both.
1 Like
THNX it’s true. I used constraint and it’s work.
1 Like
Hmmm I have now strange situation.
From my groupe1
constraint { attribute = "${node.datacenter}" value = "dc1" distinct_hosts = true }
and from groupe2
constraint { attribute = "${node.datacenter}" value = "dc2" distinct_hosts = true }
But now i see that task from groupe1 is spinning on server which has lable dc2.
Why?
When I deleted
distinct_hosts = true
My application is started right.