Operational Remediation Reports
Checkpoint Resume Remediation Report
Admit checkpoint requests against a fixed capacity and turn the remaining slots into an admit, hold, or shed remediation action.
Checkpoint Resume Remediation Report
checkpoint_resume.lua
local requests =
local capacity = 3
local admitted = requests
if admitted > capacity then
admitted = capacity
end
local remaining = capacity - admitted
local action = "admit"
if remaining == 1 then
action = "hold"
elseif remaining == 0 then
action = "shed"
end
print("requests=" .. requests .. " admitted=" .. admitted .. " remaining=" .. remaining .. " " .. action)
local requests =
local capacity = 3
local admitted = requests
if admitted > capacity then
admitted = capacity
end
local remaining = capacity - admitted
local action = "admit"
if remaining == 1 then
action = "hold"
elseif remaining == 0 then
action = "shed"
end
print("requests=" .. requests .. " admitted=" .. admitted .. " remaining=" .. remaining .. " " .. action)
local requests =
local capacity = 3
local admitted = requests
if admitted > capacity then
admitted = capacity
end
local remaining = capacity - admitted
local action = "admit"
if remaining == 1 then
action = "hold"
elseif remaining == 0 then
action = "shed"
end
print("requests=" .. requests .. " admitted=" .. admitted .. " remaining=" .. remaining .. " " .. action)
checkpoint capacity
The checkpoint capacity is modeled with a scalar counter, so the remaining slots stay deterministic and free of coroutine identity while driving the remediation action.