If you want to run HA (High Availability) solutions in Oktawave, you should take advantage of the subregions. Subregions are separated pools of resources that do not share infrastructure elements with each other other than the network infrastructure, need to communicate between them.
This tutorial will show you how to create a simple HA solution, using the features available in Oktawave, such as subregions and the load balancer. From the point of view of service we want to achieve the following architecture.
The selection of the subregion should be made during creation or cloning of the instance.
When you click Show advanced options button during creation of the instance, you will be able to choose the subregion.
Subregion can also be selected during instance cloning operation.
During creation of instances web01 and db01, just select a subregion PL-001, and during creation of instances web02 and db02, just select a subregion PL-002. Within a few minutes you can create the infrastructure for HA solutions in Oktawave panel.
Web instances, beyond different IP addresses in OPN, won't be too much different from each otcher. If your site or application going to serve a lot of static content, consider using the OCS. In terms of HA it is also advantageous, because each object in the OCS is stored in a number of replicas. In our knowledge base you will find an article about how to use the OCS in this way, on the example of the service based on one of the most popular CMS - Wordpress.
We still have to choose methods to ensure data consistency between database instances. There are a few possibilities, we can use for example MySQL replication mechanism, or build a simple cluster based on DRBD.
How to set up a container of Load balancer, you will learn from our tutorial: https://kb.oktawave.com/Knowledgebase/Article/View/59/5/how-to-create-containers-and-how-to-manage-them