mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-11-21 15:41:02 +00:00
Rename epidemic_factor to epidemic_fanout (that's what it is); complete conf example in readme
This commit is contained in:
parent
c56de7fdd1
commit
db6f1f35a8
3 changed files with 10 additions and 5 deletions
|
@ -48,6 +48,11 @@ bootstrap_peers = [
|
||||||
"10.0.0.3:3901",
|
"10.0.0.3:3901",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
max_concurrent_rpc_requests = 12
|
||||||
|
data_replication_factor = 3
|
||||||
|
meta_replication_factor = 3
|
||||||
|
meta_epidemic_fanout = 3
|
||||||
|
|
||||||
[rpc_tls]
|
[rpc_tls]
|
||||||
# NOT RECOMMENDED: you can skip this section if you don't want to encrypt intra-cluster traffic
|
# 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.
|
# Thanks to genkeys.sh, generating the keys and certificates is easy, so there is NO REASON NOT TO DO IT.
|
||||||
|
|
|
@ -66,8 +66,8 @@ impl Garage {
|
||||||
};
|
};
|
||||||
|
|
||||||
let control_rep_param = TableFullReplication::new(
|
let control_rep_param = TableFullReplication::new(
|
||||||
config.meta_epidemic_factor,
|
config.meta_epidemic_fanout,
|
||||||
(config.meta_epidemic_factor + 1) / 2,
|
(config.meta_epidemic_fanout + 1) / 2,
|
||||||
);
|
);
|
||||||
|
|
||||||
info!("Initialize block manager...");
|
info!("Initialize block manager...");
|
||||||
|
|
|
@ -24,8 +24,8 @@ pub struct Config {
|
||||||
#[serde(default = "default_replication_factor")]
|
#[serde(default = "default_replication_factor")]
|
||||||
pub meta_replication_factor: usize,
|
pub meta_replication_factor: usize,
|
||||||
|
|
||||||
#[serde(default = "default_epidemic_factor")]
|
#[serde(default = "default_epidemic_fanout")]
|
||||||
pub meta_epidemic_factor: usize,
|
pub meta_epidemic_fanout: usize,
|
||||||
|
|
||||||
#[serde(default = "default_replication_factor")]
|
#[serde(default = "default_replication_factor")]
|
||||||
pub data_replication_factor: usize,
|
pub data_replication_factor: usize,
|
||||||
|
@ -57,7 +57,7 @@ fn default_block_size() -> usize {
|
||||||
fn default_replication_factor() -> usize {
|
fn default_replication_factor() -> usize {
|
||||||
3
|
3
|
||||||
}
|
}
|
||||||
fn default_epidemic_factor() -> usize {
|
fn default_epidemic_fanout() -> usize {
|
||||||
3
|
3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue