- 論壇徽章:
- 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 假設(shè)上傳文件較大,上傳到192.168.4.252 此時還沒沒有同步到192.168.4.254
那么如何保證用戶請求不落在192.168.4.254
我這邊想在4.252和4.254之前搞一個nginx+upstream 分發(fā)請求到252、254
2 我從存儲節(jié)點上下載文件的時候,存儲節(jié)點和tracker server是否有數(shù)據(jù)交互?
看到 nginx+mod_fastdfs有模塊調(diào)用mod_fastdfs.conf
tracker_server=192.168.4.253:22122
但我抓包沒有發(fā)現(xiàn)有數(shù)據(jù)交互
謝謝
如下上傳文件
# /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
假設(shè)我上傳的文件比較大
當(dāng)時在http://192.168.4.252:8080/group1 ... k8o19T2w416_big.log
已經(jīng)可以訪問
但是同步到同組另一個主機(jī)
http://192.168.4.254:8080/group1 ... k8o19T2w416_big.log 還需要時間
我如何解決 這個問題?
|
|