userver: component_base
Loading...
Searching...
No Matches
component_base
Name Description Default value
semaphore-name Name of the semaphore within the coordination node.
database-settings Settings that might be used for a group of related distlock instances.
database-settings.dbname The key of the database within ydb component (NOT the actual database path).
database-settings.coordination-node Name of the coordination node within the database.
initial-setup If true, then create the coordination node and the semaphore unless they already exist. true
task-processor The name of the TaskProcessor for running DoWork. the default TaskProcessor, typically main-task-processor
node-settings Settings for coordination node creation.
node-settings.session-grace-period The time after which the lock will be given to another host after a network failure; this timer starts on the coordination node conceptually at the same time as 'session-timeout' timer starts on the service instance.
session-timeout For how long we will try to restore session after a network failure before dropping it. 5s
restart-session-delay Backoff before attempting to reconnect session after it returns "permanent failure". 1s
acquire-interval Backoff before repeating a failed Acquire call. 100ms
restart-delay Backoff before calling DoWork again after it returns or throws. 100ms
cancel-task-time-limit Time, within which a cancelled DoWork is expected to finish. 5s