Ivan Andika created RATIS-2825:
----------------------------------
Summary: Ratis library for bounded clock abstraction
Key: RATIS-2825
URL: https://issues.apache.org/jira/browse/RATIS-2825
Project: Ratis
Issue Type: New Feature
Reporter: Ivan Andika
Assignee: Ivan Andika
Raft implementation like Raft Lease and LeaseGuard (RATIS-2782) requires a
bounded clock implementation which returns [earliest, latest]. Bounded clock is
a distributed system primitive that is popularized by Spanner which uses a
TrueTime API which requires a specific hardware (atomic clocks, etc) to ensure
that the API returns a bounded time interval of the time "now".
We can introduce a dedicated Java library for exposing this bounded clock
implementation with pluggable bounded clock implementation depending where
Ratis is deployed, such as
* Google TrueTime API
* AWS TimeSync
* Meta's SPTP and PTP
* Clock algorithms that do not require hardware (e.g. implementing Huygens
Protocol)
* NTP / Chronny (fallback): This can be the fallback if the machine has no
above bounded clock source.
The approach can be similar to AWS ClockBound where we can pick different time
sources (AWS TimeSync / NTP sources).
A module (e.g. ratis-time) can be reused by downstream users (e.g. Ozone /
IotDB) accordingly.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)