目錄
一、tracker引數配置
二、storage引數配置
tracker.conf 配置檔案分析:
storage.conf配置檔案分析:
#同tracker.conf
disabled=false
#這個storage伺服器屬於那個group
group_name=group1
#同tracker.conf
bind_addr=
#連線其他伺服器時是否繫結位址,bind_addr配置時本引數才有效
client_bind=true
#同tracker.conf
port=23000
connect_timeout=30
network_timeout=60
#主動向tracker傳送心跳檢測的時間間隔
heart_beat_interval=30
#主動向tracker傳送磁碟使用率的時間間隔
stat_report_interval=60
#同tracker.conf
base_path=/opt/fdfs
max_connections=256
#接收/傳送資料的buff大小,必須大於8kb
buff_size = 256kb
#同tracker.conf
work_threads=4
#磁碟io是否讀寫分離
disk_rw_separated = true
#是否直接讀寫檔案,預設關閉
disk_rw_direct = false
#混合讀寫時的讀寫執行緒數
disk_reader_threads = 1
disk_writer_threads = 1
#同步檔案時如果binlog沒有要同步的檔案,則延遲多少毫秒後重新讀取,0表示不延遲
sync_wait_msec=50
#同步完乙個檔案後間隔多少毫秒同步下乙個檔案,0表示不休息直接同步
sync_interval=0
#表示這段時間內同步檔案
sync_start_time=00:00
sync_end_time=23:59
#同步完多少檔案後寫mark標記
write_mark_file_freq=500
#storage在儲存檔案時支援多路徑,預設只設定乙個
store_path_count=1
#配置多個store_path路徑,從0開始,如果store_path0不存在,則base_path必須存在
store_path0=/opt/fdfs
#store_path1=/opt/fastdfs2
#subdir_count * subdir_count個目錄會在store_path下建立,採用兩級儲存
subdir_count_per_path=256
#設定tracker_server
tracker_server=x.x.x.x:22122
#同tracker.conf
log_level=info
run_by_group=
run_by_user=
allow_hosts=*
#檔案在資料目錄下的存放策略,0:輪訓 1:隨機
file_distribute_path_mode=0
#當問及是輪訓存放時,乙個目錄下可存放的檔案數目
file_distribute_rotate_count=100
#寫入多少位元組後就開始同步,0表示不同步
fsync_after_written_bytes=0
#重新整理日誌資訊到disk的間隔
sync_log_buff_interval=10
#同步storage的狀態資訊到disk的間隔
sync_stat_file_interval=300
#執行緒棧大小
thread_stack_size=512kb
#設定檔案上傳伺服器的優先順序,值越小越高
upload_priority=10
#是否檢測檔案重複存在,1:檢測 0:不檢測
check_file_duplicate=0
#當check_file_duplicate設定為1時,次值必須設定
key_namespace=fastdfs
#與fastdht建立連線的方式 0:短連線 1:長連線
keep_alive=0
#同tracker.conf
三、部署所用到的架包
fastdfs集群配置
參考文獻 分布式儲存 centos6.5虛擬機器環境搭建fastdfs 5.0.5集群 1 安裝目標 tracker 192.168.153.130 22122 group1 stroage11 192.168.153.130 23000 group1 stroage12 192.168.153.1...
FastDFS配置說明
前面了解了fastdfs的原理,接下來就熟悉一下安裝過程,準備了三颱機器,一台模擬client,一台模擬storage,一台模擬tracker。三颱機器均為debian6,系統為最小化安裝,先安裝基本編譯環境 apt get install build essential php5 dev libe...
FASTDFS安裝與配置
fastdfs v5.05.tar.gzlibfastcommon master.zipfastdfs nginx module v1.16.tar.gz nginx 1.8.0.tar.gz這次的配置是把所有伺服器都配置到同乙個虛擬機器上,如果有多台伺服器則指向的ip位址需要修改1.安裝libfa...