motoki317/Redlock Action

Provides distributed lock via the redlock algorithm.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
actionAction to perform. auto - Locks on this action and unlocks on post-run. lock - Only performs lock. (manual unlock needed!) unlock - Only performs unlock. noauto
hostsRedis hosts, separated by comma.nolocalhost:6379
nameName of the lock.yes
concurrencyMaximum lock "concurrency". If greater than 1, multiple clients are allowed to acquire the resource at the same time up to the specified concurrency, achieving semaphore-like behavior. no1
duration-secondsNumber of seconds to acquire the resource for. After the duration has passed without unlocking, the resource will be automatically unlocked. no60
retry-countThe max number of times this action will attempt to lock a resource before giving up.no60
retry-delay-msThe time in milliseconds between attempts.no1000
retry-jitter-msThe max time in milliseconds randomly added to retries to improve performance under high contention.no200
valueRandom lock value - only needed for manual "unlock" action.no""
heartbeat-pidHeartbeat pid - only needed for manual "unlock" action.no""
namedescription
valueLock random value - used in manual unlock to release the resource.
heartbeat-pidHeartbeat pid - used in manual unlock to release the resource.