From 93b032869079c47e219ff41831f4bce37edbc810 Mon Sep 17 00:00:00 2001 From: Cooper Lees Date: Tue, 9 Jul 2024 18:50:23 -0700 Subject: [PATCH] Shard out disabling running during firstboot (provisioning) 80% -> 100% Summary: bumpsign This diff was created using http://fburl.com/chefshardbump Differential Revision: D59290155 fbshipit-source-id: fbd2e93fae947c7f4999d527c12642251ac3b5f3 --- cookbooks/fb_timers/README.md | 5 +++++ cookbooks/fb_timers/recipes/default.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cookbooks/fb_timers/README.md b/cookbooks/fb_timers/README.md index 339a9482..5c363f96 100644 --- a/cookbooks/fb_timers/README.md +++ b/cookbooks/fb_timers/README.md @@ -52,6 +52,11 @@ A global attribute `node['fb_timers']['enable_named_slices']` controls whether the timer units that systemd sets up will be bound to an individual slice, versus using `timers.slice` for everything. +This cookbook does not setup timers until `node.firstboot_any_phase?` +phases are complete. This is due to timers not being required to bootstrap +a new system. If you have a lot of timers, this cookbook can eat up a lot of +first boot runtime. + ### Fields Required fields: diff --git a/cookbooks/fb_timers/recipes/default.rb b/cookbooks/fb_timers/recipes/default.rb index 82178c5a..bd7514b8 100644 --- a/cookbooks/fb_timers/recipes/default.rb +++ b/cookbooks/fb_timers/recipes/default.rb @@ -59,5 +59,5 @@ end fb_timers_setup 'fb_timers system setup' do - not_if { (node.firstboot_os? || node.firstboot_tier?) && node.in_shard?(79) } + not_if { node.firstboot_os? || node.firstboot_tier? } end