Page 1 of 1

random wapt_update

Published: February 8, 2016 - 9:55 AM
by Floflobel
Hello,

I'm looking to create a random `wapt_update` command that will download the latest packages assigned to the computer throughout the day.
Unfortunately, it's only possible to assign a fixed value.
This would prevent network overload and distribute the load evenly.

Thank you.

Random wapt_update

Published: April 3, 2016 - 7:43 PM
by markham
Hello,

A few thoughts:

1) Since client machine startups aren't perfectly synchronized, the installation staggering happens naturally.

But in case that's not enough:

2) This task can be performed from a script on the server using `psexec \\* -u admin` or `system -p password wapt-get`...

3) We could imagine deploying a scheduled task that, when the machines start, calls a script with an infinite loop that randomly invokes the `wapt-get` command.

Random wapt_update

Published: April 7, 2016 - 2:44 PM
by Floflobel
Hello,

thank you for your feedback.
I don't want the admin password transmitted in plain text over the network.

Creating a scheduled task might be a good idea.

Random wapt_update

Published: April 7, 2016 - 5:12 PM
by sfonteneau
To my knowledge:

A download of the packages to be updated is performed when the machine starts up.

Then, the "waptupdate_task_period" parameter manages how often the WAPT client should check and download the new packages. I wonder if a random value isn't already added to this.

PC startup times are generally staggered, except when PCs are started in the morning via Wake-on-LAN.
At my place, about 70 PCs are started via Wake-on-LAN in the morning; there's a bit of a load for a few minutes, then it calms down. But since it's morning, no one notices.

Why not add a random value? But how do you find a parameter that pleases everyone? ;)

We could, however, create a package that will write a random value for waptupdate_task_period to the wapt-get.ini file.

A value between 60 and 120 (minutes).

Simon

Random wapt_update

Published: April 7, 2016 - 6:22 PM
by sfonteneau
Example package to apply a random value to waptupdate_task_.;

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *
import random

uninstallkey = []

def install():
    print('installing smp-random-waptupdate_task_period')
    valeur_waptupdate_task_period = random.randint(60,120)
    inifile_writestring(WAPT.config_filename,'global','waptupdate_task_period',valeur_waptupdate_task_period)

Random wapt_update

Published: April 11, 2016 - 8:59 AM
by Floflobel
It's really simple, but I hadn't thought of it.
I'll run a couple of tests on my end.

Thanks,