services.ncps.cache.lock.backend
Lock backend to use: 'local' (single instance), 'redis' (distributed), 'postgres' (distributed, requires PostgreSQL).
Advisory Locks and Connection Pools: If you use PostgreSQL as your distributed lock backend, each active lock consumes a dedicated connection from the pool. A single request can consume up to 3 connections simultaneously.
To avoid deadlocks under concurrent load, ensure
services.ncps.cache.database.pool.maxOpenConns is
significantly higher than your expected concurrency (at least
50-100 is recommended).
- Type
one of "local", "redis", "postgres"- Default
"local"- Declared
- <nixpkgs/nixos/modules/services/networking/ncps.nix>