- box.info.gc()
– a checkpoint’s vclock value. gc().checkpoints[n].signature – a sum of a checkpoint’s vclock’s components. gc().checkpoint_is_in_progress – true if a checkpoint is in progress, otherwise false gc().vclock
- box.info()
The request was issued at the replica instance. tarantool> box.info() --- - version: 1.7.6-68-g51fcffb77 id: 2 ro: true vclock: {1: 5} uptime: 917 lsn: 0 vinyl: [] cluster: uuid: 783e2285
- box.info.replication
(Notice that the table may have multiple pairs although vclock is a singular name).
- Removing instances
-e437-4296-85b0-d27a0621613e lsn: 0 3: id: 3 uuid: bb362584-c265-4e53-aeb6-450ae818bf59 lsn: 0 -- upstream is absent downstream: status: follow idle: 0.26624799999991 vclock
- Submodule box.info
This value can also be retrieved with tarantool.uptime(). uuid corresponds to replication.uuid (see here). vclock corresponds to replication.downstream.vclock (see here). version is the Tarantool version
- Monitoring a replica set
cd3c7da2-a638-4c5d-ae63-e7767c3a6896 lsn: 31 upstream: status: follow idle: 43.187747001648 peer: replicator@192.168.0.102:3301 lag: 0 downstream: vclock
- Preventing duplicate actions
missing in the report), because the downstream has encountered the same error: # replication statuses (report from master #3) tarantool> box.info --- - version: 1.7.4-52-g980d30092 id: 3 ro: false vclock
- Class luatest.server
Parameters: fn: (function) args: (tab) (optional) options: (tab) (optional) Usage: local vclock = server:exec(function() return box.info.vclock end) local sum = server:exec(function(a, b)
- Module cartridge.failover
Returns: (boolean) true / false is_vclockkeeper () Check if current instance has persisted his vclock. Returns: (boolean) true / false is_paused () Check if failover paused on current instance.
- Internals
: " 7b 7d "{}" = vclock value, initially blank ...
- Recovering from a degraded state
fd 13, aka 192.168.0.101:58244 2: id: 2 uuid: fb252ac7-5c34-4459-84d0-54d248b8c87e lsn: 0 3: id: 3 uuid: fd7681d8-255f-4237-b8bb-c4fb9d99024d lsn: 0 downstream: vclock
- Function box.snapshot
It goes through the log, removes duplicating operations from the memory and creates a new *.vylog file, giving it the name according to the vclock of the new checkpoint, with “create” operations only.
- Release notes
{vclock,status,error} to box.info.replication[instance_id].upstream.{vclock,status,error}. All registered replicas from box.space.
- Replication architecture
Here vclock contains log sequence numbers (827 and 584) for instances with instance IDs 1 and 2.
- Failover architecture
Even when the old leader is demoted, it remains the vclockkeeper until the new leader successfully awaits and persists its vclock on the external storage.
- Adding instances
Criteria for electing a leader include vclock value (largest is best), and whether it is read-only or read-write (read-write is best unless there is no other choice).
- Developer’s guide
Even when the old leader is demoted, it remains the vclockkeeper until the new leader successfully awaits and persists its vclock on the external storage.