diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-01 16:30:44 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-01 16:30:44 +0200 |
commit | df094bd8075332bb765b8b44c9b19cf2485e9ca8 (patch) | |
tree | 3cc838ad263c10960903b8b865e356d14eef9f60 /src/block/manager.rs | |
parent | f3bf34b6a18c547c5fb29346787648048c093d52 (diff) | |
download | garage-df094bd8075332bb765b8b44c9b19cf2485e9ca8.tar.gz garage-df094bd8075332bb765b8b44c9b19cf2485e9ca8.zip |
Less strict timeouts
Diffstat (limited to 'src/block/manager.rs')
-rw-r--r-- | src/block/manager.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/block/manager.rs b/src/block/manager.rs index b9f6fc0f..00438648 100644 --- a/src/block/manager.rs +++ b/src/block/manager.rs @@ -48,10 +48,14 @@ use crate::repair::*; pub const INLINE_THRESHOLD: usize = 3072; // Timeout for RPCs that read and write blocks to remote nodes -const BLOCK_RW_TIMEOUT: Duration = Duration::from_secs(30); +const BLOCK_RW_TIMEOUT: Duration = Duration::from_secs(60); // Timeout for RPCs that ask other nodes whether they need a copy // of a given block before we delete it locally -const NEED_BLOCK_QUERY_TIMEOUT: Duration = Duration::from_secs(5); +// The timeout here is relatively low because we don't want to block +// the entire resync loop when some nodes are not responding. +// Nothing will be deleted if the nodes don't answer the queries, +// we will just retry later. +const NEED_BLOCK_QUERY_TIMEOUT: Duration = Duration::from_secs(15); // The delay between the time where a resync operation fails // and the time when it is retried, with exponential backoff |