mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-04 02:21:02 +08:00
* DiscoveryService: exclusive worker per Discovery Group This PR ensures only one DiscoveryService is running per DiscoveryGroup. It does so using a SemaphoreLock. This should prevent any duplicate API calls and also prevent duplicate resources on Teleport side. * improve eice server name and releaseGroupLockFn init * review pt2 * improve error handling * re-organize lock acquire * improve eice node name handling * simplify lock on discovery group * Remove lock logic and rely on node name to prevent dups * improve test comment * change comment about skipping nodes