文档详情

FastDFS配置详解.doc

发布:2016-12-24约6.73千字共17页下载文档
文本预览下载声明
FastDFS配置详解之Storage配置 #func:该配置文件是否生效 #valu: ## true:无效 ## false:生效 disabled=false #func;本storage server所属组名 group_name=group1 #func:绑定本storage server的IP bind_addr= #func:bind_addr是针对server的,当指定bind_addr时,本参数才有效。 #valu: ## true:绑定bind_addr所指定的IP ## false:绑定本机的任意IP client_bind=true #func:storage server端口 port=23000 #func:连接超时 connect_timeout=30 #func:网络超时 network_timeout=60 #func:本storage向tracker发送心跳时间间隔 heart_beat_interval=30 #func:硬盘存储空间使用情况检测时间间隔 stat_report_interval=60 #func:base_path base_path=/home/michael/fdfs/base4storage #func:本storage server支持的最大并发连接数 max_connections=256 #func:buff size to recv/send data buff_size=256KB #func:work thread count, should = max_connections #valu:默认为4 #sinc:v2.0 work_thread=4 #func:是否I/O分离 #valu:默认为true ## true:分离 ## false:不分离 disk_rw_separated=true #func:是否直接写,不使用cache #value: ## true:直接写 ## false:不直接写 disk_rw_direct=false #func:每个storage base path的读线程数。对于disk_rw_separated=true的方式该值为0. #valu:默认为1 disk_reader_threads=1 #func:每个storage base path的写线程数。对于disk_rw_separated=true的方式该值为0. #valu:默认为1 disk_writer_threads=1 #func:同步文件时,如果从binlog中没有读到要同步的文件,休眠N毫秒后重新读取。 #valu:单位为毫秒。0表示不休眠,立即再次尝试读取。 sync_wait_msec=50 #func:同步一个文件后,在下次进行同步前的休息时间 #valu:单位为毫秒 sync_interval=0 #func:每天存储同步的开始时间。 #valu:HH:mm sync_start_time=00:00 #func:每天存储同步的结束时间。 #valu:HH:mm sync_end_time=23:59 #func:把storage的mark文件定期同步到磁盘的时间间隔 #valu:单位为秒 write_mark_file_freq=500 #func:storage path的个数 #valu:默认为1 store_path_count=1 #func:根据store_path_count的值,如果是N个,就要有store_path0, store_path1 ... store_path(N-1) #valu: store_path0=/home/michael/fdfs/storage0 #func:FastDFS存储文件时,默认采用了两级目录。这里配置存放文件的目录个数 subdir_count_per_path=32 #func:tracker_server 的列表 要写端口号 tracker_server=88:22122 tracker_server=89:22122 tracker_server=90:22122 #func: log_level=info #func: run_by_group #func run_by_user #func:允许连接的客户端IP列表 allow_hosts=* #func:文件分布到data path的方式 #valu: ## 0:轮询 ## 1:随机,根据哈希code file_distribute_path_mode=0 #func:当file_distr
显示全部
相似文档