企业版特有配置

创建时间:2024-09-24 最近修改时间:2024-09-24

#1. 资源限制

#1.1 分发流限速

  • Unit: Mbps. Default: 1000. Range: [1, 100000]
  • max_npb_bps: 1000

#1.2 分发熔断阈值

  • Unit: Mbps. Default: 0. Range: [0, 100000]
  • Note: When the outbound direction of the NPB interface reaches or exceeds the threshold, the distribution will be stopped, and then the distribution will be resumed if the value is lower than (max_tx_bandwidth - max_npb_bps)*90% within 5 consecutive monitoring intervals.
  • Attention: When configuring this value, it must be greater than max_npb_bps. 0 means disable this feature.
  • max_tx_bandwidth: 0

#1.3 分发熔断监控间隔

  • Unit: second. Default: 10. Range: [1, 60]
  • Note: monitoring interval for outbound traffic rate of NPB interface
  • bandwidth_probe_interval: 10

#2. 基础配置

#2.1 虚拟机 XML 文件夹

  • Default: /etc/libvirt/qemu/
  • Length: [0, 100]
  • vm_xml_path: /etc/libvirt/qemu/

#3. 控制配置

#3.1 PCAP 套接字

  • Default: TCP. Options: TCP, UDP, RAW_UDP
  • Note: RAW_UDP uses RawSocket to send UDP packets, which has the highest performance, but there may be compatibility issues in some environments.
  • compressor_socket_type: TCP

#4. 分发配置

#4.1 分发套接字

  • Default: RAW_UDP. Options: UDP, RAW_UDP
  • Note: RAW_UDP uses RawSocket to send UDP packets, which has the highest performance, but there may be compatibility issues in some environments.
  • npb_socket_type: RAW_UDP

#4.2 内存附加头

  • Default: 0, means none. Options: 0, 1 (Additional 802.1Q Header)
  • Note: Whether to add an extra 802.1Q header to NPB traffic, when this value is set, deepflow-agent will insert a VLAN Tag into the NPB traffic header, and the value is the lower 12 bits of TunnelID in the VXLAN header.
  • npb_vlan_mode: 0

#5. 分发开关

#5.1 全局去重

  • Default: 1. Options: 0 (disabled), 1 (enabled).
  • Note: Whether to enable global (distributed) traffic deduplication for the NPB feature.
  • npb_dedup_enabled: 1

#6. 高级配置

#6.1 Oracle 协议解析

static_config:
  oracle-parse-config:
    # Default: true
    # Note: whether the oracle integer encode is big endian
    is-be: true
    # Default: true
    # Note: whether the oracle integer encode is compress
    int-compress: true
    # Default: false
    # Note: due to the response with data id 0x04 has different struct in different version, it may has one byte before row affect.
    resp-0x04-extra-byte: false
1
2
3
4
5
6
7
8
9
10
11