~ne02ptzero/libfloat

16bdbb8a — Louis Solofrizzo 6 days ago master
ae: Fix libfloat_count and optimize the routine

Patch: https://lists.sr.ht/~ne02ptzero/libfloat/patches/35486

Signed-off-by : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by      : Patrik Cyvoct <pcyvoct@scaleway.com>
3ffa7eca — Louis Solofrizzo 7 days ago
raft: Add stat for elected leader timestamp

Patch: https://lists.sr.ht/~ne02ptzero/libfloat/patches/35442

Signed-off-by : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by      : Florian Florensa <fflorensa@scaleway.com>
d88dcd58 — Louis Solofrizzo 12 days ago
raft: Set last_log when reloading state

Avoiding a use-after-free error on AE receive

Patch         : https://lists.sr.ht/~ne02ptzero/libfloat/patches/35331

Signed-off-by : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by      : Patrik Cyvoct <pcyvoct@scaleway.com>

 ________________________________________
/ Something must be Done This is         \
| Something Therefore, This must be Done |
\ -- The Thatcherite Syllogism           /
 ----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
45936d42 — Louis Solofrizzo a month ago
periodic: Change log level from ERROR to DEBUG on election timeout

Patch: https://lists.sr.ht/~ne02ptzero/libfloat/patches/34088

Signed-off-by : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by      : Patrik Cyvoct <pcyvoct@scaleway.com>

 ___________________________________
/ Let sleeping dogs lie. -- Charles \
\ Dickens                           /
 -----------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
172b2d87 — Louis Solofrizzo 3 months ago
log: Try to fix stuck replication on some cases

Patch : https://lists.sr.ht/~ne02ptzero/libfloat/patches/32640

Signed-off-by: Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by     : Florian Florensa <fflorensa@scaleway.com>
Acked-by     : Patrik Cyvoct <pcyvoct@scaleway.com>

 _____________________________________
< Words must be weighed, not counted. >
 -------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
5e770edd — Louis Solofrizzo 3 months ago
Revert "Reset status node when node become leader"

This reverts commit 9402ec9dc454962300bbc9c34313d00040a34355.
9402ec9d — Michael Bonfils 6 months ago
Reset status node when node become leader

Signed-off-by : Michael Bonfils <mbonfils@scaleway.com>
Acked-by      : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by      : Patrik Cyvoct <pcyvoct@scaleway.com>
cbb26c8f — Michael Bonfils 7 months ago
Fix follower stuck after a snapshot

Signed-off-by: Michael Bonfils <mbonfils@scaleway.com>
Patch        : https://lists.sr.ht/~ne02ptzero/libfloat/patches/29194
Acked-by     : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by     : Patrik Cyvoct <pcyvoct@scaleway.com>
e3973f06 — Louis Solofrizzo 7 months ago
log: Don't compute next_log on network replays

Patch: https://lists.sr.ht/~ne02ptzero/libfloat/patches/28949

Signed-off-by: Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by     : Patrik Cyvoct <pcyvoct@scaleway.com>
Acked-by     : Michael Bonfils <mbonfils@scaleway.com>

 _________________________________________
/ Advice is a dangerous gift; be cautious \
\ about giving and receiving it.          /
 -----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
c7228802 — Louis Solofrizzo 7 months ago
log: Bump sanity timeout, add helpers functions for resetting timer routines

Patch: https://lists.sr.ht/~ne02ptzero/libfloat/patches/28821

Signed-off-by : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by      : Patrik Cyvoct <pcyvoct@scaleway.com>
Acked-by      : Michael Bonfils <mbonfils@scaleway.com>

 ________________________________________
/ Oh, yeah, life goes on, long after the \
| thrill of livin' is gone. -- John      |
\ Cougar, "Jack and Diane"               /
 ----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
5a86ae79 — Michael Bonfils 8 months ago
Investiguate replication stuck

Add functions to retrieve replicated_log and next_log_to_send per node
of a cluster.
Allow update for next_log_to_send even if less than replicated_log.

Patch: https://lists.sr.ht/~ne02ptzero/libfloat/patches/28552
Signed-off-by: Michael Bonfils <mbonfils@scaleway.com>
Acked-by      : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by      : Patrick Cyvoct <pcyvoct@scaleway.com>
c626a3a5 — Louis Solofrizzo 8 months ago
log: Add metric on orphaned logs

Add an exposed counter for logs that are committed on the leader but not
anywhere else on a cluster, in order to alert on a possible
network-split.

Patch: https://lists.sr.ht/~ne02ptzero/libfloat/patches/27934

Signed-off-by : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by      : Patrick Cyvoct <pcyvoct@scaleway.com>
Acked-by      : Michael Bonfils <mbonfils@scaleway.com>

 ________________________________________
/ "Been through Hell? Whaddya bring back \
\ for me?" -- A. Brilliant               /
 ----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
9890efc6 — Michael Bonfils 9 months ago
Check qorum is ok in periodic check

Stopped followers didn't trigger a step down from leader
if quorum is no more reached.

Patch: https://lists.sr.ht/~ne02ptzero/libfloat/patches/27509

Signed-off-by: Michael Bonfils <mbonfils@scaleway.com>
Acked-by      : Patrik Cyvoct <pcyvoct@scaleway.com>
Acked-by      : Louis Solofrizzo <lsolofrizzo@scaleway.com>
6cfcf0e6 — Louis Solofrizzo 9 months ago
log: Add real optimisic replication on log burst

This patch adds some code to try not to duplicate log sending when we
can avoid it. On log-write burst, the last known sent log is never
overrided by the node AE response, in order to avoid replay. When
heartbeating, the value _is_ overidded to allow replication on a
out-of-date node.

The main trade-off is that an out-of-date not will take longer to be
up-to-date again (hearbeat time, best case), but less data will be sent
on the wire.

Patch: https://lists.sr.ht/~ne02ptzero/libfloat/patches/27200

Signed-off-by : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by      : Patrik Cyvoct <pcyvoct@scaleway.com>
Acked-by      : Michael Bonfils <mbonfils@scaleway.com>

 _______________________________________
/ The trouble is, there is an endless   \
| supply of White Men, but there has    |
| always been a limited number of Human |
\ Beings. -- Little Big Man             /
 ---------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
3a7f6584 — Michael Bonfils 10 months ago
Snapshot: remove internal state

This commit remove internal state for sending snapshot
It also allow to use snapshot term if commit index is equal to snapshot index
And also avoid to retrieve last term from log if current log is 0

Signed-off-by : Michael Bonfils <mbonfils@scaleway.com>
Acked-by      : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by      : Patrik Cyvot <patrik@ptrk.io>
ec48c42c — Michael Bonfils 11 months ago
Don't try to retrieve term if log is 0

Also use DEBUG instead of ERROR for information log

Signed-off-by: Michael Bonfils <mbonfils@scaleway.com>
0a170e94 — Michael Bonfils a year ago
Add callback to abort snapshot synchronization

It will be done when a leader become a follower or when
a new snapshot should be done.

Signed-off-by: Michael Bonfils <mbonfils@scaleway.com>
c93ce23c — Louis Solofrizzo 1 year, 6 days ago
log: Add helpers for human readable consistency types

Patch: https://lists.sr.ht/~ne02ptzero/libfloat/patches/25297

Signed-off-by : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Acked-by      : Patrik Cyvot <patrik@ptrk.io>
Acked-by      : Michael Bonfils <bonfils.michael@protonmail.com>
cb703146 — Michael Bonfils 1 year, 10 days ago
Ignore snapshot log if it matches current snapshot

Signed-off-by: Michael Bonfils <mbonfils@scaleway.com>
Ack-by       : Louis Solofrizzo <lsolofrizzo@scaleway.com>
cf75af54 — Michael Bonfils 1 year, 25 days ago
Few improvmements

- ACK manage logs
- Cleanup logs memory in reload_state
- Avoid to reload all logs on startup

Signed-off-by: Michael Bonfils <mbonfils@scaleway.com>
Ack-by       : Louis Solofrizzo <lsolofrizzo@scaleway.com>
Next