commit | 3781ddbfd7534f88317a44e6fee02670fe36a01e | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Mon Aug 21 20:59:01 2023 +0200 |
committer | Serge Bazanski <serge@monogon.tech> | Wed Aug 23 08:59:12 2023 +0000 |
tree | 2c0247c43643cea03672b12d47247acfd4f6d320 | |
parent | 8b000b2217522891cace6ad3b98d805b1a262345 [diff] |
metropolis/curator: report leader based on ledership election status This makes GetCurrentLeader calls respond to cluster/leader changes instead of relying on connections getting closed on time when a leader changes, or when a node gets elected as a leader. This leads to less churn when cluster leadership status changes (no need for every RPC client to re-establish connectivity to get the new leader). It should also be faster to respond to cluster leader changes, as it doesn't rely on the the RPC client detecting that the node it connected to has stopped responding / disconnected. Change-Id: I9de12286530226b3832d2ae07cb7d943ca537d3f Reviewed-on: https://review.monogon.dev/c/monogon/+/2069 Tested-by: Jenkins CI Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm
(if you want to run tests).Our docs assume that Bazelisk is available as bazel
on your PATH.
Refer to SETUP.md for detailed instructions.
Build CLI and node image:
bazel build //metropolis/cli/dbg //:launch -c dbg
Launch an ephemeral test node:
bazel test //:launch -c dbg --test_output=streamed
Run a kubectl command while the test is running:
bazel-bin/metropolis/cli/dbg/dbg_/dbg kubectl describe node
Run full test suite:
bazel test -c dbg //...