mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-04 03:47:24 +00:00
451 lines
10 KiB
TOML
451 lines
10 KiB
TOML
attr_timeout = 30.0
|
|
batch_io_coros = 128
|
|
check_rmrf = true
|
|
chunk_size_limit = '0'
|
|
dryrun_bench_mode = false
|
|
enable_interrupt = false
|
|
enable_priority = false
|
|
enable_read_cache = true
|
|
enable_writeback_cache = false
|
|
entry_timeout = 30.0
|
|
fdatasync_update_length = false
|
|
flush_on_stat = true
|
|
fsync_length_hint = false
|
|
io_job_deq_timeout = '1ms'
|
|
io_jobq_size = 1024
|
|
iov_limit = '1MB'
|
|
max_background = 32
|
|
max_idle_threads = 10
|
|
max_jobs_per_ioring = 32
|
|
max_readahead = '16MB'
|
|
max_threads = 256
|
|
max_uid = '1M'
|
|
memset_before_read = false
|
|
negative_timeout = 5.0
|
|
notify_inval_threads = 32
|
|
rdma_buf_pool_size = 1024
|
|
readonly = false
|
|
submit_wait_jitter = '1ms'
|
|
symlink_timeout = 5.0
|
|
sync_on_stat = true
|
|
time_granularity = '1s'
|
|
|
|
[client]
|
|
default_compression_level = 0
|
|
default_compression_threshold = '128KB'
|
|
default_log_long_running_threshold = '0ns'
|
|
default_report_metrics = false
|
|
default_send_retry_times = 1
|
|
default_timeout = '1s'
|
|
enable_rdma_control = false
|
|
force_use_tcp = false
|
|
|
|
[client.io_worker]
|
|
num_event_loop = 1
|
|
rdma_connect_timeout = '5s'
|
|
read_write_rdma_in_event_thread = false
|
|
read_write_tcp_in_event_thread = false
|
|
tcp_connect_timeout = '1s'
|
|
wait_to_retry_send = '100ms'
|
|
|
|
[client.io_worker.connect_concurrency_limiter]
|
|
max_concurrency = 4
|
|
|
|
[client.io_worker.ibsocket]
|
|
buf_ack_batch = 8
|
|
buf_signal_batch = 8
|
|
buf_size = 16384
|
|
drain_timeout = '5s'
|
|
drop_connections = 0
|
|
event_ack_batch = 128
|
|
max_rd_atomic = 16
|
|
max_rdma_wr = 128
|
|
max_rdma_wr_per_post = 32
|
|
max_sge = 16
|
|
min_rnr_timer = 1
|
|
record_bytes_per_peer = false
|
|
record_latency_per_peer = false
|
|
retry_cnt = 7
|
|
rnr_retry = 0
|
|
send_buf_cnt = 32
|
|
sl = 0
|
|
start_psn = 0
|
|
timeout = 14
|
|
|
|
[client.io_worker.transport_pool]
|
|
max_connections = 1
|
|
|
|
[client.processor]
|
|
enable_coroutines_pool = true
|
|
max_coroutines_num = 256
|
|
max_processing_requests_num = 4096
|
|
response_compression_level = 1
|
|
response_compression_threshold = '128KB'
|
|
|
|
[client.rdma_control]
|
|
max_concurrent_transmission = 64
|
|
|
|
[client.thread_pool]
|
|
bg_thread_pool_stratetry = 'SHARED_QUEUE'
|
|
collect_stats = false
|
|
enable_work_stealing = false
|
|
io_thread_pool_stratetry = 'SHARED_QUEUE'
|
|
num_bg_threads = 2
|
|
num_connect_threads = 2
|
|
num_io_threads = 2
|
|
num_proc_threads = 2
|
|
proc_thread_pool_stratetry = 'SHARED_QUEUE'
|
|
|
|
[[common.log.categories]]
|
|
categories = [ '.' ]
|
|
handlers = [ 'normal', 'err', 'fatal' ]
|
|
inherit = true
|
|
level = 'INFO'
|
|
propagate = 'NONE'
|
|
|
|
[[common.log.handlers]]
|
|
async = true
|
|
file_path = '/var/log/3fs/hf3fs_fuse_main.log'
|
|
max_file_size = '100MB'
|
|
max_files = 10
|
|
name = 'normal'
|
|
rotate = true
|
|
rotate_on_open = false
|
|
start_level = 'NONE'
|
|
stream_type = 'STDERR'
|
|
writer_type = 'FILE'
|
|
|
|
[[common.log.handlers]]
|
|
async = false
|
|
file_path = '/var/log/3fs/hf3fs_fuse_main-err.log'
|
|
max_file_size = '100MB'
|
|
max_files = 10
|
|
name = 'err'
|
|
rotate = true
|
|
rotate_on_open = false
|
|
start_level = 'ERR'
|
|
stream_type = 'STDERR'
|
|
writer_type = 'FILE'
|
|
|
|
[[common.log.handlers]]
|
|
async = false
|
|
file_path = '/var/log/3fs/hf3fs_fuse_main-fatal.log'
|
|
max_file_size = '100MB'
|
|
max_files = 10
|
|
name = 'fatal'
|
|
rotate = true
|
|
rotate_on_open = false
|
|
start_level = 'FATAL'
|
|
stream_type = 'STDERR'
|
|
writer_type = 'STREAM'
|
|
|
|
[common.memory]
|
|
prof_active = false
|
|
prof_prefix = ''
|
|
|
|
[common.monitor]
|
|
collect_period = '1s'
|
|
num_collectors = 1
|
|
|
|
[[common.monitor.reporters]]
|
|
type = 'monitor_collector'
|
|
|
|
[common.monitor.reporters.monitor_collector]
|
|
remote_ip = ''
|
|
|
|
[io_bufs]
|
|
max_buf_size = '1MB'
|
|
max_readahead = '256KB'
|
|
write_buf_size = '1MB'
|
|
|
|
[io_jobq_sizes]
|
|
hi = 32
|
|
lo = 4096
|
|
|
|
[io_worker_coros]
|
|
hi = 8
|
|
lo = 8
|
|
|
|
[meta]
|
|
check_server_interval = '5s'
|
|
dynamic_stripe = true
|
|
max_concurrent_requests = 128
|
|
network_type = 'RDMA'
|
|
remove_chunks_batch_size = 32
|
|
remove_chunks_max_iters = 1024
|
|
selection_mode = 'RandomFollow'
|
|
|
|
[meta.background_closer]
|
|
prune_session_batch_count = 128
|
|
prune_session_batch_interval = '10s'
|
|
retry_first_wait = '100ms'
|
|
retry_max_wait = '10s'
|
|
task_scan = '50ms'
|
|
|
|
[meta.background_closer.coroutine_pool]
|
|
coroutines_num = 8
|
|
enable_work_stealing = false
|
|
queue_size = 128
|
|
|
|
[meta.retry_default]
|
|
max_failures_before_failover = 1
|
|
retry_fast = '1s'
|
|
retry_init_wait = '500ms'
|
|
retry_max_wait = '5s'
|
|
retry_send = 1
|
|
retry_total_time = '1min'
|
|
rpc_timeout = '5s'
|
|
|
|
[mgmtd]
|
|
accept_incomplete_routing_info_during_mgmtd_bootstrapping = true
|
|
auto_extend_client_session_interval = '10s'
|
|
auto_heartbeat_interval = '10s'
|
|
auto_refresh_interval = '10s'
|
|
enable_auto_extend_client_session = true
|
|
enable_auto_heartbeat = false
|
|
enable_auto_refresh = true
|
|
mgmtd_server_addresses = []
|
|
work_queue_size = 100
|
|
|
|
[periodic_sync]
|
|
enable = true
|
|
flush_write_buf = true
|
|
interval = '30s'
|
|
limit = 1000
|
|
|
|
[periodic_sync.worker]
|
|
coroutines_num = 4
|
|
enable_work_stealing = false
|
|
queue_size = 1024
|
|
|
|
[storage]
|
|
check_overlapping_read_buffers = true
|
|
check_overlapping_write_buffers = false
|
|
chunk_checksum_type = 'CRC32C'
|
|
create_net_client_for_updates = false
|
|
implementation_type = 'RPC'
|
|
max_inline_read_bytes = '0'
|
|
max_inline_write_bytes = '0'
|
|
max_read_io_bytes = '0'
|
|
|
|
[storage.net_client]
|
|
default_compression_level = 0
|
|
default_compression_threshold = '128KB'
|
|
default_log_long_running_threshold = '0ns'
|
|
default_report_metrics = false
|
|
default_send_retry_times = 1
|
|
default_timeout = '1s'
|
|
enable_rdma_control = false
|
|
force_use_tcp = false
|
|
|
|
[storage.net_client.io_worker]
|
|
num_event_loop = 1
|
|
rdma_connect_timeout = '5s'
|
|
read_write_rdma_in_event_thread = false
|
|
read_write_tcp_in_event_thread = false
|
|
tcp_connect_timeout = '1s'
|
|
wait_to_retry_send = '100ms'
|
|
|
|
[storage.net_client.io_worker.connect_concurrency_limiter]
|
|
max_concurrency = 4
|
|
|
|
[storage.net_client.io_worker.ibsocket]
|
|
buf_ack_batch = 8
|
|
buf_signal_batch = 8
|
|
buf_size = 16384
|
|
drain_timeout = '5s'
|
|
drop_connections = 0
|
|
event_ack_batch = 128
|
|
max_rd_atomic = 16
|
|
max_rdma_wr = 128
|
|
max_rdma_wr_per_post = 32
|
|
max_sge = 16
|
|
min_rnr_timer = 1
|
|
record_bytes_per_peer = false
|
|
record_latency_per_peer = false
|
|
retry_cnt = 7
|
|
rnr_retry = 0
|
|
send_buf_cnt = 32
|
|
sl = 0
|
|
start_psn = 0
|
|
timeout = 14
|
|
|
|
[storage.net_client.io_worker.transport_pool]
|
|
max_connections = 1
|
|
|
|
[storage.net_client.processor]
|
|
enable_coroutines_pool = true
|
|
max_coroutines_num = 256
|
|
max_processing_requests_num = 4096
|
|
response_compression_level = 1
|
|
response_compression_threshold = '128KB'
|
|
|
|
[storage.net_client.rdma_control]
|
|
max_concurrent_transmission = 64
|
|
|
|
[storage.net_client.thread_pool]
|
|
bg_thread_pool_stratetry = 'SHARED_QUEUE'
|
|
collect_stats = false
|
|
enable_work_stealing = false
|
|
io_thread_pool_stratetry = 'SHARED_QUEUE'
|
|
num_bg_threads = 2
|
|
num_connect_threads = 2
|
|
num_io_threads = 2
|
|
num_proc_threads = 2
|
|
proc_thread_pool_stratetry = 'SHARED_QUEUE'
|
|
|
|
[storage.net_client_for_updates]
|
|
default_compression_level = 0
|
|
default_compression_threshold = '128KB'
|
|
default_log_long_running_threshold = '0ns'
|
|
default_report_metrics = false
|
|
default_send_retry_times = 1
|
|
default_timeout = '1s'
|
|
enable_rdma_control = false
|
|
force_use_tcp = false
|
|
|
|
[storage.net_client_for_updates.io_worker]
|
|
num_event_loop = 1
|
|
rdma_connect_timeout = '5s'
|
|
read_write_rdma_in_event_thread = false
|
|
read_write_tcp_in_event_thread = false
|
|
tcp_connect_timeout = '1s'
|
|
wait_to_retry_send = '100ms'
|
|
|
|
[storage.net_client_for_updates.io_worker.connect_concurrency_limiter]
|
|
max_concurrency = 4
|
|
|
|
[storage.net_client_for_updates.io_worker.ibsocket]
|
|
buf_ack_batch = 8
|
|
buf_signal_batch = 8
|
|
buf_size = 16384
|
|
drain_timeout = '5s'
|
|
drop_connections = 0
|
|
event_ack_batch = 128
|
|
max_rd_atomic = 16
|
|
max_rdma_wr = 128
|
|
max_rdma_wr_per_post = 32
|
|
max_sge = 16
|
|
min_rnr_timer = 1
|
|
record_bytes_per_peer = false
|
|
record_latency_per_peer = false
|
|
retry_cnt = 7
|
|
rnr_retry = 0
|
|
send_buf_cnt = 32
|
|
sl = 0
|
|
start_psn = 0
|
|
timeout = 14
|
|
|
|
[storage.net_client_for_updates.io_worker.transport_pool]
|
|
max_connections = 1
|
|
|
|
[storage.net_client_for_updates.processor]
|
|
enable_coroutines_pool = true
|
|
max_coroutines_num = 256
|
|
max_processing_requests_num = 4096
|
|
response_compression_level = 1
|
|
response_compression_threshold = '128KB'
|
|
|
|
[storage.net_client_for_updates.rdma_control]
|
|
max_concurrent_transmission = 64
|
|
|
|
[storage.net_client_for_updates.thread_pool]
|
|
bg_thread_pool_stratetry = 'SHARED_QUEUE'
|
|
collect_stats = false
|
|
enable_work_stealing = false
|
|
io_thread_pool_stratetry = 'SHARED_QUEUE'
|
|
num_bg_threads = 2
|
|
num_connect_threads = 2
|
|
num_io_threads = 2
|
|
num_proc_threads = 2
|
|
proc_thread_pool_stratetry = 'SHARED_QUEUE'
|
|
|
|
[storage.retry]
|
|
init_wait_time = '10s'
|
|
max_failures_before_failover = 1
|
|
max_retry_time = '1min'
|
|
max_wait_time = '30s'
|
|
|
|
[storage.traffic_control.query]
|
|
max_batch_bytes = '4MB'
|
|
max_batch_size = 128
|
|
max_concurrent_requests = 32
|
|
max_concurrent_requests_per_server = 8
|
|
process_batches_in_parallel = true
|
|
random_shuffle_requests = true
|
|
|
|
[storage.traffic_control.read]
|
|
max_batch_bytes = '4MB'
|
|
max_batch_size = 128
|
|
max_concurrent_requests = 32
|
|
max_concurrent_requests_per_server = 8
|
|
process_batches_in_parallel = true
|
|
random_shuffle_requests = true
|
|
|
|
[storage.traffic_control.remove]
|
|
max_batch_bytes = '4MB'
|
|
max_batch_size = 128
|
|
max_concurrent_requests = 32
|
|
max_concurrent_requests_per_server = 8
|
|
process_batches_in_parallel = true
|
|
random_shuffle_requests = true
|
|
|
|
[storage.traffic_control.truncate]
|
|
max_batch_bytes = '4MB'
|
|
max_batch_size = 128
|
|
max_concurrent_requests = 32
|
|
max_concurrent_requests_per_server = 8
|
|
process_batches_in_parallel = true
|
|
random_shuffle_requests = true
|
|
|
|
[storage.traffic_control.write]
|
|
max_batch_bytes = '4MB'
|
|
max_batch_size = 128
|
|
max_concurrent_requests = 32
|
|
max_concurrent_requests_per_server = 8
|
|
process_batches_in_parallel = true
|
|
random_shuffle_requests = true
|
|
|
|
[storage_io.read]
|
|
allowReadUncommitted = false
|
|
enableChecksum = false
|
|
|
|
[storage_io.read.debug]
|
|
bypass_disk_io = false
|
|
bypass_rdma_xmit = false
|
|
inject_random_client_error = false
|
|
inject_random_server_error = false
|
|
max_num_of_injection_points = 100
|
|
|
|
[storage_io.read.retry]
|
|
init_wait_time = '0ns'
|
|
max_retry_time = '0ns'
|
|
max_wait_time = '0ns'
|
|
retry_permanent_error = false
|
|
|
|
[storage_io.read.targetSelection]
|
|
mode = 'Default'
|
|
targetIndex = 0
|
|
trafficZone = ''
|
|
|
|
[storage_io.write]
|
|
enableChecksum = true
|
|
|
|
[storage_io.write.debug]
|
|
bypass_disk_io = false
|
|
bypass_rdma_xmit = false
|
|
inject_random_client_error = false
|
|
inject_random_server_error = false
|
|
max_num_of_injection_points = 100
|
|
|
|
[storage_io.write.retry]
|
|
init_wait_time = '0ns'
|
|
max_retry_time = '0ns'
|
|
max_wait_time = '0ns'
|
|
retry_permanent_error = false
|
|
|
|
[storage_io.write.targetSelection]
|
|
mode = 'Default'
|
|
targetIndex = 0
|
|
trafficZone = ''
|