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

Attempt to discover a new server over mdns if the previous one is down #1267

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

vladlogyin
Copy link

Hello,
I run snapserver on a docker swarm and I've noticed that whenever the server instance gets migrated from one node to the other, snapclient doesn't try to discover the new server.
My proposed solution to this is to add a number of connection attempts after which snapclient tries to find a new server through mdns.

I added two arguments:

  • --connection-attempts (defaults to -1)
    controls how many times snapclient should try to reconnect before trying to discover a new server.
  • --mdns (defaults to true)
    controls whether mdns should be used or not

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.

1 participant