Administration
Also available as:
PDF
loading table of contents...

Using Fastcapa

Follow these steps to run Fastcapa.

  1. 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
    
  2. Bind the capture device.

    This is only needed if the device is not already bound. In this example, the device enp9s0f0with a PCI address of 09:00:0 is 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"
    
  3. Run Fastcapa.

    fastcapa -c 0x03 --huge-dir /mnt/huge_1GB -- -p 0x01 -t pcap -c /etc/fastcapa.conf
    
  4. Terminate Fastcapa with SIGINT or by entering CTRL-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 SIGKILL or be entering killall -9 fastcapa.