Using Fastcapa
Follow these steps to run Fastcapa.
Create a configuration file that at a minimum specifies your Kafka broker.
An example configuration file,
conf/fastcapa.conf, is available that documents other useful parameters.[kafka-global] metadata.broker.list = kafka-broker1:9092
Bind the capture device.
This is only needed if the device is not already bound. In this example, the device
enp9s0f0with a PCI address of09:00:0is bound. Use values specific to your environment.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 with
SIGINTor by enteringCTRL-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, send a
SIGKILLor be enteringkillall -9 fastcapa.

