diff options
author | Alex Auvolat <alex@adnab.me> | 2022-12-05 14:59:15 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-12-05 14:59:15 +0100 |
commit | 2065f011ca3f7c736feecffd108c89d3f8019e85 (patch) | |
tree | 86d761c1d5bea219ea2013a7e72762b42097291a /src/model/garage.rs | |
parent | 243b7c9a1cbf0e1dc4e9cf3b935bd833e29dcf9d (diff) | |
download | garage-2065f011ca3f7c736feecffd108c89d3f8019e85.tar.gz garage-2065f011ca3f7c736feecffd108c89d3f8019e85.zip |
Implement /health admin API endpoint to check node health
Diffstat (limited to 'src/model/garage.rs')
-rw-r--r-- | src/model/garage.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/model/garage.rs b/src/model/garage.rs index 75012952..c2aabea1 100644 --- a/src/model/garage.rs +++ b/src/model/garage.rs @@ -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, |