Generation method, system, management method and equipment of cloud computing resource management platform

By encapsulating, packaging, installing and optimizing the cloud computing resource management components on the Shenwei processor, the problem that the existing technology cannot run on the Shenwei processor is solved, and the normal operation of the cloud computing resource management platform is achieved, which promotes the promotion of the The development and independent control capabilities of domestic cloud platforms.

CN113900625BActive Publication Date: 2024-11-26DIANKEYUN (BEIJING) TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010571831.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-22
Publication Date
2024-11-26
Estimated Expiration
2040-06-22

AI Technical Summary

Technical Problem

The existing cloud computing resource management technology cannot run on Shenwei processors, resulting in bottlenecks in the development of domestic cloud platforms and affecting independent and controllable implementation.

Method used

By encapsulating, packaging and installing the authentication management service components, cloud computing resource management control service components, computing resource scheduling service components, mirror resource scheduling service components, network resource scheduling service components and storage resource scheduling service components on the Shenwei processor, packaging, and installation of the authentication management service components. and optimize, adjust dependency packages, dependency versions and configuration files to ensure that these components can be compiled, installed and run normally on the Shenwei processor, and achieve mutual cooperation between each component through business logic optimization.

Benefits of technology

It realizes the operation of cloud computing resource management platform on Shenwei processor, solves the adaptation problem of cloud platform technology on domestic platforms, and promotes the development of domestic cloud platforms and the independent and controllable implementation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113900625B_ABST
    Figure CN113900625B_ABST
Patent Text Reader

Abstract

The present invention provides a method, system, management method and device for generating a cloud computing resource management platform, wherein the generating method includes: encapsulating and packaging installation files, registering a database, creating configuration files, and compiling, installing and running for each service component on a Shenwei processor, obtaining error information and receiving optimization operations based on the error information, so that the components can be compiled, installed and run after the optimization operations are performed; wherein the optimization operations include adjusting the dependency packages related to the encapsulation and packaging, adjusting the dependency versions related to the encapsulation and packaging, and modifying one or more of the created configuration files, or also include adding kernel modules for the drivers in the created configuration files, adding kernel modules for the network part and the storage part on the Shenwei processor; adjusting the configuration files of the components according to the error information corresponding to the resource scheduling information in the optimized component business logic. The above scheme can realize running a cloud computing resource management platform on a Shenwei processor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method for generating a cloud computing resource management platform based on a Shenwei processor, a cloud computing resource management platform system based on a Shenwei processor, a cloud computing resource management method based on a Shenwei processor, an electronic device, and a computer-readable storage medium. Background Art

[0002] Through virtualization technology, computing, storage, network and other resources can be abstracted into computing resource pools, network resource pools and storage resource pools, and these resource pools can be uniformly divided and managed to provide users with virtual resources and virtual service capabilities.

[0003] Cloud computing resource management technology can realize unified scheduling and management of basic virtual resources through components such as authentication management, computing resource management, network resource management, image management, storage resource management, etc. Cloud computing resource management technology can realize the ability to virtualize physical resources and reasonably schedule and manage virtual resources.

[0004] The rapid expansion of cluster resources makes the scheduling and management of virtual resources by cloud platforms extremely important. Cloud platforms have become relatively popular in the X86 architecture, but there is currently no cloud computing resource management technology based on the Shenwei architecture. Moreover, due to the particularity of the architecture system, the existing cloud computing resource management platform cannot run directly on the Shenwei processor. Summary of the invention

[0005] In view of this, the present invention provides a method, system, management method and device for generating a cloud computing resource management platform to realize running the cloud computing resource management platform on the Shenwei processor.

[0006] In order to achieve the above object, the present invention adopts the following scheme:

[0007] According to one aspect of an embodiment of the present invention, a method for generating a cloud computing resource management platform based on a Shenwei processor is provided, comprising:

[0008] On the Shenwei processor, for the authentication management service component, encapsulate and package installation files, register a database, create a configuration file, and compile, install and run. In the case where a first error message is obtained after the compilation, installation and running, a first optimization operation is received according to the first error message, so that the authentication management service component passes the compilation, installation and running after the first optimization operation; wherein the first optimization operation includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files;

[0009] On the Shenwei processor, for the cloud computing resource management control service component, encapsulate and package installation files, register a database, create a configuration file, and compile, install and run. In the case where a second error message is obtained after the compilation, installation and running, a second optimization operation performed according to the second error message is received, so that the cloud computing resource management control service component passes the compilation, installation and running after the second optimization operation; wherein the second optimization operation includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files;

[0010] On the Shenwei processor, for the computing resource scheduling service component, encapsulate and package installation files, register a database, create a configuration file, and compile, install and run. In the case where a third error message is obtained after the compilation, installation and running, a third optimization operation performed according to the third error message is received, so that the computing resource scheduling service component is compiled, installed and run after the third optimization operation; wherein the third optimization operation includes adding a kernel module for the driver in the created configuration file, or also includes encapsulating and packaging related dependency packages, adjusting the encapsulating and packaging related dependency versions, and modifying one or more of the created configuration files;

[0011] On the Shenwei processor, for the image resource scheduling service component, encapsulate and package installation files, register a database, create a configuration file, and compile, install and run. In the case where a fourth error message is obtained after the compilation, installation and running, a fourth optimization operation performed according to the fourth error message is received, so that the image resource scheduling service component is compiled, installed and run after the fourth optimization operation; wherein the fourth optimization operation includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files;

[0012] On the Shenwei processor, for the network resource scheduling service component, encapsulate and package installation files, register a database, create a configuration file, and compile, install and run. In the case where a fifth error message is obtained after the compilation, installation and running, a fifth optimization operation performed according to the fifth error message is received, so that the network resource scheduling service component is compiled, installed and run after the fifth optimization operation; wherein the fifth optimization operation includes adding a kernel module of the network part on the Shenwei processor, or also includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files;

[0013] On the Shenwei processor, for the storage resource scheduling service component, encapsulate and package installation files, register a database, create a configuration file, and compile, install and run. In the case where a sixth error message is obtained after the compilation, installation and running, a sixth optimization operation performed according to the sixth error message is received, so that the storage resource scheduling service component is compiled, installed and run after the sixth optimization operation; wherein the sixth optimization operation includes adding a kernel module of the storage part on the Shenwei processor, or also includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files;

[0014] When the authentication management service component after the first optimization operation, the cloud computing resource management and control service component after the second optimization operation, the computing resource scheduling service component after the third optimization operation, the image resource scheduling service component after the fourth optimization operation, the network resource scheduling service component after the fifth optimization operation, and the storage resource scheduling service component after the sixth optimization operation are all compiled, installed and run, according to the seventh error information generated when the cloud computing resource management and control service component after the second optimization operation sends resource scheduling information to the computing resource scheduling service component after the third optimization operation, the seventh optimization operation is performed on the computing resource scheduling service component after the third optimization operation, so that the computing resource scheduling service component after the seventh optimization operation successfully receives the resource scheduling information of the cloud computing resource management and control service component after the second optimization operation; wherein, the seventh optimization operation includes modifying the configuration file of the computing resource scheduling service component after the third optimization operation.

[0015] In some embodiments, on the Shenwei processor, for the authentication management service component, encapsulate the packaged installation file, register the database, create the configuration file, and compile and install the operation, including: on the Shenwei processor, for the authentication management service component, the kernel module related to the architecture of the Shenwei processor is placed in an independent kernel directory, the packaged installation file is encapsulated, and the database is registered, the configuration file is created, and the compile and install the operation is performed. On the Shenwei processor, for the cloud computing resource management control service component, the packaged installation file is encapsulated, the database is registered, the configuration file is created, and the compile and install the operation is performed, including: on the Shenwei processor, for the cloud computing resource management control service component, the kernel module related to the architecture of the Shenwei processor is placed in an independent kernel directory, the packaged installation file is encapsulated, and the database is registered, the configuration file is created, and the compile and install the operation is performed. On the Shenwei processor, for the computing resource scheduling service component, the packaged installation file is encapsulated, the database is registered, the configuration file is created, and the compile and install the operation is performed, including: on the Shenwei processor, for the computing resource scheduling service component, the kernel module related to the architecture of the Shenwei processor is placed in an independent kernel directory, the packaged installation file is encapsulated, and the database is registered, the configuration file is created, and the compile and install the operation is performed. On the Shenwei processor, for the image resource scheduling service component, encapsulate and package installation files, register a database, create a configuration file, and compile and install and run, including: on the Shenwei processor, for the image resource scheduling service component, encapsulate and package installation files when the kernel module related to the architecture of the Shenwei processor is placed in an independent kernel directory, and register a database, create a configuration file, and compile and install and run. On the Shenwei processor, for the network resource scheduling service component, encapsulate and package installation files, register a database, create a configuration file, and compile and install and run, including: on the Shenwei processor, for the network resource scheduling service component, encapsulate and package installation files when the kernel module related to the architecture of the Shenwei processor is placed in an independent kernel directory, and register a database, create a configuration file, and compile and install and run. On the Shenwei processor, for the storage resource scheduling service component, encapsulate and package installation files, register a database, create a configuration file, and compile and install and run, including: on the Shenwei processor, for the storage resource scheduling service component, encapsulate and package installation files when the kernel module related to the architecture of the Shenwei processor is placed in an independent kernel directory, and register a database, create a configuration file, and compile and install and run.

[0016] In some embodiments, on the Shenwei processor, for the authentication management service component, the packaged installation file, the registration database, the creation of the configuration file, and the compilation, installation and operation are packaged, including: on the Shenwei processor, for the authentication management service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the packaged installation file, the registration database, the creation of the configuration file, and the compilation, installation and operation are packaged. On the Shenwei processor, for the cloud computing resource management and control service component, the packaged installation file, the registration database, the creation of the configuration file, and the compilation, installation and operation are packaged, including: on the Shenwei processor, for the cloud computing resource management and control service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the packaged installation file, the registration database, the creation of the configuration file, and the compilation, installation and operation are packaged. On the Shenwei processor, for the computing resource scheduling service component, the packaged installation file, the registration database, the creation of the configuration file, and the compilation, installation and operation are packaged, including: on the Shenwei processor, for the computing resource scheduling service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the packaged installation file, the registration database, the creation of the configuration file, and the compilation, installation and operation are packaged. On the Shenwei processor, for the image resource scheduling service component, the packaged installation file is encapsulated, the database is registered, the configuration file is created, and the compilation, installation and operation are performed, including: on the Shenwei processor, for the image resource scheduling service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the packaged installation file is encapsulated, the database is registered, the configuration file is created, and the compilation, installation and operation are performed. On the Shenwei processor, for the network resource scheduling service component, the packaged installation file is encapsulated, the database is registered, the configuration file is created, and the compilation, installation and operation are performed, including: on the Shenwei processor, for the network resource scheduling service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the packaged installation file is encapsulated, the database is registered, the configuration file is created, and the compilation, installation and operation are performed. On the Shenwei processor, for the storage resource scheduling service component, the packaged installation file is encapsulated, the database is registered, the configuration file is created, and the compilation, installation and operation are performed, including: on the Shenwei processor, for the storage resource scheduling service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the packaged installation file is encapsulated, the database is registered, the configuration file is created, and the compilation, installation and operation are performed.

[0017] In some embodiments, the seventh optimization operation includes modifying one or more of the PCI interface information, format, and parameters in a configuration file in the computing resource scheduling service component after the third optimization operation.

[0018] According to one aspect of an embodiment of the present invention, a cloud computing resource management platform system based on a Shenwei processor is provided, comprising:

[0019] The authentication management service module, the generation method of which includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing and running the authentication management service component on the Shenwei processor, and receiving a first optimization operation performed according to the first error message in the case where a first error message is obtained after the compilation, installation and running, so that the authentication management service component is compiled, installed and run after the first optimization operation; wherein the first optimization operation includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files;

[0020] A cloud computing resource management control service module, wherein the generation method includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing, and running a cloud computing resource management control service component on a Shenwei processor, and receiving a second optimization operation performed according to the second error message in the case where a second error message is obtained after the compilation, installation, and running, so that the cloud computing resource management control service component passes through the compilation, installation, and running after the second optimization operation; wherein the second optimization operation includes adjusting a dependent package related to encapsulation and packaging, adjusting a dependent version related to encapsulation and packaging, and modifying one or more of the created configuration files;

[0021] A computing resource scheduling service module, wherein the generation method thereof includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing, and running a computing resource scheduling service component on a Shenwei processor, and receiving a third optimization operation performed according to the third error message in the case where a third error message is obtained after the compilation, installation, and running, so that the computing resource scheduling service component is compiled, installed, and run after the third optimization operation is performed; wherein the third optimization operation includes adding a kernel module for a driver in the created configuration file, or also includes encapsulating and packaging related dependency packages, adjusting encapsulating and packaging related dependency versions, and modifying one or more of the created configuration files;

[0022] The image resource scheduling service module, the generation method of which includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing and running the image resource scheduling service component on the Shenwei processor, and receiving a fourth optimization operation performed according to the fourth error message in the case of obtaining a fourth error message after the compilation, installation and running, so that the image resource scheduling service component is compiled, installed and run after the fourth optimization operation; wherein the fourth optimization operation includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files;

[0023] A network resource scheduling service module, wherein the generation method thereof includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing, and running a network resource scheduling service component on a Shenwei processor, and receiving a fifth optimization operation performed according to the fifth error message in the case where a fifth error message is obtained after the compilation, installation, and running, so that the network resource scheduling service component is compiled, installed, and run after the fifth optimization operation; wherein the fifth optimization operation includes adding a kernel module of a network part on the Shenwei processor, or also includes adjusting a dependency package related to encapsulation and packaging, adjusting a dependency version related to encapsulation and packaging, and modifying one or more of the created configuration files;

[0024] A storage resource scheduling service module, wherein the generation method thereof includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing, and running a storage resource scheduling service component on a Shenwei processor, and receiving a sixth optimization operation performed according to the sixth error message in the case where a sixth error message is obtained after the compilation, installation, and running, so that the storage resource scheduling service component is compiled, installed, and run after the sixth optimization operation; wherein the sixth optimization operation includes adding a kernel module of a storage part on the Shenwei processor, or also includes adjusting a dependency package related to encapsulation and packaging, adjusting a dependency version related to encapsulation and packaging, and modifying one or more of the created configuration files;

[0025] The computing resource scheduling service module, its generation method also includes, when the authentication management service component after the first optimization operation, the cloud computing resource management and control service component after the second optimization operation, the computing resource scheduling service component after the third optimization operation, the image resource scheduling service component after the fourth optimization operation, the network resource scheduling service component after the fifth optimization operation, and the storage resource scheduling service component after the sixth optimization operation are all compiled, installed and run, according to the seventh error information generated when the cloud computing resource management and control service component after the second optimization operation sends resource scheduling information to the computing resource scheduling service component after the third optimization operation, performing a seventh optimization operation on the computing resource scheduling service component after the third optimization operation, so that the computing resource scheduling service component after the seventh optimization operation successfully receives the resource scheduling information of the cloud computing resource management and control service component after the second optimization operation; wherein, the seventh optimization operation includes modifying the configuration file of the computing resource scheduling service component after the third optimization operation.

[0026] In some embodiments, the authentication management service module is used to provide authentication services for resource application requests and tokens; the cloud computing resource management control service module is used to process resource scheduling requests and generate resource scheduling tasks, and provide control services for computing, storage, network, and image resources; the computing resource scheduling service module is used to provide virtual machine lifecycle management and bare metal server management capabilities; the image resource scheduling service module is used to provide virtual machine image management capabilities; the network resource scheduling service module is used to provide virtual resource network full lifecycle management capabilities; the storage resource scheduling service module is used to provide cloud hard disk full lifecycle management capabilities.

[0027] According to one aspect of an embodiment of the present invention, a cloud computing resource management method based on a Shenwei processor is provided, which is implemented using the cloud computing resource management platform system based on a Shenwei processor described in any of the above embodiments, and the method includes:

[0028] Utilize the authentication management service module to receive a resource application authentication request from a user, and if the resource application authentication request is authenticated, generate a token and return the token to the user;

[0029] Based on the KVM virtualization monitor suitable for the Shenwei processor, the cloud computing resource management control service module is used to receive the resource scheduling request carrying the token, and the token carried by the resource scheduling request is sent to the authentication management service module;

[0030] Utilize the authentication management service module to verify the validity of the token carried in the resource scheduling request, and if valid, return the result of token verification validity to the cloud computing resource management control service module;

[0031] Based on the KVM virtualization monitor suitable for the Shenwei processor, the cloud computing resource management control service module is used to send the verified valid token and the resource scheduling information in the resource scheduling request to the computing resource scheduling service module;

[0032] Based on the virtualization realized by calling the KVM virtual machine applicable to the Shenwei processor through the libvirt library function, the computing resource scheduling service module is used to send the image resource scheduling request, the network resource scheduling request and the storage resource scheduling request to the image resource scheduling service module, the network resource scheduling service module and the storage resource scheduling service module respectively according to the computing resource scheduling information;

[0033] Virtualization is achieved based on calling the KVM virtual machine suitable for the Shenwei processor through the libvirt library function, and the computing resource scheduling service module is used to receive the schedulable image resource information returned by the image resource scheduling service module, the schedulable network resource information returned by the network resource scheduling service module, and the schedulable storage resource information returned by the storage resource scheduling service module, and resources are created according to the schedulable image resource information, the schedulable network resource information, and the schedulable storage resource information, and the created resources are returned to the user.

[0034] In some embodiments, the cloud computing resource management method based on the Sunway processor further includes:

[0035] Based on the implementation of virtualization by calling the KVM virtual machine suitable for the Shenwei processor through the libvirt library function, the computing resource scheduling service module is used to perform one or more virtual machine lifecycle management and bare metal server management operations, wherein the bare metal server management operations include bare metal server creation, deletion, startup, shutdown, and restart, and the virtual machine lifecycle management includes virtual machine creation, editing, snapshot creation, startup, shutdown, suspension, recovery, pause, resume pause, restart, bind public network IP, unbind public network IP, connect to network, disconnect from network, edit security group, and monitor;

[0036] Using the image resource scheduling service module to perform one or more virtual machine image management operations, wherein the virtual machine image management operations include creating, deleting and editing images;

[0037] Using the network resource scheduling service module to perform one or more virtual resource network life cycle management operations, wherein the virtual resource network life cycle management includes creation, deletion, editing, creation of subnets, editing of subnets, and deletion of subnets of virtual resource networks;

[0038] The storage resource scheduling service module is used to perform one or more cloud hard disk life cycle management operations, wherein the cloud hard disk life cycle management operations include creation, deletion, and editing, and image creation, deletion, and editing.

[0039] According to one aspect of an embodiment of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the above embodiments when executing the program.

[0040] According to one aspect of an embodiment of the present invention, there is provided a computer-readable storage medium on which a computer program is stored, wherein the program, when executed by a processor, implements the steps of the method described in any of the above embodiments.

[0041] The generation method, system, management method and device of the cloud computing resource management platform of the embodiments of the present invention can realize the operation of the cloud computing resource management platform on the Shenwei processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0043] Figure 1 It is a flowchart of a method for generating a cloud computing resource management platform based on a Shenwei processor according to an embodiment of the present invention;

[0044] Figure 2 It is a structural diagram of a cloud computing resource management platform system based on a Shenwei processor according to an embodiment of the present invention;

[0045] Figure 3 It is a flowchart of a cloud computing resource management method based on a Shenwei processor according to an embodiment of the present invention;

[0046] Figure 4 It is a flowchart of a cloud computing resource management method based on Shenwei processor according to a specific embodiment of the present invention. DETAILED DESCRIPTION

[0047] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0048] Since cloud computing resource management technology cannot run on Shenwei processors, cloud platform technology has encountered bottlenecks in the development of domestic platforms, which has seriously affected the ecological construction of domestic cloud platforms and the realization of independent control. To this end, the present invention provides a method for generating a cloud computing resource management platform based on Shenwei processors.

[0049] Figure 1 FIG. 1 is a flow chart of a method for generating a cloud computing resource management platform based on a Shenwei processor according to an embodiment of the present invention. Figure 1 The method for generating a cloud computing resource management platform based on the Shenwei processor in these embodiments may include the following steps S110 to S170.

[0050] The specific implementation of steps S110 to S170 will be described in detail below.

[0051] It should be noted in advance that the authentication management service component, cloud computing resource management and control service component, computing resource scheduling service component, image resource scheduling service component, network resource scheduling service component, and storage resource scheduling service component can be existing components or improved components. Among them, the authentication management service component can provide authentication services for other components to ensure the authentication management function of the cluster; the computing resource scheduling service component can provide deployment and computing capabilities for virtual machines, which is convenient for full life cycle management of virtual machines; the network resource scheduling service component can provide network services for virtual machines to ensure network functions within the cloud platform; the image resource scheduling service component can provide image services for virtual machines to support the image environment for application deployment within the platform; the storage resource service component can provide cloud hard disk storage functions for virtual machines to ensure the storage function of the cloud platform. The above components may not be able to run directly on the Shenwei processor. In this regard, the generation method of the cloud computing resource management platform based on the Shenwei processor provided by the present invention can be used to obtain a cloud computing resource management platform that can run on the Shenwei processor based on the above components.

[0052] Step S110: On the Shenwei processor, for the authentication management service component, encapsulate and package the installation files, register the database, create the configuration files, and compile, install and run. When a first error message is obtained after the compilation, installation and running, receive a first optimization operation performed according to the first error message, so that the authentication management service component can pass the compilation, installation and running after the first optimization operation; wherein, the first optimization operation includes adjusting the dependent packages related to the encapsulation and packaging, adjusting the dependent versions related to the encapsulation and packaging, and modifying one or more of the created configuration files.

[0053] Step S120: On the Shenwei processor, for the cloud computing resource management and control service component, encapsulate and package the installation files, register the database, create the configuration files, and compile, install and run. When a second error message is obtained after the compilation, installation and running, receive a second optimization operation performed according to the second error message, so that the cloud computing resource management and control service component can be compiled, installed and run after the second optimization operation; wherein the second optimization operation includes adjusting the dependent packages related to the encapsulation and packaging, adjusting the dependent versions related to the encapsulation and packaging, and modifying one or more of the created configuration files.

[0054] Step S130: On the Shenwei processor, for the computing resource scheduling service component, encapsulate and package the installation files, register the database, create the configuration file, and compile, install and run. When a third error message is obtained after the compilation, installation and running, receive a third optimization operation performed according to the third error message, so that the computing resource scheduling service component can be compiled, installed and run after the third optimization operation; wherein the third optimization operation includes adding a kernel module for the driver in the created configuration file, or also includes encapsulating and packaging related dependency packages, adjusting the encapsulating and packaging related dependency versions, and modifying one or more of the created configuration files.

[0055] Step S140: On the Shenwei processor, for the image resource scheduling service component, encapsulate and package the installation files, register the database, create the configuration files, and compile, install and run. When a fourth error message is obtained after the compilation, installation and running, receive a fourth optimization operation performed according to the fourth error message, so that the image resource scheduling service component can be compiled, installed and run after the fourth optimization operation; wherein the fourth optimization operation includes adjusting the dependent packages related to the encapsulation and packaging, adjusting the dependent versions related to the encapsulation and packaging, and modifying one or more of the created configuration files.

[0056] Step S150: On the Shenwei processor, for the network resource scheduling service component, encapsulate and package the installation files, register the database, create the configuration files, and compile, install and run. When the fifth error message is obtained after the compilation, installation and running, receive the fifth optimization operation performed according to the fifth error message, so that the network resource scheduling service component can be compiled, installed and run after the fifth optimization operation; wherein, the fifth optimization operation includes adding a kernel module of the network part on the Shenwei processor, or also includes adjusting the dependent packages related to the encapsulation and packaging, adjusting the dependent versions related to the encapsulation and packaging, and modifying one or more of the created configuration files.

[0057] Step S160: On the Shenwei processor, for the storage resource scheduling service component, encapsulate and package the installation files, register the database, create the configuration files, and compile, install and run. When the sixth error message is obtained after the compilation, installation and running, receive the sixth optimization operation performed according to the sixth error message, so that the storage resource scheduling service component can be compiled, installed and run after the sixth optimization operation; wherein the sixth optimization operation includes adding a kernel module of the storage part on the Shenwei processor, or also includes adjusting the dependent packages related to the encapsulation and packaging, adjusting the dependent versions related to the encapsulation and packaging, and modifying one or more of the created configuration files.

[0058] Step S170: When the authentication management service component after the first optimization operation, the cloud computing resource management and control service component after the second optimization operation, the computing resource scheduling service component after the third optimization operation, the image resource scheduling service component after the fourth optimization operation, the network resource scheduling service component after the fifth optimization operation, and the storage resource scheduling service component after the sixth optimization operation are all compiled, installed and run, according to the seventh error information generated when the cloud computing resource management and control service component after the second optimization operation sends resource scheduling information to the computing resource scheduling service component after the third optimization operation, the seventh optimization operation is performed on the computing resource scheduling service component after the third optimization operation, so that the computing resource scheduling service component after the seventh optimization operation successfully receives the resource scheduling information of the cloud computing resource management and control service component after the second optimization operation; wherein, the seventh optimization operation includes modifying the configuration file of the computing resource scheduling service component after the third optimization operation.

[0059] In the above steps S110 to S160, the authentication management service component, cloud computing resource management and control service component, computing resource scheduling service component, image resource scheduling service component, network resource scheduling service component and storage resource scheduling service component are respectively packaged and packaged to install files, register the database, create configuration files, and then compile, install and run. Since these components may not support the Shenwei processor architecture, there may be errors. The error message often cannot give the reasons for all errors or the given error reasons are unclear. Different errors may be caused by problems in different stages of packaging, registering the database, and creating configuration files. Therefore, the inventor creatively analyzes the reasons for the errors from different angles according to the error message and makes corresponding adjustments, so that the optimized components can be installed and run normally on the Shenwei processor.

[0060] For each component, the cause of the error can be analyzed from the perspective of dependent packages, dependent versions, and configuration files. The order in which each component is compiled, installed, and run is different, and the corresponding error information may be different. For example, two different components may report an error due to the same dependent package or dependent version. If the dependent package or the dependent version is adjusted after compiling, installing, and running a component, then for the other component, the dependent package or the dependent version is also adjusted. Therefore, when compiling, installing, and running the other component, an error may not be reported due to the dependent package or the dependent version. In addition, for the configuration files created for each component, whether an error is reported due to the created configuration files may vary from component to component.

[0061] In addition, the inventor analyzes the error information corresponding to some of the components from the perspective of the kernel module. For example, in the above step S130, since the driver in the configuration file created for the computing resource scheduling service component may be related to the unique architecture of the Shenwei processor, adding the Shenwei processor kernel module to this can enable the Shenwei processor to recognize, install and run the computing resource scheduling service component. In the above step S150, for the network resource scheduling service component, adding the kernel module that is missing in the network part to the Shenwei processor can enable the Shenwei processor to recognize, install and run the network resource scheduling service component. In the above step S160, for the storage resource scheduling service component, adding the kernel module that is missing in the storage part to the Shenwei processor can enable the Shenwei processor to recognize, install and run the storage resource scheduling service component.

[0062] Through the above steps S110 to S160, each component can be successfully run independently. However, the normal operation of the cloud computing resource management platform requires the cooperation of each component, so when each component jointly implements the business logic, it may not be able to operate normally. Therefore, the inventor further optimizes the components from the perspective of business logic to adapt to running on the Shenwei processor.

[0063] After optimizing each component separately, at least some components can be further optimized by business logic conditions when each optimized component is running. For example, in the above step S170, the computing resource scheduling service component can be further optimized according to the information interaction between the optimized cloud computing resource management control service component and the optimized computing resource scheduling service component. When cloud computing resources are scheduled using the cloud computing resource management platform, the resource scheduling information sent by the optimized cloud computing resource management control service component to the optimized computing resource scheduling service component can be obtained by converting the resource scheduling information in the token and resource scheduling request that have been verified and converted into corresponding commands. The resource scheduling information can include PCI interface information, format, parameters, etc., so, in the above step S170, the seventh optimization operation can include modifying one or more of the PCI interface information, format, and parameters in the configuration file of the computing resource scheduling service component after the third optimization operation. The optimized computing resource scheduling service component obtains the PCI interface information, format, parameters, etc. in the resource scheduling information. If these information are inconsistent with the corresponding information retained by it, an error may be reported. Therefore, when an error is reported at this time, the configuration file of the component can be adjusted according to the error information to further optimize the component from the perspective of this part of the business logic.

[0064] In some further embodiments, when packaging and installing files, kernel modules related to the architecture of the Shenwei processor can be placed in an independent kernel directory. In this case, there is no code for other processor architectures in the kernel directory, and the kernels of other processor architectures will not compile the module code in this directory during compilation. This can facilitate the special processing of the Shenwei CPU architecture kernel module and provide convenience for unifying the kernel for different processor architectures.

[0065] Exemplarily, in the above step S110, on the Shenwei processor, for the authentication management service component, the installation files are packaged and encapsulated, the database is registered, the configuration files are created, and the compilation, installation and operation are performed. Specifically, the following steps may be included: S1111, on the Shenwei processor, for the authentication management service component, the installation files are packaged and encapsulated when the kernel modules related to the architecture of the Shenwei processor are placed in an independent kernel directory, and the database is registered, the configuration files are created, and the compilation, installation and operation are performed.

[0066] In the above step S120, on the Shenwei processor, for the cloud computing resource management and control service component, the installation files are packaged and encapsulated, the database is registered, the configuration files are created, and the compilation, installation and operation are performed. Specifically, the following steps may be included: S1112, on the Shenwei processor, for the cloud computing resource management and control service component, the kernel modules related to the architecture of the Shenwei processor are placed in an independent kernel directory, the installation files are packaged and encapsulated, and the database is registered, the configuration files are created, and the compilation, installation and operation are performed.

[0067] In the above step S130, on the Shenwei processor, for the computing resource scheduling service component, the installation files are packaged and encapsulated, the database is registered, the configuration files are created, and the compilation, installation and operation are performed. Specifically, the following steps may be included: S1113, on the Shenwei processor, for the computing resource scheduling service component, the kernel modules related to the architecture of the Shenwei processor are placed in an independent kernel directory, the installation files are packaged and encapsulated, and the database is registered, the configuration files are created, and the compilation, installation and operation are performed.

[0068] In the above step S140, on the Shenwei processor, for the image resource scheduling service component, the installation files are packaged and encapsulated, the database is registered, the configuration files are created, and the compilation, installation and operation are performed. Specifically, the following steps may be included: S1114, on the Shenwei processor, for the image resource scheduling service component, the kernel modules related to the architecture of the Shenwei processor are placed in an independent kernel directory, the installation files are packaged and encapsulated, and the database is registered, the configuration files are created, and the compilation, installation and operation are performed.

[0069] In the above step S150, on the Shenwei processor, for the network resource scheduling service component, encapsulate and package the installation file, register the database, create a configuration file, and compile and install the operation, which may specifically include the following steps: S1115, on the Shenwei processor, for the network resource scheduling service component, encapsulate and package the installation file when the kernel module related to the architecture of the Shenwei processor is placed in an independent kernel directory, and register the database, create a configuration file, and compile and install the operation,

[0070] In the above step S160, on the Shenwei processor, for the storage resource scheduling service component, the installation files are packaged and encapsulated, the database is registered, the configuration files are created, and the compilation, installation and operation are performed. Specifically, the following step may be included: S1116, on the Shenwei processor, for the storage resource scheduling service component, the kernel modules related to the architecture of the Shenwei processor are placed in an independent kernel directory, the installation files are packaged and encapsulated, and the database is registered, the configuration files are created, and the compilation, installation and operation are performed.

[0071] In each embodiment of the above steps S1111 to S1116, when packaging the installation files, for the kernel module code related to the CPU architecture, the kernel module related to the architecture of the Shenwei processor is placed in an independent kernel directory, which can reduce the impact of other processor architectures on the Shenwei processor architecture code.

[0072] In some further embodiments, when packaging and installing files, the processor architecture code compilation that is unrelated to the kernel module of the Shenwei processor can be pre-processed. In this case, when compiling the code of other processor architectures, the specific code of the Shenwei CPU architecture will not be compiled, thereby achieving special processing of the Shenwei CPU architecture kernel module processing and providing convenience for unifying the kernel for different processor architectures.

[0073] Exemplarily, in the above step S110, on the Shenwei processor, for the authentication management service component, the installation files are packaged and packed, the database is registered, the configuration files are created, and the compilation, installation and operation are performed. Specifically, the following steps may be included: S1121, on the Shenwei processor, for the authentication management service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the installation files are packaged and packed, the database is registered, the configuration files are created, and the compilation, installation and operation are performed.

[0074] In the above step S120, on the Shenwei processor, for the cloud computing resource management and control service component, the installation files are packaged and encapsulated, the database is registered, the configuration files are created, and the compilation, installation and operation are performed. Specifically, the following step may be included: S1122, on the Shenwei processor, for the cloud computing resource management and control service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the installation files are packaged and packaged, the database is registered, the configuration files are created, and the compilation, installation and operation are performed.

[0075] In the above step S130, on the Shenwei processor, for the computing resource scheduling service component, the installation files are packaged and encapsulated, the database is registered, the configuration files are created, and the compilation, installation and operation are performed. Specifically, the following step may be included: S1123, on the Shenwei processor, for the computing resource scheduling service component, the processor architecture code that is not related to the kernel module of the Shenwei processor is compiled and preprocessed, and then the installation files are packaged and packaged, the database is registered, the configuration files are created, and the compilation, installation and operation are performed.

[0076] In the above step S140, on the Shenwei processor, for the image resource scheduling service component, the installation files are packaged and packed, the database is registered, the configuration files are created, and the compilation, installation and operation are performed. Specifically, the following step may be included: S1124, on the Shenwei processor, for the image resource scheduling service component, the processor architecture code that is not related to the kernel module of the Shenwei processor is compiled and preprocessed, and then the installation files are packaged and packed, the database is registered, the configuration files are created, and the compilation, installation and operation are performed.

[0077] In the above step S150, on the Shenwei processor, for the network resource scheduling service component, the installation files are packaged and encapsulated, the database is registered, the configuration files are created, and the compilation, installation and operation are performed. Specifically, the following step may be included: S1125, on the Shenwei processor, for the network resource scheduling service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the installation files are packaged and packaged, the database is registered, the configuration files are created, and the compilation, installation and operation are performed.

[0078] In the above step S160, on the Shenwei processor, for the storage resource scheduling service component, the installation files are packaged and encapsulated, the database is registered, the configuration files are created, and the compilation, installation and operation are performed. Specifically, the following step may be included: S1126, on the Shenwei processor, for the storage resource scheduling service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the installation files are packaged and packaged, the database is registered, the configuration files are created, and the compilation, installation and operation are performed.

[0079] In each embodiment of the above-mentioned steps S1121 to S1126, when encapsulating and packaging the installation files, for the CPU architecture-related code of the CPU architecture-independent kernel module (some of which may have different implementation methods due to different CPU architectures), the code of the relevant CPU architecture can be compiled and pre-processed using the kernel compilation options specific to the CPU architecture, so that when the code of other architectures is compiled, the specific code of this CPU architecture will not be compiled, thereby realizing special processing of the Shenwei CPU architecture kernel module processing and providing convenience for the unification of kernels for different architectures in the future.

[0080] The methods for generating a cloud computing resource management platform based on the Shenwei processor in the above-mentioned embodiments of the present invention can successfully obtain a cloud computing resource management platform that can run on the Shenwei processor by analyzing and optimizing each component of the cloud computing resource management platform from the perspectives of dependent packages, dependent versions, kernel modules, and business logic.

[0081] Based on Figure 1 The invention concept of the method for generating a cloud computing resource management platform based on the Shenwei processor is the same as that of the invention concept, and the embodiment of the present invention further provides a cloud computing resource management platform system based on the Shenwei processor. The cloud computing resource management platform system based on the Shenwei processor can be obtained by using the method for generating a cloud computing resource management platform based on the Shenwei processor of each of the above embodiments.

[0082] Figure 2 is a schematic diagram of the structure of a cloud computing resource management platform system based on a Shenwei processor according to an embodiment of the present invention, see Figure 2 The cloud computing resource management platform system based on the Shenwei processor of these embodiments may include: an authentication management service module 210, a cloud computing resource management control service module 220, a computing resource scheduling service module 230, a mirror resource scheduling service module 240, a network resource scheduling service module 250 and a storage resource scheduling service module 260.

[0083] The authentication management service module 210 can be connected to the cloud computing resource management and control service module 220, the cloud computing resource management and control service module 220 can be connected to the computing resource scheduling service module 230, and the computing resource scheduling service module 230 can be connected to the image resource scheduling service module 240, the network resource scheduling service module 250 and the storage resource scheduling service module 260.

[0084] The authentication management service module 210 may be obtained by optimizing the authentication management service component, the cloud computing resource management control service module 220 may be obtained by optimizing the cloud computing resource management control service component, the computing resource scheduling service module 230 may be obtained by optimizing the computing resource scheduling service component, the image resource scheduling service module 240 may be obtained by optimizing the image resource scheduling service component, the network resource scheduling service module 250 may be obtained by optimizing the network resource scheduling service component, and the storage resource scheduling service module 260 may be obtained by optimizing the storage resource scheduling service component. The computing resource scheduling service module 230 may be optimized through two processes.

[0085] Specifically, the authentication management service module 210, its generation method includes, on the Shenwei processor, for the authentication management service component, packaging and installing files, registering the database, creating configuration files, and compiling, installing and running. In the case where a first error message is obtained after the compilation, installation and running, a first optimization operation is received based on the first error message, so that the authentication management service component passes the compilation, installation and running after the first optimization operation; wherein, the first optimization operation includes adjusting the dependent packages related to the packaging and packaging, adjusting the dependent versions related to the packaging and packaging, and modifying one or more of the created configuration files.

[0086] The cloud computing resource management control service module 220, whose generation method includes encapsulating and packaging installation files, registering databases, creating configuration files, and compiling, installing and running cloud computing resource management control service components on the Shenwei processor. When a second error message is obtained after the compilation, installation and running, a second optimization operation is received based on the second error message, so that the cloud computing resource management control service component passes the compilation, installation and running after the second optimization operation; wherein the second optimization operation includes adjusting the dependent packages related to the encapsulation and packaging, adjusting the dependent versions related to the encapsulation and packaging, and modifying one or more of the created configuration files.

[0087] The computing resource scheduling service module 230, whose generation method includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing and running for a computing resource scheduling service component on a Shenwei processor, and receiving a third optimization operation performed according to the third error message in the event that a third error message is obtained after the compilation, installation and running, so that the computing resource scheduling service component can be compiled, installed and run after the third optimization operation; wherein the third optimization operation includes adding a kernel module for a driver in the created configuration file, or also includes encapsulating and packaging related dependency packages, adjusting encapsulating and packaging related dependency versions, and modifying one or more of the created configuration files.

[0088] The image resource scheduling service module 240, whose generation method includes encapsulating and packaging installation files, registering a database, creating configuration files, and compiling, installing and running the image resource scheduling service component on the Shenwei processor. When a fourth error message is obtained after the compilation, installation and running, a fourth optimization operation is received based on the fourth error message, so that the image resource scheduling service component can be compiled, installed and run after the fourth optimization operation; wherein the fourth optimization operation includes adjusting the dependent packages related to the encapsulation and packaging, adjusting the dependent versions related to the encapsulation and packaging, and modifying one or more of the created configuration files.

[0089] The network resource scheduling service module 250, whose generation method includes encapsulating and packaging installation files, registering databases, creating configuration files, and compiling, installing and running network resource scheduling service components on the Shenwei processor. When a fifth error message is obtained after the compilation, installation and running, a fifth optimization operation is received based on the fifth error message, so that the network resource scheduling service component can be compiled, installed and run after the fifth optimization operation; wherein the fifth optimization operation includes adding a kernel module of the network part on the Shenwei processor, or also includes adjusting the dependency packages related to the encapsulation and packaging, adjusting the dependency versions related to the encapsulation and packaging, and modifying one or more of the created configuration files.

[0090] The storage resource scheduling service module 260, whose generation method includes encapsulating and packaging installation files, registering databases, creating configuration files, and compiling, installing and running storage resource scheduling service components on the Shenwei processor. When a sixth error message is obtained after the compilation, installation and running, a sixth optimization operation is received based on the sixth error message, so that the storage resource scheduling service component can be compiled, installed and run after the sixth optimization operation; wherein the sixth optimization operation includes adding a kernel module of the storage part on the Shenwei processor, or also includes adjusting the dependency packages related to the encapsulation and packaging, adjusting the dependency versions related to the encapsulation and packaging, and modifying one or more of the created configuration files.

[0091] The generation method of the computing resource scheduling service module 230 also includes, when the authentication management service component after the first optimization operation, the cloud computing resource management and control service component after the second optimization operation, the computing resource scheduling service component after the third optimization operation, the image resource scheduling service component after the fourth optimization operation, the network resource scheduling service component after the fifth optimization operation, and the storage resource scheduling service component after the sixth optimization operation are all compiled, installed and run, according to the seventh error information generated when the cloud computing resource management and control service component after the second optimization operation sends resource scheduling information to the computing resource scheduling service component after the third optimization operation, performing a seventh optimization operation on the computing resource scheduling service component after the third optimization operation, so that the computing resource scheduling service component after the seventh optimization operation successfully receives the resource scheduling information of the cloud computing resource management and control service component after the second optimization operation; wherein, the seventh optimization operation includes modifying the configuration file of the computing resource scheduling service component after the third optimization operation.

[0092] Each of the above modules is optimized by its own method and can run on the Shenwei processor. In a further embodiment, the generation method of each of the above modules (modules 210 to 260) can be on the Shenwei processor, for each corresponding component, the kernel module related to the architecture of the Shenwei processor is placed in an independent kernel directory, and the installation file is encapsulated and packaged, and the database is registered, the configuration file is created, and the compilation and installation are run. In addition, the generation method of each of the above modules (modules 210 to 260) can be on the Shenwei processor, for each corresponding component, the processor architecture code that is not related to the kernel module of the Shenwei processor is compiled and preprocessed, and then the installation file is encapsulated and packaged, the database is registered, the configuration file is created, and the compilation and installation are run.

[0093] Furthermore, the authentication management service module 210 can be used to provide authentication services for resource application requests and tokens. Specifically, it can be used to authenticate resource application requests according to set access measurements, and can verify whether the token is valid after receiving the verification token validity sent by the cloud computing resource management control service module 220.

[0094] The cloud computing resource management control service module 220 can be used to process resource scheduling requests and generate resource scheduling tasks, and provide control services for computing, storage, network, and mirroring resources. Specifically, it can be used to receive resource scheduling requests sent by users, and can send a token to the authentication management service module 210 for verification according to the resource scheduling request. After the token verification is passed, the token and resource scheduling information can be sent to the computing resource scheduling service module 230 to perform resource scheduling tasks.

[0095] The computing resource scheduling service module 230 can be used to provide virtual machine lifecycle management and bare metal server management capabilities. Among them, bare metal server management operations may include bare metal server creation, deletion, startup, shutdown, and restart, and virtual machine lifecycle management may include virtual machine creation, editing, snapshot creation, startup, shutdown, suspension, recovery, pause, resume pause, restart, bind public network IP, unbind public network IP, connect to network, disconnect network, edit security group, and monitor, etc.

[0096] The image resource scheduling service module 240 may be used to provide virtual machine image management capabilities, where virtual machine image management may include creation, deletion, and editing of images.

[0097] The network resource scheduling service module 250 can be used to provide full life cycle management capabilities for virtual resource networks, where the full life cycle management of virtual resource networks can include creation, deletion, editing, creation of subnets, editing of subnets, and deletion of subnets.

[0098] The storage resource scheduling service module 260 can be used to provide cloud hard disk full life cycle management capabilities. Cloud hard disk (block storage) full life cycle management operations include creation, deletion, and editing, and image creation, deletion, and editing. In addition, it can also be used to provide resource scheduling capabilities such as file storage and object storage.

[0099] In addition, an embodiment of the present invention also provides a cloud computing resource management method based on the Shenwei processor, which can be implemented using the cloud computing resource management platform system based on the Shenwei processor described in any of the above embodiments. Figure 3 is a flow chart of a cloud computing resource management method based on a Shenwei processor according to an embodiment of the present invention, see Figure 3 , the cloud computing resource management method based on the Shenwei processor may include:

[0100] Step S310: using the authentication management service module to receive a resource application authentication request from a user, and if the resource application authentication request is authenticated, generating a token and returning the token to the user;

[0101] Step S320: Based on the KVM virtualization monitor applicable to the Shenwei processor, the cloud computing resource management control service module is used to receive the resource scheduling request carrying the token, and the token carried by the resource scheduling request is sent to the authentication management service module;

[0102] Step S330: using the authentication management service module to verify the validity of the token carried in the resource scheduling request, and if valid, returning a result of the token verification validity to the cloud computing resource management control service module;

[0103] Step S340: Based on the KVM virtualization monitor applicable to the Shenwei processor, the cloud computing resource management control service module is used to send the verified valid token and the resource scheduling information in the resource scheduling request to the computing resource scheduling service module;

[0104] Step S350: Based on the implementation of virtualization by calling the KVM virtual machine applicable to the Shenwei processor through the libvirt library function, the computing resource scheduling service module is used to send the image resource scheduling request, the network resource scheduling request and the storage resource scheduling request to the image resource scheduling service module, the network resource scheduling service module and the storage resource scheduling service module according to the computing resource scheduling information;

[0105] Step S360: Based on virtualization achieved by calling the KVM virtual machine suitable for the Shenwei processor through the libvirt library function, the computing resource scheduling service module is used to receive the schedulable image resource information returned by the image resource scheduling service module, the schedulable network resource information returned by the network resource scheduling service module, and the schedulable storage resource information returned by the storage resource scheduling service module, and resources are created according to the schedulable image resource information, the schedulable network resource information, and the schedulable storage resource information, and the created resources are returned to the user.

[0106] In the above step S310, the authentication management service module may store pre-set access policies, such as access rights, access scope, etc., and the corresponding access policies may be authenticated according to the resource application authentication request. In the above steps S320 and S330, the cloud computing resource management control service module and the authentication management service module complete the message authentication together. In the above step S340, the cloud computing resource management control service module completes the resource scheduling task. In the above steps S350 and S360, the computing resource scheduling service module completes resource creation and scheduling.

[0107] In this embodiment, the computing resource scheduling service module is run on the Shenwei processor, which can connect to the libvirt component on the underlying kernel, and then call KVM through libvirt to realize virtualization. The cloud computing resource management and control service module is run on the Shenwei processor, which can be managed and controlled with the help of the KVM virtualization monitor.

[0108] Further, Figure 3 The method shown may also include one or more of the following steps S370 to S3100:

[0109] Step S370: Based on the implementation of virtualization by calling the KVM virtual machine applicable to the Shenwei processor through the libvirt library function, the computing resource scheduling service module is used to perform one or more virtual machine lifecycle management and bare metal server management operations, wherein the bare metal server management operation includes bare metal server creation, deletion, startup, shutdown, and restart, and the virtual machine lifecycle management includes virtual machine creation, editing, snapshot creation, startup, shutdown, suspension, recovery, pause, resume pause, restart, binding public network IP, unbinding public network IP, connecting to the network, disconnecting from the network, editing security groups, and monitoring;

[0110] Step S380: using the image resource scheduling service module to perform one or more virtual machine image management operations, wherein the virtual machine image management operations include creating, deleting and editing images;

[0111] Step S390: using the network resource scheduling service module to perform one or more virtual resource network life cycle management operations, wherein the virtual resource network life cycle management includes creation, deletion, editing, creation of subnets, editing of subnets, and deletion of subnets of virtual resource networks;

[0112] Step S3100: Use the storage resource scheduling service module to perform one or more cloud hard disk life cycle management operations, where the cloud hard disk life cycle management operations include creation, deletion, and editing, and image creation, deletion, and editing.

[0113] In the above step S370, virtual machine lifecycle management and bare metal server management are performed. In the above step S380, virtual machine image management is performed. In the above step S390, virtual resource network full lifecycle management is performed. In the above step S3100, cloud hard disk full lifecycle management is performed.

[0114] In addition, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for generating a cloud computing resource management platform based on the Shenwei processor described in any of the above embodiments and the steps of the cloud computing resource management method based on the Shenwei processor described in any of the above embodiments are implemented. The electronic device may be a computer, a server, etc.

[0115] An embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for generating a cloud computing resource management platform based on a Shenwei processor as described in any of the above embodiments, and the steps of the cloud computing resource management method based on a Shenwei processor as described in any of the above embodiments.

[0116] In order to enable those skilled in the art to better understand the present invention, the implementation modes of the present invention will be described below with reference to specific embodiments.

[0117] In order to provide a cloud computing resource management platform based on the domestic Shenwei architecture processor and realize the scheduling and management of virtual resources on the Shenwei architecture platform, the Shenwei architecture information is analyzed and judged, and the cloud computing resource management platform source code based on the Shenwei architecture is invented. The source code and its dependent compilation work are executed so that the components and dependent software packages can be installed normally on the Shenwei processor. The cloud computing resource management platform component configuration file suitable for the Shenwei architecture processor is studied so that it can run normally on the Shenwei processor, and the scheduling and management of basic virtual resources are realized through the cloud computing resource management platform on the Shenwei processor.

[0118] Shenwei server adopts Alpha architecture, and its instruction set architecture, internal registers, address space layout, interrupt and exception handling mechanism, etc. are all quite different from X86. For this embodiment, the cloud platform standardized protocol can be used to open up the direct interface relationship between the operating system, server and cloud platform, and deeply optimize the instruction call scenario, so that the kernel supports Shenwei CPU architecture, and shields the differences of these CPU architectures at the bottom of the operating system, so that other parts of the kernel and applications can be successfully executed on the CPU of Shenwei architecture, ensuring that the hardware-independent parts of the operating system can access the resources and services provided by different hardware platforms through a unified interface, ensuring the transparency of user use. Kernel optimization refers to the technical route of the Windows operating system hardware abstraction layer and the Linux operating system kernel / arch, and develops the Shenwei CPU architecture support subsystem to support the design and implementation of Shenwei CPU, providing system boot, process scheduling and context switching, interrupt and exception handling, inter-process synchronization and communication, memory management, multi-core support and other common functions as well as floating-point simulation, virtualization and other characteristic functions of different CPUs.

[0119] This embodiment targets the kernel module code related to the CPU architecture, and places the kernel module independent of the Shenwei architecture in an independent kernel directory. Codes of other architectures do not exist in this directory, and the code modules in this directory will not be compiled when the kernels of other architectures are compiled. For the CPU architecture-related code of the kernel modules unrelated to the CPU architecture (some of which may have different implementation methods due to different CPU architectures), the code of the relevant CPU architecture must be compiled and preprocessed with the kernel compilation options specific to the CPU architecture, so that when compiling the code of other architectures, the specific code of this CPU architecture will not be compiled, thereby realizing the special processing of the Shenwei CPU architecture kernel module processing and facilitating the unification of kernels for different architectures in the future.

[0120] In view of the particularity of the Shenwei architecture processor, we analyzed the dependency packages, kernel modules, business logic, and dependent software versions. After repeated experimental verification, we obtained reasonable and effective dependencies, kernel modules, business logic, dependent software versions and other categories of content and compiled them, so that all component services of the cloud computing resource management platform can run normally on the Shenwei architecture processor.

[0121] The cloud computing resource management platform implemented on the domestic Shenwei processor of the present invention includes authentication management services, cloud computing resource management and control services, computing resource scheduling services, network resource scheduling services, storage resource scheduling services, image resource scheduling services and other parts. The authentication management service provides authentication and access policy services for the components of the cloud computing resource management platform; the cloud computing resource management and control service is the scheduling and control role of the cloud computing resource management platform, which mainly handles message authentication and resource scheduling tasks, and provides control services for computing, storage, network, image and other resources; the computing resource scheduling service provides virtual machine life cycle management, bare metal server management and other capabilities; the network resource scheduling service provides virtual resource network full life cycle management capabilities; the storage resource scheduling service provides block storage, file storage, object storage and other resource scheduling capabilities, and provides cloud hard disk (block storage) full life cycle management capabilities; the image resource scheduling service provides virtual machine image management services.

[0122] The modules of the management platform of this embodiment are obtained by optimizing the components.

[0123] Specifically, the process of optimizing the authentication management service component includes: on the Shenwei CPU, packaging the installation files of the existing authentication management service component, registering the database, creating configuration files, and compiling, installing and running; when an error is reported during packaging, adjusting the dependent version used for packaging according to the error information, and adding missing modules; when an error is reported during compilation, installation and operation, adjusting the dependent packages and dependent versions used for packaging (affected by the Shenwei CPU architecture, or by the operating system running on the Shenwei CPU), and modifying the configuration files until the compilation, installation and operation are successful.

[0124] The process of optimizing the cloud computing resource management and control service component includes: on the Shenwei CPU, packaging and encapsulating the installation files of the existing cloud computing resource management and control service component, registering the database and creating the configuration file, and compiling, installing and running; when errors are reported during compilation, installation and running, adjusting the dependency packages used for packaging and packaging, and modifying the kernel of the network part on the Shenwei CPU (replacing the original kernel with the modified network part kernel) until the compilation, installation and running are passed; after the cloud computing resource management and control service component is installed, the KVM virtualization monitor can be used to connect the cloud computing resource management and control service component to the weight control component in the Shenwei CPU to manage and control virtual resources.

[0125] The process of optimizing the computing resource scheduling service component includes: on the Shenwei CPU, encapsulating and packaging the installation files of the existing computing resource scheduling service component, registering the database and creating the configuration file, and compiling, installing and running; when errors are reported during compilation, installation and running, add the missing kernel module on the Shenwei CPU for the driver in the configuration file (modify the kernel module to replace the original kernel module), if any, adjust the dependent packages and dependent versions used for encapsulation and packaging, and modify the configuration file until it passes the compilation, installation and running.

[0126] The process of optimizing the image resource scheduling service component includes: on the Shenwei CPU, encapsulating and packaging the installation files of the existing image resource scheduling service component, registering the database, creating configuration files, and compiling, installing and running; when an error is reported during encapsulation and packaging, adjusting the dependent version used for encapsulation and packaging according to the error information, and adding missing modules; when an error is reported during compilation, installation and operation, adjusting the dependent packages and dependent versions used for encapsulation and packaging, and modifying the configuration files until the compilation, installation and operation are successful.

[0127] The process of optimizing the network resource scheduling service component includes: packaging and encapsulating the installation files of the existing network resource scheduling service component, registering the database and creating the configuration file, and compiling, installing and running it; when an error occurs during compilation, installation and operation, add the missing kernel module to the network part of the Shenwei CPU according to the error information, so as to pass the compilation, installation and operation.

[0128] The process of optimizing the storage resource scheduling service component includes: packaging and encapsulating the installation files of the existing storage resource scheduling service component, registering the database and creating the configuration files, and compiling, installing and running the components; when errors are reported during compilation, installation and operation, the missing kernel modules are added to the storage part on the Shenwei CPU according to the error information, so as to pass the compilation, installation and operation.

[0129] Furthermore, the optimization process from the perspective of business logic includes: the cloud computing resource management control service component sends resource scheduling information to the computing resource scheduling service component, and the computing resource scheduling service component checks whether the resource scheduling information (such as PCI interface information, format, parameters, etc.) is consistent with the resource information that can be created by its present application. If not, an error is reported, and the configuration file of the computing resource scheduling service component is adjusted according to the error information.

[0130] See also Figure 4 , the management method of the cloud computing resource management platform based on the domestic Shenwei processor includes the following steps:

[0131] a) Resource Authentication

[0132] The user sends a resource request to obtain authentication information from the authentication management service through the interface. The authentication management service receives the authentication information through the user request and generates a token and returns it to the corresponding authentication request. The user can send a resource scheduling request to the cloud computing resource management and control service with the token. After accepting the request, the cloud computing resource management and control service sends an authentication request to the authentication management service to verify the validity of the token. After authentication, the cloud computing resource management and control service communicates with the database, queries resources, obtains scheduling resource information, and sends it to the message queue to perform resource scheduling on the Shenwei processor.

[0133] b) Resource Scheduling

[0134] After the computing resource scheduling service gets the token and resource scheduling information through the message queue, it will send a resource scheduling request to the image resource scheduling service, storage resource scheduling service, network resource scheduling service and other parts. The image, storage and network resource scheduling services will schedule the available resources and return them to the computing resource scheduling service. The resource scheduling service source code does not natively support the Shenwei architecture. For the Shenwei CPU, we study the service component source code, develop drivers, package and package installation files, register databases and create configuration files to identify the Shenwei architecture information, and perform operations such as compilation, installation and operation using computing, storage, network, and image resource scheduling services. In this process, it is necessary to do special processing on the underlying computing resource scheduling service components for the Shenwei processor. For the Shenwei CPU that provides hardware-assisted virtualization capabilities, it is managed and controlled with the help of the KVM virtualization monitor. The KVM virtualization monitor is the core of the kernel-level virtual machine technology, running in the operating system kernel layer and having the highest privilege level. On the domestic CPU platform that provides hardware-assisted virtualization capabilities, by transforming and reusing the task scheduling, memory management, interrupt management, clock management and other modules of the operating system kernel, the virtual machine monitor controls, manages and isolates the virtual machine processes running in the operating system user space.

[0135] c) Resource creation

[0136] Each resource scheduling service creates resources through the virtualization driver according to the resource configuration information called by the user request. To run computing services on the domestic Shenwei processor to create resources, it is necessary to connect to the libvirt component on the underlying kernel, and then call KVM through libvirt to achieve virtualization. The KVM virtual machine libvirt component is a series of library functions that are provided to other technical architectures to help manage virtual machines on the machine. Liebvirt adopts a driver-oriented architecture design, and develops and designs drivers for any virtual machine technology. In this way, different virtual machine technologies can use different drivers, and they will not directly affect each other, which is easy to expand. In addition, libvirt provides programming interfaces in multiple languages, and you can directly call the external interface provided by libvirt through programming to operate the virtual machine. Shenwei KVM virtual machine is a domestic full-featured virtual machine. With the support of the host machine, it can run an independent operating system and has the ability to use virtual disks, virtual networks, virtual displays, and direct connections to some PCI devices. However, due to the special parameter configurations of Shenwei-based KVM implementation and corresponding components for the CPU architecture, it is necessary to match the parameter configurations of the driver call commands related to the network, disk, etc. that are created in the computing resource management component for virtual machines. The host machine kernel needs to add KVM-related functions, and at the same time, the KVM module should be adapted for the Shenwei series CPU, mainly matching hardware-related codes, corresponding to the configuration of the PCI-E interface components and centralized control components in the Shenwei processor. In this way, the KVM virtualization operating environment is realized on the Shenwei platform, and the virtualization management program libvirt, qemu, virtualization operation commands, virtual machine file systems, and virtual network systems are realized at the same time, ensuring that the resource scheduling service can successfully create virtual resources. In addition, the Shenwei KVM virtual machine itself lacks some virtualization capabilities in the cloud computing resource management platform components. The present invention proposes a solution for kernel module enhancement and optimization through repeated experiments and verification for the relevant kernel modules involved in computing, storage, and network scheduling services, so as to customize the virtualization kernel based on the Shenwei CPU and support the cloud computing service capabilities of the cloud computing resource management platform.

[0137] d) Resource management

[0138] The cloud computing resource management on the Shenwei processor targets the virtualization driver components on the Shenwei processor, adapts the dependency packages, kernel modules, business logic and other contents to identify the Shenwei architecture, so that the computing resource scheduling service, storage resource scheduling service, network resource scheduling service, image resource scheduling service and other services can run normally. It supports the creation, deletion, startup, shutdown, and restart of bare metal servers, the creation, editing, snapshot creation, startup, shutdown, suspension, recovery, pause, resume pause, restart, binding public network IP, unbinding public network IP, connecting to the network, disconnecting from the network, editing security groups, monitoring, etc. of virtual resource networks, the creation, deletion, editing, creation of subnets, editing subnets, and deletion of subnets, the creation, deletion, and editing of cloud hard disks, and the creation, deletion, and editing of images.

[0139] In this embodiment, the technical breakthrough of Shenwei processor virtualization is achieved through key technologies such as source code customization, configuration optimization, and virtualization instruction adaptation in view of the particularity of Shenwei architecture, and the underlying virtualization core components such as privileged instruction firmware, KVM virtualization kernel, virtual machine management tools, and client management interface are successfully connected to realize the application of cloud computing resource management technology on the domestic Shenwei platform. Based on the domestic hardware and software basic environment of domestic Shenwei architecture processors and domestic operating systems, the cloud computing resource management platform can run stably and promote the development of cloud platform technology in domestic architecture.

[0140] To sum up, the generation method of the cloud computing resource management platform based on the Shenwei processor, the cloud computing resource management platform system based on the Shenwei processor, the cloud computing resource management method based on the Shenwei processor, the electronic device, and the computer-readable storage medium of the embodiments of the present invention can realize the operation of the cloud computing resource management platform on the Shenwei processor.

[0141] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. The order of steps involved in each embodiment is used to schematically illustrate the implementation of the present invention, and the order of steps is not limited and can be appropriately adjusted as needed.

[0142] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0143] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0144] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0146] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for generating a cloud computing resource management platform based on a Shenwei processor, characterized in that: include: On the Shenwei processor, for the authentication management service component, encapsulate and package installation files, register a database, create a configuration file, and compile, install and run. In the case where a first error message is obtained after the compilation, installation and running, a first optimization operation is received according to the first error message, so that the authentication management service component passes the compilation, installation and running after the first optimization operation; wherein the first optimization operation includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files; On the Shenwei processor, for the cloud computing resource management control service component, encapsulate and package installation files, register a database, create a configuration file, and compile, install and run. In the case where a second error message is obtained after the compilation, installation and running, a second optimization operation performed according to the second error message is received, so that the cloud computing resource management control service component passes the compilation, installation and running after the second optimization operation; wherein the second optimization operation includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files; On the Shenwei processor, for the computing resource scheduling service component, encapsulate and package installation files, register a database, create a configuration file, and compile, install and run. In the case where a third error message is obtained after the compilation, installation and running, a third optimization operation performed according to the third error message is received, so that the computing resource scheduling service component is compiled, installed and run after the third optimization operation; wherein the third optimization operation includes adding a kernel module for the driver in the created configuration file, or also includes encapsulating and packaging related dependency packages, adjusting the encapsulating and packaging related dependency versions, and modifying one or more of the created configuration files; On the Shenwei processor, for the image resource scheduling service component, encapsulate and package installation files, register a database, create a configuration file, and compile, install and run. In the case where a fourth error message is obtained after the compilation, installation and running, a fourth optimization operation performed according to the fourth error message is received, so that the image resource scheduling service component is compiled, installed and run after the fourth optimization operation; wherein the fourth optimization operation includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files; On the Shenwei processor, for the network resource scheduling service component, encapsulate and package installation files, register a database, create a configuration file, and compile, install and run. In the case where a fifth error message is obtained after the compilation, installation and running, a fifth optimization operation performed according to the fifth error message is received, so that the network resource scheduling service component is compiled, installed and run after the fifth optimization operation; wherein the fifth optimization operation includes adding a kernel module of the network part on the Shenwei processor, or also includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files; On the Shenwei processor, for the storage resource scheduling service component, encapsulate and package installation files, register a database, create a configuration file, and compile, install and run. In the case where a sixth error message is obtained after the compilation, installation and running, a sixth optimization operation performed according to the sixth error message is received, so that the storage resource scheduling service component is compiled, installed and run after the sixth optimization operation; wherein the sixth optimization operation includes adding a kernel module of the storage part on the Shenwei processor, or also includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files; When the authentication management service component after the first optimization operation, the cloud computing resource management and control service component after the second optimization operation, the computing resource scheduling service component after the third optimization operation, the image resource scheduling service component after the fourth optimization operation, the network resource scheduling service component after the fifth optimization operation, and the storage resource scheduling service component after the sixth optimization operation are all compiled, installed and run, according to the seventh error information generated when the cloud computing resource management and control service component after the second optimization operation sends resource scheduling information to the computing resource scheduling service component after the third optimization operation, the seventh optimization operation is performed on the computing resource scheduling service component after the third optimization operation, so that the computing resource scheduling service component after the seventh optimization operation successfully receives the resource scheduling information of the cloud computing resource management and control service component after the second optimization operation; wherein, the seventh optimization operation includes modifying the configuration file of the computing resource scheduling service component after the third optimization operation.

2. The method for generating a cloud computing resource management platform based on the Shenwei processor according to claim 1, characterized in that: On the Shenwei processor, for the authentication management service component, package and package the installation files, register the database, create the configuration files, and compile and install the operation, including: On the Shenwei processor, for the authentication management service component, the kernel modules related to the Shenwei processor architecture are placed in a separate kernel directory to package the installation files, register the database, create configuration files, and compile, install and run; On the Sunway processor, for the cloud computing resource management and control service components, package and package installation files, register databases, create configuration files, and compile, install and run, including: On the Sunway processor, for the cloud computing resource management and control service component, the kernel modules related to the architecture of the Sunway processor are placed in a separate kernel directory to package and package the installation files, register the database, create configuration files, and compile, install and run; On the Shenwei processor, for the computing resource scheduling service component, package and package the installation files, register the database, create the configuration files, and compile, install and run, including: On the Shenwei processor, for the computing resource scheduling service component, the kernel modules related to the Shenwei processor architecture are placed in a separate kernel directory to package and package the installation files, register the database, create configuration files, and compile, install and run; On the Shenwei processor, for the image resource scheduling service component, encapsulate and package the installation files, register the database, create configuration files, and compile, install and run, including: On the Shenwei processor, for the image resource scheduling service component, the kernel modules related to the Shenwei processor architecture are placed in a separate kernel directory to encapsulate and package the installation files, register the database, create configuration files, and compile, install and run; On the Shenwei processor, for the network resource scheduling service component, package and package the installation files, register the database, create the configuration files, and compile and install the operations, including: On the Shenwei processor, for the network resource scheduling service component, the kernel modules related to the Shenwei processor architecture are placed in a separate kernel directory to encapsulate and package the installation files, register the database, create configuration files, and compile, install and run; On the Sunway processor, for the storage resource scheduling service component, package and package the installation files, register the database, create the configuration files, and compile and install the components, including: On the Shenwei processor, for the storage resource scheduling service component, the kernel modules related to the architecture of the Shenwei processor are placed in an independent kernel directory, and the installation files are packaged and packaged, and the database is registered, the configuration files are created, and the installation is compiled and run.

3. The method for generating a cloud computing resource management platform based on a Shenwei processor as claimed in claim 1 or 2, characterized in that: On the Shenwei processor, for the authentication management service component, package and package the installation files, register the database, create the configuration files, and compile and install the operation, including: On the Shenwei processor, for the authentication management service component, compile and preprocess the processor architecture code that is unrelated to the kernel module of the Shenwei processor, package and package the installation file, register the database, create the configuration file, and compile, install and run; On the Sunway processor, for the cloud computing resource management and control service components, package and package installation files, register databases, create configuration files, and compile, install and run, including: On the Shenwei processor, for the cloud computing resource management and control service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the installation files are packaged, the database is registered, the configuration files are created, and the compilation, installation and operation are performed; On the Shenwei processor, for the computing resource scheduling service component, package and package the installation files, register the database, create the configuration files, and compile, install and run, including: On the Shenwei processor, for the computing resource scheduling service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the installation files are packaged, the database is registered, the configuration files are created, and the compilation, installation and operation are performed; On the Shenwei processor, for the image resource scheduling service component, encapsulate and package the installation files, register the database, create configuration files, and compile, install and run, including: On the Shenwei processor, for the image resource scheduling service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the installation files are packaged, the database is registered, the configuration files are created, and the compilation, installation and operation are performed; On the Shenwei processor, for the network resource scheduling service component, package and package the installation files, register the database, create the configuration files, and compile and install the operations, including: On the Shenwei processor, for the network resource scheduling service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the installation files are packaged, the database is registered, the configuration files are created, and the compilation, installation and operation are performed; On the Sunway processor, for the storage resource scheduling service component, package and package the installation files, register the database, create the configuration files, and compile and install the components, including: On the Shenwei processor, for the storage resource scheduling service component, the processor architecture code that is unrelated to the kernel module of the Shenwei processor is compiled and preprocessed, and then the installation files are packaged, the database is registered, the configuration files are created, and the compilation, installation and operation are carried out.

4. The method for generating a cloud computing resource management platform based on a Shenwei processor according to claim 1, characterized in that: The seventh optimization operation includes modifying one or more of the PCI interface information, format and parameters in the configuration file of the computing resource scheduling service component after the third optimization operation.

5. A cloud computing resource management platform system based on Shenwei processor, characterized in that: include: The authentication management service module, the generation method of which includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing and running the authentication management service component on the Shenwei processor, and receiving a first optimization operation performed according to the first error message in the case where a first error message is obtained after the compilation, installation and running, so that the authentication management service component is compiled, installed and run after the first optimization operation; wherein the first optimization operation includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files; A cloud computing resource management control service module, wherein the generation method includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing, and running a cloud computing resource management control service component on a Shenwei processor, and receiving a second optimization operation performed according to the second error message in the case where a second error message is obtained after the compilation, installation, and running, so that the cloud computing resource management control service component passes through the compilation, installation, and running after the second optimization operation; wherein the second optimization operation includes adjusting a dependent package related to encapsulation and packaging, adjusting a dependent version related to encapsulation and packaging, and modifying one or more of the created configuration files; A computing resource scheduling service module, wherein the generation method thereof includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing, and running a computing resource scheduling service component on a Shenwei processor, and receiving a third optimization operation performed according to the third error message in the case where a third error message is obtained after the compilation, installation, and running, so that the computing resource scheduling service component is compiled, installed, and run after the third optimization operation is performed; wherein the third optimization operation includes adding a kernel module for a driver in the created configuration file, or also includes encapsulating and packaging related dependency packages, adjusting encapsulating and packaging related dependency versions, and modifying one or more of the created configuration files; The image resource scheduling service module, the generation method of which includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing and running the image resource scheduling service component on the Shenwei processor, and receiving a fourth optimization operation performed according to the fourth error message in the case of obtaining a fourth error message after the compilation, installation and running, so that the image resource scheduling service component is compiled, installed and run after the fourth optimization operation; wherein the fourth optimization operation includes adjusting the dependency package related to the encapsulation and packaging, adjusting the dependency version related to the encapsulation and packaging, and modifying one or more of the created configuration files; A network resource scheduling service module, wherein the generation method thereof includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing, and running a network resource scheduling service component on a Shenwei processor, and receiving a fifth optimization operation performed according to the fifth error message in the case where a fifth error message is obtained after the compilation, installation, and running, so that the network resource scheduling service component is compiled, installed, and run after the fifth optimization operation; wherein the fifth optimization operation includes adding a kernel module of a network part on the Shenwei processor, or also includes adjusting a dependency package related to encapsulation and packaging, adjusting a dependency version related to encapsulation and packaging, and modifying one or more of the created configuration files; A storage resource scheduling service module, wherein the generation method thereof includes encapsulating and packaging installation files, registering a database, creating a configuration file, and compiling, installing, and running a storage resource scheduling service component on a Shenwei processor, and receiving a sixth optimization operation performed according to the sixth error message in the case where a sixth error message is obtained after the compilation, installation, and running, so that the storage resource scheduling service component is compiled, installed, and run after the sixth optimization operation; wherein the sixth optimization operation includes adding a kernel module of a storage part on the Shenwei processor, or also includes adjusting a dependency package related to encapsulation and packaging, adjusting a dependency version related to encapsulation and packaging, and modifying one or more of the created configuration files; The computing resource scheduling service module, its generation method also includes, when the authentication management service component after the first optimization operation, the cloud computing resource management and control service component after the second optimization operation, the computing resource scheduling service component after the third optimization operation, the image resource scheduling service component after the fourth optimization operation, the network resource scheduling service component after the fifth optimization operation, and the storage resource scheduling service component after the sixth optimization operation are all compiled, installed and run, according to the seventh error information generated when the cloud computing resource management and control service component after the second optimization operation sends resource scheduling information to the computing resource scheduling service component after the third optimization operation, performing a seventh optimization operation on the computing resource scheduling service component after the third optimization operation, so that the computing resource scheduling service component after the seventh optimization operation successfully receives the resource scheduling information of the cloud computing resource management and control service component after the second optimization operation; wherein, the seventh optimization operation includes modifying the configuration file of the computing resource scheduling service component after the third optimization operation.

6. The cloud computing resource management platform system based on the Shenwei processor as claimed in claim 5, characterized in that: The authentication management service module is used to provide authentication services for resource application requests and tokens; The cloud computing resource management control service module is used to process resource scheduling requests and generate resource scheduling tasks, and provide control services for computing, storage, network, and mirroring resources; The computing resource scheduling service module is used to provide virtual machine lifecycle management and bare metal server management capabilities; The image resource scheduling service module is used to provide virtual machine image management capabilities; The network resource scheduling service module is used to provide full life cycle management capabilities for virtual resource networks; The storage resource scheduling service module is used to provide cloud hard disk full life cycle management capabilities.

7. A cloud computing resource management method based on Shenwei processor, characterized in that: The method is implemented by using the cloud computing resource management platform system based on the Shenwei processor as claimed in claim 5 or 6, and the method includes: Utilize the authentication management service module to receive a resource application authentication request from a user, and if the resource application authentication request is authenticated, generate a token and return the token to the user; Based on the KVM virtualization monitor suitable for the Shenwei processor, the cloud computing resource management control service module is used to receive the resource scheduling request carrying the token, and the token carried by the resource scheduling request is sent to the authentication management service module; Utilize the authentication management service module to verify the validity of the token carried in the resource scheduling request, and if valid, return the result of token verification validity to the cloud computing resource management control service module; Based on the KVM virtualization monitor suitable for the Shenwei processor, the cloud computing resource management control service module is used to send the verified valid token and the resource scheduling information in the resource scheduling request to the computing resource scheduling service module; Based on the virtualization realized by calling the KVM virtual machine applicable to the Shenwei processor through the libvirt library function, the computing resource scheduling service module is used to send the image resource scheduling request, the network resource scheduling request and the storage resource scheduling request to the image resource scheduling service module, the network resource scheduling service module and the storage resource scheduling service module respectively according to the computing resource scheduling information; Virtualization is achieved based on calling the KVM virtual machine suitable for the Shenwei processor through the libvirt library function, and the computing resource scheduling service module is used to receive the schedulable image resource information returned by the image resource scheduling service module, the schedulable network resource information returned by the network resource scheduling service module, and the schedulable storage resource information returned by the storage resource scheduling service module, and resources are created according to the schedulable image resource information, the schedulable network resource information, and the schedulable storage resource information, and the created resources are returned to the user.

8. The cloud computing resource management method based on the Shenwei processor according to claim 7, characterized in that: Also includes: Based on the implementation of virtualization by calling the KVM virtual machine suitable for the Shenwei processor through the libvirt library function, the computing resource scheduling service module is used to perform one or more virtual machine lifecycle management and bare metal server management operations, wherein the bare metal server management operations include bare metal server creation, deletion, startup, shutdown, and restart, and the virtual machine lifecycle management includes virtual machine creation, editing, snapshot creation, startup, shutdown, suspension, recovery, pause, resume pause, restart, bind public network IP, unbind public network IP, connect to network, disconnect from network, edit security group, and monitor; Using the image resource scheduling service module to perform one or more virtual machine image management operations, wherein the virtual machine image management operations include creating, deleting and editing images; Using the network resource scheduling service module to perform one or more virtual resource network life cycle management operations, wherein the virtual resource network life cycle management includes creation, deletion, editing, creation of subnets, editing of subnets, and deletion of subnets of virtual resource networks; The storage resource scheduling service module is used to perform one or more cloud hard disk life cycle management operations, wherein the cloud hard disk life cycle management operations include creation, deletion, and editing, and image creation, deletion, and editing.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 4, 7, and 8 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 4, 7 and 8 are implemented.

Citation Information

Patent Citations

  • A container resource management system based on Shenwei architecture

    CN109739640A

  • Full-life-cycle management method for cloud service factory platform

    CN110750333A

  • Operation management method for electric power system cloud simulation platform

    WO2016101638A1