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

HA: Support multiple enclaves on a single host #1852

Merged
merged 4 commits into from
Mar 27, 2024

Conversation

BedrockSquirrel
Copy link
Collaborator

@BedrockSquirrel BedrockSquirrel commented Mar 26, 2024

Why this change is needed

We want the host to be able to failover if an enclave fails. This will be especially important for a highly available sequencer.

As a preliminary step we need hosts to be able to interact with multiple enclaves and keep them up-to-date.

What changes were made as part of this PR

  • Change host config to receive comma-seperated list of enclave RPC addresses instead of a single one
  • Create a guardian per enclave, only the first one is a 'sequencer' guardian for now (no support for failing over sequencer functionality yet, and no support for making RPC requests to the secondary enclave).
  • Add a basic test that brings up the network with this double-enclave sequencer and checks it is functional
  • This tests basic functionality like the sequencer was able to perform the protocol secret handshake for both of its enclaves and keep them both up to date.

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

Copy link
Collaborator

@tudor-malene tudor-malene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@BedrockSquirrel BedrockSquirrel merged commit ce6b156 into main Mar 27, 2024
2 checks passed
@BedrockSquirrel BedrockSquirrel deleted the matt/test-multi-encl-seq branch March 27, 2024 14:40
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.

2 participants