Skip to content

Host operating-system updates

This how-to guide explains how to apply security updates to the operating system of the servers QubeSight runs on without losing logs. QubeSight patches update only the product's containers; the host operating system, its kernel and the container engine are maintained by you with the distribution's own tools.

Community Enterprise

What QubeSight updates and what it does not

Layer Updated by
Product services (control plane, worker, UI, gateway, update service, SNMP trap receiver) Signed QubeSight patches. See Upgrades.
Third-party containers (ClickHouse, Redpanda, PostgreSQL, Vector, MySQL, MinIO) Not by patches. Version upgrades of these components are a separate, planned procedure.
Host packages, kernel, container engine (Docker, containerd, Podman), firewall, network stack You, with apt or dnf from the repositories configured on the host (mirror, Satellite, Landscape, proxy).

In release 2.0.110 the product does not detect, report or apply host operating-system updates.

The lossless rule for host maintenance

Apply the same rule the product applies to itself: an action that can lose logs is not performed while logs are flowing to that server. In practice:

Kind of update Effect on ingest Single server Cluster
Library and tool updates that restart nothing None Safe at any time Safe at any time
Updates that restart the container engine (Docker, containerd, Podman, runc, crun, conmon, netavark, aardvark-dns) All containers stop and start: ingest stops Maintenance window only One node at a time, after moving the virtual IP away
Network stack or firewall updates (NetworkManager, systemd-networkd, netplan, nftables, iptables, firewalld) Connections can drop; published ports can disappear until the engine re-applies its rules Maintenance window only One node at a time
Kernel updates Need a reboot Maintenance window only One node at a time
keepalived on the host, cloud agents that reconfigure the network Can move or drop the virtual IP Maintenance window only One node at a time

Automatic restarts

On Ubuntu, needrestart can restart services automatically after an unattended upgrade, including the container engine. Configure it to list only ($nrconf{restart} = 'l'; in /etc/needrestart/needrestart.conf) and exclude the container engine packages from unattended upgrades, so that no update restarts the stack outside a maintenance window. Do not enable automatic reboots on QubeSight servers.

What is lost during a restart

When the stack on a single server stops:

  • Kafka path (Filebeat, Event Hub, Kinesis, CloudWatch Logs): nothing is lost. Senders and cloud consumers resume from their positions.
  • TCP syslog (including Guardium syslog): the sender's connection drops. Senders with a disk queue (for example rsyslog with a disk-assisted queue, RELP) resend; plain TCP senders may lose lines in flight and lines sent while the port is closed, depending on their own queue.
  • SNMP traps (UDP): traps sent while the listener is down are lost.
  • Guardium archive: not affected; the next archive import fills gaps.

Update a single server

  1. Plan a maintenance window and inform the owners of the log sources.
  2. Take a backup: Platform → Data and Backup → Backup → Back up now.
  3. Apply the updates that restart nothing at any time (apt-get upgrade with needrestart in list mode, or dnf upgrade excluding the container engine, kernel and network packages).
  4. In the window, apply the remaining updates and reboot if required.
  5. After the reboot, check that every container is running (docker compose ps) and that Platform → System and Cluster → Status shows all components up.
  6. Check Data Sources → Source Health (Enterprise) or recent reports for each source to confirm that sending resumed.

Update a cluster (rolling)

Enterprise

Update one node at a time and wait until the cluster is fully healthy before moving to the next.

  1. Confirm the cluster is healthy on Platform → System and Cluster → Cluster: all nodes member, a PostgreSQL leader and synchronous replica, no leaderless or under-replicated partitions, log topics with 3 replicas.
  2. Choose a node that does not hold the virtual IP, or let the virtual IP move first by stopping the node's Vector container (docker compose stop vector in the node's installation directory); keepalived moves the address within seconds. Check on Map that senders are connected to the new holder.
  3. If the node is the PostgreSQL leader, no action is needed: Patroni promotes the replica when the node goes down, and applications find the new leader.
  4. Apply the updates and reboot the node.
  5. Wait until the node is member again on the Cluster tab, Patroni shows a synchronous replica, ClickHouse has no replication queue and Redpanda has no under-replicated partitions. Allow a few minutes of stable state.
  6. Repeat for the next node. Update the witness the same way; while it is down, the cluster runs on the remaining majority and cannot tolerate another failure.

Senders that send directly to a node's own address lose lines while that node is down. Point every source at the virtual IP before you start.

Marketplace images

AWS and Azure Marketplace images are built from an up-to-date Ubuntu base at image build time. After deployment, the instance is maintained like any other server with the procedure above. Check the unattended-upgrade and needrestart configuration of your instance against the warning above.

Limitations

  • QubeSight does not report pending host updates, CVEs that affect the host, or a required reboot in this release.
  • Restarting the container engine on a single server always interrupts ingest; there is no lossless way to reboot a single server. Use a cluster when host maintenance must not interrupt ingest.