summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorFelix Barbeira <fbarbeira@gmail.com>2015-10-26 09:13:45 +0100
committerFelix Barbeira <fbarbeira@gmail.com>2015-10-26 09:13:45 +0100
commit032022b6a83f5a207b29bf65aeb6399a0c372fef (patch)
tree11ae9e6d57692d8e7db12ab5fc38c5c23c9be3df /README.md
parente2c493fc0fb5efe0500e135d6ed1b78f7c5b5038 (diff)
Include variable 'RandomSleep'.
When the apt job starts, it will sleep for a random period between 0 and APT::Periodic::RandomSleep seconds. The default value is "1800" so that the script will stall for up to 30 minutes (1800 seconds) so that the mirror servers are not crushed by everyone running their updates all at the same time. Only set this to 0 if you use a local mirror and don't mind the load spikes. Note that while the apt job is sleeping it will cause the execution of the rest of your cron.daily jobs to be delayed.
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2ac0abd..2bc0ad8 100644
--- a/README.md
+++ b/README.md
@@ -93,6 +93,7 @@ Using unattended\_upgrades simply consists of including the module and if needed
* `minimal_steps` (`true`): Split the upgrade process into sections to allow shutdown during upgrade.
* `origins`: The repositories from which to automatically upgrade included packages.
* `package_ensure` (`installed`): The ensure state for the 'unattended-upgrades' package.
+* `random_sleep` (`300`): Seconds of delay on the cron job execution.
* `size` (`0`): Maximum size of the cache in MB.
* `update` (`1`): Do "apt-get update" automatically every n-days.
* `upgrade` (`1`): Run the "unattended-upgrade" security upgrade script every n-days.