From 8514425d5f41686c33779f866d725e81c909f13b Mon Sep 17 00:00:00 2001 From: Leonardo Yvens Date: Fri, 27 Jan 2023 18:26:10 +0000 Subject: [PATCH] config: Bump default ipfs timeout to 60 seconds It used to be that 30 seconds was sufficient, but now we see ipfs requests taking minutes to find a file in the DHT. So 60 seconds seems like a reasonable step. --- docs/environment-variables.md | 2 +- graph/src/env/mappings.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/environment-variables.md b/docs/environment-variables.md index 310c83e0a5e..56d5bbed183 100644 --- a/docs/environment-variables.md +++ b/docs/environment-variables.md @@ -69,7 +69,7 @@ those. ## IPFS - `GRAPH_IPFS_TIMEOUT`: timeout for IPFS, which includes requests for manifest files - and from mappings (in seconds, default is 30). + and from mappings (in seconds, default is 60). - `GRAPH_MAX_IPFS_FILE_BYTES`: maximum size for a file that can be retrieved (in bytes, default is 256 MiB). - `GRAPH_MAX_IPFS_MAP_FILE_SIZE`: maximum size of files that can be processed with `ipfs.map`. When a file is processed through `ipfs.map`, the entities diff --git a/graph/src/env/mappings.rs b/graph/src/env/mappings.rs index 1f2ac18ae8c..bb3ee2c1d30 100644 --- a/graph/src/env/mappings.rs +++ b/graph/src/env/mappings.rs @@ -36,7 +36,7 @@ pub struct EnvVarsMapping { /// The timeout for all IPFS requests. /// /// Set by the environment variable `GRAPH_IPFS_TIMEOUT` (expressed in - /// seconds). The default value is 30s. + /// seconds). The default value is 60s. pub ipfs_timeout: Duration, /// Sets the `ipfs.map` file size limit. /// @@ -105,7 +105,7 @@ pub struct InnerMappingHandlers { max_ipfs_cache_file_size: WithDefaultUsize, #[envconfig(from = "GRAPH_MAX_IPFS_CACHE_SIZE", default = "50")] max_ipfs_cache_size: u64, - #[envconfig(from = "GRAPH_IPFS_TIMEOUT", default = "30")] + #[envconfig(from = "GRAPH_IPFS_TIMEOUT", default = "60")] ipfs_timeout_in_secs: u64, #[envconfig(from = "GRAPH_MAX_IPFS_MAP_FILE_SIZE", default = "")] max_ipfs_map_file_size: WithDefaultUsize,