Using Fastcapa
You can use the Fastcapa tool to capture high-volume data flow.
- Create a configuration file that, at a minimum, specifies your Kafka broker:
[kafka-global] metadata.broker.list = kafka-broker1:9092
You can view the example configuration fileconf/fastcapa.conf
to learn other useful parameters. - If the capture device is not bound, bind it:
ifdown enp9s0f0 modprobe uio_pci_generic $DPDK_HOME/sbin/dpdk-devbind --bind=uio_pci_generic "09:00.0"
- Run Fastcapa:
fastcapa -c 0x03 --huge-dir /mnt/huge_1GB -- -p 0x01 -t pcap -c /etc/fastcapa.conf
- Terminate Fastcapa and clear the queue by using
SIGINT
or by typingCTRL-C
.The probe will cleanly shut down all of the workers and allow the backlog of packets to drain.To terminate the process without clearing the queue, useSIGKILL
or enterkillall -9 fastcapa
.