修改sapp.toml

This commit is contained in:
崔一鸣
2019-09-24 17:41:57 +08:00
parent e570781313
commit 7f9c5438f0

View File

@@ -1,93 +1,121 @@
[Module]
threadnum=16
cpu_bind_core_mask=0x1fffe
app_instance_name=sapp_master
MaxTcpStreams=200000
MaxUdpStreams=200000
LinkTimeout=30
UdpResetTime=0
CreatLinkMode=1
MaxUnorderNum=5
TcpAllEnable=1
IPv6_module_enable=1
IPv6_raw_socket=1
ipentry_priority_over_ipfrag=0
dictator_switch=0
load_plug_switch=1
discard_ack=0
kill_tcp_remedy=0
signal_take_over_switch=0
timestamp_record=0
#timedelay_threshold unit: CPU CYCLE
timedelay_threshold=99900000
analyse_tcp_option=1
#in linux kernel 2.6.20 and subsequent version, should enable this
use_MESAsleep=0
#skip ethernet, if you don't care MAC address
skip_ethernet_layer=0
#for dual-stack send rst
skip_not_ip_layer=0
#packet use DDP protocol
encapsulate_with_ddp=0
maxrandval=65535
randkeyval=13
#(0:pag,1:pcap,2:dumpfile,3:pfring,4:DPDK,5:ppf,6:NPacket,7:qnf,8:N95,9:pcap-dumpfile-list,10:topsec,
#(11:ipfile, 12:marsio4, 13:agent_smith, 14:dpdk_vxlan, 15:marsio_vxlan, 16:pag_marsio
capdatamodlel=12
forwardpkt=0
pcapdevice=vxlan_user
#pcapdevice=lo
pcapdevice2=
pcapfilter=
pcap_dumpfile_list=dumpfile.list
senddevice=lo
gateway_mac=00:90:0b:1b:a1:2b
#max pending packet num between capture-thread and handle-thread
queue_max_num=2000
#-----network connection mode definition-----
# 0: don't send packet, only capture;
# 1: parallel mode with single card;
# 2: serial mode with two card;
# 3: logic serial mode with G device.
net_connection_mode=3
[ShowStatInfo]
showinterval=3
iknow_listen_port=65500
platform_log_level=20
FS_switch=1
FS_print_switch=1
FS_server_ip=127.0.0.1
FS_server_port=8126
FS_cycle=10
[pkt_dump]
pkt_dump_switch=0
#1:local file; 2:udp socket
pkt_dump_mode=2
pkt_dump_cmd_port=12345
pkt_dump_bpf_filter=
pkt_dump_file_root_dir=/dev/shm/pkt_dump234
#config 'pkt_dump_total_size' means summation of all files size in 'root_dir', unit:MB.
pkt_dump_total_size=29900
#config 'pkt_dump_file_max_size' means MB per thread.
pkt_dump_file_max_size=10000
#config 'pkt_dump_thread_seq' means which thread enable this module, 'all' is total running thread.
pkt_dump_thread_seq=all
#pkt_dump_thread_seq=0,1,2,3
###################################################################################################
# NOTE:
# The format of this file is toml (https://github.com/cktan/tomlc99)
# to make vim editor display colorful and human readable,
# you can create a symbolic links named sapp.ini to sapp.toml, ln -sf sapp.toml sapp.ini
###################################################################################################
[SYSTEM]
instance_name = "sapp4"
[CPU]
worker_threads=16
### note, bind_mask, if you do not want to bind thread to special CPU core, keep it empty as []
bind_mask=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
#bind_mask=[]
[PACKET_IO]
### note, BSD_packet_filter, if you do not want to set any filter rule, keep it empty as ""
BSD_packet_filter=""
### note, depolyment.mode options: [mirror, inline, transparent]
[packet_io.depolyment]
mode=inline
### note, interface.type options: [pag,pcap,marsio]
[packet_io.internal.interface]
type=marsio
name=vxlan_user
[packet_io.external.interface]
type=pcap
name=lo
[packet_io.polling]
### note, polling_priority = call sapp_recv_pkt every call polling_entry times,
polling_priority=1
[STREAM]
[stream.tcp]
max=200000
timeout=30
syn_mandatory=1
reorder_pkt_max=5
analyse_option_enabled=1
[stream.tcp.inject]
link_mss=1460
[stream.tcp.inject.rst]
number=3
signature_enabled=1
signature_seed1=65535
signature_seed2=13
[stream.udp]
max=10000
timeout=60
[PROFILING]
[profiling.pkt_latency]
enabled=0
### note, threshold unit is microseconds (us)
threshold=1000000
[profiling.sanity_check]
raw_pkt_broken_enabled=0
symbol_conflict_enabled=0
[profiling.log]
level=20
interval=5
[profiling.log.local]
enabled=1
### note, if "file_truncate_open_enabled=1", file will be truncated, otherwise open the file for appending.
file_truncate_enabled = 1
log_file_name = "fs2_sysinfo.log"
[profiling.log.remote]
enabled=1
server_ip="192.168.11.90"
server_port=8126
[profiling.log.remote.field_stat2]
### note, is valid when "remote_send_out_type=field_stat2"
### note, metric_type option value: [default, json]
metric_type = default
app_name=sapp
[TOOLS]
[tools.pkt_dump]
enabled=0
### note, mode options value:[storage, udp_socket]
mode=udp_socket
BSD_packet_filter=""
[tools.pkt_dump.threads]
### note, if you want enable pkt dump in all thread, set dump_thread_all_enabled=1, then 'dump_thread_id' is obsoleted.
### if dump_thread_all_enabled=0, then use dump_thread_id to specify separate specified thread index.
all_threads_enabled=1
### note, dump_thread_id start from 0, max is CPU.worker_threads-1
dump_thread_id=[0,1,2,3,4]
[tools.pkt_dump.udp]
command_port=12345
[tools.pkt_dump.storage]
### note, file path must be double quotation mark extension, for example, path="/dev/shm/pkt_dump"
path="/dev/shm/pkt_dump"
### note, file size unit: MB
file_size_max_per_thread=10000
### note:
### These configurations format is complex and difficult to describe with toml grammar,
### so, create a Independent config file to description specific information.
[SPECIAL_CONFIG_LINK]
project_list_path="./etc/project_list.conf"
plugin_path="./etc/plugin.conf"
entrylist_path="./etc/entrylist.conf"
send_raw_pkt_path="./etc/send_raw_pkt.conf"
vxlan_sport_service_map_path="./etc/vxlan_sport_service_map.conf"