Persistent Socket Connections
Distributed deployments use Unix domain sockets for inter-process communication. The Leader creates these files for its processes and services, including metrics. A Worker Node creates them when a Source uses load balancing.
On each host, the default location is the operating system temporary directory, for example /tmp. The names start with cribl-, such as cribl-1a2b3c4d-cfg-default.sock.
Many Linux distributions maintain a system cleaner service (such as systemd-tmpfiles) that removes files from the temporary directory periodically, such as every 10 days. If these socket files are removed, product pages such as Monitoring stop working. On a Worker Node, load balancing fails until the Node restarts and creates the sockets again.
Protect the sockets by blocking the cleaner or by moving the socket files.
Block the Cleaner
Stop the host operating system from cleaning socket files that match /tmp/cribl-*. Using Amazon Linux 2 instances as an example:
Add a
tmp.conffile to/etc/tmpfiles.dwith the lineX /tmp/cribl-*.Restart the system cleaner and reload its configuration by running
systemctl restart systemd-tmpfiles-clean.service.Restart the Cribl server, as described in Configurations and Restart, or run the
restartcommand.
Apply this exclusion on the Leader and on each Worker Node that uses load-balanced Sources.
Move the Sockets
Move the socket files to a directory that the cleaner doesn’t remove. The operating system user that owns the cribl process must have permission to write to the directory.
The operating system limit for a Unix domain socket path is 108 bytes. Cribl Stream allows 107 bytes on Linux and 103 bytes on other operating systems. Use a short path close to the root, such as /var/tmp or /var/lib/cribl-sockets.
On the Leader, set the directory at Settings > Global Settings > System > Distributed Settings > Leader Settings > Helper processes socket dir.
On a customer-managed (hybrid or on-prem) Worker Group, set the directory at Worker Group Settings > System > General Settings > Sockets > Directory. The Directory field accepts at most 64 characters.
Worker Node Sockets
Protect the Worker Node files with Block the Cleaner or Move the Sockets.
The Worker Node state directory also lists the load-balancing sockets. Each entry is a shortcut to the real socket file. Deleting the real file removes the socket.
For how the load balancer uses these files, see Worker Process Socket Files.