Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

fix(Zero): Move Zero within Alpha #14

Merged
merged 21 commits into from
Mar 9, 2022
Merged

fix(Zero): Move Zero within Alpha #14

merged 21 commits into from
Mar 9, 2022

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Mar 8, 2022

  • Running Zero as a separate process makes deployments harder. A minimum cluster requires running both Zero process and Alpha process. In this PR, we remove the separate Zero process.
  • Zero is now run as a module within Alpha. Every Alpha runs a Zero module (via goroutines, not a separate child process). Thus, all machines in the cluster participate in running a Zero Raft state machine.
  • Alpha and Zero share the same Grpc Raft server. Messages to their Raft state machine are multiplexed using their Raft Context.
  • Zero does not expose any user facing APIs. All user interactions are done via Alpha.
  • This is a major simplification of the interactions between Zeros and Alphas.

Others:

  • Simplified MembershipState.
  • Consolidated all data directories under "data".
  • Don't fork Lambda processes by default.

Removals:

  • Zero process.
  • Bulk loader is disabled for now as well.

This change is Reviewable

@manishrjain manishrjain merged commit 8d90146 into main Mar 9, 2022
@manishrjain manishrjain deleted the mrjn/zero branch March 9, 2022 03:04
danielmai added a commit that referenced this pull request Mar 15, 2022
In #14 Zero was moved to Alpha with the addition of the "peer" flag.

This change uses the flag instead of the removed "zero" flag.
danielmai added a commit that referenced this pull request Mar 15, 2022
In #14 Zero was moved to Alpha with the addition of the "peer" flag.

This change uses the flag instead of the removed "zero" flag.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant