chore: increase max connection size of pg (#344)

This commit is contained in:
Nathan.fooo 2024-02-23 02:21:02 +08:00 committed by GitHub
parent b73e7045dc
commit bf3837b44b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@ impl RealtimeMetrics {
}
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);
}

View File

@ -94,7 +94,7 @@ pub fn get_configuration() -> Result<Config, anyhow::Error> {
require_ssl: get_env_var("APPFLOWY_DATABASE_REQUIRE_SSL", "false")
.parse()
.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()
.context("fail to get APPFLOWY_DATABASE_MAX_CONNECTIONS")?,
database_name: get_env_var("APPFLOWY_DATABASE_NAME", "postgres"),