summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2023-08-09 18:47:16 +0800
committerluwenpeng <[email protected]>2023-08-10 18:31:38 +0800
commite34aa3f5e23d7fa0b95944269c499d5c1e7c23aa (patch)
treeaf0565991e01741c850d9479850fc58df6f9b509 /conf
parent1063574ca0d3fea91f26b8a6bd76a2d021efd822 (diff)
TSG-16531 PacketAdapter适配容器环境,使用mrzcpd收包,通过RAW Socket注RST包v2.0.0-20230810
Diffstat (limited to 'conf')
-rw-r--r--conf/CMakeLists.txt2
-rw-r--r--conf/packet_adapter.conf18
-rw-r--r--conf/zlog.conf12
3 files changed, 32 insertions, 0 deletions
diff --git a/conf/CMakeLists.txt b/conf/CMakeLists.txt
new file mode 100644
index 0000000..88b6ee7
--- /dev/null
+++ b/conf/CMakeLists.txt
@@ -0,0 +1,2 @@
+install(FILES packet_adapter.conf DESTINATION conf COMPONENT Profile)
+install(FILES zlog.conf DESTINATION conf COMPONENT Profile)
diff --git a/conf/packet_adapter.conf b/conf/packet_adapter.conf
new file mode 100644
index 0000000..e220a7c
--- /dev/null
+++ b/conf/packet_adapter.conf
@@ -0,0 +1,18 @@
+[packet_io]
+thread_num=8
+cpu_mask=2,3,4-9
+rx_burst_max=128
+bypass_traffic=0
+app_symbol=packet_adapter
+app_device=eth_nf_packet_adapter
+
+[stat]
+output_file=log/packet_adapter.fs2
+statsd_server=127.0.0.1
+statsd_port=8100
+# 1 : FS_OUTPUT_STATSD
+# 2 : FS_OUTPUT_INFLUX_LINE
+statsd_format=1
+statsd_cycle=2
+prometheus_listen_port=9001
+prometheus_listen_url=/packet_adapter_prometheus \ No newline at end of file
diff --git a/conf/zlog.conf b/conf/zlog.conf
new file mode 100644
index 0000000..5da6688
--- /dev/null
+++ b/conf/zlog.conf
@@ -0,0 +1,12 @@
+# kill -s SIGHUP "pid"
+[global]
+default format = "%d(%c), %t, %V, %F, %U, %m%n"
+
+[levels]
+
+DEBUG=10
+INFO=20
+FATAL=30
+
+[rules]
+packet_adapter.fatal "./log/packet_adapter.log.%d(%F)";