В версии 20.08 изменен формат конфигурационного файла data-plane.conf. Поддержка старого формата сохранена.
Оптимальные настройки определяются автоматически при запуске,
поэтому в норме файл пуст. Комментарии задаются через //
или /* */
.
Доступные параметры:
// TCP port for control socket
// [1, 2^16-1]
control_port: 8888
// Number of control socket processing threads
// [1, 1000]
control_threads: 20
// TCP port for debug control socket
// [1, 2^16-1]
debug_port: 8889
// Number of debug control socket processing threads
// [1, 1000]
debug_threads: 2
// Control socket request timeout in seconds
// [0, 2^16-1]
control_request_timeout: 15
// Control socket request/response content timeout in seconds
// [0, 2^16-1]
control_content_timeout: 300
// Enable control socket log
control_log: false
// Control socket log message length limit
// [0, 2^32-1]
control_log_limit: 100
// Maximum supported number of IPv4 policies
// [1, 60000]
max_policies: 100
// Maximum supported number of IPv6 policies
// [1, 60000]
max_policies6: 100
// Size of packet memory pool (per NUMA node)
// [0, 2^31] or `auto` for auto-detect
packet_mempool_size: auto
// Set maximum allowed SIMD bitwidth
max_simd_bitwidth: auto
// MAC resolver request retransmit delay in seconds
// [1, 2^32-1]
mac_retransmit_time: 5
// MAC resolver entry validity period in seconds
// [1, 2^32-1]
mac_reachable_time: 30
// MAC resolver stale entry cleanup time in seconds
// [1, 2^32-1]
mac_stale_time: 60
// Bypass traffic on packet processor congestion.
// Requires `port_direct_mode: false`
congestion_bypass: false
// Deferred start of packet processing
deferred_start: false
// Prevent packet reordering in `port_direct_mode: false`.
// Affects performance of IO lcores.
prevent_reordering: false
// Link state propagation of port pairs
port_lsp: false
// Port MTU
// [0, 2^16-1]
port_mtu: 1500
// Default number of port rx queue ring descriptors
// [0, 2^16-1]
port_rx_desc: 1024
// Default number of port tx queue ring descriptors
// [0, 2^16-1]
port_tx_desc: 1024
// Maximum retries of port packet tx (power of 2)
// [0, 63]
port_tx_retries: 7
// Default port direct IO mode
// Boolean or `auto` for auto-detect
port_direct_mode: auto
// Default IO cores for port RX
//
// Range list [0, 127] or `auto|ht|noht`
// `auto` - auto-detect
// `ht` - auto-detect, use HT core pairs
// `noht` - auto-detect, do not use HT core pairs
port_cores: auto
// Default number of port IO cores for auto-detect (per NUMA node)
// [0, 128]
port_cores_nr: 0
// Default NUMA nodes for port processing
//
// Range list [0, 1] or `auto|all`
// `auto` - auto-detect
// `all` - use all nodes
port_nodes: auto
// Worker cores
//
// Range list [0, 127] or `auto|ht|noht`
// `auto` - auto-detect
// `ht` - auto-detect, use HT core pairs
// `noht` - auto-detect, do not use HT core pairs
worker_cores: auto
// Worker cores number for auto-detect (per NUMA node)
// [0, 128]
worker_cores_nr: 0
// Worker NUMA nodes
//
// Range list [0, 1] or `auto|all`
// `auto` - auto-detect
// `all` - use all nodes
worker_nodes: auto
// Port settings
//
// Format:
// <port zone> [ext|int] <pair index> [0, 255] : <port id>
// port id:
// `Port id` [0, 255] or `PCI address` [aaaa:bb:cc.d|bb:cc.d] or `Port name`
ext0: 0
// Number of rx queue ring descriptors
// [0, 2^16-1], 0 for default
rx_desc: 0
// Number of tx queue ring descriptors
// [0, 2^16-1], 0 for default
tx_desc: 0
// Direct IO mode
// Boolean or `auto` for auto-detect
direct_mode: auto
// IO cores for port RX. Direct IO mode if not specified
//
// Range list [0, 127] or `auto|ht|noht`
// `auto` - auto-detect
// `ht` - auto-detect, use HT core pairs
// `noht` - auto-detect, do not use HT core pairs
cores: auto
// Number of port IO cores for auto-detect (per NUMA node)
// [0, 128]
cores_nr: 0
// NUMA nodes for port processing
//
// Range list [0, 1] or `auto|all`
// `auto` - auto-detect
// `all` - use all nodes
nodes: auto