增加和tfe通信接口, 添加负载均衡功能等
This commit is contained in:
@@ -1,20 +1,50 @@
|
||||
[global]
|
||||
log_path = ./log/kni/kni.log
|
||||
log_level = 10
|
||||
tfe_count = 1
|
||||
local_eth = enp8s0
|
||||
|
||||
[maat]
|
||||
readconf_mode = 1
|
||||
readconf_mode = 2
|
||||
tableinfo_path = ./conf/kni/maat_tableinfo.conf
|
||||
maatjson_path = ./conf/kni/maat_test.json
|
||||
redis_ip = 192.168.10.120
|
||||
redis_port = 6390
|
||||
redis_index = 4
|
||||
tablename_intercept_ip = PXY_INTERCEPT_IP
|
||||
tablename_intercept_domain = PXY_INTERCEPT_DOMAIN
|
||||
compile_alias = COMPILE_ALIAS
|
||||
|
||||
[marsio]
|
||||
appsym = knifw
|
||||
dev_eth_symbol = eth4
|
||||
dev_vxlan_symbol = vxlan_user
|
||||
src_mac_addr = 00:0e:c6:d6:72:c1
|
||||
|
||||
[tfe0]
|
||||
mac_addr = fe:65:b7:03:50:bd
|
||||
dev_eth_symbol = ens1f5
|
||||
|
||||
[tfe1]
|
||||
mac_addr = fe:65:b7:03:50:bd
|
||||
dev_eth_symbol = eth8
|
||||
|
||||
[tfe2]
|
||||
mac_addr = fe:65:b7:03:50:bd
|
||||
dev_eth_symbol = eth9
|
||||
|
||||
[field_stat]
|
||||
stat_path = ./fs2_kni.status
|
||||
|
||||
[send_logger]
|
||||
switch = 1
|
||||
kafka_topic = SESSION-RECORD-LOG
|
||||
kafka_brokerlist = 192.168.10.121:9092,192.168.10.122:9092,192.168.10.123:9092
|
||||
|
||||
[kafka]
|
||||
queue.buffering.max.messages = 1000000
|
||||
topic.metadata.refresh.interval.ms = 600000
|
||||
security.protocol = MG
|
||||
|
||||
[tfe_cmsg_receiver]
|
||||
listen_eth = enp8s0
|
||||
listen_port = 8888
|
||||
@@ -1 +1 @@
|
||||
./plug/business/kni/kni.inf
|
||||
./plug/business/kni/kni.inf
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
[PLUGINFO]
|
||||
PLUGNAME = KNI
|
||||
SO_PATH = ./plug/business/kni/libkni.so
|
||||
INIT_FUNC = kni_init
|
||||
DESTROY_FUNC =
|
||||
SO_PATH = ./plug/business/kni/kni2.so
|
||||
INIT_FUNC = kni_init
|
||||
DESTROY_FUNC = kni_destroy
|
||||
|
||||
[TCP_ALL]
|
||||
FUNC_FLAG = all
|
||||
FUNC_NAME = kni_tcpall_entry
|
||||
FUNC_FLAG = all
|
||||
FUNC_NAME = kni_tcpall_entry
|
||||
|
||||
[HTTP]
|
||||
FUNC_FLAG = HTTP_HOST
|
||||
FUNC_NAME = kni_http_entry
|
||||
FUNC_FLAG = HTTP_HOST
|
||||
FUNC_NAME = kni_http_entry
|
||||
Reference in New Issue
Block a user