headscale/hscontrol/db
Pallab Pain 9047c09871
feat: add pqsql configs for open and idle connections (#1583)
When Postgres is used as the backing database for headscale,
it does not set a limit on maximum open and idle connections
which leads to hundreds of open connections to the Postgres
server.

This commit introduces the configuration variables to set those
values and also sets default while opening a new postgres connection.
2024-02-09 17:34:28 +01:00
..
addresses.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
addresses_test.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
api_key.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
api_key_test.go Replace the timestamp based state system 2023-09-19 10:20:21 -05:00
db.go feat: add pqsql configs for open and idle connections (#1583) 2024-02-09 17:34:28 +01:00
node.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
node_test.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
preauth_keys.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
preauth_keys_test.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
routes.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
routes_test.go Restructure database config (#1700) 2024-02-09 07:27:00 +01:00
suite_test.go Restructure database config (#1700) 2024-02-09 07:27:00 +01:00
users.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
users_test.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00