[ 
https://issues.apache.org/jira/browse/RATIS-2825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Andika updated RATIS-2825:
-------------------------------
    Description: 
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 and Marzullo Algorithm)
 * 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 
([https://aws.github.io/clock-bound/]) where SDK 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.

 

  was:
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 
(https://aws.github.io/clock-bound/) where SDK 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.

 


> 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
>            Priority: Major
>
> 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 and Marzullo Algorithm)
>  * 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 
> ([https://aws.github.io/clock-bound/]) where SDK 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)

Reply via email to