Understand how failover replicas on a Vultr Managed Database sync with the primary and serve read queries only.
In a Vultr Managed Database cluster, the attached replica nodes function as failover replicas to maintain high availability and ensure continuous operation in the event of a primary node failure. These replica nodes are read-only and automatically synchronize with the primary node, preserving data consistency across the cluster. Write operations occur exclusively on the primary node, while replica nodes handle read queries, helping distribute load and improve performance for read-heavy workloads.
1 Comment
My Laravel application expects me to specify both write nodes and multiple read-only read nodes.... but I can only find the database managed IPs in the VPC page, which is not straighforward and left me wondering if this is the right way to go. Am I supposed to connect directly to the read replica nodes in my application? Does Vultr handles internally what is a write or read query so that I can only use the provided connection hostname?