3 ms·
The one thing that feels lacking to me, and maybe there's just something I don't get, is the ability to tag nodes with metadata. From the docs it seems like wha
by stormbrew 13y ago
The one thing that feels lacking to me, and maybe there's just something I don't get, is the ability to tag nodes with metadata. From the docs it seems like what you're expected to do is fire an event for a node to, eg., declare itself a webserver, but this seems prone to failure in the long run. If I bring a new load balancer online how does it find out what's a webserver already?
- armon 13y agoThis might be a little unclear, but if you check the documentation for agent configuration (http://www.serfdom.io/docs/agent/options.html http://www.serfdom.io/docs/agent/options.html), there is an option to provide a role. The role is the metadata support currently
- stormbrew 13y agoCool, I must have missed that. It would be nice, then, if you could also have a node be tagged with multiple roles (as well as add/remove them in a way that propagates).
- armon 13y agoDynamic roles is a fairly hard problem, which we hope to solve by building a different tool on top of Serf in the near future. If you want multiple roles that are static, it can be simulated by just providing a comma separated value as the role (since that is just an opaque string value to Serf)