Skip to content

Write cluster failover, pool stuck with read-only cluster #2556

Description

@francisco4challenge

I am using amazon aurora RDS in my application, with a cluster with 2 endpoints, read and write.
Using Pools, with the host as the cluster endpoint.
var pool = mysql.createPool(...); pool.getConnection( connection => connection.query())

When the primary writer endpoint failsover, the driver seems to be using the available reader endpoint, and insert/update fails (makes sense), but it never switches back to the writer, even when it becomes available.

Is there a way to handle these sittuations?

Activity

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