Processor with hugepages support and SSE 4.2 (at least four cores). At least 16 GB of RAM. At least 1TB of free disk space.
Recommended distributions:
Collector is distributed as Docker images stored on our server. To access them, contact us
You need access from the target machine to the distribution repositories.
Run commands as root
.
Collector requires configured hugepages (large memory pages).
Example of allocating 128 pages × 2 MB:
sysctl -w vm.nr_hugepages=128
Example of setting up the allocation on system boot:
echo 'vm.nr_hugepages = 128' > /etc/sysctl.d/hugepages.conf
The system clocks must be synchronized in order that Collector and MITIGITOR could interoperate correctly. In case of out of sync, such kind of errors may come up:
TsUntil should be in range [1, 1698650171], actual value: 1698650278
Docker Compose v1 should be used. Collector is not guaranteed to work with Docker Compose v2.
Following the official installation documentation for your OS:
mkdir -p /srv/collector && cd /srv/collector
wget https://docs.mitigator.ru/collector/v23.11/dist/docker-compose.yml
Create .env
file in /srv/collector
directory with following content:
VERSION=vXX.XX.X
COMPOSE_FILE=docker-compose.yml:docker-compose.vpn.yml
COLLECTOR_HOST_ADDRESS=X.X.X.X
COLLECTOR_VPN_ADDRESS=X.X.X.X
Set VERSION
to a specific Collector version.
Set COLLECTOR_HOST_ADDRESS
to a specific host IP address.
docker login docker.mitigator.ru
In order to interact Collector with MITIGATOR, you need to configure VPN as for all MITIGATOR instances within the cluster.
Collector uses GeoLite2
databases in CSV format.
Place the City, Country and ASN database files in the /srv/collector/geolite2
directory:
Process files with the following command:
find geolite2 -name '*.csv' -exec sed -e "s|,\('[^,]\+\)|,\"\1\"|g" -i {} \;
If GeoIP database is added to an already working Collector installation,
remove geolite2
directory with all of its content before deploying the files.
After deploying, restart ClickHouse as follows:docker-compose rm -sf clickhouse && docker-compose up -d clickhouse
docker-compose up -d