tracker.conf 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. # is this config file disabled
  2. # false for enabled
  3. # true for disabled
  4. disabled=false
  5. # bind an address of this host
  6. # empty for bind all addresses of this host
  7. bind_addr=
  8. # the tracker server port
  9. port=22122
  10. # connect timeout in seconds
  11. # default value is 30s
  12. connect_timeout=30
  13. # network timeout in seconds
  14. # default value is 30s
  15. network_timeout=60
  16. # the base path to store data and log files
  17. base_path=/var/fdfs
  18. # max concurrent connections this server supported
  19. max_connections=256
  20. # accept thread count
  21. # default value is 1
  22. # since V4.07
  23. accept_threads=1
  24. # work thread count, should <= max_connections
  25. # default value is 4
  26. # since V2.00
  27. work_threads=4
  28. # min buff size
  29. # default value 8KB
  30. min_buff_size = 8KB
  31. # max buff size
  32. # default value 128KB
  33. max_buff_size = 128KB
  34. # the method of selecting group to upload files
  35. # 0: round robin
  36. # 1: specify group
  37. # 2: load balance, select the max free space group to upload file
  38. store_lookup=2
  39. # which group to upload file
  40. # when store_lookup set to 1, must set store_group to the group name
  41. store_group=group2
  42. # which storage server to upload file
  43. # 0: round robin (default)
  44. # 1: the first server order by ip address
  45. # 2: the first server order by priority (the minimal)
  46. store_server=0
  47. # which path(means disk or mount point) of the storage server to upload file
  48. # 0: round robin
  49. # 2: load balance, select the max free space path to upload file
  50. store_path=0
  51. # which storage server to download file
  52. # 0: round robin (default)
  53. # 1: the source storage server which the current file uploaded to
  54. download_server=0
  55. # reserved storage space for system or other applications.
  56. # if the free(available) space of any stoarge server in
  57. # a group <= reserved_storage_space,
  58. # no file can be uploaded to this group.
  59. # bytes unit can be one of follows:
  60. ### G or g for gigabyte(GB)
  61. ### M or m for megabyte(MB)
  62. ### K or k for kilobyte(KB)
  63. ### no unit for byte(B)
  64. ### XX.XX% as ratio such as reserved_storage_space = 10%
  65. reserved_storage_space = 10%
  66. #standard log level as syslog, case insensitive, value list:
  67. ### emerg for emergency
  68. ### alert
  69. ### crit for critical
  70. ### error
  71. ### warn for warning
  72. ### notice
  73. ### info
  74. ### debug
  75. log_level=info
  76. #unix group name to run this program,
  77. #not set (empty) means run by the group of current user
  78. run_by_group=
  79. #unix username to run this program,
  80. #not set (empty) means run by current user
  81. run_by_user=
  82. # allow_hosts can ocur more than once, host can be hostname or ip address,
  83. # "*" (only one asterisk) means match all ip addresses
  84. # we can use CIDR ips like 192.168.5.64/26
  85. # and also use range like these: 10.0.1.[0-254] and host[01-08,20-25].domain.com
  86. # for example:
  87. # allow_hosts=10.0.1.[1-15,20]
  88. # allow_hosts=host[01-08,20-25].domain.com
  89. # allow_hosts=192.168.5.64/26
  90. allow_hosts=*
  91. # sync log buff to disk every interval seconds
  92. # default value is 10 seconds
  93. sync_log_buff_interval = 10
  94. # check storage server alive interval seconds
  95. check_active_interval = 120
  96. # thread stack size, should >= 64KB
  97. # default value is 64KB
  98. thread_stack_size = 64KB
  99. # auto adjust when the ip address of the storage server changed
  100. # default value is true
  101. storage_ip_changed_auto_adjust = true
  102. # storage sync file max delay seconds
  103. # default value is 86400 seconds (one day)
  104. # since V2.00
  105. storage_sync_file_max_delay = 86400
  106. # the max time of storage sync a file
  107. # default value is 300 seconds
  108. # since V2.00
  109. storage_sync_file_max_time = 300
  110. # if use a trunk file to store several small files
  111. # default value is false
  112. # since V3.00
  113. use_trunk_file = false
  114. # the min slot size, should <= 4KB
  115. # default value is 256 bytes
  116. # since V3.00
  117. slot_min_size = 256
  118. # the max slot size, should > slot_min_size
  119. # store the upload file to trunk file when it's size <= this value
  120. # default value is 16MB
  121. # since V3.00
  122. slot_max_size = 16MB
  123. # the trunk file size, should >= 4MB
  124. # default value is 64MB
  125. # since V3.00
  126. trunk_file_size = 64MB
  127. # if create trunk file advancely
  128. # default value is false
  129. # since V3.06
  130. trunk_create_file_advance = false
  131. # the time base to create trunk file
  132. # the time format: HH:MM
  133. # default value is 02:00
  134. # since V3.06
  135. trunk_create_file_time_base = 02:00
  136. # the interval of create trunk file, unit: second
  137. # default value is 38400 (one day)
  138. # since V3.06
  139. trunk_create_file_interval = 86400
  140. # the threshold to create trunk file
  141. # when the free trunk file size less than the threshold, will create
  142. # the trunk files
  143. # default value is 0
  144. # since V3.06
  145. trunk_create_file_space_threshold = 20G
  146. # if check trunk space occupying when loading trunk free spaces
  147. # the occupied spaces will be ignored
  148. # default value is false
  149. # since V3.09
  150. # NOTICE: set this parameter to true will slow the loading of trunk spaces
  151. # when startup. you should set this parameter to true when neccessary.
  152. trunk_init_check_occupying = false
  153. # if ignore storage_trunk.dat, reload from trunk binlog
  154. # default value is false
  155. # since V3.10
  156. # set to true once for version upgrade when your version less than V3.10
  157. trunk_init_reload_from_binlog = false
  158. # the min interval for compressing the trunk binlog file
  159. # unit: second
  160. # default value is 0, 0 means never compress
  161. # FastDFS compress the trunk binlog when trunk init and trunk destroy
  162. # recommand to set this parameter to 86400 (one day)
  163. # since V5.01
  164. trunk_compress_binlog_min_interval = 0
  165. # if use storage ID instead of IP address
  166. # default value is false
  167. # since V4.00
  168. use_storage_id = false
  169. # specify storage ids filename, can use relative or absolute path
  170. # since V4.00
  171. storage_ids_filename = storage_ids.conf
  172. # id type of the storage server in the filename, values are:
  173. ## ip: the ip address of the storage server
  174. ## id: the server id of the storage server
  175. # this paramter is valid only when use_storage_id set to true
  176. # default value is ip
  177. # since V4.03
  178. id_type_in_filename = ip
  179. # if store slave file use symbol link
  180. # default value is false
  181. # since V4.01
  182. store_slave_file_use_link = false
  183. # if rotate the error log every day
  184. # default value is false
  185. # since V4.02
  186. rotate_error_log = false
  187. # rotate error log time base, time format: Hour:Minute
  188. # Hour from 0 to 23, Minute from 0 to 59
  189. # default value is 00:00
  190. # since V4.02
  191. error_log_rotate_time=00:00
  192. # rotate error log when the log file exceeds this size
  193. # 0 means never rotates log file by log file size
  194. # default value is 0
  195. # since V4.02
  196. rotate_error_log_size = 0
  197. # keep days of the log files
  198. # 0 means do not delete old log files
  199. # default value is 0
  200. log_file_keep_days = 0
  201. # if use connection pool
  202. # default value is false
  203. # since V4.05
  204. use_connection_pool = false
  205. # connections whose the idle time exceeds this time will be closed
  206. # unit: second
  207. # default value is 3600
  208. # since V4.05
  209. connection_pool_max_idle_time = 3600
  210. # HTTP port on this tracker server
  211. http.server_port=8080
  212. # check storage HTTP server alive interval seconds
  213. # <= 0 for never check
  214. # default value is 30
  215. http.check_alive_interval=30
  216. # check storage HTTP server alive type, values are:
  217. # tcp : connect to the storge server with HTTP port only,
  218. # do not request and get response
  219. # http: storage check alive url must return http status 200
  220. # default value is tcp
  221. http.check_alive_type=tcp
  222. # check storage HTTP server alive uri/url
  223. # NOTE: storage embed HTTP server support uri: /status.html
  224. http.check_alive_uri=/status.html