Skip to content

Use DNS to access Nexus IP from Sled Agent#1386

Merged
smklein merged 2 commits into
mainfrom
use-dns-from-sled-agent
Jul 11, 2022
Merged

Use DNS to access Nexus IP from Sled Agent#1386
smklein merged 2 commits into
mainfrom
use-dns-from-sled-agent

Conversation

@smklein

@smklein smklein commented Jul 11, 2022

Copy link
Copy Markdown
Collaborator

Utilize a LazyNexusClient struct, which allows Sled Agent to create NexusClient objects lazily by looking them up through DNS.

@smklein smklein added the Sled Agent Related to the Per-Sled Configuration and Management label Jul 11, 2022
@smklein smklein requested a review from leftwo July 11, 2022 14:30
Comment thread sled-agent/src/nexus.rs Outdated
Comment on lines +50 to +54
let address = self
.inner
.resolver
.lookup_ipv6(SRV::Service(ServiceName::Nexus))
.await?;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at your code, we can probably add a method here to access the IP directly without generating the client - that would just be pulling this block of code into a get_ip method.

@leftwo leftwo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, looks good.

@smklein

smklein commented Jul 11, 2022

Copy link
Copy Markdown
Collaborator Author

Went ahead and added the get_ip method

@smklein smklein enabled auto-merge (squash) July 11, 2022 21:16
@smklein smklein merged commit b473c9c into main Jul 11, 2022
@smklein smklein deleted the use-dns-from-sled-agent branch July 11, 2022 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Sled Agent Related to the Per-Sled Configuration and Management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants