High Availability and Scaling
In-Memory DB instances
Single-node instance: A single-node instance only has one "primary node". This node accepts customer connections and performs read and write operations. It is a single point of truth and a single point of failure.
Multi-node instance: A multi-node instance contains one "primary node" and one or more "secondary nodes" replicating data from the primary node. The secondary nodes always attempt to keep up-to-date with the primary, but they may lag due to the asynchronous replication. If the current primary node fails, a secondary node elevates to the primary node. The old primary node is automatically fixed and turned secondary.
In-Memory DB instance scaling
You can scale the existing In-Memory DB instances using "horizontal" and "vertical" scaling.
Horizontal scaling is defined as configuring the number of nodes that run in parallel. You can increase or decrease the number of nodes in an instance.
Scaling up the number of nodes does not cause a disruption. However, decreasing may cause a switchover, if the current primary node is removed.
Vertical scaling refers to configuring the size of the individual nodes to process more data and queries. You can change the number of cores and the memory size to have the configuration you need.
During scaling, the existing nodes in an instance are modified after being turned off. In the event of scaling up or down, the downtime is minimal when there are multiple nodes, as the secondary nodes are modified first, followed by the resources. After the modification is complete, the primary node is switched automatically over to a secondary node and the connection is established.
For a single-node instance, you may expect downtime before the Virtual Machine (VM) restarts because the node is modified in place.
You can also increase the size of storage. However, it is impossible to reduce the size of the storage, nor can you change the type of storage. Increasing the size is done on the fly and causes no disruption.
Replication
Replication between the primary and secondary instances is always asynchronous and is not configurable. The primary instance commits a write and confirms it to the client without waiting for secondary nodes to acknowledge it; replication to secondaries happens in the background.
The benefit of asynchronous replication is lower latency, since the client does not wait on secondary acknowledgment. The trade-off is that recent, unreplicated transactions can be lost if a secondary is promoted to primary during a failover. The lag between the primary and secondary nodes is typically a few milliseconds.
Last updated
Was this helpful?