Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Disable man-db updates during package upgrade/installation #5

Open
blaedd opened this issue Dec 16, 2020 · 1 comment
Open

Disable man-db updates during package upgrade/installation #5

blaedd opened this issue Dec 16, 2020 · 1 comment

Comments

@blaedd
Copy link

blaedd commented Dec 16, 2020

In the worker-startup-script.sh script, on an f1-micro instance, in us-east1, the man-db package postinst and triggers take 7 minutes to run, on first boot. This is a bit of a drag, and an updated mandb doesn't seem essential for these instances.

With the stock startup script.

Dec 16 06:46:08 slow-vm GCEMetadataScripts[378]: 2020/12/16 06:46:08 GCEMetadataScripts: startup-script: Processing triggers for man-db (2.8.5-2) ...
Dec 16 06:52:54 slow-vm GCEMetadataScripts[378]: 2020/12/16 06:52:54 GCEMetadataScripts: startup-script: Processing triggers for dbus (1.12.20-0+deb10u1) ...

With man-db updates triggered by packages disabled.

Dec 16 06:45:37 faster-vm GCEMetadataScripts[374]: 2020/12/16 06:45:37 GCEMetadataScripts: startup-script: Processing triggers 
for man-db (2.8.5-2) ...
Dec 16 06:45:37 faster-vm GCEMetadataScripts[374]: 2020/12/16 06:45:37 GCEMetadataScripts: startup-script: Not building database; man-db/auto-update is not 'true'.
Dec 16 06:45:37 faster-vm GCEMetadataScripts[374]: 2020/12/16 06:45:37 GCEMetadataScripts: startup-script: Processing triggers for dbus (1.12.20-0+deb10u1) ...
blaedd added a commit to blaedd/gcp-cloud-engineer that referenced this issue Dec 16, 2020
Disable man-db updates initiated the man-db package postinst or
trigger.

This can speed up the first instance startup of an instance using this
script by several minutes on some instance types (notably f1-micro, used
often in the course labs).
@drewhoffer
Copy link

bump

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants