Logo

dev-resources.site

for different kinds of informations.

DB POOL

Published at
10/9/2023
Categories
db
go
postgres
Author
pujith786
Categories
3 categories in total
db
open
go
open
postgres
open
Author
9 person written this
pujith786
open
DB POOL

Hi team need help with DB Pool,
consider the following Scenario

DB pool settings are:
dbConn.SetMaxIdleConns(80)
dbConn.SetMaxOpenConns(250)
dbConn.SetConnMaxLifetime(5 * time.Minute)

sql.DBStats{MaxOpenConnections:250, OpenConnections:250, InUse:250, Idle:0, WaitCount:399, WaitDuration:4442935235, MaxIdleClosed:0, MaxIdleTimeClosed:0, MaxLifetimeClosed:69}

MY DB pool size is not coming down.Post this we have increased the size to 2000 and we are restarting our service once in a day.

DB Stat : sql.DBStats{MaxOpenConnections:2000, OpenConnections:154, InUse:151, Idle:3, WaitCount:0, WaitDuration:0, MaxIdleClosed:0, MaxIdleTimeClosed:0, MaxLifetimeClosed:258}

How can we resolve this?

db Article's
30 articles in total
Favicon
🛠️ DB Migration For Golang Services, Why it matters? 🐹
Favicon
MongoDb Atlas: manual backup and restore data
Favicon
Import the database from the Heroku dump
Favicon
Why MongoDB? Exploring the Benefits and Use Cases of a Leading NoSQL Database
Favicon
Database Pool Management with Sidekiq and load_async
Favicon
HyperGraphs In Relation Model
Favicon
ACID in DB
Favicon
Use EXISTS instead of COUNT > 0 when checking if records exist
Favicon
Converting MongoDB ObjectId to Timestamp in Snowflake: A Friendly Guide
Favicon
Level UP your RDBMS Productivity in GO
Favicon
Iniciar sesion en mongodb con usuario y contraseña | Mongodb
Favicon
DB POOL
Favicon
Exploring String Field Types in Databases: CHAR, VARCHAR, and TEXT
Favicon
How to connect to MySQL DB
Favicon
How to provision an AWS RDS MySQL Database
Favicon
Amazon RDS for MySQL
Favicon
Amazon Aurora
Favicon
Amazon RDS
Favicon
Understanding the Differences Between SQL and NoSQL Databases
Favicon
Advantages of Relational DB, Graph DB, and RGDB
Favicon
Understanding Foreign Keys in PostgreSQL
Favicon
What's behind scenes of PostgreSQL from Apache AGE?
Favicon
Spring Boot 3 with H2 database example
Favicon
Basic MongoDB Commands
Favicon
Guide to Apache AGE 1.3.0 Release for PostgreSQL 13
Favicon
Laravel useful DB/Eloquent functions:
Favicon
Docker/DB - Isn't it better to set share directory between host and db container?
Favicon
Alojar Wordpress en la nube (Google Cloud)
Favicon
IceFireDB:A database that supports IPFS storage and Redis protocol, interesting direction.
Favicon
MongoDB Complete Backup And Restore Command With Atlas

Featured ones: