← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1788518] Re: Intervals should be staggered

 

This bug was fixed in the package landscape-client - 18.01-0ubuntu3.4

---------------
landscape-client (18.01-0ubuntu3.4) bionic; urgency=medium

  * d/p/product-name-vminfo-1828217.patch: Add product_name to things scanned
    for vm_info (LP: #1828217)
  * d/landscape-client.postinst: Set default value if data_path is
    missing. (LP: #1728681)
  * d/p/stagger-launch-1788518.patch: Add option to stagger launch of broker
    plugins. (LP: #1788518)
  * d/landscape-client.init: Fix init script stop action (LP: #1833137)

 -- Simon Poirier <simon.poirier@xxxxxxxxxxxxx>  Thu, 27 Jun 2019
11:07:30 -0400

** Changed in: landscape-client (Ubuntu Bionic)
       Status: Fix Committed => Fix Released

** Changed in: landscape-client (Ubuntu Disco)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1788518

Title:
  Intervals should be staggered

Status in Landscape Client:
  Fix Committed
Status in landscape-client package in Ubuntu:
  Fix Released
Status in landscape-client source package in Xenial:
  Fix Committed
Status in landscape-client source package in Bionic:
  Fix Released
Status in landscape-client source package in Disco:
  Fix Released

Bug description:
  [Impact]

   * Restarting hosts/clouds of multiple VMs or containers managed by
     landscape leads to synchronized monitoring tasks. This can generate
     significant recurring load.

   * The fix adds a configurable randomized interval to scheduled tasks.

  [Test Case]

  sudo landscape-config --stagger-launch 0.5 --log-level debug
  # accept client in server interface
  sudo tail -f /var/log/landscape/monitor.log
  # Check for debug log entries mentioning monitors getting delayed

  [Regression Potential]

   * Although changing the scheduler for non-fixed loop intervals could
     have been slightly better at avoid load peaks on shared hosts, the
     current approach has been deemed safer as it simply adds an initial
     delay to tasks. The current logic of scheduling is unchanged. 

   * External scripts expecting monitors to run instantly on
     landscape-client restart could be affected. I'm not aware of
     any such case, as the async nature of the code never made that
     guarantee.

   * The stagger interval is configurable with a flag and a configuration
     entry to work around regressions.

  [Original Description]

  The various intervals appear to be statically determined from program
  start.  As a practical example, a rebooted VM host with a large number
  of guests means all the guests start landscape-client at about the
  same time.  Then every 30 minutes, package-monitor runs (which is a
  rather heavy operation).  Multiply by a hundred or so and you've got a
  large flood on the host.

  When the client starts up, it would be good to have the initial
  schedule for each timer be ((interval / 2) + random(interval)), so the
  collective load is spread out over the entire interval.

To manage notifications about this bug go to:
https://bugs.launchpad.net/landscape-client/+bug/1788518/+subscriptions