We are using Huawei Virtual machine We often see what affinity and anti affinity are Huawei VM Generally, it is used in conjunction with the anti affinity virtual machine group. When it comes to this, everyone will be puzzled. What does this mean? Why Huawei Virtual machine What about the anti affinity virtual machine group? So in order to answer your questions, Neutrino network Today, let's take you to understand.

Affinity: It can realize close deployment, strengthen network functions, realize close routing of communication, and reduce network losses.
Anti affinity: mainly for high reliability, try to disperse instances. If a node fails, there will be only one instance of application impact.
Scenario assumption: almost all Huawei virtual machines on cloud platforms can be batch generated. Select Chongqing resource pool, and 20 Huawei virtual machines can be created at the same time. So, do these 20 Huawei virtual machines work on the same physical system at the same time on the basic physical system? Do you think so?
Answer: The probability of 20 sets running on one physical system at the same time is very small, but 1~2 sets of low probability events can run in the same physical environment.
So, what will be the impact of one or two of the 20 Huawei virtual machines running the same physical system at the bottom? The impact is that if the basic physical machine fails, the services hosted by the 1-2 Huawei virtual machines may also fail. This is certainly unscientific. So how to solve it?
Micronet believes that in the public cloud resource pool, Huawei VM is completely random on the basic physical hosts allocated during creation. This is not a problem in most cases, but there may be potential risks for Huawei virtual machines with high availability clusters or load balancing clusters. If the Huawei virtual machine in the cluster is randomly assigned to the same physical host, if the physical host of the Huawei virtual machine fails, the entire cluster will fail. In fact, in the container environment, there are two strategies: affinity and semi affinity. Huawei's virtual machine layer also has this function. But many people don't care about this strategy. The file shared today is to set up an anti affinity group to prevent small probability events.
Create a Huawei cloud host group, assign Huawei virtual machines with the same functions to Huawei cloud host groups, and set the anti affinity policy. When creating a host group, the anti affinity group is set by default. In this way, when Huawei VM is generated in the same Huawei VM unit, it will not be automatically generated on the basic physical host, thus avoiding the risk of putting all eggs in the same basket.
1. Create a Huawei cloud host group, and add the related Huawei cloud hosts to the cloud dedicated host group.
2. If the Huawei virtual machine has been opened, the power must be turned off before adjustment. To turn off the power, a semi friendly Huawei virtual machine must be configured.
3. Create Huawei Cloud Host Unit
4. Add Huawei VM to Huawei VM.
5. After adding a Huawei virtual machine, re open the Huawei virtual machine.

Micronet believes that for business reasons, two Huawei virtual machines that provide the same service externally can have the same host group. For example, two Huawei virtual machines are both running OA systems. If these two machines are added to the host group, an anti affinity strategy will be formed. In this way, if the basic physical system fails, the OA service can continue to be used.
The above is why Huawei's virtual machine needs to be matched with the anti affinity virtual machine group. I hope it can help you. Huawei Cloud, a micro network agent, is an excellent cloud computing service provider. It can provide the best service for friends who want to rent Huawei VM to open their own online business. It has perfect industry solutions and excellent cloud computing technology. The self-developed pure SSD architecture virtual machine breaks the industry record with 50000 IOPS random read/write speed and 800 Mb/s throughput as performance indicators. The ECS elastic virtual machine uses pure SSD architecture hardware devices. It can easily acquire and enable the cloud in just a few minutes to meet your computing needs. Expanding the flexibility of resource use also saves you computing costs, simplifies IT operations, and enables you to pay more attention to core business innovation.
Huawei VM: hopechilam.com