NPM配置文件说明.docx
- 文档编号:29785895
- 上传时间:2023-07-26
- 格式:DOCX
- 页数:42
- 大小:30.12KB
NPM配置文件说明.docx
《NPM配置文件说明.docx》由会员分享,可在线阅读,更多相关《NPM配置文件说明.docx(42页珍藏版)》请在冰豆网上搜索。
NPM配置文件说明
NPM配置文件说明
导览
SmartProbe配置
SmartProbe配置文件
smartprobe.xml
dispatcher.xml
cleaner.xml
watcher.xml
Pktminer配置文件
pktminer.xml
pm2.ini
DP配置文件
dp.xml
SmartProbe配置文件更新
NPMData配置
NPMData配置文件
dataflow.xml
npmd.xml
expire.xml
watcher.xml
NPMData配置更新
NPMWeb配置
NPMWeb配置文件
smartprobe.xml
sever.xml
npmweb.xml
expire.xml
spvd.xml
syslog.xml
NPMWeb配置更新
SmartProbe配置
SmartProbe配置文件
smartprobe.xml
用于配置SmartProbe的环境参数
/opt/smartprobe/etc/system/local/smartprobe.xml Expandsource
xmlversion="1.0"encoding="UTF-8"?
>
web进程绑定的端口号,默认值:
9000
pcap包文件/NTS文件/NTA文件存储的顶层目录,默认值:
/opt/smartprobe/var/store/
dispatcher.xml
用于配置SmartProbe与NPMServer的数据传递参数
/opt/smartprobe/etc/system/local/dispatcher.xml Expandsource
xmlversion="1.0"encoding="UTF-8"?
>
--add/removeauth_keytocontrolaccesible-->
NPM授权smartprobe链接,默认值:
anonymous;更改后需要在NPMWeb上的smartprobe.xml中同步更新;
--cachentsbeforesend,default:
1000-->
cleaner.xml
用于配置SmartProbe的数据清理
/opt/smartprobe/etc/system/local/cleaner.xml Expandsource
xmlversion="1.0"encoding="UTF-8"?
>
清理相关配置
检查磁盘容量的频率,默认值:
60,单位:
秒
磁盘空闲容量的最低值,默认值:
10%,可选用百分比和绝对值表示。
当磁盘容量低于该值时,cleaner会被触发清除旧数据,释放磁盘空间
每次清除操作,释放的磁盘空间,默认值:
10%,可选用百分比和绝对值表示。
含义是:
不断清除旧数据,直至磁盘容量高于设定的limit。
默认值足以满足需求,一般不需要修改此配置项
按容量清理时显示log详细信息的级别
DP任务产生的临时文件存放的过期时间。
默认值:
1天
位置
标签
默认值
说明
60秒
检查磁盘容量的间隔时间
10%
磁盘清理的阈值,即空闲容量低于10%开始清理;支持百分比和绝对值
10%
一次清理释放的空间,支持百分比和绝对值
2天
DP任务临时文件保存的时间,单位为小时、天
watcher.xml
用于配置SmartProbe的磁盘容量保护
/opt/smartprobe/etc/system/local/watcher.xml Expandsource
xmlversion="1.0"encoding="UTF-8"?
>
检查磁盘容量的频率,默认值:
60,单位:
秒
SP停止工作时,磁盘容量占用百分比,默认值:
90%。
当磁盘容量占用大于等于此百分比时,SP停止工作
位置
标签
默认值
说明
60秒
检查磁盘容量的间隔时间
90%
SP停止工作的阈值,即磁盘占用空间超过90%SP停止工作;支持百分比和绝对值
Pktminer配置文件
pktminer.xml
用于配置SmartProbe的Packetminer进程对于每个网络接口的数据包捕获参数
/opt/smartprobe/etc/system/local/pktminer.xml Expandsource
Pktminer的工作模式,v1代表工作在标准版模式下,v2代表工作在高性能模式下
--isolatedcpus,forexample:
"1,2"-->
绑定的cpu,安装完已确定,不能修改
--connectport.Defaultis5555-->
pktminer监听的端口号,默认值:
5555
--connecttimeoutmillisecond.Defaultis2000ms-->
pktminer请求的超时时间,默认值:
2000,单位:
毫秒(ms)
--buffer_sizedefault:
512MB,supportunit:
MB,GB-->
为libpcap分配的buffersize,最大为1G
--share_hwmdefault:
512MB,supportunit:
MB,GB-->
pring所用的sharememory,最大值为2G
--snap_lendefault:
2048B,supportunit:
BKBMB-->
--timeoutdefault:
3s-->
检查snooppacket的参数,这个一般不用改,默认值即可
--file_durationdefault:
15s-->
控制数据包文件生成间隔,默认值为15秒
--为指定网卡的设置独立的配置-->
--
针对特定网卡的数据包文件生成间隔,默认值:
30秒
针对特定网卡的相关配置
网卡速率设置
-->
--汇聚端口-->
--
汇聚模式,该模式会将多个物理网卡抽象为一个逻辑网卡,在这个标签下添加需要汇聚的网卡即可
-->
位置
标签
默认值
说明
512MB
标准版为libpcap分配的buffersize,最大为1GB
512MB
为Pring分配的缓存大小,最大为2GB
无
配置汇聚端口
无
为某个网口设置的速率
pm2.ini
用于配置SmartProbe的Packetminer进程对于每个网络接口的系统参数
/opt/smartprobe/etc/system/local/pm2.ini Expandsource
[global]
core_mask=0xffffffff
hugepage_memory_mb=12000
nic_rx_ring_size=4032
pring_data_hwm=0x7fff0000
burst_size_io_rx_r_nic=4096
burst_size_io_rx_w_ring=144
burst_size_worker_w_pcap=144
burst_spool_rate=5
burst_lpool_rate=10
burst_upper_limit=100000000
burst_time_span=0
sleep_on=1
sleep_interval=100
sleep_time=1
zmq_port=5555
debug=0#debug:
debug开关,默认关闭
[nic0]
enable=1#enable:
是否开启此网卡的抓包功能
port=0#port:
网卡编号
queue=0
io_core=1#io_core:
配置io线程所用的coreid
worker_core=31#worker_core:
配置worker线程所用的coreid
heartbeat_ms=1000
pring=p0#pring:
pring的id,可以和/dev/shm目录下的文件相对应
pring_count=4#pring的个数
pring_slice=128
file_duration=60#file_duration:
pcap.sz文件生成的间隔
pring_snap_len=65535
pcap_dir=/opt/smartprobe/var/store/pcap/nic0#pcap_dir:
数据包输出目录
compress=1#compress:
是否压缩为sz文件.因为目前数据清理只支持sz文件,所以默认是压缩的
#compressor_core=3,4默认不开启,此时数据压缩是由worker线程来承担的;当流量>4Gbps时,需要多个线程共同压缩,此时需要开启这个选项,一般情况下,2个core用于压缩足够了
[nic1]
enable=1
port=1
queue=0
io_core=2
worker_core=30
heartbeat_ms=1000
pring=p1
pring_count=4
pring_slice=128
file_duration=60
pring_snap_len=65535
pcap_dir=/opt/smartprobe/var/store/pcap/nic1
compress=1
位置
标签
默认值
说明
[nic_x]
pring_count
无
为单个接口分配的pring个数,高性能版可以>1
compress
1
是否开启存包压缩,0为不压缩,1为压缩
compressor_core
无
执行压缩的核编号
DP配置文件
dp.xml
用于配置SmartProbe的DP进程进行数据包解析的参数
/opt/smartprobe/etc/system/local/dp.xml Expandsource
--commentitifyouwantusedefaultvalue.[1/4systemmemory],supportunit:
MB,GB-->
--
-->
--network_packet_length,defaultis84-->
--max_flow_count,defaultis1000000-->
DP支持处理的最大并发连接数,默认值:
1000000
--Flowtimeoutmillisecond.Defaultis120000ms.Groupcanoverride.-->
会话最长保持时间,默认值:
120000,单位:
毫秒(ms)
--Flowattachtimeoutmillisecond.Defaultis9000ms.Groupcanoverride.-->
会话建连超时时间,默认值:
12000,单位:
毫秒(ms)
--Flowdetachtimeoutmillisecond.Defaultis120000ms.Groupcanoverride.-->
会话拆连的超时时间,默认值:
9000,单位:
毫秒(ms)
--globalzmqouputcompressionconfig,choices:
none,spz-->
--globalzmqouputcompressionblocksize-->
多路存储NTA/NTS/PCAP数据文件方式
--decidewaystowritefilesuchasnts,nta...-->
控制NTA/NTS数据多路输出,默认值:
2,表示2路存储
--decidewaystowritepcap-->
控制PCAP数据多路存储,默认值:
2,表示2路存储
--fornta/ntaa-->
--Globalwith-siteapp-matchedstatisunitcountthreshold.Setto"0"todisable,defaultis"1000000".-->
已知应用的Flow数上限,超过则合并到其他,默认值:
1分钟40万
--Globalwithout-siteapp-matchedstatisunitcountthreshold.Setto"0"todisable,defaultis"1000000".-->
未知应用的Flow数上限,超过则合并到其他,默认值:
1分钟20万
--Whenunitoverflow,theunitwhichtotal'PktLen'or'PktCnt'inminimumx%willbemerged.
Setto0todisableshrink.-->
被合并的Flow数比例,默认值:
0.6
各环节缓存区大小
实时模式下DP的相关配置
控制数据的基础颗粒度,默认值:
1分钟,可用值:
15秒,1分钟
控制NTA数据输出和存储的颗粒度,默认值:
1分钟,5分钟,15分钟,1小时,可选15秒
--
-->
--uncommentthesetoenablentaeforotherreport_beat-->
--setto1toenable0todisable-->
--know/unknown/shrinkageconfigfordifferenttimespanofntae-->
--
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- NPM 配置文件 说明
