Skip to content

[v13] Improve LDAP desktop discovery#30383

Merged
zmb3 merged 1 commit intobranch/v13from
zmb3/v13-backport-30277
Aug 14, 2023
Merged

[v13] Improve LDAP desktop discovery#30383
zmb3 merged 1 commit intobranch/v13from
zmb3/v13-backport-30277

Conversation

@zmb3
Copy link
Copy Markdown
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

@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from ibeckermayer August 14, 2023 06:44
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 force-pushed the zmb3/v13-backport-30277 branch from 2fb1827 to 7d9d763 Compare August 14, 2023 17:38
@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
@zmb3 zmb3 deleted the zmb3/v13-backport-30277 branch August 14, 2023 19:18
@public-teleport-github-review-bot
Copy link
Copy Markdown

@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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants