- 论坛徽章:
- 0
|
本帖最后由 zl342622zl 于 2014-04-16 12:02 编辑
两台服务器各安装一个fastdfs,以A,B为例
A:192.168.1.100
tracker.conf
base_path=/mnt/data/DFS/fastdfs_tracker
port=22122
storage.conf
tracker_server=A:22122
port=23000
group_name=group1
store_path_count=1
store_path0=/mnt/data/DFS/fastdfs_storage
mod_fastdfs.conf
group_name=group1
tracker_server=A:22122
store_path_count=1
store_path=/mnt/data/DFS/fastdfs_storage
B:192.168.1.200
storage.conf
tracker_server=A:22122
port=23000
group_name=group1
store_path_count=1
store_path0=/mnt/data/sync_DFS/fastdfs_storage
mod_fastdfs.conf
group_name=group1
tracker_server=A:22122
store_path_count=1
store_path=/mnt/data/sync_DFS/fastdfs_storage
其中,B做了A的storage的备份,storage里面数据已经同步
现在,能不能两个tracker管理同一个组group1
A:192.168.1.100
tracker.conf
base_path=/mnt/data/DFS/fastdfs_tracker
port=22122
storage.conf
tracker_server=A:22122
tracker_server=B:22122
port=23000
group_name=group1
store_path_count=1
store_path0=/mnt/data/DFS/fastdfs_storage
mod_fastdfs.conf
group_name=group1
tracker_server=A:22122
store_path_count=1
store_path=/mnt/data/DFS/fastdfs_storage
B:192.168.1.200
tracker.conf
base_path=/mnt/data/sync_DFS/fastdfs_tracker
port=22122
storage.conf
tracker_server=A:22122
tracker_server=B:22122
group_name=group1
store_path_count=1
store_path0=/mnt/data/sync_DFS/fastdfs_storage
mod_fastdfs.conf
group_name=group1
tracker_server=B:22122
port=23000
store_path_count=1
store_path=/mnt/data/sync_DFS/fastdfs_storage
各位大大,这样的构想能可行吗!?
找了不少资料,都说一个tracker管理多个storage.
那么两个tracker管理一个storage,行吗!???
已本地测试解决 |
|