zeek / zeek-client

Experimental implementation of Zeek's future cluster management client
BSD 3-Clause "New" or "Revised" License
4 stars 4 forks source link

Setting cpu_affinity breaks deploy-config #34

Closed dopheide-esnet closed 4 months ago

dopheide-esnet commented 1 year ago

As per the documentation, worker sections in the cluster config should support cpu_affinity. However, actually setting that results in failed deployment.

Example config lines:

[worker1]
instance=agent-zeek-test-cluster1.es.net
role = worker
interface=af_packet::enp175s0f1
cpu_affinity=0
env = ZEEK_PLUGIN_ACTIVATE=Zeek::AF_Packet

This results in a timeout:

zeek@zeek-test-cluster1:~$ zeek-client -vvv --controller zeek-test-cluster1.es.net:2149 deploy-config cluster.cfg
info: connecting to controller zeek-test-cluster1.es.net:2149
info: peered with controller zeek-test-cluster1.es.net:2149
error: no response received: websocket connection to zeek-test-cluster1.es.net:2149 timed out

For an older version of zeek (not using the websocket yet) we get a little cleaner error:

zeek@zeek-dev1:~/zeek_management$ zeek-client deploy-config cluster.cfg
{
  "errors": [
    "request timed out"
  ],
  "results": {}
}