Implement /health admin API endpoint to check node health

This commit is contained in:
Alex Auvolat
2022-12-05 14:59:15 +01:00
parent 243b7c9a1c
commit 2065f011ca
4 changed files with 103 additions and 0 deletions
+4
View File
@@ -34,6 +34,9 @@ pub struct Garage {
/// The parsed configuration Garage is running
pub config: Config,
/// The replication mode of this cluster
pub replication_mode: ReplicationMode,
/// The local database
pub db: db::Db,
/// A background job runner
@@ -258,6 +261,7 @@ impl Garage {
// -- done --
Ok(Arc::new(Self {
config,
replication_mode,
db,
background,
system,