#ns.confide
- [public]
- #log file size default 1GB
- log_size=1073741824
- #log file num default 64
- log_num = 64
- #log file level default debug
- log_level=debug
- #main queue size default 10240
- task_max_queue_size = 10240
- #listen port
- port = 8108
- #work directoy
- work_dir=/usr/local/tfs-2.0.3
- #device name
- dev_name= eth0
- #work thread count default 4
- thread_count = 4
- #ip addr(vip)
- ip_addr = 10.168.100.240
- [nameserver]
- safe_mode_time = 300
- ip_addr_list = 10.168.100.240|10.168.0.0
- group_mask = 255.255.255.255
- #
- block_max_size = 7549747
- #
- max_replication = 3
- #
- min_replication = 2
- # use capacity ratio
- use_capacity_ratio = 98
- # block use ratio
- block_max_use_ratio = 98
- #heart interval time(seconds)
- heart_interval = 2
- # object dead max time(seconds) default
- object_dead_max_time = 3600
- # cluster id defalut 1
- cluster_id = 1
- # block lost, replicate ratio
- replicate_ratio_ = 50
- max_write_filecount = 16
- heart_thread_count = 2
- heart_max_queue_size = 10
- #replicate block wait time
- repl_max_time = 60
- compact_delete_ratio = 15
- compact_max_load = 200
- object_dead_max_time = 86400
- object_clear_max_time = 300
- max_wait_write_lease = 15
- lease_expired_time = 3
- max_lease_timeout = 3000
- cleanup_lease_threshold = 102400
- build_plan_interval = 10
- run_plan_expire_interval = 120
- build_plan_ratio = 25
- dump_stat_info_interval = 60000000
- build_plan_default_wait_time = 2
- balance_max_diff_block_num = 5
- add_primary_block_count = 3
- block_chunk_num = 32
- task_percent_sec_size = 200
- task_max_queue_size = 10000
- oplog_sync_max_slots_num = 1024
- oplog_sync_thread_num = 1
#(ds.conf 17)ui
- [public]
- #log file size default 1GB
- log_size=1073741824
- #log file num default 64
- log_num = 64
- #log file level default debug
- log_level=debug
- #main queue size default 10240
- task_max_queue_size = 10240
- #listen port
- port = 9998
- #work directoy
- work_dir=/usr/local/tfs
- #device name
- dev_name= eth0
- #work thread count default 4
- thread_count = 4
- #ip addr
- ip_addr = 10.168.30.17
- [dataserver]
- #nameserver ip addr(vip)
- ip_addr = 10.168.30.16
- ip_addr_list = 10.168.30.16|10.168.30.0
- #nameserver port
- port = 8108
- #slave_nsip = 192.168.0.2
- #slave_nsport = 9999
- #heart interval time(seconds)
- heart_interval = 2
- check_interval = 2
- #expire_datafile_time = 90
- #expire_clonedblock_time = 180
- #expire_compactblock_time = 600
- replicate_threadcount = 2
- #write_sync_flag = 1
- block_max_size = 7549747
- dump_visit_stat_interval = 60
- #max_io_warning_time = 0
- backup_type = 1
- backup_path = /data/backup_tfs
- #max_data_file_nums = 50
- #max_crc_error_nums = 4
- #max_eio_error_nums_ = 6
- #expire_checkblock_time = 86000
- #max_cpu_usage = 60
- #dump_stat_info_interval = 60000000
- mount_name = /home/disk
- mount_maxsize = 4194304
- base_filesystem_type = 1
- superblock_reserve = 0
- avg_file_size = 40960
- mainblock_size = 7549747
- extblock_size = 419430
- block_ratio = 0.5
- hash_slot_ratio = 0.5
- ds_thread_count = 4
- #access_control_ipmask = 192.168.0.1
- #
- #access_control_file = /home/xxxxx/xxxxxx/tfs/control.file
#ads.conf 17spa
- [public]
- #log file size default 1GB
- log_size=1073741824
- #log file num default 64
- log_num = 64
- #log file level default debug
- log_level=debug
- #main queue size default 10240
- task_max_queue_size = 10240
- #listen port
- port = 12000
- #work directoy
- work_dir=/usr/local/tfs
- #device name
- dev_name= eth0
- #work thread count default 4
- thread_count = 4
- ip_addr =10.168.30.17
- [adminserver]
- # check interval
- check_interval = 5
- # check count
- check_count = 5
- # warn threshhold
- warn_dead_count = 3
- # wait time before kill ds
- ds_fkill_waittime = 15
- # ds start base cmd
- ds_script = /usr/local/tfs/bin/dataserver -f /usr/local/tfs/conf/ds.conf -d
- # ds index list
- ds_index_list = 1,2,3
- [nameserver]
- ip_addr = 10.168.30.11
- port = 8108
- [dataserver]
- port = 9998
- lock_file = /usr/local/tfs/bin/dataserver
- mount_name = /home/disk
#ds.conf 18debug
- [public]
- #log file size default 1GB
- log_size=1073741824
- #log file num default 64
- log_num = 64
- #log file level default debug
- log_level=debug
- #main queue size default 10240
- task_max_queue_size = 10240
- #listen port
- port = 9998
- #work directoy
- work_dir=/usr/local/tfs
- #device name
- dev_name= eth0
- #work thread count default 4
- thread_count = 4
- #ip addr
- ip_addr = 10.168.30.18
- [dataserver]
- #nameserver ip addr(vip)
- ip_addr = 10.168.30.16
- ip_addr_list = 10.168.30.16|10.168.30.0
- #nameserver port
- port = 8108
- #slave_nsip = 192.168.0.2
- #slave_nsport = 9999
- #heart interval time(seconds)
- heart_interval = 2
- check_interval = 2
- #expire_datafile_time = 90
- #expire_clonedblock_time = 180
- #expire_compactblock_time = 600
- replicate_threadcount = 2
- #write_sync_flag = 1
- block_max_size = 7549747
- dump_visit_stat_interval = 60
- #max_io_warning_time = 0
- backup_type = 1
- backup_path = /data/backup_tfs
- #max_data_file_nums = 50
- #max_crc_error_nums = 4
- #max_eio_error_nums_ = 6
- #expire_checkblock_time = 86000
- #max_cpu_usage = 60
- #dump_stat_info_interval = 60000000
- mount_name = /home/disk
- mount_maxsize = 4194304
- base_filesystem_type = 1
- superblock_reserve = 0
- avg_file_size = 40960
- mainblock_size = 7549747
- extblock_size = 419430
- block_ratio = 0.5
- hash_slot_ratio = 0.5
- ds_thread_count = 4
- #access_control_ipmask = 192.168.0.1
- #
- #access_control_file = /home/xxxxx/xxxxxx/tfs/control.file
#ads.conf 18server
- [public]
- #log file size default 1GB
- log_size=1073741824
- #log file num default 64
- log_num = 64
- #log file level default debug
- log_level=debug
- #main queue size default 10240
- task_max_queue_size = 10240
- #listen port
- port = 12000
- #work directoy
- work_dir=/usr/local/tfs
- #device name
- dev_name= eth0
- #work thread count default 4
- thread_count = 4
- ip_addr =10.168.30.18
- [adminserver]
- # check interval
- check_interval = 5
- # check count
- check_count = 5
- # warn threshhold
- warn_dead_count = 3
- # wait time before kill ds
- ds_fkill_waittime = 15
- # ds start base cmd
- ds_script = /usr/local/tfs/bin/dataserver -f /usr/local/tfs/conf/ds.conf -d
- # ds index list
- ds_index_list = 1,2,3
- [nameserver]
- ip_addr = 10.168.30.11
- port = 8108
- [dataserver]
- port = 9998
- lock_file = /usr/local/tfs/bin/dataserver
- mount_name = /home/disk