chore: increase max connection size of pg (#344)
This commit is contained in:
parent
b73e7045dc
commit
bf3837b44b
|
|
@ -46,6 +46,7 @@ impl RealtimeMetrics {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn record_encode_collab_mem_hit_rate(&self, rate: f64) {
|
pub fn record_encode_collab_mem_hit_rate(&self, rate: f64) {
|
||||||
|
trace!("[metrics]: encode collab hit rate: {}", rate);
|
||||||
self.encode_collab_mem_hit_rate.set(rate as i64);
|
self.encode_collab_mem_hit_rate.set(rate as i64);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ pub fn get_configuration() -> Result<Config, anyhow::Error> {
|
||||||
require_ssl: get_env_var("APPFLOWY_DATABASE_REQUIRE_SSL", "false")
|
require_ssl: get_env_var("APPFLOWY_DATABASE_REQUIRE_SSL", "false")
|
||||||
.parse()
|
.parse()
|
||||||
.context("fail to get APPFLOWY_DATABASE_REQUIRE_SSL")?,
|
.context("fail to get APPFLOWY_DATABASE_REQUIRE_SSL")?,
|
||||||
max_connections: get_env_var("APPFLOWY_DATABASE_MAX_CONNECTIONS", "20")
|
max_connections: get_env_var("APPFLOWY_DATABASE_MAX_CONNECTIONS", "40")
|
||||||
.parse()
|
.parse()
|
||||||
.context("fail to get APPFLOWY_DATABASE_MAX_CONNECTIONS")?,
|
.context("fail to get APPFLOWY_DATABASE_MAX_CONNECTIONS")?,
|
||||||
database_name: get_env_var("APPFLOWY_DATABASE_NAME", "postgres"),
|
database_name: get_env_var("APPFLOWY_DATABASE_NAME", "postgres"),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue