s4e-scan-adder is a pre-processing service that enriches and routes scan tasks before they reach the s4e-scan workers. It runs as 3 parallel instances to handle high scan throughput.


Overview

Property Value
Containers s4e-scan_adder_p_1-1, s4e-scan_adder_p_2-1, s4e-scan_adder_p_3-1
Role Scan job pre-processing

How It Works

  1. Receives scan job messages from RabbitMQ.
  2. Enriches the job with asset metadata, configuration, and template selection.
  3. Splits large scan jobs into smaller parallel chunks.
  4. Routes processed jobs to the appropriate s4e-scan worker queue.

Running 3 instances ensures the pre-processing pipeline does not become a bottleneck when many scans are queued simultaneously.


Viewing Logs

docker logs s4e-scan_adder_p_1-1 -f
docker logs s4e-scan_adder_p_2-1 -f
docker logs s4e-scan_adder_p_3-1 -f

Restarting

cd /opt/s4e/setup
docker compose up -d --no-deps scan_adder_p_1 scan_adder_p_2 scan_adder_p_3