Add comment for database pool size memory size (#5503)
This commit is contained in:
parent
7daa1c6543
commit
fcd4bbe8e3
@ -8,6 +8,9 @@
|
|||||||
# https://www.postgresql.org/docs/current/libpq-connect.html#id-1.7.3.8.3.6
|
# https://www.postgresql.org/docs/current/libpq-connect.html#id-1.7.3.8.3.6
|
||||||
connection: "postgres://lemmy:password@localhost:5432/lemmy"
|
connection: "postgres://lemmy:password@localhost:5432/lemmy"
|
||||||
# Maximum number of active sql connections
|
# Maximum number of active sql connections
|
||||||
|
#
|
||||||
|
# A high value here can result in errors "could not resize shared memory segment". In this case
|
||||||
|
# it is necessary to increase shared memory size in Docker: https://stackoverflow.com/a/56754077
|
||||||
pool_size: 30
|
pool_size: 30
|
||||||
}
|
}
|
||||||
# Pictrs image server configuration.
|
# Pictrs image server configuration.
|
||||||
|
@ -153,6 +153,9 @@ pub struct DatabaseConfig {
|
|||||||
pub(crate) connection: String,
|
pub(crate) connection: String,
|
||||||
|
|
||||||
/// Maximum number of active sql connections
|
/// Maximum number of active sql connections
|
||||||
|
///
|
||||||
|
/// A high value here can result in errors "could not resize shared memory segment". In this case
|
||||||
|
/// it is necessary to increase shared memory size in Docker: https://stackoverflow.com/a/56754077
|
||||||
#[default(30)]
|
#[default(30)]
|
||||||
pub pool_size: usize,
|
pub pool_size: usize,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user