Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-5544

Introduce a new config - UpdateControlMapIntervalSeconds

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Story Points:
      3
    • Backlog:
      yes
    • Days in progress:
      0

      Description

      It seems we're overloading multiple use cases into two configs:

      • Update check interval - UpdatePollIntervalSeconds
      • Control map update interval** - logic depending on both UpdatePollIntervalSeconds and UpdateControlMapExpirationTimeSeconds
      • Pause timeout due to no server connection - UpdateControlMapExpirationTimeSeconds

      I find it would be simpler to grasp the logic and communicate it to users if there was a single config per use case. Something like this instead:

       

      • Update check - UpdatePollIntervalSeconds
      • Control map update [New] - UpdateControlMapPollIntervalSeconds
      • Pause timeout due to no server connection - UpdateControlMapExpirationTimeSeconds

       

      Example of the parameter description:

      UpdateControlMapPollIntervalSeconds - the polling interval at which the client checks for new control maps once the deployment has started to take place. This influences how quickly will the device respond to continuing after a pause.

      Acceptance criteria:

      • UpdateControlMapPollIntervalSeconds added to client config.
      • Default value is the value of UpdatePollIntervalSeconds.
      • If value is <= 0, warn and set to default value.
      • Warn (once) if UpdateControlMapPollIntervalSeconds > (UpdateControlMapExpirationTimeSeconds / 2).
      • Change code which uses UpdatePollIntervalSeconds as a fallback to use UpdateControlMapPollIntervalSeconds instead (it must still be smaller than updateMapFromServerIn).
      • Unit test for the state.
      • Variable documented in mender-docs.
        • Document that it can not be higher than UpdateControlMapExpirationTimeSeconds / 2.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Martinovic Alan Martinovic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: