tarantool / tarantool/tarantool
Replicaset worker helper
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 3.7k
- Forks
- 419
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 88
Description
With sync replication it's convenient to think of a replicaset as a single entity doing one job. If an application role needs to do some actions on this entity, it has to run a background fiber on the replicaset leader. When the leader changes, the fiber should be restarted on the new lader. In Aeon we implemented the aeon.common.replicaset_worker helper for this. It'd be nice if there was something like this built-in Tarantool.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the referenced aeon/common/replicaset_worker.lua helper and the surrounding Tarantool replicaset APIs. Determine how a background fiber can run on the leader and be restarted after leadership changes; done should be a built-in Tarantool equivalent with its expected behavior defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- databases, distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100