☁️Auto Scaling For Huawei Cloud MRS

Hatice Duyar Keskin
Huawei Developers
Published in
5 min readDec 29, 2023
Huawei

Introduction

Hello Everyone !

Today we will learn how to do automatic scaling for big data components in Huawei Cloud through an example scenario.

Enjoyable reading and developments😊

What is auto scaling?

First of all, we have stated many times that we use the term Auto Scaling to optimize our service by adding or removing ECS ​​on a website during peak hours.

Auto scaling is a cloud computing feature that enables organizations to scale cloud services such as server capacities or virtual machines up or down automatically, based on defined situations such as traffic utilization levels.

Core auto scaling features also allow lower cost, reliable performance by seamlessly increasing and decreasing new instances as demand spikes and drops. As such, auto scaling provides consistency despite the dynamic and, at times, unpredictable demand for applications.

Which service should I use to use big data components at Huawei Cloud?

Map Reduce Service (MRS) provides enterprise-level big data clusters on the cloud. Tenants can fully control clusters and easily run big data components such as Hadoop, Spark, HBase, and Kafka.

Let’s see how this beauty, which is made for compute elements, can be made for Big data components !

Our demo has the following scenario:

A real-time processing service sees an unstable increase in data volume from 7:00 to 13:00 on Monday, Tuesday, and Saturday. For example, 5 to 8 task nodes are required from 7:00 to 13:00 on Monday, Tuesday, and Saturday, and 2 to 4 are required beyond this period.

You can set an auto scaling rule based on a resource plan. When the data volume exceeds the expected value, the number of Task nodes changes with resource loads, without exceeding the node range specified in the resource plan. When a resource plan is triggered, the number of nodes changes within the specified range with minimum affect. That is, increase nodes to the upper limit and decrease nodes to the lower limit.

The road map we will follow to realize the scenario:

  • Creating Cluster on Huawei Cloud MRS
  • Creating a task node group and activating the Auto Scaling option
  • Defining Auto Scaling Policy for task node

1-Creating Cluster on Huawei Cloud MRS

After connecting to Huawei cloud console via a registered account, click MRS in the service list.

Service List Search

Click Buy Cluster button.

MRS Main Page

Select Custom Config option.

MRS Configure Software

Select options like photo.

MRS Configure Software

Select big data components.

MRS Configure Software Big Data Component

Select VPC and cluster features.

MRS Configure Hardware

Enter passwords.

MRS Set Advance Options

Check auto scaling area for config text.

MRS Set Advance Options Auto Scaling Text

Check all options and click I Auto.. and Buy Now selection.

MRS Confirm Configuration

Click Back to Cluster List.

MRS Task Submit

Check cluster name and status.

MRS Active Cluster

Wait status is Running.

MRS Active Cluster Running

2-Creating a task node group and activating the Auto Scaling option

After creating the cluster, we click on the node area within it and then create a task node to activate the autoscalling area.

Click cluster then click Nodes.

Cluster Nodes

Click Add Node Group for Task Node.

Cluster Add Node Group

Select options like photo.

Add Node Group Task

Check creating task node group called node_demo.

Cluster All Nodes

3-Defining Auto Scaling Policy for Task Node

After activating our Auto Scaling option, we can now define our policy for the hours of 07:00–13:00 in our scenario.

Check Auto Scaling Area and click Create Auto Scaling Policy.

Cluster Task Node

Select options like photo.

Create Auto Scaling Policy

Select Scale-out selection.

Create Auto Scaling Policy Scale-out

Select options like photo.

Edit Rule

Select I agree.. selection and click OK.

Policy Agreement

Check task node.

Cluster Task Node Check

Check node status

Cluster Task Node Check Status

Check task node status and Status is Running.

Cluster Task Node Running Status

After seeing the node Running expression on the task, we defined the Autoscaling policy rule for the cluster. The number of nodes will be increased or decreased according to density within the specified hours.

Conclusion

I used Huawei Cloud services in my article. I recommend that you pay attention to billing when using these services. You can turn off the services after using them

--

--