008_tracker.conf配置详情
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 |
?
總結
以上是生活随笔為你收集整理的008_tracker.conf配置详情的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 011_fastdfs-client-j
- 下一篇: 009_storage.conf配置详情