reduce default sync threads (#214)

This commit is contained in:
Bo QIU 2024-09-26 14:55:00 +08:00 committed by GitHub
parent ad80b22a1b
commit ae6ecfec96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View File

@ -66,7 +66,7 @@ impl Default for Config {
// sync service config // sync service config
heartbeat_interval: Duration::from_secs(5), heartbeat_interval: Duration::from_secs(5),
auto_sync_enabled: false, auto_sync_enabled: false,
max_sync_files: 32, max_sync_files: 8,
sync_file_by_rpc_enabled: true, sync_file_by_rpc_enabled: true,
sync_file_on_announcement_enabled: false, sync_file_on_announcement_enabled: false,
@ -86,7 +86,7 @@ impl Default for 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: 0, max_sequential_workers: 0,
max_random_workers: 30, max_random_workers: 2,
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

@ -233,7 +233,7 @@ batcher_announcement_capacity = 100
auto_sync_enabled = true auto_sync_enabled = true
# Maximum number of files in sync from other peers simultaneously. # Maximum number of files in sync from other peers simultaneously.
# max_sync_files = 32 # max_sync_files = 8
# Enable to start a file sync via RPC (e.g. `admin_startSyncFile`). # Enable to start a file sync via RPC (e.g. `admin_startSyncFile`).
# sync_file_by_rpc_enabled = true # sync_file_by_rpc_enabled = true
@ -261,7 +261,7 @@ auto_sync_enabled = true
# max_sequential_workers = 0 # max_sequential_workers = 0
# Maximum threads to sync files randomly. # Maximum threads to sync files randomly.
# max_random_workers = 30 # max_random_workers = 2
# 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"

View File

@ -245,7 +245,7 @@ batcher_announcement_capacity = 100
auto_sync_enabled = true auto_sync_enabled = true
# Maximum number of files in sync from other peers simultaneously. # Maximum number of files in sync from other peers simultaneously.
# max_sync_files = 32 # max_sync_files = 8
# Enable to start a file sync via RPC (e.g. `admin_startSyncFile`). # Enable to start a file sync via RPC (e.g. `admin_startSyncFile`).
# sync_file_by_rpc_enabled = true # sync_file_by_rpc_enabled = true
@ -273,7 +273,7 @@ auto_sync_enabled = true
# max_sequential_workers = 0 # max_sequential_workers = 0
# Maximum threads to sync files randomly. # Maximum threads to sync files randomly.
# max_random_workers = 30 # max_random_workers = 2
# 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"

View File

@ -247,7 +247,7 @@
# auto_sync_enabled = false # auto_sync_enabled = false
# Maximum number of files in sync from other peers simultaneously. # Maximum number of files in sync from other peers simultaneously.
# max_sync_files = 32 # max_sync_files = 8
# Enable to start a file sync via RPC (e.g. `admin_startSyncFile`). # Enable to start a file sync via RPC (e.g. `admin_startSyncFile`).
# sync_file_by_rpc_enabled = true # sync_file_by_rpc_enabled = true
@ -275,7 +275,7 @@
# max_sequential_workers = 0 # max_sequential_workers = 0
# Maximum threads to sync files randomly. # Maximum threads to sync files randomly.
# max_random_workers = 30 # max_random_workers = 2
# 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"