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

Adding A/AAAA DNS discovery for cluster peers #61

Merged
merged 2 commits into from
Jul 21, 2023
Merged

Conversation

maxpert
Copy link
Owner

@maxpert maxpert commented Jul 21, 2023

Adding feature for DNS based peer discovery and NATS URL flattening. This will allow Marmot to function in a cluster environment where people won't have to write complicated scripts to discover DNS before moving forward. URL also supports query parameters min to set minimum number of routes before proceeding, interval_ms is the delay between query retries.

@maxpert maxpert merged commit 8a5afe4 into master Jul 21, 2023
9 checks passed
@maxpert maxpert deleted the dns-discovery branch July 21, 2023 05:40
@tigawanna
Copy link

Am an absolute noob in networking, had a curious question. Does this mean we don't have to point every instance to all the possible instances explicitly in the config file?

@maxpert
Copy link
Owner Author

maxpert commented Jul 21, 2023

Am an absolute noob in networking, had a curious question. Does this mean we don't have to point every instance to all the possible instances explicitly in the config file?

Yes you can now use DNS addresses to resolve out IPs. Look at PocketBase on Fly.io that automatically uses DNS resolution to find first two peers. This should take away all of the overhead of getting IPs yourself and use service discovery mechanism via A/AAAA records to start cluster.

@tigawanna
Copy link

Nice

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.

None yet

2 participants