Skip to content

Commit

Permalink
refactor: set default metasrv procedure retry times to 12
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Aug 24, 2023
1 parent a7e0e23 commit a09b70c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/metasrv.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ enable_telemetry = true
# Procedure storage options.
[procedure]
# Procedure max retry time.
max_retry_times = 3
max_retry_times = 12
# Initial retry delay of procedures, increases exponentially
retry_delay = "500ms"

Expand Down
6 changes: 5 additions & 1 deletion src/meta-srv/src/metasrv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub mod builder;

use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use std::time::Duration;

use api::v1::meta::Peer;
use common_catalog::consts::{DEFAULT_CATALOG_NAME, DEFAULT_SCHEMA_NAME};
Expand Down Expand Up @@ -79,7 +80,10 @@ impl Default for MetaSrvOptions {
dir: format!("{METASRV_HOME}/logs"),
..Default::default()
},
procedure: ProcedureConfig::default(),
procedure: ProcedureConfig {
max_retry_times: 12,
retry_delay: Duration::from_millis(500),
},
datanode: DatanodeOptions::default(),
enable_telemetry: true,
data_home: METASRV_HOME.to_string(),
Expand Down

0 comments on commit a09b70c

Please sign in to comment.