Skip to content

Commit

Permalink
Shard out disabling running during firstboot (provisioning) 80% -> 100%
Browse files Browse the repository at this point in the history
Summary:
bumpsign

This diff was created using http://fburl.com/chefshardbump

Differential Revision: D59290155

fbshipit-source-id: fbd2e93fae947c7f4999d527c12642251ac3b5f3
  • Loading branch information
cooperlees authored and facebook-github-bot committed Jul 10, 2024
1 parent 16e1e79 commit 93b0328
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cookbooks/fb_timers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion cookbooks/fb_timers/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 93b0328

Please sign in to comment.