1. Add tags to Agent config file
Resilio Connect v2.5.2 allows to automatically add newly connected Agents to a certain Group and starting with version 2.8.0 supports fully automatic sorting.
There are three levels to sort the agents:
1. Add all new agents
Every newly connected agent will be added to the group and all the jobs accordingly. Newly connected agent - is the one with new AgentID, meaning the agent that has never yet been connected to the MC. These agents can later be removed from the group and some other agents can later be added/removed there.
2. Add new agents that match the rule
Only those of newly connected agents that match the tags' rule* will be added to the group.These agents can later be removed from the group and some other agents can later be added/removed there.
3. Always update the group according to the rule
This is a fully automatic group. If this option is enabled, all agents - new ones and already connected - will be re-sorted and added to this group. It's not possible to manually add or remove the agents from this group.
(*) The tag rule means agent's tags meet the filter in group settings. The tags are set in Agent config: first we need to assign tags to Agents in its config and then set rules for sorting. When making the first connection to the Management Console, Agent sends these tags, the sorting rule applies and the Agent ends up in the configured Group.
Add necessary tags to sync.conf file, to top level.
NoteOnly upper case is allowed in tag name.
Two predefined tags AGENT_NAME and AGENT_ID must not be used in config.
- If several groups have similar or same sorting rules, and an agent tags match them all, agent will be added to the groups in order of their creation time, until it faces a conflict. Agent won't be added to the first conflicting group. Event about this will appear in Events tab
- Tags from config are used only when agent connects to MC for the first time ever. It also means that if you add tag to sync.conf later, after agent connects to MC, these will be just skipped and won't be applied. Use Console's UI to manage tags for already connected agents.
- Only one tag can be used for a sorting rule. Regular expressions are supported which gives certain flexibility.
All tags you use will also appear in Console UI and can be used by other agents.