Adjust default value for testnet configs

This commit is contained in:
boqiu 2024-09-04 11:01:40 +08:00
parent e20be63026
commit 6dea1fe38f
5 changed files with 16 additions and 16 deletions

View File

@ -16,9 +16,9 @@ pub struct Config {
impl Default for Config { impl Default for Config {
fn default() -> Self { fn default() -> Self {
Config { Config {
max_entries_total: 256000, max_entries_total: 1000000,
max_entries_per_file: 4, max_entries_per_file: 4,
entry_expiration_time_secs: 3600, entry_expiration_time_secs: 86400,
} }
} }
} }

View File

@ -80,8 +80,8 @@ impl Default for Config {
// auto sync config // auto sync config
auto_sync_idle_interval: Duration::from_secs(3), auto_sync_idle_interval: Duration::from_secs(3),
auto_sync_error_interval: Duration::from_secs(10), auto_sync_error_interval: Duration::from_secs(10),
max_sequential_workers: 24, max_sequential_workers: 0,
max_random_workers: 8, max_random_workers: 30,
sequential_find_peer_timeout: Duration::from_secs(60), sequential_find_peer_timeout: Duration::from_secs(60),
random_find_peer_timeout: Duration::from_secs(500), random_find_peer_timeout: Duration::from_secs(500),
} }

View File

@ -264,10 +264,10 @@ auto_sync_enabled = true
# peer_chunks_download_timeout = "15s" # peer_chunks_download_timeout = "15s"
# Maximum threads to sync files in sequence. # Maximum threads to sync files in sequence.
# max_sequential_workers = 24 # max_sequential_workers = 0
# Maximum threads to sync files randomly. # Maximum threads to sync files randomly.
# max_random_workers = 8 # max_random_workers = 30
# Timeout to terminate a file sync in sequence. # Timeout to terminate a file sync in sequence.
# sequential_find_peer_timeout = "60s" # 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. # When the cache is full, the storage position information with oldest timestamp will be replaced.
# Global cache capacity. # Global cache capacity.
# max_entries_total = 256000 # max_entries_total = 1000000
# Location information capacity for each file. # Location information capacity for each file.
# max_entries_per_file = 4 # max_entries_per_file = 4
# Validity period of location information. # 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. # 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 ### ### Metrics Options ###

View File

@ -276,10 +276,10 @@ auto_sync_enabled = true
# peer_chunks_download_timeout = "15s" # peer_chunks_download_timeout = "15s"
# Maximum threads to sync files in sequence. # Maximum threads to sync files in sequence.
# max_sequential_workers = 24 # max_sequential_workers = 0
# Maximum threads to sync files randomly. # Maximum threads to sync files randomly.
# max_random_workers = 8 # max_random_workers = 30
# Timeout to terminate a file sync in sequence. # Timeout to terminate a file sync in sequence.
# sequential_find_peer_timeout = "60s" # 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. # When the cache is full, the storage position information with oldest timestamp will be replaced.
# Global cache capacity. # Global cache capacity.
# max_entries_total = 256000 # max_entries_total = 1000000
# Location information capacity for each file. # Location information capacity for each file.
# max_entries_per_file = 4 # max_entries_per_file = 4
# Validity period of location information. # 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. # 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 ### ### Metrics Options ###

View File

@ -278,10 +278,10 @@
# peer_chunks_download_timeout = "15s" # peer_chunks_download_timeout = "15s"
# Maximum threads to sync files in sequence. # Maximum threads to sync files in sequence.
# max_sequential_workers = 24 # max_sequential_workers = 0
# Maximum threads to sync files randomly. # Maximum threads to sync files randomly.
# max_random_workers = 8 # max_random_workers = 30
# Timeout to terminate a file sync in sequence. # Timeout to terminate a file sync in sequence.
# sequential_find_peer_timeout = "60s" # sequential_find_peer_timeout = "60s"
@ -301,14 +301,14 @@
# When the cache is full, the storage position information with oldest timestamp will be replaced. # When the cache is full, the storage position information with oldest timestamp will be replaced.
# Global cache capacity. # Global cache capacity.
# max_entries_total = 256000 # max_entries_total = 1000000
# Location information capacity for each file. # Location information capacity for each file.
# max_entries_per_file = 4 # max_entries_per_file = 4
# Validity period of location information. # 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. # 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 ### ### Metrics Options ###