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
idea to explore : bundle ntp #103
Comments
didn't thinked about the fact ntp is udp 123 |
Absolutely not. Maybe add a check to make sure you have an ntp client installed. ntp on Debian based distros and chrony on Red Hat based distro's. |
The title is "idea to explore", because I'm not sure it's a good idea and/or it's do-able. I must say I didn't new about chrony and just read about it. I understand your point of saying I want to use what already in my os. I would still use ntp anyway in iburst mode with a couple of predefine servers. I've seen lots of production servers on centos using exactly that to make sure the time is always less then 0.02 secs drifted for credit card transaction. the check is not made once a day but almost in real time. Not sure best way to deal with that maybe a usentp=false in config.json for poeple that have their own custom solution |
I also understand the concern about lisk is a software and we don't want a "LiskOS" ... |
Even software has dependencies. You can't expect a transactional database which directly relies on proper time to function in sync with other nodes if its not near the same time stamp. Time synchronization should be considered a base requirement, just like having the ability to untar or unzip files during installation. |
I like this idea: usentp=false in config.json for poeple that have their own custom solution |
First step should be to add an "how to install ntp" for every installation-tutorial in our documentation. For Ubuntu 16.04 i used:
Added these lines into my conf-file:
Start ntp service If the time is sync, set the hardware clock to the current system time Additional thoughts: Maybe it's possible to check all nodes on their time and if one is wrong, it gets banned. Dunno if this is possible. I read this solution: http://unix.stackexchange.com/questions/18642/how-to-check-if-ntpd-updates-machines-time-successfully-using-shell/18682#18682 |
I added a pull request to at least give a status check if the ntp service is running on a debian based system. It's not perfect and doesn't verify if the service is even working properly, but it's a quick/easy check to help for now |
One remark. |
That's true GoldenEye. |
Guys, this is every day hum drum Unix work. Time just works when setup properly. I don't think we should go around banning people. That doesn't seem like a good solution at all. I do wish there were more experienced Linux users being delegates though or have a Windows client for them to click and install. |
I'm looking at addressing this issue in a new provisioning technology for binary installs. The check inside of lisk.sh may not be needed with the implementation since it will be front loaded when deploying lisk. |
This issue can be closed, it was addressed in a change to lisk-build. |
Bump socketcluster and socketcluster-client versions - Closes #103
Bundle ntp client in lisk package with real time sync settings to mitigate forking
The text was updated successfully, but these errors were encountered: