Skip to content

Separate Connection limit for slave and master #8799

Closed as not planned
Closed as not planned

Description

@sagar-m-s

Feature Description

Add a new connection variable to separate the connectionLimit for master and slave

The Problem

Currently the slave and master should have same number of connections.
If we want to have a write intensive application we need to make sure the read is also supporting the same amount of connections.
For RDS unless we modify the number of connections or increase the read replica it is difficult.
If we can separate the Connection limit for slave and master it would be great.
For read replica if we want to increase the connection limit we must replicate the connection details multiple times since for RDS it is pointing to the load balancer instead of host

The Solution

If we can separate the Connection limit for slave and master to different variable in both case we can give the connection limit to what we want and solve the problem for mysql

Considered Alternatives

For slave we can replicate the connection details to suffix our use case but for master we need to make sure the slave is capable of supporting same number of connection as master

Relevant Database Driver(s)

DB Type Relevant
aurora-mysql yes
aurora-postgres no
better-sqlite3 no
cockroachdb no
cordova no
expo no
mongodb no
mysql yes
nativescript no
oracle no
postgres no
react-native no
sap no
sqlite no
sqlite-abstract no
sqljs no
sqlserver no

Are you willing to resolve this issue by submitting a Pull Request?

✅

Activity

  1. github-actions commented on Sep 18, 2025

    @github-actions

    TypeORM has returned to active development after recently transitioning to new leadership (see related announcement).

    As part of the new team's efforts to prioritise work on the project moving forward, it is necessary to clean up the backlog of stale issues.

    🧹 This issue is being automatically closed because it has had no activity in the last 6 months.
    If you believe this issue is still relevant, feel free to comment below and the maintainers may reopen it. Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions