brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Portainer's Edge Agent checks in every 5 seconds, and you can change that

Portainer
~/tips/tip-portainer-edge-poll-frequency

cat ~/tips/tip-portainer-edge-poll-frequency.md

Sets how often Edge Agents call home to the Portainer server.

An Edge Agent never waits for Portainer to call it. It keeps calling Portainer, and how often is a setting you can look at.

The Portainer docs describe the standard Edge Agent flow like this: the agent checks in with Portainer at a set interval, and the default is every 5 seconds. The agent opens a tunnel only when Portainer needs one, over port 8000. Portainer needs only ports 9443 and 8000 exposed.

The interval lives in Settings under Edge Compute, as the default poll frequency for Edge Agents in standard mode. Change it there for all agents.

When you open an Edge environment to manage it, Portainer flags that it needs a connection, and the tunnel is built at the agent’s next check-in. With the default settings the docs put this at about 10 seconds, and you see a waiting message meanwhile.

A longer interval means fewer connections from a device on a slow link. My guess is that it also makes that waiting message last longer, so I’d change it in small steps and open an environment to see how it feels.

One caveat: this is for agents in standard mode. The same settings page has separate ping, snapshot and command frequencies for async mode.

Further reading: Portainer: Edge Agent, Portainer: Edge Compute settings

More Portainer tips Choose Polling in a Portainer GitOps update when your Git host can't reach Portainer Put Portainer environments in groups and give users access to a whole group docker run -d -p 9001:9001 --name portainer_agent --restart=always \ Deploy the container → Replace Public IP: 192.168.1.20 All Portainer tips (28) All topics

Link