009_storage.conf配置详情

1. disabled

# is this config file disabled(配置文件是否生效)

# false for enabled(false生效)

# true for disabled(true不生效)

disabled = false

2. group_name

# 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 configured correctly.

#存储组名

group_name = group2

3. bind_addr

# bind an address of this host

# empty for bind all addresses of this host

#是否绑定IP如果一个服务器上有多个IP则设置哪个IP可用, 如果不设置则不限制

bind_addr =

4. client_bind

# if bind an address of this host when connect to other servers

# (this storage server as a client)

# true for binding the address configured by the above parameter: "bind_addr"

# false for binding any address of this host

#当连接其他服务器时解析该主机地址

client_bind = true

5. port 

# the storage server port

#storage服务器端口号

port = 23000

6. connect_timeout

# connect timeout in seconds

# default value is 30

# Note: in the intranet network (LAN), 2 seconds is enough.

#建立连接超时时间

connect_timeout = 5

7. network_timeout

# network timeout in seconds for send and recv

# default value is 30

#网络接收和发送数据超时时间

network_timeout = 60

8. heart_beat_interval

# the heart beat interval in seconds

# the storage server send heartbeat to tracker server periodically

# default value is 30

#心跳间隔时间

heart_beat_interval = 30

9. stat_report_interval

# disk usage report interval in seconds

# the storage server send disk usage report to tracker server periodically

# default value is 300

#硬盘存储空间使用情况检测时间间隔, 把这些数据发送给tracker服务器

stat_report_interval = 60

10. base_path

# the base path to store data and log files

# NOTE: the binlog files maybe are large, make sure

#       the base path has enough disk space,

#       eg. the disk free space should > 50GB

#基础存储数据和日志文件

base_path = /usr/local/fastdfs/storage01

11. max_connections

# max concurrent connections the server supported,

# you should set this parameter larger, eg. 10240

# default value is 256

#最大建立连接数

max_connections = 1024

12. buff_size

# the buff size to recv / send data from/to network

# this parameter must more than 8KB

# 256KB or 512KB is recommended

# default value is 64KB

# since V2.00

#发送和接收数据缓冲区字节数

buff_size = 256KB

13. accept_threads

# accept thread count

# default value is 1 which is recommended

# since V4.07

#接收线程数(接收连接的线程), 推荐使用1

accept_threads = 1

14. work_threads

# work thread count

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值