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

Introduce node aware indexing #58

Merged
merged 4 commits into from
Feb 15, 2024
Merged

Conversation

Jurshsmith
Copy link
Member

@Jurshsmith Jurshsmith commented Feb 15, 2024

  • Reduces DB workload when there are multiple chaindexing nodes
  • Uses latest node's indexing logic
  • Removes possibility of race conditions when re-indexing from scratch

Currently, nodes elect the latest node
as the leader. This allows consumer
apps to update their indexing logic with
guarantees that the latest logic is being
used, and stale ones totally disregarded
This change ensures peer nodes abort their
indexing process to allow leader node reset
and re-index on a clean slate
@Jurshsmith Jurshsmith merged commit e454b7e into main Feb 15, 2024
4 checks passed
@Jurshsmith Jurshsmith deleted the introduce-node-aware-indexing branch February 15, 2024 09:45
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