You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was originally filed due to a regression after merging #9345 and released in 8.7.0/7.31.0. The change was reverted in #9415 and released in 8.8.1 and 7.32.1. Since this issue contains a possible fix for the regression, we're repurposing this ticket for the original issue described in PUP-11728.
this leads to the fact that the probability of the first launch of the puppet increases over time.
upon reaching 1/3 of the time from the splay_limit it becomes almost 100%.
as a result the agent will perform the first run within 1/3 of the splay_limit. by default it is 10 min (splay_limit 30 min)
Steps to Reproduce
Steps to reproduce the behavior:
add code to lib/puppet/scheduler/splay_job.rb
def ready?(time)
def ready?(time)
+ File.open("/tmp/splay", "a+") do |f|
+ f.write("splay: #{@splay}\n")
+ f.close
+ end
if last_run
super
else
start_time + splay <= time
end
end
joshcooper
changed the title
@splay is recalculated even if the splay_limit has not changed
(PUP-11728) Update splaylimit during daemon run
Jul 25, 2024
joshcooper
changed the title
(PUP-11728) Update splaylimit during daemon run
Update splaylimit during daemon run
Jul 25, 2024
This issue was originally filed due to a regression after merging #9345 and released in 8.7.0/7.31.0. The change was reverted in #9415 and released in 8.8.1 and 7.32.1. Since this issue contains a possible fix for the regression, we're repurposing this ticket for the original issue described in PUP-11728.
Describe the Bug
splay is recalculated even if the splay_limit has not changed
https://puppetcommunity.slack.com/archives/C0W298S9G/p1721059192632569
Expected Behavior
this leads to the fact that the probability of the first launch of the puppet increases over time.
upon reaching 1/3 of the time from the splay_limit it becomes almost 100%.
as a result the agent will perform the first run within 1/3 of the splay_limit. by default it is 10 min (splay_limit 30 min)
Steps to Reproduce
Steps to reproduce the behavior:
Environment
Additional Context
suggested patch:
The text was updated successfully, but these errors were encountered: