tarantool / tarantool/tarantool

Replicaset worker helper

Open
#11,761 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.