High availability HSTS cluster with Redis database
You can create a high availability HSTS cluster, that uses at least
three instances of the server. In addition to HSTS , you configure each instance
with a Redis database and Redis Sentinel.
Introduction to high availability An HSTS HA cluster provides continuous availability and automatic failover if a node fails.HA requirements To successfully deploy a high availability HSTS cluster, your system must meet the following requirements:Configure the cluster Set up an HSTS HA cluster by configuring HSTS , the Redis database, and Redis Sentinel on each node. Configure one node as the Redis primary node, and the others as Redis replica nodes.Start the cluster Restart the Redis database and Sentinel on each node after configuration changes by running specific commands.Test the cluster You can run quick tests to verify that your cluster is operating properly. Upgrade the cluster To upgrade your HA cluster to a newer version of HSTS , perform the standard upgrade preparation and installation steps. Cluster maintenance If you need to bring a cluster down for maintenance, you must be careful of how you bring it back up in order not to lose the most recent database information.Cluster startup scripts For startup scripts to work properly, Redis must be configured on each node to automatically save the database on every node, (as described in Configure the cluster ). Redis Sentinel API You can use the Redis Sentinel API to get information about the Redis nodes, test failover, and reconfigure Sentinel at run time, among other tasks.