mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-26 14:49:26 +08:00
08d466b6ab
Co-authored-by: Oliver King <oking3@uncc.edu>
7 lines
254 B
Lua
7 lines
254 B
Lua
local weight = tonumber(ARGV[num_static_argv + 1])
|
|
|
|
local capacity = process_tick(now, false)['capacity']
|
|
local nextRequest = tonumber(redis.call('hget', settings_key, 'nextRequest'))
|
|
|
|
return conditions_check(capacity, weight) and nextRequest - now <= 0
|