Remove epidemic propagation for fully replicated stuff: write directly to all nodes

This commit is contained in:
Alex Auvolat
2021-03-05 15:09:18 +01:00
parent d7e148d302
commit 3882d5ba36
7 changed files with 71 additions and 94 deletions
+5 -5
View File
@@ -23,12 +23,12 @@ pub struct Config {
#[serde(default = "default_block_size")]
pub block_size: usize,
#[serde(default = "default_control_write_max_faults")]
pub control_write_max_faults: usize,
#[serde(default = "default_replication_factor")]
pub meta_replication_factor: usize,
#[serde(default = "default_epidemic_fanout")]
pub meta_epidemic_fanout: usize,
#[serde(default = "default_replication_factor")]
pub data_replication_factor: usize,
@@ -68,8 +68,8 @@ fn default_block_size() -> usize {
fn default_replication_factor() -> usize {
3
}
fn default_epidemic_fanout() -> usize {
3
fn default_control_write_max_faults() -> usize {
1
}
pub fn read_config(config_file: PathBuf) -> Result<Config, Error> {