diff --git a/node/file_location_cache/src/lib.rs b/node/file_location_cache/src/lib.rs index ff12c5e..d0e3248 100644 --- a/node/file_location_cache/src/lib.rs +++ b/node/file_location_cache/src/lib.rs @@ -16,9 +16,9 @@ pub struct Config { impl Default for Config { fn default() -> Self { Config { - max_entries_total: 256000, + max_entries_total: 1000000, max_entries_per_file: 4, - entry_expiration_time_secs: 3600, + entry_expiration_time_secs: 86400, } } } diff --git a/node/sync/src/lib.rs b/node/sync/src/lib.rs index 5c2feb0..9d0863e 100644 --- a/node/sync/src/lib.rs +++ b/node/sync/src/lib.rs @@ -80,8 +80,8 @@ impl Default for Config { // auto sync config auto_sync_idle_interval: Duration::from_secs(3), auto_sync_error_interval: Duration::from_secs(10), - max_sequential_workers: 24, - max_random_workers: 8, + max_sequential_workers: 0, + max_random_workers: 30, sequential_find_peer_timeout: Duration::from_secs(60), random_find_peer_timeout: Duration::from_secs(500), } diff --git a/run/config-testnet-standard.toml b/run/config-testnet-standard.toml index c92e212..78b9d28 100644 --- a/run/config-testnet-standard.toml +++ b/run/config-testnet-standard.toml @@ -264,10 +264,10 @@ auto_sync_enabled = true # peer_chunks_download_timeout = "15s" # Maximum threads to sync files in sequence. -# max_sequential_workers = 24 +# max_sequential_workers = 0 # Maximum threads to sync files randomly. -# max_random_workers = 8 +# max_random_workers = 30 # Timeout to terminate a file sync in sequence. # sequential_find_peer_timeout = "60s" @@ -287,14 +287,14 @@ auto_sync_enabled = true # When the cache is full, the storage position information with oldest timestamp will be replaced. # Global cache capacity. -# max_entries_total = 256000 +# max_entries_total = 1000000 # Location information capacity for each file. # max_entries_per_file = 4 # Validity period of location information. # If the timestamp in the storage location information exceeds this duration from the current time, it will be removed from the cache. -# entry_expiration_time_secs = 3600 +# entry_expiration_time_secs = 86400 ####################################################################### ### Metrics Options ### diff --git a/run/config-testnet-turbo.toml b/run/config-testnet-turbo.toml index 6d011cd..291d33f 100644 --- a/run/config-testnet-turbo.toml +++ b/run/config-testnet-turbo.toml @@ -276,10 +276,10 @@ auto_sync_enabled = true # peer_chunks_download_timeout = "15s" # Maximum threads to sync files in sequence. -# max_sequential_workers = 24 +# max_sequential_workers = 0 # Maximum threads to sync files randomly. -# max_random_workers = 8 +# max_random_workers = 30 # Timeout to terminate a file sync in sequence. # sequential_find_peer_timeout = "60s" @@ -299,14 +299,14 @@ auto_sync_enabled = true # When the cache is full, the storage position information with oldest timestamp will be replaced. # Global cache capacity. -# max_entries_total = 256000 +# max_entries_total = 1000000 # Location information capacity for each file. # max_entries_per_file = 4 # Validity period of location information. # If the timestamp in the storage location information exceeds this duration from the current time, it will be removed from the cache. -# entry_expiration_time_secs = 3600 +# entry_expiration_time_secs = 86400 ####################################################################### ### Metrics Options ### diff --git a/run/config.toml b/run/config.toml index ff6a472..72d0873 100644 --- a/run/config.toml +++ b/run/config.toml @@ -278,10 +278,10 @@ # peer_chunks_download_timeout = "15s" # Maximum threads to sync files in sequence. -# max_sequential_workers = 24 +# max_sequential_workers = 0 # Maximum threads to sync files randomly. -# max_random_workers = 8 +# max_random_workers = 30 # Timeout to terminate a file sync in sequence. # sequential_find_peer_timeout = "60s" @@ -301,14 +301,14 @@ # When the cache is full, the storage position information with oldest timestamp will be replaced. # Global cache capacity. -# max_entries_total = 256000 +# max_entries_total = 1000000 # Location information capacity for each file. # max_entries_per_file = 4 # Validity period of location information. # If the timestamp in the storage location information exceeds this duration from the current time, it will be removed from the cache. -# entry_expiration_time_secs = 3600 +# entry_expiration_time_secs = 86400 ####################################################################### ### Metrics Options ###