pre-downloading of packages.

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
User avatar
satlani
Messages: 7
Registration: March 5, 2017 - 4:57 PM

September 15, 2017 - 4:51 PM

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.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 16, 2017 - 6:06 PM

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.
User avatar
satlani
Messages: 7
Registration: March 5, 2017 - 4:57 PM

September 18, 2017 - 2:00 PM

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,
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 18, 2017 - 8:34 PM

I'm not familiar with it, but this might do the trick:
https://technet.microsoft.com/fr-fr/lib ... s.11).aspx
Locked