[3pt] document triggers on election state change #2274
Labels
2.10
feature
A new functionality
reference
[location] Tarantool manual, Reference part
replication
[area] Related to Replication
triggers
[area] Related to triggers
Product: Tarantool
Since: 2.10.0-beta1
Root document: https://www.tarantool.io/en/doc/latest/book/box/triggers/
https://www.tarantool.io/en/doc/latest/book/replication/repl_leader_elect/
SME: @ sergepetrenko
Details
A new function to register triggers is added,
box.ctl.on_election()
.Triggers registered via this function are run asynchronously every time
a visible change in
box.info.election
table appears.No parameters are passed to the trigger, it may check what's changed by
looking at
box.info.election
andbox.info.synchro
.Requested by @sergepetrenko in tarantool/tarantool@7f5876f.
See if "Automated leader election" needs to be updated as well.
The text was updated successfully, but these errors were encountered: