Details tracker.conf profile

# IS the this config File Disabled
# false for Enabled
# to true for Disabled
Disabled = false
# This configuration file is not entered into force, false entry into force (or do not take effect) true and vice versa

# the bind AN address of the this Host
# empty for the bind All Addresses of the this Host
bind_addr =
# is bound IP,
# = bind_addr back to bind the IP address (commonly used in server has multiple IP IP but only want to provide a service). If you do not fill it means that all of the (generally not fill it OK)


At The Tracker Server Port #
Port = 22122
to provide port services #

# Connect timeout in seconds The
# default value IS 30s
connect_timeout = 30
# connect timeout for socket socket functions Connect

# Network timeout in seconds The
network_timeout = 60
# of Server Tracker network timeout in seconds. When sending or receiving data, if the data is not transmitted or received after a timeout period, then the current network communication failure. 

The path to Base Store # Data Files and log
base_path = / Home / Yuqing / FastDFS
# base_path address directory (root directory must exist, automatically creates a subdirectory)
# attached directory Description: 
  Tracker Server directory and file structure:
  $ {} base_path
    | the __DATA
    | | __storage_groups.dat: storing packet information
    | | __storage_servers.dat: storage server list
    | __logs
          | __trackerd.log: Tracker server log files

Between data files and records storage_servers.dat storage_groups.dat in a newline (\ n) separated by commas west text field (,) separated.
storage_groups.dat fields in order to:
  1. GROUP_NAME: group name
  2. storage_port: storage server port number

storage_servers.dat recording information storage server, the fields were:
  1. GROUP_NAME: belonging group name
  2. ip_addr: ip address
  3. status: status
  4. sync_src_ip_addr: storage server to the synchronization server existing source data files
  5. sync_until_timestamp: As already time synchronized data file (UNIX timestamp)
  6. the stat.total_upload_count: Upload file number
  7. stat .success_upload_count: the number of successfully uploaded files
  8. stat.total_set_meta_count: Changing meta number of the Data
  9. stat.success_set_meta_count: meta successfully changed the number of the Data
  10. stat.total_delete_count: delete the file number
  11. stat.success_delete_count: the number of files successfully deleted
  12. stat.total_download_count: Downloads files
  13. stat.success_download_count: successfully downloads the file
  14. stat.total_get_meta_count: Gets meta number of the Data
  15. The stat.success_get_meta_count: successfully acquired meta frequency the Data
  16. The stat.last_source_update: Last update source time (update from the client)
  17. a stat.last_sync_update: last update time synchronization (sync update operation from the other storage server)

# max Concurrent Connections the this Supported Server
# max_connections worker Threads Start-Service Startup When the this
max_connections = 256
# system the maximum number of connections the provision of services. For V1.x, due to a service connected by a thread, that is, the number of worker threads.
# For V2.x, the maximum number of connections and the number of threads that work has nothing to

# Work the Thread COUNT, Should <= max_connections
# 4 default value IS
# Operating since V2.00
# V2.0 introduced this parameter, the number of worker threads, usually set is a number of CPU
work_threads = 4

The Method of the Selecting Group # Upload to Files
# 0: round Robin
#. 1: the Specify Group
# 2: Load Balance, max Free Space Group The SELECT to Upload File
store_lookup = 2
# Upload groups (volumes) 0: Polling 1: group 2: balance the load (the maximum remaining space selected from the group (volume) upload)
# If there is designated in the application layer uploaded to a fixed group, then this parameter is bypassed

# Upload File to Which group
# sET When store_lookup . 1 to, mUST sET to STORE_GROUP the group name
STORE_GROUP group2 =
# when a parameter is set to 1 (store_lookup = 1, i.e., when a group name specified), this parameter must be set to a group name in the system exists. If you choose to upload another way, this is no valid argument up.

Which Storage Server to Upload # File
# 0: round Robin (default)
#. 1: The First Order Server by IP address
# 2: The First Order Server by priority (The minimal)
store_server = 0
Select which storage server # upload operation (after a file has been uploaded, the storage server is equivalent to the source file storage server, the same group will push the file storage server. Sync)
# 0: polling 
# 1 : sorted according to the selected first server ip address (iP address smallest)
# 2: sorted according to priority (priority set by the upload storage server, a parameter called upload_priority) 

# Which path (or means Disk Mount Point) at the storage server to the Upload of File
# 0: round Robin
# 2: the Load Balance, the sELECT at the max as Free Space path to the Upload File
store_path = 0
# selected storage server in which directory to upload. storage server can have multiple base path storing files (can be understood as multiple disks).
# 0: robin fashion, in order to store more than one directory file
# 2: Select the largest directory of free space to store files (Note: The free disk space is dynamic, it is stored in the directory or disk may also change)

# Which Storage Server to File download
# 0: round Robin (default)
# 1: Which at The Source at The Current File Storage Server uploaded to
= 0 download_server
# choose which storage server as the download server 
# 0: polling, you can download any of the current file of a storage server
# 1: What is the source storage server on which one to use (as I said before this is how the source storage server ) is to upload the generated prior to which the storage server a server that is what the

# Reserved Storage Space for System or OTHER Applications.
# IF the Free (Available) Space of the any stoarge server in
# a Group <= reserved_storage_space,
# NO File CAN BE uploaded the the this Group to.
# bytes of One Unit CAN BE Follows:
### G or G for Gigabyte (GB)
### m or m for megabyte (MB)
### K or K for kilobyte (KB)
### NO for byte Unit (B)
###% XX.XX AS SUCH AS reserved_storage_space ratio = 10%
reserved_storage_space = 10%
Reserved space on the # storage server, ensure that the system or other applications space. It can be an absolute value or a percentage (V4 began to support a percentage).
# (Hard disk size, pointed out that if the same group of servers as a minimum prevail, that is, as long as the same group one server to achieve this standard, this standard will take effect, simply because they are backed up)

#standard log AS Level syslog, Case INSENSITIVE, value List:
### emerg for Emergency
### Alert
### Crit Critical for
### error
### The warn warning for
### Notice
### info
### Debug
log_level = info
# select the log level (log write what? to see the previous description, the catalog has introduced oh oh)

#unix Group name to rUN the this Program, 
#not the SET (empty) by means rUN at the Current Group of the User
run_by_group =
# operating system FastDFS user group (that is, not to fill the current user group, which is to start a process which)

#unix username to RUN the this Program,
#not the sET (empty) current means RUN by the user
run_by_user =
# operating system FastDFS user (do not fill is the current user, which start the process is which)

# allow_hosts CAN OCUR More Within last Once, Host CAN BE hostname or ip address,
# "*" means match All ip Addresses, CAN use like the this Range:. 10.0.1 [1-15,20] or
# Host [01-08,20-25] .domain.com, for Example:
# = allow_hosts 10.0.1 [1-15,20].
# Host = allow_hosts [01-08,20-25] .domain.com
allow_hosts = *
# ip range can connect to the tracker server (affects all types of connections, including a client, Storage Server)

# log Sync BUFF Every interval the seconds the Disk to
# default value iS 10 seconds the
sync_log_buff_interval = 10
# sync or refresh the log information to the hard drive of the time interval in seconds
# Note: tracker server log is not always hard to write, but to write memory.

Check interval The Storage Server Alive #
check_active_interval = 120
# Storage server detecting the survival time intervals, in seconds.
# Storage server periodically sent to the tracker server heartbeat, if the tracker server within a check_active_interval have not received the storage server of a heartbeat, there will consider the storage server is offline. Therefore, this value must be greater than the heartbeat time interval storage server configuration. 2 is generally configured to storage server heartbeat interval twice or three times.

The Thread Stack size #, Should> 512KB
# default value IS 1MB
thread_stack_size = 1MB
# thread stack size. FastDFS server-side using the threaded approach. Correct what, tracker server thread stack should not be less than 64KB, instead of 512KB.
The larger stack # thread, a thread, the more system resources. To start more threads (V1.x corresponding to the parameter max_connections,
V2.0 is work_threads), the present parameter values can be appropriately reduced.

The ADJUST When Auto IP # address of Storage Server The changed
# IS default value to true
storage_ip_changed_auto_adjust to true =
# when the control parameter storage server IP address change, whether to automatically adjust the cluster. Note: Only when the storage server to complete the process of restarting automatically adjusted.

Storage File Sync Delay max # seconds The
# 86400 seconds The default value IS (Day One)
# Operating since V2.00
storage_sync_file_max_delay = 86400
# V2.0 introduced parameters. The maximum delay time to synchronize files between storage servers, the default is 1 day. Adjusted according to actual situation
# Note: This parameter does not affect the file synchronization process. A threshold value (empirical value) This parameter only when downloading a file, whether the file has been completed synchronization

# The Sync A max Time of Storage File
# 300 seconds The default value IS
# Operating since V2.00
storage_sync_file_max_time = 300
# V2.0 introduction of parameters. Synchronize a file server storage need to consume a maximum, which defaults to 300s, which is 5 minutes.
# Note: This parameter does not affect the file synchronization process. A threshold value (empirical value) This parameter only when downloading a file, the file as the current is determined whether synchronization is complete

# IF to use File Store A Trunk Small Several Files
# default value to false IS
# Operating since V3.00
use_trunk_file to false =
# V3 .0 introduced parameters. Whether to use small files merge storage properties, it is disabled by default.

The slot size min #, Should <= 4KB
# default value IS 256 bytes
# Operating since V3.00
slot_min_size = 256
# V3.0 introduced parameters.
# Trunk file minimum number of bytes allocated. For example, only 16 bytes of the file, the system will assign slot_min_size bytes.

The slot size max #, Should> slot_min_size
# The Store File Upload File to Trunk When IT apos size <= the this value
# 16MB default value IS
# Operating since V3.00
slot_max_size = 16MB
# V3.0 introduced parameters.
# Only File size <= the value of this parameter file, will merge storage. If the size of a file is larger than the parameter value, saved to a file directly (i.e., without using the merge storage).

The Trunk size File #, Should> = 4MB
# 64MB default value IS
# Operating since V3.00
trunk_file_size = 64MB
# V3.0 introduced parameters.
# Size trunk file storage consolidation, at least 4MB, the default value is 64MB. Not recommended is set too high.

IF the Create trunk file advancely #
# default value IS false
trunk_create_file_advance = false
# whether to create a trunk file in advance. Only when this parameter is true, the following three parameters trunk_create_file_ valid to begin with.

At The Time Base to the Create # trunk file
# at The Time format: HH: MM
# default value IS 02:00
trunk_create_file_time_base = 02:00
# created in advance of the start time point trunk file (reference time), 2:00 represents the first time create a point in time is 2:00.

The interval The Create of Trunk # File, Unit: SECOND
# 38400 IS default value (Day One)
trunk_create_file_interval = 86400
# trunk file created time interval, in seconds. If you created ahead of time, it is set to 86400 a day

# at The threshold to the Create Trunk File
# the when at The Trunk as Free File size less Within last at The threshold, by Will the Create 
# at The Trunk Files
IS default value 0 #
trunk_create_file_space_threshold = 20G
# When you create a trunk file in advance, needed to reach the idle trunk size
# example of this argument is 20G, and the current idle trunk of 4GB, then you only need to create a trunk file to 16GB.

IF Trunk Space occupying the Check # the when loading Trunk as Free Spaces
# at The OCCUPIED Spaces ignored by Will BE
# default value IS false
# Operating since V3.09
# NOTICE: the this the Parameter to the SET to true by Will SLOW at The loading of Trunk Spaces
# you the when the Startup Should the SET. the when neccessary to true the Parameter to the this.
trunk_init_check_occupying = false
when #trunk initialization, check whether the available space is occupied

# iF the ignore storage_trunk.dat, reload from Trunk binlog
# default value iS false
# Operating since V3.10
Once to true for the SET to # Version upgrade the when your Version V3.10 less Within last
trunk_init_reload_from_binlog = false
# whether unconditionally loaded in the trunk from the trunk binlog available space information
is loaded from the snapshot file storage_trunk.dat in # FastDFS default trunk space available,
# the the first line of the file is recorded Trunk binlog of offset, then the load begins binlog offset

# Storage ID iF INSTEAD use of the IP address
# default value to false iS
# Operating since V4.00
use_storage_id to false =
# whether the server ID as a storage server identification

# the Specify Storage IDS filename, CAN use Absolute or relative path
# Operating since V4.00
storage_ids_filename = storage_ids.conf
# use_storage_id set to true, only need to set this parameter
# group name set in the file, server ID, and the corresponding IP address, configuration example in the source directory see: the conf / storage_ids.conf

# IF use File Store Slave Link Symbol
IS default value to false #
# Operating since V4.01
store_slave_file_use_link to false =
# whether the file is stored in the symbol link (symbolic link) mode
# If set to true, from a file occupies two documents: the original document and a symbolic link that points to it.

Rotate at The error log IF # Every Day
# default value IS false
# Operating since V4.02
rotate_error_log = false
# whether periodic rotation error log, currently only for a one day cycle time

# Rotate error log Time Base, Time format: Hour: Minute
# Hour from 23 to 0, from 0 to 59 Minute
# default value iS 00:00
# Operating since V4.02
error_log_rotate_time = 00: 00
# error log periodic rotation point in time, only when valid rotate_error_log set to true

# Rotate the when at the log error log Exceeds the this size File
# 0 means Never ROTATES log by log File size File
# IS default value 0
Operating since V4.02 #
rotate_error_log_size = 0
# error log rotation by size
# is set to 0 means no rotation by file size, or when the error log reaches this size, it will rotate to a new file

# keep days of the log files
# 0 means do not delete old log files
# default value is 0
log_file_keep_days = 7 

The number of days to keep log file #
# 0 means do not delete old log files
#default value of 0
log_file_keep_days = 7

# if use connection pool
# default value is false
# since V4.05
use_connection_pool = false

# If you are using connection pooling
#default value is false
# from V4.05 start
use_connection_pool = false

The IDLE Whose Time Connections # Exceeds the this Will BE Time Closed
# Unit: SECOND
# 3600 IS default value
# Operating since V4.05
connection_pool_max_idle_time = 3600
# connection idle for more than this time will be closed
#unit: seconds
# is set to 3600
# from V4.05 start
connection_pool_max_idle_time = 3600


# The following are the default settings for http compiler is not required changes to take effect # WITH_HTTPD = 1 # comment will be removed and then compile
# http tell the truth about the application is not very understanding did not see instructions, owners can improve the look Following is a look literal interpretation of the
#http Settings
http.disabled = false # HTTP service is not active 
http.server_port = 8080 # HTTP service port

# check storage HTTP server alive interval seconds
# <= 0 for never check
# default value is 30
http.check_alive_interval=30

Storage the HTTP Server Alive interval The #check seconds The
# <= 0 Never check
# default value is 30
http.check_alive_interval = 30

# check storage HTTP server alive type, values are:
#   tcp : connect to the storge server with HTTP port only,
#        do not request and get response
#   http: storage check alive url must return http status 200
# default value is tcp
http.check_alive_type=tcp

#check storage HTTP server type of activity, is:
#tcp: only the HTTP port to connect to the server storge,
# do not request and receive a reply
#http: storage check alive url http state must return 200 is
#default value is TCP
http.check_alive_type = TCP

# check storage HTTP server alive uri/url
# NOTE: storage embed HTTP server support uri: /status.html
http.check_alive_uri=/status.html
#check storage HTTP server alive uri / url
#注意:存储嵌入HTTP服务器支持uri:/status.html
http.check_alive_uri=/ status.html


#use "#include" Directive to the include HTTP OTHER settiongs
## # If the include http.conf http.conf loaded configuration file to remove the first #

Published 20 original articles · won praise 30 · views 30000 +

Guess you like

Origin blog.csdn.net/ever_siyan/article/details/89489434