1. disabled
# is this config file disabled(配置文件是否生效) # false for enabled(false生效) # true for disabled(true不生效) disabled = false |
2. bind_addr
# bind an address of this host # empty for bind all addresses of this host #是否绑定IP如果一个服务器上有多个IP则设置哪个IP可用, 如果不设置则不限制 bind_addr = |
3. port
# the tracker server port(tracker服务端口) port = 22122 |
4. connect_timeout
# connect timeout in seconds # default value is 30 # Note: in the intranet network (LAN), 2 seconds is enough. # 网络连接超时时间 connect_timeout = 5 |
5. network_timeout
# network timeout in seconds for send and recv # default value is 30 # 网络接收和发送数据超时时间 network_timeout = 60 |
6. base_path
# the base path to store data and log files #tracker基础数据存储路径及日志存放路径 base_path = /usr/local/fastdfs/storage01 |
7. max_connections
# max concurrent connections this server support # you should set this parameter larger, eg. 10240 # default value is 256 #最大连接/并发数 max_connections = 1024 |
8. accept_threads
# accept thread count # default value is 1 which is recommended # since V4.07 #接收线程数(处理建立连接的线程), 推荐使用1 accept_threads = 1 |
9. work_threads
# work thread count # work threads to deal network io # default value is 4 # since V2.00 #工作线程数(做文件访问调度和负载均衡的线程), 最好和cpu核数保持一致 work_threads = 4 |
10. min_buff_size
# the min network buff size # default value 8KB #最小的网络缓存字节数 min_buff_size = 8KB |
11. max_buff_size
# the max network buff size # default value 128KB #最大的网络缓存字节数 max_buff_size = 128KB |
12. store_lookup
# the method for selecting group to upload files # 0: round robin # 1: specify group # 2: load balance, select the max free space group to upload file #选择上传文件组的模式: 0轮询组; 1指定组; 2负载均衡, 选择最大空闲空间组 store_lookup = 2 |
13. store_group
# which group to upload file # when store_lookup set to 1, must set store_group to the group name #上传文件组名, 如果store_lookup模式为1, 则必须设置成和特定group一致的组名 store_group = group2 |
14. store_server
# which storage server to upload file # 0: round robin (default) # 1: the first server order by ip address # 2: the first server order by priority (the minimal) # Note: if use_trunk_file set to true, must set store_server to 1 or 2 #选择存储服务器: 0代表轮询; 1根据通过ip地址排序; 2通过优先级排序 store_server = 0 |
15. store_path
# which path (means disk or mount point) of the storage server to upload file # 0: round robin # 2: load balance, select the max free space path to upload file #选择路径存放文件: 0轮询; 2负载均衡, 选择空闲空间最大的路径去上传文件 store_path = 0 |
16. download_server
# which storage server to download file # 0: round robin (default) # 1: the source storage server which the current file uploaded to #选择哪台存储服务器下载文件: 0轮询, 1文件上传到的原储存服务器 download_server = 0 |
17. reserved_storage_space
# reserved storage space for system or other applications. # if the free(available) space of any stoarge server in # a group <= reserved_storage_space, no file can be uploaded to this group. # bytes unit can be one of follows: ### G or g for gigabyte(GB) ### M or m for megabyte(MB) ### K or k for kilobyte(KB) ### no unit for byte(B) ### XX.XX% as ratio such as: reserved_storage_space = 10% #系统保留空间 reserved_storage_space = 20% |
18. log_level
#standard log level as syslog, case insensitive, value list: ### emerg for emergency ### alert ### crit for critical ### error ### warn for warning ### notice ### info ### debug #日志级别 log_level = info |
19. run_by_group
#unix group name to run this program, #not set (empty) means run by the group of current user #指定运行该程序的系统(unix)用户组名 run_by_group= |
20. run_by_user
#unix username to run this program, #not set (empty) means run by current user #指定运行该程序的系统(unix)用户名, 没有设置, 使用启动进程的用户 run_by_user = |
21. allow_hosts
# allow_hosts can ocur more than once, host can be hostname or ip address, # "*" (only one asterisk) means match all ip addresses # we can use CIDR ips like 192.168.5.64/26 # and also use range like these: 10.0.1.[0-254] and host[01-08,20-25].domain.com # for example: # allow_hosts=10.0.1.[1-15,20] # allow_hosts=host[01-08,20-25].domain.com # allow_hosts=192.168.5.64/26 #允许和tracker服务器建立连接的ip范围 allow_hosts = * |
22. sync_log_buff_interval
# sync log buff to disk every interval seconds # default value is 10 seconds #同步或刷新日志信息到硬盘的时间间隔。 sync_log_buff_interval = 1 |
23. check_active_interval
# check storage server alive interval seconds #检测存储服务器存活的时间间隔 check_active_interval = 120 |
24. thread_stack_size
# thread stack size, should >= 64KB # default value is 256KB #tracker server线程栈的大小 thread_stack_size = 256KB |
25. storage_ip_changed_auto_adjust
# auto adjust when the ip address of the storage server changed # default value is true #这个参数控制当storage server IP地址改变时, 集群是否自动调整。注: 只有在storage server进程重启时才完成自动调整。 storage_ip_changed_auto_adjust = true |
26. storage_sync_file_max_delay
# storage sync file max delay seconds # default value is 86400 seconds (one day) # since V2.00 #同组storage服务器同步文件的延迟时间 storage_sync_file_max_delay = 86400 |
27. storage_sync_file_max_time
# the max time of storage sync a file # default value is 300 seconds # since V2.00 #同步一个文件消耗的最大时间 storage_sync_file_max_time = 300 |
28. use_trunk_file
# if use a trunk file to store several small files # default value is false # since V3.00 #是否使用小文件合并存储特性 use_trunk_file = false |
29. slot_min_size
# the min slot size, should <= 4KB # default value is 256 bytes # since V3.00 #trunk file的最小字节数 slot_min_size = 256 |
30. slot_max_size
# the max slot size, should > slot_min_size # store the upload file to trunk file when it's size <= this value # default value is 16MB # since V3.00 #trunk file的最大字节数, 如果文件大小小于该值, 则使用小文件存储特性方式存储 slot_max_size = 1MB |
31. trunk_alloc_alignment_size
# the alignment size to allocate the trunk space # default value is 0 (never align) # since V6.05 # NOTE: the larger the alignment size, the less likely of disk # fragmentation, but the more space is wasted. #分配trunk空间的字节对齐大小 trunk_alloc_alignment_size = 256 |
32. trunk_free_space_merge
# if merge contiguous free spaces of trunk file # default value is false # since V6.05 #是否合并trunk file的连续空闲空间 trunk_free_space_merge = true |
33. delete_unused_trunk_files
# if delete / reclaim the unused trunk files # default value is false # since V6.05 #删除没有使用的trunk file delete_unused_trunk_files = false |
34. trunk_file_size
# the trunk file size, should >= 4MB # default value is 64MB # since V3.00 #trunk file的大小 trunk_file_size = 64MB |
35. trunk_create_file_advance
# if create trunk file advancely # default value is false # since V3.06 #是否提前创建好trunk文件 trunk_create_file_advance = false |
36. trunk_create_file_time_base
# the time base to create trunk file # the time format: HH:MM # default value is 02:00 # since V3.06 #创建trunk file的起始时间点, 当前为凌晨2点开始 trunk_create_file_time_base = 02:00 |
37. trunk_create_file_interval
# the interval of create trunk file, unit: second # default value is 38400 (one day) # since V3.06 #提前创建trunk file的时间间隔, 默认为1天 trunk_create_file_interval = 86400 |
38. trunk_create_file_space_threshold
# the threshold to create trunk file # when the free trunk file size less than the threshold, # will create he trunk files # default value is 0 # since V3.06 #提前创建trunk file时, 需要达到的空闲trunk大小 #例如: 当前配置为20G, 现在空闲的trunk file大小为4G, 那么只创建16G的trunk file trunk_create_file_space_threshold = 20G |
39. trunk_init_check_occupying
# if check trunk space occupying when loading trunk free spaces # the occupied spaces will be ignored # default value is false # since V3.09 # NOTICE: set this parameter to true will slow the loading of trunk spaces # when startup. you should set this parameter to true when neccessary. #trunk file初始化时, 是否检查可用空间是否被占用 trunk_init_check_occupying = false |