diff options
author | Alex Auvolat <alex@adnab.me> | 2020-06-30 15:03:34 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-06-30 15:03:34 +0200 |
commit | db6f1f35a869f9afa22198ee2ac32a812afae3c5 (patch) | |
tree | 98e85621b6fcdf9d9f1bb758efbbac79987a439e | |
parent | c56de7fdd1b6f1606e0f1f9a9e3038fa9dd479f8 (diff) | |
download | garage-db6f1f35a869f9afa22198ee2ac32a812afae3c5.tar.gz garage-db6f1f35a869f9afa22198ee2ac32a812afae3c5.zip |
Rename epidemic_factor to epidemic_fanout (that's what it is); complete conf example in readme
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | src/core/garage.rs | 4 | ||||
-rw-r--r-- | src/util/config.rs | 6 |
3 files changed, 10 insertions, 5 deletions
@@ -48,6 +48,11 @@ bootstrap_peers = [ "10.0.0.3:3901", ] +max_concurrent_rpc_requests = 12 +data_replication_factor = 3 +meta_replication_factor = 3 +meta_epidemic_fanout = 3 + [rpc_tls] # NOT RECOMMENDED: you can skip this section if you don't want to encrypt intra-cluster traffic # Thanks to genkeys.sh, generating the keys and certificates is easy, so there is NO REASON NOT TO DO IT. diff --git a/src/core/garage.rs b/src/core/garage.rs index d77b0acd..46e0d02f 100644 --- a/src/core/garage.rs +++ b/src/core/garage.rs @@ -66,8 +66,8 @@ impl Garage { }; let control_rep_param = TableFullReplication::new( - config.meta_epidemic_factor, - (config.meta_epidemic_factor + 1) / 2, + config.meta_epidemic_fanout, + (config.meta_epidemic_fanout + 1) / 2, ); info!("Initialize block manager..."); diff --git a/src/util/config.rs b/src/util/config.rs index 28349530..5c01712b 100644 --- a/src/util/config.rs +++ b/src/util/config.rs @@ -24,8 +24,8 @@ pub struct Config { #[serde(default = "default_replication_factor")] pub meta_replication_factor: usize, - #[serde(default = "default_epidemic_factor")] - pub meta_epidemic_factor: usize, + #[serde(default = "default_epidemic_fanout")] + pub meta_epidemic_fanout: usize, #[serde(default = "default_replication_factor")] pub data_replication_factor: usize, @@ -57,7 +57,7 @@ fn default_block_size() -> usize { fn default_replication_factor() -> usize { 3 } -fn default_epidemic_factor() -> usize { +fn default_epidemic_fanout() -> usize { 3 } |