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

Snapshot syncing optimization #125

Open
kevin-harrison opened this issue Nov 13, 2023 · 0 comments
Open

Snapshot syncing optimization #125

kevin-harrison opened this issue Nov 13, 2023 · 0 comments
Labels
enhancement Improvements that enhances performance good first issue Good for newcomers

Comments

@kevin-harrison
Copy link
Contributor

kevin-harrison commented Nov 13, 2023

During log synchronization, and when snapshots are enabled, a sync object with a snapshot of missing decided entries is sent to servers. Right now the out-of-date servers will always merge this snapshot onto their current decided entries. The snapshot represents entries [out_of_date_server_decided_idx .. up_to_date_server_decided_idx]. If the out-of-date server has valid accepted entries that are decided in the up-to-date server's log then they are unnecessarily sent in the decided snapshot. We could instead send a snapshot representing [out_of_date_servers_valid_entries .. up_to_date_server_decided_idx].

@haraldng haraldng added enhancement Improvements that enhances performance good first issue Good for newcomers labels Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements that enhances performance good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants