Particularly in light of recent changes implementing connection failover (
GUACAMOLE-267), it's become clear that balancing group order needs to be predictably (and configurably) deterministic.
A good portion of that requirement is achieved via
GUACAMOLE-102, which allows connections to be weighted, however:
Consider the case where a balancing group contains several connections, which are meant to be used only when other connections are unavailable (a hot spare). As currently implemented, such a balancing group will always distribute load evenly across its connections (or at least evenly with respect to weights), including the connections intended for failover only. Though
GUACAMOLE-267 will cause the group to avoid failing connections, the backup connections will still be used in cases where no connections are failing.
Somehow, balancing group policy needs to be configurable to the extent that underlying connections can be dedicated to backup/failover cases.