Skip to content

Commit

Permalink
Adding db.t3.small max_connections
Browse files Browse the repository at this point in the history
Amazon RDS Instance:
- Model: db.t3.small
- Mem(GiB): 2

RDS / Parameter groups / default.postgres11:
- max_connections: LEAST({DBInstanceClassMemory/9531392},5000)

Calculations:
- 2 GiB = 2147483648 bytes
- 2147483648/9531392 = 225.30

Setting "db.t3.small" max_connections to 225.

Signed-off-by: Amador Pahim <apahim@redhat.com>
  • Loading branch information
apahim committed Aug 5, 2020
1 parent c026b7f commit 1b90d0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rds.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ var DBMaxConnections = map[string]map[string]int64{
"default.postgres10": 112,
"default.postgres11": 112,
},
"db.t3.small": map[string]int64{
"default": 225,
"default.postgres10": 225,
"default.postgres11": 225,
"default.postgres12": 225,
},
"db.m3.medium": map[string]int64{
"default": 392,
},
Expand Down

0 comments on commit 1b90d0e

Please sign in to comment.