Skip to content

[v11] Improve LDAP desktop discovery#30465

Merged
zmb3 merged 1 commit intobranch/v11from
zmb3/v11-backport-30277
Aug 16, 2023
Merged

[v11] Improve LDAP desktop discovery#30465
zmb3 merged 1 commit intobranch/v11from
zmb3/v11-backport-30277

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented Aug 14, 2023

In environments with many desktops where some DNS queries time out, we can run in to situations where the discovery loop doesn't complete before the desktop's 10m TTL expires, causing desktops to disappear and reappear sporadically.

  • Increase the TTL for LDAP-discovered desktops to 30m. This won't harm UX, since desktops that stop being discovered are already purged prior to their expiration.
  • Perform both DNS queries (via the default resolver and by hitting the LDAP server directly) in parallel. This reduces the maximum time a single lookup can take from 20s to 5s.

Backports #30277

In environments with many desktops where some DNS queries time out,
we can run in to situations where the discovery loop doesn't complete
before the desktop's 10m TTL expires, causing desktops to disappear
and reappear sporadically.

- Increase the TTL for LDAP-discovered desktops to 30m. This won't
  harm UX, since desktops that stop being discovered are already
  purged prior to their expiration.
- Perform both DNS queries (via the default resolver and by hitting
  the LDAP server directly) in parallel. This reduces the maximum
  time a single lookup can take from 20s to 5s.
@zmb3 zmb3 added this pull request to the merge queue Aug 16, 2023
Merged via the queue into branch/v11 with commit 460c432 Aug 16, 2023
@zmb3 zmb3 deleted the zmb3/v11-backport-30277 branch August 16, 2023 15:44
This was referenced Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants