- 论坛徽章:
- 0
|
请教下,我的测试tracker server
192.168.4.253
group1 中2个storage
192.168.4.252 nginx+mod_fastdfs
192.168.4.254 nginx+mod_fastdfs
2个问题
1 假设上传文件较大,上传到192.168.4.252 此时还没没有同步到192.168.4.254
那么如何保证用户请求不落在192.168.4.254
我这边想在4.252和4.254之前搞一个nginx+upstream 分发请求到252、254
2 我从存储节点上下载文件的时候,存储节点和tracker server是否有数据交互?
看到 nginx+mod_fastdfs有模块调用mod_fastdfs.conf
tracker_server=192.168.4.253:22122
但我抓包没有发现有数据交互
谢谢
如下上传文件
# /usr/local/bin/fdfs_test /etc/fdfs/client.conf upload install.log
This is FastDFS client test program v5.01
Copyright (C) 2008, Happy Fish / YuQing
FastDFS may be copied only under the terms of the GNU General
Public License V3, which may be found in the FastDFS source kit.
Please visit the FastDFS Home Page http://www.csource.org/
for more detail.
[2014-02-28 17:17:26] DEBUG - base_path=/home/yuqing/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0
tracker_query_storage_store_list_without_group:
server 1. group_name=, ip_addr=192.168.4.252, port=23000
server 2. group_name=, ip_addr=192.168.4.254, port=23000
group_name=group1, ip_addr=192.168.4.252, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKgE_FMQVCWAMR4mAAAk8o19T2w416.log
source ip address: 192.168.4.252
file timestamp=2014-02-28 17:17:25
file size=9458
file crc32=2373799788
example file url: http://192.168.4.252:8080/group1 ... mAAAk8o19T2w416.log
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKgE_FMQVCWAMR4mAAAk8o19T2w416_big.log
source ip address: 192.168.4.252
file timestamp=2014-02-28 17:17:25
file size=9458
file crc32=2373799788
example file url: http://192.168.4.252:8080/group1 ... k8o19T2w416_big.log
假设我上传的文件比较大
当时在http://192.168.4.252:8080/group1 ... k8o19T2w416_big.log
已经可以访问
但是同步到同组另一个主机
http://192.168.4.254:8080/group1 ... k8o19T2w416_big.log 还需要时间
我如何解决 这个问题?
|
|