Skip to content

Commit 9cd2054

Browse files
sirainencmouse
authored andcommitted
auth/sql: Add section about using worker processes
1 parent 1032207 commit 9cd2054

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

data/updates.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const updates = {
2525
auth_policy_reject: '2.4.0',
2626
auth_protocol_handshake_changed: '2.4.0',
2727
auth_server_common_secured: '2.4.0',
28+
auth_sql_workers_changed: '2.4.1',
2829
dcrypt_same_cipher_algo_added: '2.4.0',
2930
dict_protocol_v4: '2.4.0',
3031
doveadm_ex_expired_code: '2.4.0',

docs/core/config/auth/databases/sql.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ fields and use [[link,auth_prefetch]] to use those fields.
130130
If you're using Dovecot's deliver you'll still need to have the
131131
[[setting,userdb_sql_query]] working.
132132

133+
## Worker processes
134+
135+
MySQL and SQLite lookups are always done using `auth-worker` processes.
136+
137+
[[changed,auth_sql_workers_changed]] PostgreSQL and Cassandra lookups are
138+
done by default in the main `auth` process. They can be made to use
139+
`auth-worker` processes by setting [[setting,passdb_use_worker,yes]] and
140+
[[setting,userdb_use_worker,yes]].
141+
133142
## High Availability
134143

135144
You can add multiple [[link,sql_mysql]] or [[link,sql_postgresql]] settings to

0 commit comments

Comments
 (0)