Skip to content

nsqadmin: add option to skip resolving on startup#1329

Open
martin-sucha wants to merge 1 commit into
nsqio:masterfrom
kiwicom:ms/skip-resolve-on-startup
Open

nsqadmin: add option to skip resolving on startup#1329
martin-sucha wants to merge 1 commit into
nsqio:masterfrom
kiwicom:ms/skip-resolve-on-startup

Conversation

@martin-sucha

Copy link
Copy Markdown

When running nsqlookupd in Kubernetes and pointing to a specific
identity of a pod from statefulset, the DNS name is not resolvable
if the pod is not currently scheduled.

The lookup check currently causes nsqadmin to exit during startup
even if only one of the listed nsqlookupd instances is not resolvable.

I want nsqadmin to always start. If no lookupd instances are currently
resolvable/reachable that fact will be visible in the user interface.

When running nsqlookupd in Kubernetes and pointing to a specific
identity of a pod from statefulset, the DNS name is not resolvable
if the pod is not currently scheduled.

The lookup check currently causes nsqadmin to exit during startup
even if only one of the listed nsqlookupd instances is not resolvable.

I want nsqadmin to always start. If no lookupd instances are currently
resolvable/reachable that fact will be visible in the user interface.
@martin-sucha

Copy link
Copy Markdown
Author

ready for review

@mreiferson

Copy link
Copy Markdown
Member

Hey @martin-sucha thanks for the PR.

This code path ultimately just validates that we have a proper hostname or IP address - I agree that the resolution of the hostname is probably not something we need to fatally exit on.

So, I don't think the answer here is a new command line flag, but rather validation of the format and not the name resolution.

@mreiferson mreiferson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As per above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants