This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
solutions-tsg-scripts/roles/kni/templates/kni.conf.j2

78 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2019-06-22 18:22:31 +08:00
[global]
log_path = ./log/kni/kni.log
log_level = {{ kni.global.log_level }}
tfe_node_count = {{ kni.global.tfe_node_count }}
2019-06-22 19:26:19 +08:00
manage_eth = {{ nic_mgr.name }}
{% if run_as_tun_mode %}
deploy_mode = tun
{% else %}
2019-09-23 20:33:09 +08:00
deploy_mode = normal
{% endif %}
2019-09-23 20:33:09 +08:00
tun_name = tun_kni
src_mac_addr = 00:0e:c6:d6:72:c1
dst_mac_addr = fe:65:b7:03:50:bd
2019-06-22 18:22:31 +08:00
2019-06-22 19:26:19 +08:00
[tfe0]
enabled = 1
dev_eth_symbol = {{ nic_to_tfe.tfe0.name }}
ip_addr = 192.168.100.2
2019-06-22 18:22:31 +08:00
2019-06-22 19:26:19 +08:00
[tfe1]
enabled = 1
dev_eth_symbol = {{ nic_to_tfe.tfe1.name }}
ip_addr = 192.168.100.3
2019-06-22 18:22:31 +08:00
2019-06-22 19:26:19 +08:00
[tfe2]
enabled = 1
dev_eth_symbol = {{ nic_to_tfe.tfe2.name }}
ip_addr = 192.168.100.4
2019-06-22 18:22:31 +08:00
[tfe_cmsg_receiver]
2019-06-22 19:26:19 +08:00
listen_eth = {{ nic_inner_ctrl.name }}
listen_port = 2475
2019-06-22 18:22:31 +08:00
[watch_dog]
switch = {{ kni.watch_dog.switch }}
2019-06-22 19:26:19 +08:00
listen_eth = {{ nic_inner_ctrl.name }}
listen_port = 2476
2019-06-22 18:22:31 +08:00
keepalive_idle = 2
keepalive_intvl = 1
keepalive_cnt = 3
[marsio]
appsym = knifw
2019-09-23 20:33:09 +08:00
[dup_traffic]
switch = 1
action = 2
capacity = 10000000
error_rate = 0.00001
expiry_time = 60
2019-06-22 18:22:31 +08:00
[traceid2pme_htable]
mho_screen_print_ctrl = 0
mho_thread_safe = 1
mho_mutex_num = 160
2019-09-23 20:33:09 +08:00
mho_hash_slot_size = 640000
mho_hash_max_element_num = 2560000
2019-06-22 18:22:31 +08:00
mho_expire_time = 30
mho_eliminate_type = LRU
2019-09-23 20:33:09 +08:00
//per thread
[tuple2stream_htable]
2019-06-22 18:22:31 +08:00
mho_screen_print_ctrl = 0
2019-09-23 20:33:09 +08:00
mho_thread_safe = 0
2019-06-22 18:22:31 +08:00
mho_mutex_num = 160
2019-09-23 20:33:09 +08:00
mho_hash_slot_size = 80000
mho_hash_max_element_num = 320000
2019-06-22 18:22:31 +08:00
mho_expire_time = 0
mho_eliminate_type = LRU
[field_stat]
2019-09-23 20:33:09 +08:00
remote_switch = {{ fs_remote.switch }}
remote_ip = {{ fs_remote.address }}
remote_port = {{ fs_remote.port }}
2019-12-17 12:03:03 +08:00
local_path = ./fs2_kni.status
2020-01-08 20:02:59 +08:00
stat_cycle = 1
print_mode = 1