免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1926 | 回复: 4
打印 上一主题 下一主题

[FastDFS] 关于fastdfs客户端上传文件后的分配问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-06-13 11:50 |只看该作者 |倒序浏览
fastdfs
tracker下有2个group,每个group中有2个storage
group中的storage互为备份
那么客户端上传的文件是怎么分配给这2个group的呢?
有特定选项,还是随机?

论坛徽章:
0
2
发表于 2014-06-14 18:17
随机









自多宝平台 :http://www.mbo3688.com

论坛徽章:
0
3 [报告]
发表于 2014-06-20 10:58 |只看该作者
可以选择配置 随机或者是负载均衡

论坛徽章:
0
4 [报告]
发表于 2014-06-26 10:33 |只看该作者
目前遇到相同问题。 上传时只往group1 上传。 不使用group2 ,谁知道需要配置哪 ,给详细说明下。

论坛徽章:
0
5 [报告]
发表于 2014-06-27 22:54 |只看该作者
答案在tracker.conf配置上。另外storage.conf有个配置默认配是每60秒报告磁盘使用情况。

# the method of selecting group to upload files
# 0: round robin
# 1: specify group
# 2: load balance, select the max free space group to upload file
store_lookup=2


# which group to upload file
# when store_lookup set to 1, must set store_group to the group name
store_group=group2

# which storage server to upload file
# 0: round robin (default)
# 1: the first server order by ip address
# 2: the first server order by priority (the minimal)
store_server=0
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP