Skip to content

read-only error on aws aurora mysql failover action #2050

Open
@itjobs-levi

Description

@itjobs-levi

When failover of aws aurora mysql occurs, "The MySQL server is running with the --read-only option so it cannot execute this statement" error occurs frequently.
I think it is a temporary phenomenon caused by the promotion of the read node.
However, the nodejs connection pool continuously tries to write to the read node.
It could be that the previous write node was accessed by aws aurora endpoint dns caching.
When aws aurora failover occurs, we have to restart the application to be called as a normal writing node.
Is there any workaround for this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions