mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-13 07:46:51 +00:00
Rename epidemic_factor to epidemic_fanout (that's what it is); complete conf example in readme
This commit is contained in:
+2
-2
@@ -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...");
|
||||
|
||||
+3
-3
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user