This commit is contained in:
Bo QIU 2024-09-04 03:02:18 +00:00 committed by GitHub
commit 2834ff90e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 16 additions and 16 deletions

View File

@ -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,
}
}
}

View File

@ -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),
}

View File

@ -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 ###

View File

@ -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 ###

View File

@ -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 ###