4 ms·
Oh joys, the sound of re-inventing the wheel. The old "not invented here" syndrome. Per the blog, they state they want max 7ms difference between nodes. I'm n
by traceroute66 5y ago
Oh joys, the sound of re-inventing the wheel. The old "not invented here" syndrome.
Per the blog, they state they want max 7ms difference between nodes.
I'm no timesync guru, but AFAIK can do that off-the-shelf today using chrony with hardware timestamping or PTP. No need to invent your own.
And if you still insist on doing something different, why not work on improving the existing work being done under the the Open Compute Time Appliance Project (https://www.opencompute.org/projects/time-appliances-project-tap https://www.opencompute.org/projects/time-appliances-project...).
- rkarthik007 5y ago> but AFAIK can do that off-the-shelf today using chrony with hardware timestamping or PTP. No need to invent your own. Actually, the issue is about the max clock skew guarantees (as opposed to the average or median). Even a single violation of this breaks the ACID semantics. So, we do use chrony, but need all this to ensure there is a max guarantee. We would totally have adopted an existing solution - we did look at all alternatives available. Disclosure: one of the founders of the YugabyteDB project
- traceroute66 5y agoHow would you say your solution compares to the CockroachDB solution[1] ? [1] https://www.cockroachlabs.com/docs/stable/architecture/transaction-layer.html#time-and-hybrid-logical-clocks https://www.cockroachlabs.com/docs/stable/architecture/trans...
- rkarthik007 5y agoThis blog post covers the various techniques to sync clocks in general (NTP, GPS clocks / TrueTime, Timestamp Oracle, HLC, etc). CockroachDB uses HLC (hybrid logical clocks), which is the same clock sync mechanism as YugabyteDB uses (and Apache Kudu as well). The page you linked to talks about how HLC is used to get distributed transactions to work, and there are differences here between the different databases (Spanner, CRDB, YugabyteDB, etc).
- jeffbee 5y agoGood luck using PTP in EC2.
- yangosoft 5y agoAren't they providing NIC with hardware timestamp? That's bad.