<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>configuration :: Tag :: BIFIT Mitigator</title>
    <link>https://docs.mitigator.ru/v26.08/en/tags/configuration/</link>
    <description></description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="https://docs.mitigator.ru/v26.08/en/tags/configuration/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Configuration Change</title>
      <link>https://docs.mitigator.ru/v26.08/en/maintenance/reconfig/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/maintenance/reconfig/</guid>
      <description>Apply changes to any configuration files in /srv/mitigator:&#xA;systemctl reload mitigator This may restart the relevant MITIGATOR components.&#xA;After changing network ports (editing file /etc/systemd/system/mitigator.service.d/nics.conf) run:&#xA;systemctl daemon-reload &amp;&amp; \ systemctl restart mitigator This will turn the MITIGATOR completely off and on again.&#xA;Related Content Access to the Grafana Interface Administrator Tasks Backup Configuring Tiered Protection with MITIGATOR Core Isolation for Performance Optimization Graphite on a Separate Server Incident Chart Update Period Packet Processor Settings Pgfailover Documentation Previous Version Restore</description>
    </item>
    <item>
      <title>Core Isolation for Performance Optimization</title>
      <link>https://docs.mitigator.ru/v26.08/en/kb/isolcpus/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/kb/isolcpus/</guid>
      <description>By default, the CPU cores that work with network ports are also used by other subsystems. This can degrade performance and cause Input Errors pps/bps spikes on Port extX/intX graphs. You can take some of the load off these cores by preventing non-critical subsystems from running on them.&#xA;To do so:&#xA;Specify isolation of the packet processor cores in the core options through the isolcpus=... and rcu_nocbs=... parameters. It is also recommended to add mitigations=off to disable core security patches.</description>
    </item>
    <item>
      <title>Access to the Grafana Interface</title>
      <link>https://docs.mitigator.ru/v26.08/en/kb/graphite/grafana/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/kb/graphite/grafana/</guid>
      <description>MITIGATOR comes with Grafana which can be used to create custom dashboards. See the Grafana documentation to understand exactly how to do this.&#xA;To gain access to the Grafana web interface, you need to set up the service, which is disabled by default. You can temporarily do this with the following command:&#xA;docker-compose up -d --scale grafana=1 grafana To enable grafana permanently, you need to change scale from 0 to 1 in docker-compose.yml.</description>
    </item>
    <item>
      <title>Incident Chart Update Period</title>
      <link>https://docs.mitigator.ru/v26.08/en/kb/incidents/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/kb/incidents/</guid>
      <description>The default update period for incident graphs is 60 seconds. For the convenience of working with incident charts, you may need to change the period for their update:&#xA;Create a file incident.yml and put following in it:&#xA;services: backend: environment: INCIDENT_UPDATE_PERIOD: &#34;30&#34; Where 30 is the update period value in seconds.&#xA;In the .env file, set the incident.yml variable:&#xA;COMPOSE_FILE=docker-compose.yml:docker-compose.override.yml:incident.yml Restart MITIGATOR:&#xA;systemctl restart mitigator&#xA;Related Content Access to the Grafana Interface Configuration Change Configuring Tiered Protection with MITIGATOR Core Isolation for Performance Optimization Graphite on a Separate Server Packet Processor Settings Pgfailover Documentation Setting the Storage Time for Metrics in Graphite System Setup for Mellanox (NVIDIA) Adapters Using a Single Graphite for Multiple MITIGATOR Clusters</description>
    </item>
    <item>
      <title>Packet Processor Settings</title>
      <link>https://docs.mitigator.ru/v26.08/en/kb/dataplane.conf/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/kb/dataplane.conf/</guid>
      <description>The packet processor is configured through the dataplane.conf file.&#xA;Put the file into the MITIGATOR working directory and set the required parameters. Other parameters will have the default values.&#xA;Comments are specified with #, // or /* */.&#xA;Available parameters (with default values):&#xA;# Control socket bind address. control_address: 0.0.0.0 # Control socket TCP port. # [1, 65535] control_port: 8888 # Debug control socket TCP port. # [1, 65535] debug_port: 8889 # gRPC control socket TCP port. # [1, 65535] grpc_port: 8890 # Sync/web-challenger control socket UDP port. # [1, 65535] sync_udp_port: 8891 # Number of control socket processing threads. # [1, 1000] control_threads: 20 # Control socket request timeout (seconds). # [1, 10000] control_request_timeout: 15 # Control socket request/response content timeout (seconds). # [1, 10000] control_content_timeout: 300 # Enable control socket event log. control_log: false # Control socket event log message length limit. # [0, 100000] control_log_limit: 100 # Number of sync task threads. # [1, 1000] sync_threads: 10 # Enable sync task log. sync_log: false # Enable additional cores for sync/web-challenger control socket. use_extra_service_cores: false # MAC address of emitted challenge packets. challenge_mac: &lt;not set&gt; # VLAN ID of emitted challenge packets. # [1, 4095] challenge_vlan_id: &lt;not set&gt; # LACP system ID. # Set to local MAC address if not specified. lacp_system_id: &lt;auto-detect&gt; # LACP port operational key. # [0, 65535] lacp_oper_key: 1000 # MAC resolver request retransmit delay (seconds). # [1, 10000] mac_retransmit_time: 5 # MAC resolver entry validity period (seconds). # [1, 10000] mac_reachable_time: 30 # MAC resolver stale entry cleanup timeout (seconds). # [1, 10000] mac_stale_time: 60 # Maximum allowed number of IPv4 policies. # [1, 60000] max_policies: 100 # Maximum allowed number of IPv6 policies. # [1, 60000] max_policies6: 100 # Maximum allowed SIMD instruction bitwidth. # [0, 512] max_simd_bitwidth: &lt;auto-detect&gt; # Size of network packet memory pool (per NUMA node). # [0, 2^31] packet_mempool_size: &lt;auto-detect&gt; # Enable deferred start of packet processing. # Starts ports only after full application initialization. # Prevents network traffic loops. deferred_start: false # Enable special processing mode of dual-port NICs (for `port_direct_mode: true`). # Process each port on a separate set of cores. # Improves performance for 100G or larger ports when both ports are used. dual_port_nic: false # RX checksum offloading policy: # `false` - do not request the offloading, force software checksum verification. # `true` - enable the offloading for all ports if supported. # Enables offloading only for physical ports if not specified. port_checksum_offload: &lt;auto-detect&gt; # Processing mode of network port I/O queues: # `false` - process port I/O queues on dedicated cores, # recommended for low speeds. # `true` - process port I/O queues on worker cores, # recommended for 100G or higher speeds. port_direct_mode: &lt;auto-detect&gt; # Network port link speed (Mb/s). # Disables speed autonegotiation if enabled. # [100|1000|10000|...] or [100M|1G|10G|...] port_link_speed: &lt;auto-negotiate&gt; # Enable link state propagation of port pairs. port_lsp: false # Network port MTU. # [0, 65535] port_mtu: 1500 # Size of packet ring buffers between network port I/O queue processing cores # and worker cores (for `port_direct_mode: false`). # [0, 2^20] port_ring_size: 8192 # Number of network port RX descriptors. # [0, 65535] port_rx_desc: &lt;auto-detect&gt; # Number of network port TX descriptors. # [0, 65535] port_tx_desc: &lt;auto-detect&gt; # Maximum number of retry attempts of network port packet TX. # [0, 2^31] port_tx_retries: 128 # Network port I/O queue processing cores. # Range list [0, 255] port_cores: &lt;auto-detect&gt; # Number of network port I/O queue processing cores (per NUMA node). # [0, 256] port_cores_nr: &lt;auto-detect&gt; # NUMA nodes of network port I/O queue processing cores. # Range list [0, 7] or `all`: # `all` - use all nodes. port_nodes: &lt;auto-detect&gt; # Worker cores. # Range list [0, 255] worker_cores: &lt;auto-detect&gt; # Number of worker cores (per NUMA node). # [0, 256] worker_cores_nr: &lt;auto-detect&gt; # Worker core NUMA nodes. # Range list [0, 7] or `all`: # `all` - use all nodes. worker_nodes: &lt;auto-detect&gt; # Network port list. # Defines network ports used by packet processor. # Configures port pairs, port zones and their order. # Auto-configured for all detected ports if not specified. # If specified, all used ports must be listed. # # Format: # &lt;port_zone&gt; [ext|int] &lt;pair_index&gt; [0, 255] : &lt;port_id&gt; # port_id: # &lt;pci_address&gt; or &lt;port_number&gt; [0, 255] or &lt;port_name&gt; (string). # # Example: ext0: 01:00.0 int0: 01:00.1 ext1: 04:00.0 int1: 04:00.1 Related Content Core Isolation for Performance Optimization Access to the Grafana Interface Configuration Change Configuring Tiered Protection with MITIGATOR Graphite on a Separate Server Incident Chart Update Period MITIGATOR Installation Pgfailover Documentation Setting the Storage Time for Metrics in Graphite System Setup for Mellanox (NVIDIA) Adapters</description>
    </item>
    <item>
      <title>System Setup for Mellanox (NVIDIA) Adapters</title>
      <link>https://docs.mitigator.ru/v26.08/en/kb/mellanox/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/kb/mellanox/</guid>
      <description>System preparation Working with Mellanox (NVIDIA) cards requires the latest driver and device firmware NVIDIA MLNX_OFED.&#xA;Using the provided link select the latest version of MLNX_OFED for the required distribution of the operating system in the table Current Versions of the Download section. Select the closest version of the OS if the required version is missing. Skip MLNX_OFED installation if the required OS is missing in the list. Tested to work on Debian 10+ and Ubuntu 20.04+.</description>
    </item>
    <item>
      <title>Graphite on a Separate Server</title>
      <link>https://docs.mitigator.ru/v26.08/en/kb/graphite/grafbase/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/kb/graphite/grafbase/</guid>
      <description>Moving Graphite to a separate server allows you to split the load between two servers.&#xA;Until the metrics archive is transferred, only new graphs can be viewed in the MITIGATOR interface.&#xA;Further in the text Server1 is the server with MITIGATOR, Server2 is the server to which the transfer is being performed.&#xA;It is assumed that Server2 already has Docker and docker-compose installed and has a way to deliver the filebase from Server1 to Server2 (the amount of data can be more than 100 GB depending on the number of policies).</description>
    </item>
    <item>
      <title>Изменение конфигурационных параметров ClickHouse</title>
      <link>https://docs.mitigator.ru/v26.08/en/kb/graphite/clickhouse-conf/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/kb/graphite/clickhouse-conf/</guid>
      <description>Конфигурационные параметры ClickHouse делятся на пользовательские и серверные. Узнать про структуру файлов и их расположение можно в официальной документации.&#xA;При конфигурации модуля хранения метрик в MITIGATOR нужно учитывать следующее:&#xA;корневой элемент конфигурационных файлов — &lt;yandex&gt; пользовательские файлы конфигураций следует размещать в /etc/clickhouse-server/users.d внутри контейнера clickhouse файлы конфигурации сервера следует размещать в /etc/clickhouse-server/config.dвнутри контейнера clickhouse Как сконфигурировать ClickHouse на примере ограничения используемой оперативной памяти сервером до 50Гб:&#xA;Создать файл custom.xml с необходимыми параметрами&#xA;&lt;yandex&gt; &lt;max_server_memory_usage&gt;50000000000&lt;/max_server_memory_usage&gt; &lt;/yandex&gt; Создать либо дополнить docker-compose.override.yml</description>
    </item>
    <item>
      <title>Подключение внешней Grafana</title>
      <link>https://docs.mitigator.ru/v26.08/en/kb/graphite/ext-grafana/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/kb/graphite/ext-grafana/</guid>
      <description>Чтобы внешняя Grafana могла получать данные с Graphite, нужно пробросить порт 3080 из контейнера, для чего:&#xA;Cоздать, либо дополнить docker-compose.override.yml следующим: services: gateway: ports: - &#34;13080:3080&#34; Перезапустить MITIGATOR: docker-compose down &amp;&amp; docker-compose up -d В Web-интерфейсе Grafana добавить источник данных: Выбрать тип Graphite и указать внешний адрес:</description>
    </item>
    <item>
      <title>Setting the Storage Time for Metrics in Graphite</title>
      <link>https://docs.mitigator.ru/v26.08/en/kb/graphite/retention/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/kb/graphite/retention/</guid>
      <description>MITIGATOR stores graph data in Graphite-ClickHouse.&#xA;Fresh data is stored with a smaller sparsity, then thinned out:&#xA;Term Sparcity Less than a day 5 seconds day to week 10 seconds week to month 1 minute month to 145 days 5 minutes Over 145 days 10 minutes The retention times are not cumulative, i.e. data for the last day of the last week is stored at a 5 second spacing, and the next 6 days (not 7) are stored at a 10 second spacing. Unlike the standard Graphite storage,&#xA;ClickHouse continues to store the metrics with the highest sparsity given and beyond the configured time limit (with default settings after 145 days).</description>
    </item>
    <item>
      <title>Configuring Tiered Protection with MITIGATOR</title>
      <link>https://docs.mitigator.ru/v26.08/en/kb/echelon/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/kb/echelon/</guid>
      <description>The most effective approach to DDoS protection is a tiered defense architecture, in which surgical filtering of traffic entering the protected network is performed by an on-premise device at the network border, while mitigation mechanisms at the upstream telecom operator level prevent the channel from being saturated.&#xA;Always on protection at the upstream telecom operator side can cause problems and negatively affect legitimate traffic, so it should be activated only when necessary. For this scenario it is needed to configure interaction between the defense layers - cloud protection.</description>
    </item>
    <item>
      <title>Pgfailover Documentation</title>
      <link>https://docs.mitigator.ru/v26.08/en/kb/pgfailover/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/kb/pgfailover/</guid>
      <description>pgfailover monitors the state of a PostgreSQL cluster and acts as a TCP proxy for clients, directing them to the current Primary. When the Primary changes, pgfailover terminates client connections, and they must reconnect.&#xA;Connection parameters are specified via environment variables with the PGFAILOVER_ prefix:&#xA;export PGFAILOVER_BIND_ADDRESS=&#34;:5432&#34; export PGFAILOVER_SERVERS=&#34;postgres://repuser@pg0.example.com/database?sslmode=disable&amp;connect_timeout=5 postgres://repuser@pg1.example.com/database?sslmode=disable&amp;connect_timeout=5&#34; ./pgfailover The server role (Primary/Standby) is checked using pg_is_in_recovery(), by default every 5 seconds (PGFAILOVER_INTERVAL), with the number of connection attempts controlled by the PGFAILOVER_ATTEMPTS environment variable (default: 1).</description>
    </item>
    <item>
      <title>Using a Single Graphite for Multiple MITIGATOR Clusters</title>
      <link>https://docs.mitigator.ru/v26.08/en/kb/graphite/onegraphite/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://docs.mitigator.ru/v26.08/en/kb/graphite/onegraphite/</guid>
      <description>Using a single Graphite for several MITIGATOR instances makes it possible to reduce the load on the computing resources of traffic processing complexes, simplify administration and set up complex monitoring.&#xA;Set up The setup is similar to migration of Graphite to a separate server.&#xA;If you have a host with Graphite configured, you must skip to the Configuring MITIGATOR to work with External Shared Graphite step.</description>
    </item>
  </channel>
</rss>