December 1, 2021 By David Nguyen
Lucas Conforti
Karen Tylak
3 min read

Investigating a use case for setting up a resilient infrastructure in a Multi-Zone Region (MZR).

Our first blog post talked about the resilient features provided by IBM Cloud VPC. In this post, we continue exploring cloud infrastructure resiliency by focusing on a use case for setting up a resilient infrastructure in a Multi-Zone Region (MZR). The IBM Cloud VPC infrastructure uses Intel Xeon CPUs and additional Intel technologies.

Basically, an MZR consists of three availability zones. You can use one, two or three of the availability zones. You are not required to use all three availability zones, but to get a more resilient solution, it is best to use all three. With zero extra costs to use all three zones, you get the maximum benefit for one price. Sure, it might be easier and quicker to build everything in a single availability zone, but that can limit the resiliency of your solution.

Choose the components and features you need

Let’s look at an n-tier application. By spreading the infrastructure resources across multiple availability zones, you avoid a single point of failure. Furthermore, if there are any events or issues in an availability zone, they are contained in that availability zone. Your resources in the other two availability zones are still protected and available at a lower capacity, and you avoid a hard down situation:

  • Compute: Create multiple virtual server instances (VSI) of the same capabilities and distribute them across the three zones to avoid a single point of failure. Consider using auto-scale for the compute resources, especially for the web and application tier. With auto-scale, you create multiple instances from a forked image that scale up or down as needed and help control costs. 
  • Load balancers: Application load balancers (ALB) support cross zones and ensure that the requests are distributed across the different zones. You can create stickiness to ensure that the same requestor hits the same resources if required. In addition, the load balancers are also deployed in HA fashion.
  • Snapshots: Take snapshots of the DB storage to use for backups in case the data is corrupted or accidentally deleted.

Use scripts to automate your deployment

Use Terraform to help create a standardized deployment for your resilient infrastructure. Avoid the need for manual creation, which can be time-consuming and prone to some human error due to missing features, misconfiguration or not using best practices. Coupled with IBM Cloud Schematics, you can create workspaces to help manage the different deployment models that you need based on your application requirements. Automation allows for quick repeatable deployments for different applications and different regions.

We created a sample Terraform code for MZR deployment that can be used as a guide for either a learning tool or starter kit. The code does the following:

  • Creates a new VPC
  • Uses all three availability zones
  • Creates a bastion server for management with load balancers
  • Enables some features to help with resiliency

Within 25 minutes, you can have a three-tier architecture deployed in your IBM Cloud.

  • Step 1: Download the sample code.
  • Step 2: Edit the inputvar file.
  • Step 3: Execute Terraform commands.
  • Step 4: Apply and deploy.

For more information on the script and how to use Terraform see, “Creating a resilient three-tier highly available infrastructure VPC with Auto scale by using Terraform.”

Be prepared

Be aware of upcoming maintenance done by IBM. IBM is always improving, patching or hardening the IaaS offerings. By staying in the know, you can further improve your resiliency and anticipate these planned maintenance instances to improve your service level objectives (SLO). Knowing when maintenance is going to be done in the region or availability zone, you can proactively and gracefully route the traffic to a non-impacted site ahead of the maintenance window. Being proactive ensures that the maintenance does not impact any existing users. After the maintenance, you can add the site back into the mix.

Additional resources

Was this article helpful?
YesNo

More from Cloud

IBM Tech Now: April 8, 2024

< 1 min read - ​Welcome IBM Tech Now, our video web series featuring the latest and greatest news and announcements in the world of technology. Make sure you subscribe to our YouTube channel to be notified every time a new IBM Tech Now video is published. IBM Tech Now: Episode 96 On this episode, we're covering the following topics: IBM Cloud Logs A collaboration with IBM watsonx.ai and Anaconda IBM offerings in the G2 Spring Reports Stay plugged in You can check out the…

The advantages and disadvantages of private cloud 

6 min read - The popularity of private cloud is growing, primarily driven by the need for greater data security. Across industries like education, retail and government, organizations are choosing private cloud settings to conduct business use cases involving workloads with sensitive information and to comply with data privacy and compliance needs. In a report from Technavio (link resides outside ibm.com), the private cloud services market size is estimated to grow at a CAGR of 26.71% between 2023 and 2028, and it is forecast to increase by…

Optimize observability with IBM Cloud Logs to help improve infrastructure and app performance

5 min read - There is a dilemma facing infrastructure and app performance—as workloads generate an expanding amount of observability data, it puts increased pressure on collection tool abilities to process it all. The resulting data stress becomes expensive to manage and makes it harder to obtain actionable insights from the data itself, making it harder to have fast, effective, and cost-efficient performance management. A recent IDC study found that 57% of large enterprises are either collecting too much or too little observability data.…

IBM Newsletters

Get our newsletters and topic updates that deliver the latest thought leadership and insights on emerging trends.
Subscribe now More newsletters