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

Time drift issue when running hydra-router in a docker swarm on a Mac. #162

Open
cjus opened this issue Feb 25, 2018 · 3 comments
Open

Time drift issue when running hydra-router in a docker swarm on a Mac. #162

cjus opened this issue Feb 25, 2018 · 3 comments
Labels
not-a-hydra-issue This isn't an issue with hydra or hydra-router

Comments

@cjus
Copy link
Contributor

cjus commented Feb 25, 2018

If you run a docker swarm locally (using docker stack) and have a hydra microservice that you're developing / testing outside of the swarm you may notice that the hydra-router dashboard will show your test service as being unavailable. The time difference might be 6-12 seconds.

This is a known docker engine (on mac) time drift issue.

To resolve this just reset your docker engine. You can do that by 1) clicking on the docker for mac icon 2) selecting the reset bomb 3) pressing the Restart button. That will restart the docker engine then you can reload the swarm.

item-0_and_item-0_and_airportextra

@cjus cjus added the not-a-hydra-issue This isn't an issue with hydra or hydra-router label Feb 25, 2018
@cjus
Copy link
Contributor Author

cjus commented Feb 25, 2018

This is still an issue after Docker Version 17.12.0-ce-mac49 (21995)

@cjus
Copy link
Contributor Author

cjus commented Feb 25, 2018

The issue, I'm told, is that on the Mac we have an embedded Linux VM which can get out of sync with the Mac itself. When running in production on Linux machines a Linux VM isn't necessary.

@sjmcdowall
Copy link

@cjus -- Have you tried, in your docker container, to add NTP or something similar, to coordinate the date/time between the underlying Mac and the container? Even in production time shift is a normal thing so it's important to make sure all machines in the swarm run NTP (IMHO) .. even if pure Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-a-hydra-issue This isn't an issue with hydra or hydra-router
Projects
None yet
Development

No branches or pull requests

2 participants