Skip to content

Commit

Permalink
increasing pool size
Browse files Browse the repository at this point in the history
  • Loading branch information
leboiko committed Dec 16, 2024
1 parent 5cc9bbf commit 601439a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kube_files/services/graphql/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
labels:
io.kompose.service: graphql-engine
spec:
type: ClusterIP
type: LoadBalancer
ports:
- port: 8080
- port: 8081
targetPort: 8080
protocol: TCP
selector:
Expand Down
1 change: 1 addition & 0 deletions shared-utils/src/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use sqlx::{postgres::PgPoolOptions, PgPool};
pub async fn connect_to_db(database_url: &str) -> Result<PgPool, LibError> {
PgPoolOptions::new()
.min_connections(5)
.max_connections(20)
.connect(database_url)
.await
.map_err(|error| LibError::PostgresConnectError(error.to_string()))
Expand Down

0 comments on commit 601439a

Please sign in to comment.