How to convert physical bare metal configuration to Tianyi cloud host configuration

Time:2022-5-7

In the construction of IT system, the IT resource requirements given by software platform manufacturers (ISVs) are often physical bare metal configuration. After going to the cloud, how to change the physical bare metal configuration into virtual machine configuration has become a problem that needs to be seriously considered. Let’s discuss this problem today.
Take the application server as an example. If the software platform manufacturer gives Huawei rh2288h V3 as a physical bare metal machine, the configuration is as follows:
How to convert physical bare metal configuration to Tianyi cloud host configuration

After getting the server configuration, we should first check the application scenario of this server to confirm whether the virtual machine can be used in this scenario. For big data applications, HPC high-performance computing and Oracle RAC clusters, cloud based and physical bare computing are recommended, but virtual machine is not recommended.
CPU, memory and storage are the key to converting physical bare metal configuration to virtual machine configuration.
Let’s start with the least important configurations one by one.

I. power supply, optical drive and guide rail
It doesn’t need to be considered. The host of the virtual machine is already a dual redundant power supply, and the virtual machine does not need to consider the power supply. CD drive… Remember the last time you used your CD-ROM drive? guide…

2、 FC HbA card
FC HbA cards are used to physically connect bare metal to FC SAN storage. The cloud disk of virtual machine has replaced FC SAN storage, and FC HbA card is no longer needed.

III. network card
In the physical bare metal scenario, the network card generally needs dual network card redundancy, that is, two physical network cards are bound into one logical network card to realize the active and standby switching or load balancing of the network card. After using virtual machine, only one virtual network card is generally enough, and the redundancy of network card does not need to be considered. Dual network card redundancy has been made at the bottom of cloud platform.
The scenario of multiple network cards is that the virtual machine accesses multiple VPC network segments. The virtual machine can support up to 12 network cards.
Corresponding to this configuration, only one Gigabit virtual network card is required.

4、 Store
In the physical bare metal scenario, two hard disks are generally configured as standard for RAID1 redundancy, and the actual available storage is only the capacity of one hard disk. Tianyi cloud cloud hard disk has realized three copy redundancy at the bottom, so the raid card is not needed after it is put into the cloud. Is it OK to configure 300gb cloud disk drive in this scenario?
Experienced users will find that the actual capacity of the hard disk with the marked capacity of 300g and 600g bought in the market does not have 300g and 600g after installing the operating system. Why?
This is because the marked capacity of the hard disk is converted according to 1000 carry, that is, 1KB = 1000bit, 1MB = 1000KB, 1GB = 1000mb, 1TB = 1000gb. We know that in the computer, 1KB is actually equal to 1024bit, 1MB = 1024 KB = 1048576 bit. In this calculation, it is equivalent to marking 1000 on the marked capacity 1000 1000 / 1024 / 1024 / 1024 = 0.93 discount. Corresponding to this scenario, 300g hard disk actually has only 279gb capacity, while 600g hard disk actually has only 558g capacity. The capacity of Tianyi cloud hard disk does not earn any price difference. 300gb cloud hard disk is identified as 300gb on the virtual machine.
After the virtual machine is installed in the cloud, the virtual machine will give a 40g system free of charge, and the space occupied by the 40g system disk can be subtracted from the 279g capacity. That is, if a 239g data disk is configured, it can completely benchmark the two 300g hard disks of the physical bare metal.
Of course, 239gb of space is more than enough for deploying general applications and data backup. Therefore, it is recommended to configure 200g SAS cloud disk for this scenario. In the future, the space is insufficient, and then expand the capacity elastically.
In combination with the previous article “how to select Tianyi cloud cloud disk”, SAS cloud disk is recommended for most scenarios, SATA cloud disk is recommended for scenarios with more than 2T and low IO requirements, and SSD cloud disk is recommended for database scenarios.

5、 Memory
The configuration of memory and CPU is relatively complex, which is also the most important part.
Match the ratio of CPU to our application scenario.
In normal scenarios, the recommended ratio of CPU to memory is 1:2 (1c2g, 2c4g, 4g8g, 8c16g), such as web server and middleware server; in computing intensive scenarios, the recommended ratio of CPU to memory is 1:1 (4c4g, 8c8g, 16c16g), such as data analysis and data mining; in high memory demand scenarios, the recommended ratio of CPU to memory is 1:4 or 1:8 (2c8g, 4c16g, 8c32g, 16c64g), such as relational database and memory database.
Let’s first look at how to determine the memory requirements.
If the physical machine memory is less than or equal to 32g, it is recommended to configure the virtual machine according to the physical machine memory. If the physical machine memory is greater than 32g and less than or equal to 128G, it is recommended to check the application scenario with the application manufacturer, because according to our experience, 32g memory can meet the needs of large middleware such as WebSphere and Weblogic. This scenario is configured with 64g memory. You can check the application scenario with the application manufacturer. It is recommended to configure 32g for business test first. If 32g cannot meet the demand, then flexibly expand to 64g.
If the physical bare metal memory is greater than 128G, it is recommended to use the cloud physical bare metal solution.

6: CPU
Finally, let’s determine the CPU configuration scheme.
In this scenario, two Intel Xeon e5-2630 CPUs are configured. A single CPU has 6 cores and 12 threads, and the two CPUs have a total of 12 physical cores and 24 threads. Such a configuration can predict that the CPU of this server is likely to be idle most of the time, which is why CPU virtualization technology is produced.
Many friends should have seen such a picture
How to convert physical bare metal configuration to Tianyi cloud host configuration

This picture deeply reveals that the CPU does not have as many cores as possible. It also needs the ability of application software to use multiple cores. Otherwise, one core will be busy and the other cores will be idle.
In the general scenario, the 8-core configuration is already relatively high. Whether to really use 16 cores needs to be seriously considered.
In this scenario, it is recommended to configure an 8-core CPU. If it is determined after the business test that the 8-core can not meet the business needs, we still have the must kill technology of flexible capacity expansion.

Finally, let’s make a summary: the key to converting physical bare metal configuration to virtual machine configuration is to configure CPU and memory. Finally, we should start from the application scenario. We can’t generate virtual machine configuration directly according to the physical machine configuration, and make full use of the advantages of elastic capacity expansion of virtual machine, which saves both trouble and money.