mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
Initial commit
This commit is contained in:
15
tests/fuse/config/admin_cli.toml
Normal file
15
tests/fuse/config/admin_cli.toml
Normal file
@@ -0,0 +1,15 @@
|
||||
cluster_id = '${FS_CLUSTER}'
|
||||
|
||||
[ib_devices]
|
||||
default_pkey_index = ${PKEY_INDEX}
|
||||
|
||||
[fdb]
|
||||
clusterFile = '${FDB_UNITTEST_CLUSTER}'
|
||||
|
||||
[mgmtd_client]
|
||||
mgmtd_server_addresses = [ 'RDMA://${ADDRESS}:${MGMTD_PORT}' ]
|
||||
|
||||
[user_info]
|
||||
uid = 0
|
||||
gid = 0
|
||||
token = '${TOKEN}'
|
||||
31
tests/fuse/config/hf3fs_fuse_main.toml
Normal file
31
tests/fuse/config/hf3fs_fuse_main.toml
Normal file
@@ -0,0 +1,31 @@
|
||||
attr_timeout = 2
|
||||
entry_timeout = 2
|
||||
fsync_length_hint = true
|
||||
enable_read_cache = {{ env.READCACHE }}
|
||||
chunk_size_limit = '64KB'
|
||||
|
||||
[[common.log.categories]]
|
||||
categories = [ '.' ]
|
||||
handlers = [ 'normal' ]
|
||||
|
||||
[[common.log.handlers]]
|
||||
async = true
|
||||
name = 'normal'
|
||||
start_level = 'NONE'
|
||||
writer_type = 'FILE'
|
||||
file_path = '{{ env.LOG_FILE }}'
|
||||
|
||||
[mgmtd]
|
||||
mgmtd_server_addresses = [ 'RDMA://${ADDRESS}:${MGMTD_PORT}' ]
|
||||
|
||||
[meta]
|
||||
dynamic_stripe = {{ env.DYNAMIC_STRIPE }}
|
||||
|
||||
[periodic_sync]
|
||||
enable = true
|
||||
interval = '500ms'
|
||||
limit = 16
|
||||
|
||||
[io_bufs]
|
||||
write_buf_size = '{{ "1MB" if env.ENABLE_WRITE_BUFFER else "0MB" }}'
|
||||
max_buf_size = '1MB'
|
||||
9
tests/fuse/config/hf3fs_fuse_main_launcher.toml
Normal file
9
tests/fuse/config/hf3fs_fuse_main_launcher.toml
Normal file
@@ -0,0 +1,9 @@
|
||||
allow_other = true # echo user_allow_other | sudo tee -a /etc/fuse.conf
|
||||
token_file = '${TOKEN_FILE}'
|
||||
cluster_id = '${FS_CLUSTER}'
|
||||
|
||||
[ib_devices]
|
||||
default_pkey_index = ${PKEY_INDEX}
|
||||
|
||||
[mgmtd_client]
|
||||
mgmtd_server_addresses = [ 'RDMA://${ADDRESS}:${MGMTD_PORT}' ]
|
||||
19
tests/fuse/config/meta_bench.toml
Normal file
19
tests/fuse/config/meta_bench.toml
Normal file
@@ -0,0 +1,19 @@
|
||||
shuffle = true
|
||||
subdirs = 4
|
||||
files_per_dir = 10000
|
||||
threads = 4
|
||||
coroutines = 8
|
||||
cluster_id = '${FS_CLUSTER}'
|
||||
|
||||
[meta_client]
|
||||
network_type = 'RDMA'
|
||||
selection_mode = 'UniformRandom'
|
||||
|
||||
[mgmtd_client]
|
||||
mgmtd_server_addresses = [ 'RDMA://${ADDRESS}:${MGMTD_PORT}' ]
|
||||
|
||||
[net_client]
|
||||
default_timeout = '1s'
|
||||
|
||||
[[monitor.reporters]]
|
||||
type = 'log'
|
||||
44
tests/fuse/config/meta_main.toml
Normal file
44
tests/fuse/config/meta_main.toml
Normal file
@@ -0,0 +1,44 @@
|
||||
[[common.log.categories]]
|
||||
categories = [ '.' ]
|
||||
handlers = [ 'normal' ]
|
||||
|
||||
[[common.log.handlers]]
|
||||
async = true
|
||||
name = 'normal'
|
||||
start_level = 'NONE'
|
||||
writer_type = 'FILE'
|
||||
file_path = '{{ env.LOG_FILE }}'
|
||||
|
||||
[[server.base.groups]]
|
||||
[server.base.groups.listener]
|
||||
listen_port = {{ env.PORT }}
|
||||
|
||||
[[server.base.groups]]
|
||||
[server.base.groups.listener]
|
||||
listen_port = 0
|
||||
|
||||
[server.mgmtd_client]
|
||||
mgmtd_server_addresses = [ 'RDMA://${ADDRESS}:${MGMTD_PORT}' ]
|
||||
auto_extend_client_session_interval = '2s'
|
||||
auto_heartbeat_interval = '2s'
|
||||
auto_refresh_interval = '2s'
|
||||
|
||||
[server.meta]
|
||||
allow_owner_change_immutable = true
|
||||
time_granularity = '1ms'
|
||||
dynamic_stripe = true
|
||||
dynamic_stripe_initial = 1
|
||||
dynamic_stripe_growth = 2
|
||||
iflags_chain_allocation = true
|
||||
idempotent_record_clean = '1min'
|
||||
idempotent_record_expire = '5min'
|
||||
idempotent_remove = true
|
||||
idempotent_rename = true
|
||||
|
||||
[server.meta.gc]
|
||||
gc_file_delay = '5s'
|
||||
|
||||
[server.fdb]
|
||||
casual_read_risky = true
|
||||
clusterFile = '${FDB_UNITTEST_CLUSTER}'
|
||||
externalClientPath = '/lib/libfdb_c.so'
|
||||
7
tests/fuse/config/meta_main_launcher.toml
Normal file
7
tests/fuse/config/meta_main_launcher.toml
Normal file
@@ -0,0 +1,7 @@
|
||||
cluster_id = '${FS_CLUSTER}'
|
||||
|
||||
[ib_devices]
|
||||
default_pkey_index = ${PKEY_INDEX}
|
||||
|
||||
[mgmtd_client]
|
||||
mgmtd_server_addresses = [ 'RDMA://${ADDRESS}:${MGMTD_PORT}' ]
|
||||
21
tests/fuse/config/mgmtd_main.toml
Normal file
21
tests/fuse/config/mgmtd_main.toml
Normal file
@@ -0,0 +1,21 @@
|
||||
[[common.log.categories]]
|
||||
categories = [ '.' ]
|
||||
handlers = [ 'normal' ]
|
||||
|
||||
[[common.log.handlers]]
|
||||
async = true
|
||||
name = 'normal'
|
||||
start_level = 'NONE'
|
||||
writer_type = 'FILE'
|
||||
file_path = '{{ env.LOG_FILE }}'
|
||||
|
||||
[[server.base.groups]]
|
||||
[server.base.groups.listener]
|
||||
listen_port = {{ env.PORT }}
|
||||
|
||||
[[server.base.groups]]
|
||||
[server.base.groups.listener]
|
||||
listen_port = 0
|
||||
|
||||
[server.service]
|
||||
allow_heartbeat_from_unregistered = true
|
||||
7
tests/fuse/config/mgmtd_main_launcher.toml
Normal file
7
tests/fuse/config/mgmtd_main_launcher.toml
Normal file
@@ -0,0 +1,7 @@
|
||||
cluster_id = '${FS_CLUSTER}'
|
||||
|
||||
[ib_devices]
|
||||
default_pkey_index = ${PKEY_INDEX}
|
||||
|
||||
[kv_engine.fdb]
|
||||
clusterFile = '${FDB_UNITTEST_CLUSTER}'
|
||||
4
tests/fuse/config/pjdfstest.toml
Normal file
4
tests/fuse/config/pjdfstest.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[settings]
|
||||
# naptime is the duration of various short sleeps. It should be greater than
|
||||
# the timestamp granularity of the file system under test.
|
||||
naptime = 0.0001
|
||||
33
tests/fuse/config/storage_main.toml
Normal file
33
tests/fuse/config/storage_main.toml
Normal file
@@ -0,0 +1,33 @@
|
||||
[[common.log.categories]]
|
||||
categories = [ '.' ]
|
||||
handlers = [ 'normal' ]
|
||||
|
||||
[[common.log.handlers]]
|
||||
async = true
|
||||
name = 'normal'
|
||||
start_level = 'NONE'
|
||||
writer_type = 'FILE'
|
||||
file_path = '{{ env.LOG_FILE }}'
|
||||
|
||||
[[server.base.groups]]
|
||||
[server.base.groups.listener]
|
||||
listen_port = {{ env.PORT }}
|
||||
|
||||
[[server.base.groups]]
|
||||
[server.base.groups.listener]
|
||||
listen_port = 0
|
||||
|
||||
[server.allocate_worker]
|
||||
min_remain_groups = 0
|
||||
max_remain_groups = 1
|
||||
max_reserved_chunks = '1GB'
|
||||
|
||||
[server.mgmtd]
|
||||
mgmtd_server_addresses = [ 'RDMA://${ADDRESS}:${MGMTD_PORT}' ]
|
||||
|
||||
[server.targets]
|
||||
target_paths = [ ${TARGETS} ]
|
||||
allow_disk_without_uuid = true
|
||||
|
||||
[server.buffer_pool]
|
||||
rdmabuf_count = 256
|
||||
7
tests/fuse/config/storage_main_launcher.toml
Normal file
7
tests/fuse/config/storage_main_launcher.toml
Normal file
@@ -0,0 +1,7 @@
|
||||
cluster_id = '${FS_CLUSTER}'
|
||||
|
||||
[ib_devices]
|
||||
default_pkey_index = ${PKEY_INDEX}
|
||||
|
||||
[mgmtd_client]
|
||||
mgmtd_server_addresses = [ 'RDMA://${ADDRESS}:${MGMTD_PORT}' ]
|
||||
Reference in New Issue
Block a user