Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ra v3 #494

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

Ra v3 #494

wants to merge 12 commits into from

Conversation

kjnilsson
Copy link
Contributor

PR for visibility of v3 work.

See: https://github.com/rabbitmq/ra/milestone/7

@kjnilsson kjnilsson force-pushed the v3 branch 2 times, most recently from dbb90ff to 08610a0 Compare January 9, 2025 10:31
@kjnilsson kjnilsson force-pushed the v3 branch 2 times, most recently from 70b7e6e to 3e50dd2 Compare January 29, 2025 12:15
@kjnilsson kjnilsson force-pushed the v3 branch 5 times, most recently from f8a3bed to 177855c Compare February 17, 2025 11:50
Responsibilities:

* Writing snapshots
* Writing and promoting checkpoints
* Compaction
To allow machines to report which indexes should be kept in
addition to the snapshot.

These are written to a new file in the snapshots directory for easy
recovery without having to recover the entire snapshot.

Other API changes and refactoring.
These have not proved useful o_sync perform very badly and
sync_after_notify only provides benefit when there is hardly
any activity. It is better to settle for a more predictable mode
like the default write + sync provides.
In particular the segment writer and the wal name was provided
twice, once in the wal conf and once in the system names map.

Also improve WAL log messages to include the system name.
Instead of working off the snapshot index to reduce writes to
WAL and segments there is a new "smallest index" that needs to
be populated. For normal snapshotting machines this will be
snapshot index + 1 but when a machine reportst live indexes it will
be the smallest of those.
Most things work now. Instead of passing ranges around we now
pass ra_seq instances which is a compacted sequence of items.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant