You are browsing documentation for a version other than the latest stable release. Switch to the latest stable release, 1.3.

Polling intervals

For security reasons, the Mender client does not require any open ports at the embedded device. Therefore, all communication between the Mender client and the server is always initiated by the client and it is important to configure the client so that the frequency of sending various requests to the server is reasonable for a given setup.

There are two client configuration parameters that allow controlling the frequency of communication between the client and the server:

  • UpdatePollIntervalSeconds sets the frequency the client will send an update check request to the server. Default value: 1800 seconds (30 minutes).

  • InventoryPollIntervalSeconds sets the frequency for periodically sending of inventory data. Inventory data is always sent after each boot of the device, and after a new update has been correctly applied and committed by the device in addition to this periodic interval. Default value: 86400 seconds (one day).

How to choose right intervals

The higher the frequency is (i.e. the lower the configuration value), the sooner the server will be updated with the client inventory data and the client will poll the update install request faster so updates can be deployed more quickly.

But there is a trade-off, as the higher frequency is, the more load server will receive. If many clients are connected to one server, a high frequency will require more resources server-side to keep the environment responsive.

Changing the parameters

Both parameters are stored in the configuration file /etc/mender/mender.conf:

  "ClientProtocol": "http",
  "HttpsClient": {
    "Certificate": "",
    "Key": ""
  "RootfsPartA": "/dev/mmcblk0p2",
  "RootfsPartB": "/dev/mmcblk0p3",
  "UpdatePollIntervalSeconds": 1800,
  "InventoryPollIntervalSeconds": 86400,
  "ServerURL": "",
  "ServerCertificate": "/etc/mender/server.crt"

Before building an image as described in Building Mender Yocto image, you can adjust these configuration settings with the steps described in Configuring polling intervals.

If you have already built an Artifact containing the rootfs, have a look at Modifying a Mender Artifact for steps on how to change these configurations in an existing Artifact.