Page 1 of 1

pre-downloading of packages.

Published: September 15, 2017 - 4:51 PM
by satlani
Hello,

We have machines across several branches that don't have secondary repositories (due to time and budget constraints :D
).
During package updates, for example Java, Acrobat Reader, etc., the bandwidth of these branches is strained, causing slowdowns.

I would like to disable the preloading or automatic execution of updates. I think it's enough to set `use_hostpackages` to 0 in `wapt.ini`, but I'm not sure.

Thank you in advance.

Re: Pre-downloading packages.

Published: September 16, 2017 - 6:06 PM
by sfonteneau
Hello,

here are a few solutions for you:

- Remove the `waptupdate_task_periode` line from the `wapt-get.ini` file. The workstation will no longer perform automatic downloads, but it will also no longer update itself. You will have to initiate the actions manually (which is essentially just postponing the problem; the package has to be downloaded eventually).

- Alternatively, you can set a bandwidth limit on the WAPT server for remote sites to limit congestion. You can even set schedules to remove the bandwidth limit at night to open the floodgates!

- Another solution: if the upload speed at headquarters is saturated (where the WAPT server is located), you can replicate to a cloud server (like OVH) that has a 100 Mbps connection, then configure the clients at the remote sites to point to this server. This way, when clients download WAPT packages, your headquarters will not be affected.

- Another solution if your budget is limited: use a Raspberry Pi as a secondary repository... it's inexpensive...

- Last solution: You can transform a PC at the remote site into a secondary repository (with Apache and the Syncthing solution for Windows).

Warning! Regarding this last point

: - The problem is that if the repository machine is turned off, the other machines at the site will no longer function...
- Also, you need significant disk space on the remote machine to accommodate all the WAPT packages.
- Also... this can impact the machine's performance when other clients at the site download their packages from it.

It's up to you to make the right decision!

Note regarding `use_hostpackage`: this tells the machine not to try to install its own machine package.

Re: Pre-downloading packages.

Published: September 18, 2017 - 2:00 PM
by satlani
Hello,

Thank you for your reply. I'm thinking of initially going with the "waptupdate_task_periode" solution.
For traffic control, do you have any software to recommend? (server running Windows)

Regards,

Re: Pre-downloading packages.

Published: September 18, 2017 - 8:34 PM
by sfonteneau
I'm not familiar with it, but this might do the trick:
https://technet.microsoft.com/fr-fr/lib ... s.11).aspx