Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v13] Improve LDAP desktop discovery #30383

Merged
merged 1 commit into from Aug 14, 2023
Merged

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Aug 11, 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 enabled auto-merge August 14, 2023 17:45
@zmb3 zmb3 added this pull request to the merge queue Aug 14, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 14, 2023
@zmb3 zmb3 added this pull request to the merge queue Aug 14, 2023
Merged via the queue into branch/v13 with commit a801029 Aug 14, 2023
19 checks passed
@zmb3 zmb3 deleted the zmb3/v13-backport-30277 branch August 14, 2023 19:18
@public-teleport-github-review-bot

@zmb3 See the table below for backport results.

Branch Result
branch/v11 Failed
branch/v12 Create PR

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.

None yet

4 participants