[Tarantool-patches] [RFC] gc/xlog: delay xlog cleanup until relays are subscribed

Konstantin Osipov kostja.osipov at gmail.com
Fri Mar 19 10:40:28 MSK 2021


* Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [21/03/18 23:40]:
> >> Good point, thanks! Kostya, lets clarify some moments:
> >>
> >> 1) We introduce "wal_keep_logs" option which defines
> >>    a timeout to kick the cleanup fiber.
> >> 2) If node is anonymous replica we simply ignore this
> >>    option.
> >> 3) If this option is set then we have a few subcases:
> >>    a) The `_cluster` space is not empty thus thus once
> >>       all replicas are subscribed _before_ the timeout
> >>       expired we trigger the cleanup fiber since it is
> >>       safe to process;
> >>    b) If replicas are not connected and timeout is
> >>       expired we kick the cleanup fiber;
> > 
> > I mean this.
> 
> Then it should have 'replication_' prefix, not 'wal_'. Because
> it is ignored if replicas connect before the timeout expires.

It defines a property of the wal subsystem. The naming scheme is
object-oriented, not subject-oriented.

-- 
Konstantin Osipov, Moscow, Russia
https://scylladb.com


More information about the Tarantool-patches mailing list