# is this config file disabled
# false for enabled
# true for disabled
disabled=false false为生效,true不生效
# the name of the group this storage server belongs to
#
# comment or remove this item for fetching from tracker server,
# in this case, use_storage_id must set to true in tracker.conf,
# and storage_ids.conf must be configed correctly.
group_name=group1
# 指定 此 storage server 所在 组(卷)
# 如果注释或者删除这个参数,而从tracker那里获取分组信息
# 则 use_storage_id参数必须设为true 在 tracker.conf 配置文件中
# storage_ids.conf文件必须正确配置
# bind an address of this host
# empty for bind all addresses of this host
bind_addr=
# 绑定ip地址,空值为主机上全部地址
# bind_addr通常是针对server的。当指定bind_addr时,本参数才有效。
# 本storage server作为client连接其他服务器(如tracker server、其他storage server),是否绑定bind_addr。
# if bind an address of this host when connect to other servers
# (this storage server as a client)
# true for binding the address configed by above parameter: "bind_addr"
# false for binding any address of this host
client_bind=true
# the storage server port 存储服务端口
port=23000
# connect timeout in seconds 连接超时时间,针对socket套接字函数connect
# default value is 30s
connect_timeout=30
# network timeout in seconds
# default value is 30s
network_timeout=60
# storage server 网络超时时间,单位为秒。发送或接收数据时,
# 如果在超时时间后还不能发送或接收数据,则本次网络通信失败
# heart beat interval in seconds
heart_beat_interval=30
# 心跳间隔时间,单位为秒 (这里是指主动向tracker server 发送心跳)
# disk usage report interval in seconds
stat_report_interval=60
# storage server向tracker server报告磁盘剩余空间的时间间隔,单位为秒
# the base path to store data and log files
base_path=/home/yuqing/fastdfs
# base_path 目录地址,根目录必须存在 子目录会自动生成
#(注 :这里不是上传的文件存放的地址,之前是的,在某个版本后更改了)
# max concurrent connections the server supported
# default value is 256
# more max_connections means more memory will be used
max_connections=256
# 服务器支持的最大并发连接
# 默认为256
# 更大的值 意味着需要使用更大的内存
# the buff size to recv / send data
# this parameter must more than 8KB
# default value is 64KB
# since V2.00
buff_size = 256KB
# 发送/接收 数据的缓冲区大小
# 此参数必须大于8KB
# 设置队列结点的buffer大小。工作队列消耗的内存大小 = buff_size * max_connections
# 设置得大一些,系统整体性能会有所提升。
# 消耗的内存请不要超过系统物理内存大小。另外,对于32位系统,请注意使用到的内存不要超过3GB
# accept thread count
# default value is 1
# since V4.07
accept_threads=1
# 接受线程数 默认为1
# work thread count, should <= max_connections
# work thread deal ne

最低0.47元/天 解锁文章
1162

被折叠的 条评论
为什么被折叠?



