Skip to content

Commit

Permalink
chore: optimize retry interval for meta client to speed up cluster in…
Browse files Browse the repository at this point in the history
…it (#17792)
  • Loading branch information
yezizp2012 authored Jul 24, 2024
1 parent f8974bd commit c19561a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc_client/src/meta_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1781,9 +1781,9 @@ impl GrpcMetaClient {
// See `Endpoint::keep_alive_timeout`
const ENDPOINT_KEEP_ALIVE_TIMEOUT_SEC: u64 = 60;
// Retry base interval in ms for connecting to meta server.
const INIT_RETRY_BASE_INTERVAL_MS: u64 = 50;
const INIT_RETRY_BASE_INTERVAL_MS: u64 = 10;
// Max retry times for connecting to meta server.
const INIT_RETRY_MAX_INTERVAL_MS: u64 = 5000;
const INIT_RETRY_MAX_INTERVAL_MS: u64 = 2000;

fn start_meta_member_monitor(
&self,
Expand Down

0 comments on commit c19561a

Please sign in to comment.