A cloud platform control method, device, equipment and medium
Patent Information
- Application Number
- CN202311369977.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2043-10-20
AI Technical Summary
[0004]本发明的目的是提供一种云平台的控制方法、装置、设备及介质,以解决相关的云平台部署中需要专业人员根据部署操作手册,在了解平台配置参数的基础上进行云平台部署所导致的云平台部署过程复杂、效率低的技术问题
[0050]本发明所提供的云平台的控制方法,包括:获取用于表征云平台的控制数据;将控制数据进行可视化分类处理并获取包含控制数据的可视化界面;响应用户对可视化界面的操作并根据预先建立的配置文件确定新的配置文件;根据新的配置文件控制云平台。
Smart Images

Figure CN117632144B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of cloud platform technology, and in particular to a control method, apparatus, equipment and medium for a cloud platform. Background Technology
[0002] With the rise of enterprise digital transformation, the demand for cloud computing will further increase. Deploying a cloud platform is a complex task involving many components and configuration items. It requires professional R&D and operation personnel to deploy the cloud platform based on the deployment operation manual and an accurate understanding of the platform configuration parameters. The deployment process is complex and inefficient.
[0003] Therefore, providing a control method for cloud platforms to simplify cloud platform deployment and improve the efficiency of cloud platform product deployment is a technical problem that urgently needs to be solved by those in the field. Summary of the Invention
[0004] The purpose of this invention is to provide a control method, device, equipment, and medium for a cloud platform, in order to solve the technical problem that cloud platform deployment is complex and inefficient because it requires professionals to deploy the cloud platform based on the deployment operation manual and understanding of the platform configuration parameters.
[0005] To address the aforementioned technical problems, this invention provides a cloud platform control method, comprising:
[0006] Acquire control data used to characterize the cloud platform; wherein the control data includes cluster node data types and parameter data types;
[0007] The control data is visually categorized and processed to obtain a visual interface containing the control data;
[0008] Respond to user actions on the visual interface and determine a new configuration file based on a pre-established configuration file;
[0009] The cloud platform is controlled according to the new configuration file.
[0010] On one hand, the step of visualizing and classifying the control data and obtaining a visual interface containing the control data includes:
[0011] Obtain the type of current control data and the pre-set visualization classification and processing strategy corresponding to each type of control data;
[0012] Based on the type of the current control data, obtain the target visualization classification processing strategy corresponding to the type of the current control data from the preset visualization classification processing strategies corresponding to each type of control data;
[0013] The current control data is subjected to the visualization classification processing according to the target visualization classification processing strategy, and the visualization interface containing the current control data is obtained.
[0014] On the other hand, the control data is of cluster node data type, and the visualization classification processing strategy corresponding to the control data of cluster node data type includes:
[0015] Obtain information about all nodes to be used for cloud platform control; wherein, the information of each node includes at least one of the following: node name information, network interface card information, and Internet Protocol address information;
[0016] The information of the nodes and the corresponding selectable roles for each node are displayed on the visualization interface; the role groups include at least one of the following: control role, computing role, and network role;
[0017] Correspondingly, responding to user operations on the visual interface and determining a new configuration file based on a pre-established configuration file includes:
[0018] In response to the user's operation on the visualization interface to select the host to be used as a cluster node to the target role group in the corresponding role group to be selected, the host to be used as a cluster node is selected as the cluster node.
[0019] Obtain the cluster node information from the information of all nodes;
[0020] Target information is filtered from the information of the cluster nodes according to the pre-established configuration file;
[0021] The new configuration file is created based on the target information.
[0022] On the other hand, displaying the node information on the visualization interface includes:
[0023] Obtain the type of information to be displayed for each node;
[0024] Based on the type of information to be displayed for each node, select the information to be displayed from all the information of each node;
[0025] The information to be displayed is shown on the visualization interface.
[0026] On the other hand, the control data is of parametric data type, and the visualization classification processing strategy corresponding to the control data of parametric data type includes:
[0027] Obtain all parameter data to be used for cloud platform control;
[0028] The parameter data is categorized according to its properties, and parameter keys and default values are stored by type. The properties include at least one of the following: general configuration properties, computation configuration properties, storage configuration properties, network configuration properties, and security configuration properties.
[0029] Based on the parameter property attributes and the parameter data display attributes, the parameter data whose display attribute is to be displayed is categorized and displayed on the visualization interface; wherein, the display attribute is to be displayed or hidden;
[0030] Correspondingly, the visualization interface is provided with operation functions for the parameter data, and the operation functions include at least one of the following: add function, delete function, modify function, and query function; the step of responding to the user's operation on the visualization interface and determining a new configuration file according to a pre-established configuration file includes:
[0031] From the moment the parameter data is detected to be categorized and displayed on the visualization interface, if the user performs an operation on the parameter data on the visualization interface within a first preset time period, the operation is responded to.
[0032] From the moment the parameter data is detected and categorized and displayed on the visualization interface, if no user operation on the parameter data is detected on the visualization interface within the first preset time period, the current visualization interface is maintained.
[0033] From the moment the parameter data is detected and categorized for display on the visualization interface, within a second preset time period, the system responds to the user's save operation on the visualization interface, so as to write the hidden parameter data into the pre-established configuration file according to the default value and write the parameter data on the visualization interface into the pre-established configuration file to determine the new configuration file; wherein, the value of the second preset time period is greater than the value of the first preset time period.
[0034] On the other hand, the parameter data includes control parameter data and storage device information data; the control parameter data is data used to control the storage device; obtaining the storage device information data from the control data used to characterize the cloud platform includes:
[0035] Obtain the list of parameters required for interfacing with each storage type;
[0036] Information on different types of storage devices established by the user based on the parameter list is obtained as storage device information data in the control data used to characterize the cloud platform; wherein, the storage device information includes at least one of the following: Internet Protocol address information, port information, driver information, storage pool name information, and user password.
[0037] On the other hand, before controlling the cloud platform according to the new configuration file, the following is also included:
[0038] Determine whether the target deployment version of the cloud platform has been obtained;
[0039] If so, proceed to the step of controlling the cloud platform according to the new configuration file;
[0040] If not, then obtain the target deployment version of the cloud platform and proceed to the step of controlling the cloud platform according to the new configuration file.
[0041] To address the aforementioned technical problems, the present invention also provides a control device for a cloud platform, comprising:
[0042] The acquisition module is used to acquire control data that characterizes the cloud platform; wherein, the control data includes cluster node data types and parameter data types.
[0043] The processing and acquisition module is used to perform visual classification processing on the control data and acquire a visual interface containing the control data;
[0044] The response and determination module is used to respond to the user's operation on the visual interface and determine a new configuration file based on a pre-established configuration file.
[0045] The control module is used to control the cloud platform according to the new configuration file.
[0046] To address the aforementioned technical problems, the present invention also provides a control device for a cloud platform, comprising:
[0047] Memory, used to store computer programs;
[0048] A processor is used to implement the steps of the cloud platform control method described above when executing the computer program.
[0049] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the cloud platform control method described above.
[0050] The cloud platform control method provided by the present invention includes: acquiring control data for characterizing the cloud platform; performing visual classification processing on the control data and acquiring a visual interface containing the control data; responding to user operations on the visual interface and determining a new configuration file based on a pre-established configuration file; and controlling the cloud platform according to the new configuration file.
[0051] The beneficial effects of this invention are as follows: First, because the control data used to characterize the cloud platform is visually categorized, users no longer need to understand the control parameters based on the deployment operation manual before deploying the cloud platform. Instead, they can directly deploy the cloud platform based on the visually categorized control parameters, greatly simplifying the cloud platform deployment process and improving its efficiency. Second, since users do not need to consult the deployment operation manual or understand the configuration parameters before deploying the cloud platform, even non-professional R&D and maintenance personnel can complete the deployment, further improving efficiency. Third, through visualization, users can intuitively understand the control data in the cloud platform control system, significantly improving deployment efficiency. Furthermore, the control data includes cluster node data and parameter data, encompassing most types of data used in cloud platform deployment, allowing deployment to be completed based on various types of control data.
[0052] When visualizing and classifying control data and obtaining a visualization interface containing the control data, the system selects a target visualization classification strategy corresponding to the type of control data from a pre-defined set of visualization classification strategies for each type. The system then performs visualization classification on the current control data according to the target strategy and obtains a visualization interface containing the current control data. By setting different visualization strategies for different types of control data and displaying the control data on the visualization interface according to the determined strategies, the visualization of control parameters becomes more rational.
[0053] When visualizing control data of cluster node data types, nodes are grouped according to their roles on the visualization interface, enabling node selection. The visualization interface displays only the information to be shown, rather than all node information, simplifying the display and facilitating user viewing and operation. When visualizing control data of parameter data types, parameters are categorized and selectively displayed (attribute display) on the visualization interface, facilitating parameter data processing and improving data security. Furthermore, the visualization interface includes parameter data manipulation functions, allowing users to process parameters and ensuring the deployed cloud platform meets user needs as much as possible.
[0054] In addition, the present invention also provides a cloud platform control device, a cloud platform control equipment, and a computer-readable storage medium, which have the same or corresponding technical features as the cloud platform control method mentioned above, and have the same effects. Attached Figure Description
[0055] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0056] Figure 1 A schematic diagram of a cloud platform architecture provided in an embodiment of the present invention;
[0057] Figure 2 A flowchart illustrating a cloud platform control method provided in an embodiment of the present invention;
[0058] Figure 3 A flowchart illustrating a method for deploying a cloud platform, as provided in an embodiment of the present invention;
[0059] Figure 4 A structural diagram of a cloud platform control device provided in an embodiment of the present invention;
[0060] Figure 5 This is a structural diagram of the control device for a cloud platform provided in another embodiment of the present invention. Detailed Implementation
[0061] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.
[0062] The core of this invention is to provide a control method, device, equipment, and medium for a cloud platform, in order to solve the technical problem of complex and inefficient cloud platform deployment processes caused by the need for professionals to deploy cloud platforms based on deployment operation manuals and understanding of platform configuration parameters.
[0063] With the rise of enterprise digital transformation, the demand for cloud computing will further increase. A cloud platform is a software and service platform built on cloud computing technology. It provides a reliable, flexible, and scalable way to build, deploy, and manage applications and services. It typically includes computing, storage, networking, databases, security, analytics, and other related services, which can be accessed and managed via the internet, and users can select and configure them according to their needs.
[0064] Cloud platforms can be categorized into public clouds, private clouds, and hybrid clouds based on their deployment location, access policies, and target users. They can also be classified into three service models based on the services provided: Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS). Therefore, a cloud platform is a complex system involving many functional components.
[0065] Cloud platforms store data or run applications and services in a distributed manner. Figure 1 A schematic diagram of a cloud platform architecture provided for an embodiment of the present invention, such as... Figure 1 As shown, cloud platform 1 contains multiple server nodes 2, and cloud platform 1 is connected to storage devices 3. The cloud platform deployment process involves deploying the cloud platform functional components onto a cluster composed of multiple server nodes (hereinafter referred to as nodes) to provide users with services such as control, computing, storage, networking, and security. The roles corresponding to each server node can be control roles, computing roles, network roles, etc., without limitation, and are determined according to actual needs. The deployment of the cloud platform involves many components and configuration items, requiring professional R&D and operation personnel to perform the platform deployment based on a thorough understanding of the platform configuration parameters and the deployment operation manual.
[0066] To simplify cloud platform deployment, this invention proposes a visualized cloud platform control method, i.e., a visualized cloud platform deployment scheme. The visualized scheme enables cloud platform version registration management, cloud platform node management, platform parameter management, storage device management, platform deployment management, and operation and maintenance management through a page-based interface. Currently, the technical architecture used for complex systems is generally a microservice architecture. Therefore, this invention uses a cloud platform deployment with a microservice architecture as an example to illustrate the cloud platform control method.
[0067] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Figure 2 A flowchart of a cloud platform control method provided in an embodiment of the present invention is shown below. Figure 2 As shown, the method includes:
[0068] S10: Obtain control data used to characterize the cloud platform; the types of control data include cluster node data types and parameter data types;
[0069] S11: Visualize and classify the control data and obtain a visualization interface containing the control data;
[0070] S12: Respond to user actions on the visual interface and determine a new configuration file based on a pre-established configuration file;
[0071] S13: Control the cloud platform according to the new configuration file.
[0072] To control (i.e., deploy) a cloud platform, it is first necessary to obtain control data characterizing the cloud platform. Cloud platform deployment includes cluster node configuration and cluster deployment parameter configuration; therefore, the control data characterizing the cloud platform includes cluster node data and parameter data. Cluster node data contains information data corresponding to each node; parameter data includes control parameter data and storage device information data corresponding to the external storage devices interfaced with the virtualization platform. The control parameter data is used to control the storage devices. For example, if the external storage device interfaced with the virtualization platform is device A, then device A can be controlled based on the current control parameter data.
[0073] To simplify cloud platform deployment, this embodiment of the invention performs visual classification processing on control data. Specifically, for the visual classification processing of cluster node data, it can be based on the node's role (control, computation, network, etc.), such as classifying all selectable host nodes into four types: type A, type B, type C, and type D. For the visual classification processing of parameter data, it can be based on parameter properties (general configuration, computation configuration, storage configuration, network configuration, security configuration, etc.), such as classifying parameters into four types: type E, type F, type G, and type H. The number of categories for node and parameter classification is not limited and is determined based on the actual situation. After visual classification processing of the control data, a visual interface containing the control data is obtained.
[0074] When deploying the cloud platform, users can operate directly on the visual interface, such as selecting the required nodes, manipulating parameter data, and saving the parameters. After obtaining the required nodes and parameter data, the pre-established configuration file (the underlying configuration file for cloud platform deployment) is updated based on the required node information and parameter data to obtain a new configuration file, and the cloud platform is controlled according to the new configuration file.
[0075] The cloud platform control method provided by this invention includes acquiring control data characterizing the cloud platform; performing visual classification processing on the control data and obtaining a visual interface containing the control data; responding to user operations on the visual interface and determining a new configuration file based on a pre-established configuration file; and controlling the cloud platform according to the new configuration file. Because the control data characterizing the cloud platform is visually classified, firstly, users no longer need to understand the control parameters based on a deployment operation manual before deploying the cloud platform; instead, they can directly deploy the cloud platform based on the visual classification of the control parameters, greatly simplifying the cloud platform deployment process and improving its efficiency. Secondly, since users do not need to consult a deployment operation manual or understand the configuration parameters before deploying the cloud platform, even non-professional R&D and maintenance personnel can complete the deployment, improving the efficiency of cloud platform deployment. Thirdly, through visualization, users can intuitively understand the control data in the cloud platform control, and with clear control data, the efficiency of cloud platform deployment is greatly improved. Furthermore, the control data includes cluster node data and parameter data, encompassing most types of data used in cloud platform deployment, enabling deployment based on various types of control data.
[0076] Since control data includes different categories, such as the cluster node data type and parameter data type described above, in order to perform visual classification processing on different categories of control data, in some embodiments, the visual classification processing of control data and the acquisition of a visualization interface containing the control data include:
[0077] Obtain the type of current control data and the pre-defined visualization classification and processing strategies corresponding to each type of control data;
[0078] Based on the type of the current control data, obtain the target visualization classification and processing strategy corresponding to the type of the current control data from the pre-set visualization classification and processing strategies corresponding to each type of control data;
[0079] Based on the target visualization classification processing strategy, the current control data is visualized and classified, and a visualization interface containing the current control data is obtained.
[0080] The method provided in this embodiment sets different visualization processing strategies for different types of control data (including cluster node data and parameter data), and displays the control data on the visualization interface according to the determined visualization processing strategies. This makes the visualization processing of control parameters more reasonable. For example, for cluster node data, nodes can be assigned according to node roles on the visualization interface; for parameter data, parameters can be visualized and classified according to their properties on the visualization interface. However, in practice, during the visualization classification processing of cluster node data and parameter data, display attributes (show or hide) are set for parameter data, and display attributes are also set for node data. If node data is hidden, but the hidden node is actually the node that the user needs to select, the user will not be able to see the node on the visualization interface, thus making it impossible to select the required cloud platform node and deploy the required cloud platform. Therefore, the different visualization processing strategies for different control data provided in this embodiment better meet the actual needs of cloud platform deployment.
[0081] Specifically, the control data type is a cluster node data type, and the visualization classification and processing strategies corresponding to the control data of the cluster node data type include:
[0082] Obtain information about all nodes to be used for cloud platform control; whereby each node's information includes at least one of the following: node name information, network interface card information, or Internet Protocol address information;
[0083] The node information and the corresponding selectable roles for each node are displayed in a visual interface; the role grouping includes at least one of the following: control role, computation role, and network role;
[0084] Correspondingly, responding to user actions on the visual interface and determining a new configuration file based on a pre-established configuration file includes:
[0085] Responding to the user's operation on the visual interface to select the host to be used as a cluster node into the target role group in the corresponding selectable role group, so as to select the host to be used as a cluster node as a cluster node.
[0086] Obtain cluster node information from information from all nodes;
[0087] Target information is filtered from the information of cluster nodes based on a pre-established configuration file;
[0088] Create a new configuration file based on the target information.
[0089] The primary task in cloud platform deployment is selecting cluster nodes and assigning them according to their roles. For node selection, the visualization solution in this embodiment first imports all host information through the host management module, enabling data storage and page display of node information. When users select nodes during cloud platform deployment, all available hosts in the host management module are displayed. Customers simply select the corresponding host under the appropriate role group on the page to complete the cluster node selection; no node information such as Internet Protocol (IP) information, network interface card (NIC) information, hostname, or host identity document (ID) needs to be configured. The visualization processing logic queries the host information already stored in the host management module based on the host ID under each selected group on the page. This retrieves all host information, which is then filtered and populated according to the host information required by the underlying configuration file of the cloud platform deployment. Finally, the selected host information is written into the host configuration file. It should be noted that querying all information about a host is not necessary and can be determined based on the actual situation. Specifically, when a user needs to know all information about a host, they can query it in the host management module by host ID. When a user does not need to query all information about a host, they do not need to perform this operation.
[0090] The above description categorizes all available host nodes into four types: Type A, Type B, Type C, and Type D. Assuming nodes a and b are hosts to be used as cluster nodes, the user selects node a as a Type A node based on its role, and selects node b as a Type B node based on its role. This completes the selection of cluster nodes for the cloud platform. The necessary information for nodes a and b is then filtered and populated according to the underlying configuration file deployed by the cloud platform, and finally, the information for nodes a and b selected on the page is written into the host configuration file.
[0091] In the method provided in this embodiment, when visualizing the control data of the cluster node data type, the nodes are grouped according to their roles on the visualization interface, thereby enabling the selection of cluster nodes.
[0092] To simplify the content displayed on the visualization interface, in some embodiments, displaying node information on the visualization interface includes:
[0093] Obtain the type of information to be displayed at each node;
[0094] Based on the type of information to be displayed at each node, select the information to be displayed from all the information at each node;
[0095] The information to be displayed is presented on a visual interface.
[0096] There is no limitation on the type of information to be displayed for each node. In this embodiment of the invention, since nodes are allocated based on host roles, the information to be displayed includes the host name. The host name is displayed on the visualization interface, which allows users to determine the host role based on the host name after obtaining it, thereby quickly completing the selection of cluster nodes. Furthermore, only the information to be displayed is shown on the visualization interface, rather than all the information of the nodes, simplifying the display and making it easier for users to view and operate.
[0097] The above describes the visualization process for control data of cluster node data types. This embodiment provides the visualization process for control data of parameter data types. Specifically, the control data type is parameter data type, and the visualization classification and processing strategy for control data of parameter data type includes:
[0098] Obtain all parameter data to be used for cloud platform control;
[0099] The parameter data is categorized according to its properties, and the parameter keys and default values are stored by type. The parameter properties include at least one of the following: general configuration properties, computing configuration properties, storage configuration properties, network configuration properties, and security configuration properties.
[0100] Based on the parameter property attributes and the display attributes of the parameter data, parameter data with the display attribute is categorized and displayed on the visualization interface; where the display attribute is either to be shown or hidden.
[0101] Correspondingly, the visual interface is equipped with operation functions for parameter data, which include at least one of the following: add, delete, modify, or query functions; responding to user operations on the visual interface and determining a new configuration file based on a pre-established configuration file includes:
[0102] From the moment the parameter data is detected to be categorized and displayed on the visualization interface, if the user performs an operation on the parameter data on the visualization interface within the first preset time period, the response operation will be initiated.
[0103] If no user operation on the parameter data is detected on the visualization interface within the first preset time period after the parameter data is categorized and displayed on the visualization interface, the current visualization interface will be maintained.
[0104] From the moment the parameter data is detected and categorized and displayed on the visualization interface, the system responds to the user's save operation on the visualization interface within a second preset time period. This is done so that the hidden parameter data is written to a pre-established configuration file according to the default values, and the parameter data on the visualization interface is also written to a pre-established configuration file to determine the new configuration file. The value of the second preset time period is greater than the value of the first preset time period.
[0105] The second step in cloud platform deployment is configuring the deployment parameters for the cluster. Cluster parameters are numerous and varied, involving many configuration files with strict format requirements. In this embodiment, visualization manages parameter data through parameter management (generally based on parameter attributes, such as general configuration, computing configuration, storage configuration, network configuration, security configuration, etc.), pre-stores parameter keys and default values by category, and displays them categorized on the page. It also supports adding, deleting, modifying, and querying pre-stored parameters, facilitating flexible parameter adjustments. Before cloud platform deployment, parameter configuration on the page is automatically categorized and displayed based on the parameter type and display attribute in parameter management. A parameter set to "display" will be displayed on the configurable page; conversely, a parameter set to "not display" will not be visible. Default values are provided for "display" parameters; manual modification is possible, while default values are used if no modification is needed. The proportion of modifiable parameters varies slightly depending on the scenario, but the overall proportion is low, allowing for environment configuration with minimal changes. When a user clicks the save button, the page parameters are written to the underlying configuration file. For parameters that are not displayed, the processing logic will automatically write the default value of the parameter to the configuration file, thus avoiding the impact of missing parameters on the execution of the deployment.
[0106] Specifically, if parameter 'm' is a displayable parameter and parameter 'n' is a non-displayable parameter, the visual interface supports adding, deleting, modifying, and querying pre-stored parameters. Therefore, users can manipulate parameter 'm' on the visual interface. For example, when a user manipulates parameter 'm' on the visual interface, the operation is based on the default value of parameter 'm' displayed on the visual interface. Taking modifying parameter 'm' as an example, the default value of parameter 'm' is modified on the visual interface. After the modification is complete, clicking the save button will write the page parameter (at this point, for parameter 'm', it is the modified parameter 'm') to the underlying configuration file. For the non-displayable parameter 'n', clicking the save button will write the default value of parameter 'n' to the configuration file. This achieves both writing parameters displayed on the visual interface to the configuration file and writing parameters not displayed on the visual interface to the configuration file, ensuring the integrity of parameters during cloud platform deployment as much as possible.
[0107] In the method provided in this embodiment, when visualizing and classifying parameter data and visualizing control data of parameter data types, the parameters are displayed in a categorized manner and selectively (displaying attributes) on the visualization interface. This facilitates user processing of parameter data and improves the security of parameter data. Furthermore, the visualization interface includes operation functions for parameter data, enabling users to process the parameters and thus ensuring that the deployed cloud platform meets user needs as much as possible.
[0108] To minimize user wait times and improve cloud platform deployment efficiency, this embodiment implements a timeout mechanism with two preset durations: a first preset duration and a second preset duration. Within the first preset duration, the system detects whether the user performs any operations on the parameter data in the visual interface. If an operation is detected, the system responds accordingly, ensuring the user's actions are promptly displayed on the visual interface. If no operation is detected, the current visual interface remains unchanged. The second preset duration allows for responses to user save operations on the visual interface, minimizing the possibility of failure to promptly write parameter data to the configuration file after user interaction or inaction, thus improving cloud platform deployment efficiency. The first and second preset durations are not limited, as long as the value of the second preset duration is greater than the value of the first preset duration.
[0109] In implementation, the parameter data includes control parameter data and storage device information data, where the control parameter data is used to control the storage device. During the visualization process of the parameter data described above, in order to obtain the storage device information data, in some embodiments, obtaining the storage device information data from the control data used to characterize the cloud platform includes:
[0110] Obtain the list of parameters required for interfacing with each storage type;
[0111] Information on different types of storage devices created by the user based on the parameter list is obtained and used as storage device information data in the control data used to characterize the cloud platform; wherein, the storage device information includes at least one of the following: Internet Protocol address information, port information, driver information, storage pool name information, and user password.
[0112] Virtualization platforms typically interface with external storage devices. In this embodiment of the invention, a list of parameters required for interface connectivity is organized according to different storage types, with parameter groups corresponding to storage types. For example, type M storage devices correspond to a series of parameters, and type N storage devices correspond to a series of parameters. Users can create different types of storage device information based on storage parameters. For instance, if type M storage devices include two storage devices, M1 and M2, then the storage device information corresponding to M1 and M2 needs to be configured. When configuring storage device information, users only need to configure the actual storage device information, such as IP address, port, driver, storage pool name, and user password, to provide configuration data for cloud platform interface connectivity. If parameters are configured before cloud platform deployment, the user-created storage device information can be selected for storage configuration, thus completing the configuration information required for cloud platform interface connectivity.
[0113] The method for obtaining information about storage devices connected to the cloud platform provided in this embodiment makes the configuration information during cloud platform deployment more complete. Furthermore, when configuring storage device information, users only need to configure the actual storage device information. On the one hand, the configuration requirements are met based on the actual storage device information. On the other hand, using the actual storage device information during cloud platform deployment makes the configuration information during cloud platform deployment more effective.
[0114] To complete the deployment of the cloud platform, in some embodiments, the following steps are included before controlling the cloud platform according to the new configuration file:
[0115] Determine whether the target deployment version of the cloud platform has been obtained;
[0116] If so, proceed to the step of controlling the cloud platform according to the new configuration file;
[0117] If not, obtain the target deployment version of the cloud platform and proceed to the step of controlling the cloud platform according to the new configuration file.
[0118] The visual deployment of the cloud platform begins with environment creation, which generally involves four steps: version selection, cluster node configuration, environment parameter configuration, and deployment execution. There is no limitation on the target deployment version of the cloud platform; it is determined based on the user's actual needs. The timing of cloud platform deployment is also not limited, as long as it is performed before execution. For example, version selection can be done before selecting cluster nodes or after configuring environment parameters.
[0119] In the method provided in this embodiment, before controlling the cloud platform according to the new configuration file, it is determined whether the target deployment version of the cloud platform has been obtained. If the target deployment version of the cloud platform has not been obtained, the target deployment version of the cloud platform is obtained first, and then the cloud platform is deployed according to the new configuration file under the target deployment version, so that the deployed cloud platform better meets the user's needs.
[0120] Figure 3 A flowchart illustrating a method for deploying a cloud platform provided in an embodiment of the present invention is shown below. Figure 3 As shown, the method includes
[0121] S14: Select the platform deployment version on the visual interface;
[0122] S15: Process the visualized control data to obtain the deployment file;
[0123] S16: Perform deployment on the visual interface.
[0124] In step S15, the visualized control data is processed to obtain the deployment file. Nodes are selected through visualized node management, and parameters are configured through visualized parameter management. The parameter configuration includes the storage configuration obtained after storage management. After completing the parameter configuration, the configuration is written to the configuration file.
[0125] The method provided in this embodiment completes the technical implementation of version selection, node configuration, parameter configuration and execution deployment in a visual way. It completes complex underlying configuration through visual operation (i.e. page operation), which reduces the complexity of cloud platform deployment and improves cloud platform deployment efficiency.
[0126] In the above embodiments, the control method for the cloud platform has been described in detail. This invention also provides embodiments of a control device and control equipment for the cloud platform. It should be noted that this invention describes the embodiments of the device from two perspectives: one based on functional modules, and the other based on hardware.
[0127] Figure 4 This is a structural diagram of a cloud platform control device provided according to an embodiment of the present invention. This embodiment, based on functional modules, includes:
[0128] The acquisition module 10 is used to acquire control data that characterizes the cloud platform; wherein, the types of control data include cluster node data types and parameter data types;
[0129] The processing and acquisition module 11 is used to perform visual classification processing on the control data and acquire a visual interface containing the control data.
[0130] The response and determination module 12 is used to respond to the user's operation on the visual interface and determine the new configuration file according to the pre-established configuration file;
[0131] Control module 13 is used to control the cloud platform according to the new configuration file.
[0132] The processing and acquisition module 11 specifically includes:
[0133] The first acquisition module is used to acquire the type of current control data and the pre-set visualization classification and processing strategies corresponding to each type of control data;
[0134] The second acquisition module is used to acquire the target visualization classification and processing strategy corresponding to the type of current control data from the preset visualization classification and processing strategies corresponding to each type of control data according to the type of current control data.
[0135] The visualization classification and acquisition module is used to perform visualization classification on the current control data according to the target visualization classification strategy and acquire a visualization interface containing the current control data.
[0136] The control data is of cluster node data type, and the visualization classification and processing strategies for control data of cluster node data type include:
[0137] The third acquisition module is used to acquire information about all nodes to be controlled by the cloud platform; the information of each node includes at least one of the following: node name information, network card information, and Internet protocol address information.
[0138] The first display module is used to display the node information and the corresponding selectable roles for each node on the visual interface; the role group includes at least one of the following: control role, computing role, network role;
[0139] Correspondingly, the response and determination module 12 includes:
[0140] The first response module is used to respond to the user's operation on the visual interface to select the host to be used as a cluster node into the target role group in the corresponding selectable role group according to the role of the node, so as to select the host to be used as a cluster node as a cluster node.
[0141] The fourth acquisition module is used to obtain cluster node information from the information of all nodes;
[0142] The filtering module is used to filter target information from the information of cluster nodes according to a pre-established configuration file;
[0143] Create a module to build a new configuration file based on the target information.
[0144] The first display module, specifically used to display node information on the visualization interface, includes:
[0145] The fifth acquisition module is used to acquire the type of information to be displayed at each node;
[0146] The sixth acquisition module is used to select information to be displayed from all the information of each node according to the type of information to be displayed at each node;
[0147] The display submodule is used to display the information to be shown on the visual interface.
[0148] The control data is of parametric data type, and the visualization classification and processing strategies for parametric data type control data include:
[0149] The seventh acquisition module is used to acquire all parameter data to be used for cloud platform control;
[0150] The classification and storage module is used to classify parameter data according to parameter properties and to store parameter keys and default values by type; wherein the parameter properties include at least one of the following: general configuration properties, computing configuration properties, storage configuration properties, network configuration properties, and security configuration properties;
[0151] The second display module is used to classify and display parameter data with the display attribute on the visualization interface according to the parameter property attribute and the display attribute of the parameter data; where the display attribute is either to show or hide.
[0152] Correspondingly, the visual interface is equipped with operation functions for parameter data, which include at least one of the following: add, delete, modify, or query; the response and confirmation module specifically includes:
[0153] The second response module is used to respond if, after the parameter data is categorized and displayed on the visualization interface from the moment it is detected that the user performs an operation on the parameter data on the visualization interface within the first preset time period;
[0154] The module is used to maintain the current visualization interface if no user operation on the parameter data is detected on the visualization interface within a first preset time period after the parameter data is categorized and displayed on the visualization interface.
[0155] The third response module is used to respond to the user's save operation on the visualization interface within a second preset time period after the parameter data is detected and categorized and displayed on the visualization interface. This is to write the hidden parameter data into a pre-established configuration file according to the default value and write the parameter data on the visualization interface into the pre-established configuration file to determine the new configuration file. The value of the second preset time period is greater than the value of the first preset time period.
[0156] The parameter data includes control parameter data and storage device information data; the control parameter data is data used to control the storage device; the control data is storage device information data in the control data used to characterize the cloud platform. The acquisition module 10 includes:
[0157] The eighth module is used to obtain the list of parameters required for docking with each storage type;
[0158] The ninth acquisition module is used to acquire information about different types of storage devices established by the user according to the parameter list, so as to serve as storage device information data in the control data used to characterize the cloud platform; wherein, the storage device information includes at least one of the following: Internet protocol address information, port information, driver information, storage pool name information, and user password.
[0159] The cloud platform's control devices also include:
[0160] The judgment module is used to determine whether the target deployment version of the cloud platform has been obtained; if so, the control module 13 is triggered; if not, the tenth acquisition module and the control module 13 are triggered in sequence.
[0161] The tenth module is used to obtain the target deployment version of the cloud platform.
[0162] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.
[0163] In the cloud platform control device provided in this embodiment of the invention, the acquisition module acquires control data used to characterize the cloud platform; the processing and acquisition module performs visual classification processing on the control data and acquires a visual interface containing the control data; the response and determination module responds to the user's operation on the visual interface and determines a new configuration file according to a pre-established configuration file; and the control module controls the cloud platform according to the new configuration file. Because the control data used to characterize the cloud platform is visually categorized, firstly, users no longer need to understand the control parameters based on the deployment operation manual before deploying the cloud platform. Instead, they can directly deploy the cloud platform based on the visually categorized control parameters, greatly simplifying the deployment process and improving efficiency. Secondly, since users don't need to consult the deployment operation manual or understand the configuration parameters before deploying the cloud platform, even non-professional R&D and maintenance personnel can complete the deployment, further improving efficiency. Thirdly, the visualization process allows users to intuitively understand the control data within the cloud platform, significantly improving deployment efficiency. Furthermore, the control data includes cluster node data and parameter data, encompassing most of the data types used in cloud platform deployment, enabling deployment based on various types of control data.
[0164] Figure 5 This is a structural diagram of a control device for a cloud platform provided in another embodiment of the present invention. This embodiment is based on a hardware perspective, such as... Figure 5 As shown, the control equipment of the cloud platform includes:
[0165] Memory 20 is used to store computer programs;
[0166] The processor 21 is used to execute computer programs to implement the steps of the cloud platform control method mentioned in the above embodiments.
[0167] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.
[0168] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, is capable of implementing the relevant steps of the cloud platform control method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, and the storage method may be temporary or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the cloud platform control method mentioned above.
[0169] In some embodiments, the control device of the cloud platform may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
[0170] Those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on the control equipment of the cloud platform and may include more or fewer components than shown.
[0171] The cloud platform control device provided in this embodiment of the invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: cloud platform control method, with the same effect as above.
[0172] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, performs the steps described in the above method embodiments.
[0173] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0174] The computer-readable storage medium provided by this invention includes the cloud platform control method mentioned above, and has the same effect.
[0175] The foregoing has provided a detailed description of the control method, apparatus, device, and medium for a cloud platform provided by the present invention. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make various improvements and modifications to the present invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
[0176] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A control method for a cloud platform, characterized in that, include: Acquire control data used to characterize the cloud platform; wherein the control data includes cluster node data types and parameter data types; The control data is visually categorized and processed to obtain a visual interface containing the control data; Respond to user actions on the visual interface and determine a new configuration file based on a pre-established configuration file; Control the cloud platform according to the new configuration file; The step of visualizing and classifying the control data and obtaining a visual interface containing the control data includes: Obtain the type of current control data and the pre-set visualization classification and processing strategy corresponding to each type of control data; Based on the type of the current control data, obtain the target visualization classification processing strategy corresponding to the type of the current control data from the preset visualization classification processing strategies corresponding to each type of control data; The current control data is subjected to the visualization classification processing according to the target visualization classification processing strategy, and the visualization interface containing the current control data is obtained. The control data is of parametric data type, and the visualization classification processing strategy corresponding to the control data of parametric data type includes: Obtain all parameter data to be used for cloud platform control; The parameter data is categorized according to its properties, and parameter keys and default values are stored by type. The parameter properties include at least one of the following: general configuration properties, computation configuration properties, storage configuration properties, network configuration properties, and security configuration properties. Based on the parameter property attributes and the parameter data display attributes, the parameter data whose display attribute is to be displayed is categorized and displayed on the visualization interface; wherein, the display attribute is to be displayed or hidden; Correspondingly, the visualization interface is provided with operation functions for the parameter data, and the operation functions include at least one of the following: add function, delete function, modify function, and query function; the step of responding to the user's operation on the visualization interface and determining a new configuration file according to a pre-established configuration file includes: From the moment the parameter data is detected to be categorized and displayed on the visualization interface, if the user performs an operation on the parameter data on the visualization interface within a first preset time period, the operation is responded to. From the moment the parameter data is detected and categorized and displayed on the visualization interface, if no user operation on the parameter data is detected on the visualization interface within the first preset time period, the current visualization interface is maintained. From the moment the parameter data is detected and categorized for display on the visualization interface, within a second preset time period, the system responds to the user's save operation on the visualization interface, so as to write the hidden parameter data into the pre-established configuration file according to the default value and write the parameter data on the visualization interface into the pre-established configuration file to determine the new configuration file; wherein, the value of the second preset time period is greater than the value of the first preset time period.
2. The cloud platform control method according to claim 1, characterized in that, The control data is of cluster node data type, and the visualization classification processing strategy corresponding to the control data of cluster node data type includes: Obtain information about all nodes to be used for cloud platform control; wherein, the information of each node includes at least one of the following: node name information, network interface card information, and Internet Protocol address information; The information of the nodes and the corresponding selectable roles for each node are displayed on the visualization interface; the role groups include at least one of the following: control role, computing role, and network role; Correspondingly, responding to user operations on the visual interface and determining a new configuration file based on a pre-established configuration file includes: In response to the user's operation on the visualization interface to select the host to be used as a cluster node to the target role group in the corresponding role group to be selected, the host to be used as a cluster node is selected as the cluster node. Obtain the cluster node information from the information of all nodes; Target information is filtered from the information of the cluster nodes according to the pre-established configuration file; The new configuration file is created based on the target information.
3. The cloud platform control method according to claim 2, characterized in that, Displaying the node information on the visualization interface includes: Obtain the type of information to be displayed for each node; Based on the type of information to be displayed for each node, select the information to be displayed from all the information of each node; The information to be displayed is shown on the visualization interface.
4. The control method for a cloud platform according to any one of claims 1 to 3, characterized in that, The parameter data includes control parameter data and storage device information data; the control parameter data is data used to control the storage device. Obtaining the storage device information data from the control data used to characterize the cloud platform includes: Obtain the list of parameters required for interfacing with each storage type; Information on different types of storage devices established by the user based on the parameter list is obtained as storage device information data in the control data used to characterize the cloud platform; wherein, the storage device information includes at least one of the following: Internet Protocol address information, port information, driver information, storage pool name information, and user password.
5. The cloud platform control method according to claim 4, characterized in that, Before controlling the cloud platform according to the new configuration file, the method further includes: Determine whether the target deployment version of the cloud platform has been obtained; If so, proceed to the step of controlling the cloud platform according to the new configuration file; If not, then obtain the target deployment version of the cloud platform and proceed to the step of controlling the cloud platform according to the new configuration file.
6. A control device for a cloud platform, characterized in that, include: The acquisition module is used to acquire control data that characterizes the cloud platform; wherein, the control data includes cluster node data types and parameter data types. The processing and acquisition module is used to perform visual classification processing on the control data and acquire a visual interface containing the control data; The response and determination module is used to respond to the user's operation on the visual interface and determine a new configuration file based on a pre-established configuration file. The control module is used to control the cloud platform according to the new configuration file; The processing and acquisition module specifically includes: The first acquisition module is used to acquire the type of current control data and the pre-set visualization classification and processing strategies corresponding to each type of control data; The second acquisition module is used to acquire the target visualization classification and processing strategy corresponding to the type of current control data from the preset visualization classification and processing strategies corresponding to each type of control data according to the type of current control data. The visualization classification and acquisition module is used to perform visualization classification processing on the current control data according to the target visualization classification processing strategy and acquire the visualization interface containing the current control data. The control data is of parametric data type, and the visualization classification and processing strategies for parametric data type control data include: The seventh acquisition module is used to acquire all parameter data to be used for cloud platform control; The classification and storage module is used to classify parameter data according to parameter properties and to store parameter keys and default values by type; wherein the parameter properties include at least one of the following: general configuration properties, computing configuration properties, storage configuration properties, network configuration properties, and security configuration properties; The second display module is used to classify and display parameter data with the display attribute on the visualization interface according to the parameter property attribute and the display attribute of the parameter data; where the display attribute is either to show or hide. Correspondingly, the visual interface is equipped with operation functions for parameter data, which include at least one of the following: add, delete, modify, or query; the response and confirmation module specifically includes: The second response module is used to respond if, after the parameter data is categorized and displayed on the visualization interface from the moment it is detected that the user performs an operation on the parameter data on the visualization interface within the first preset time period; The module is used to maintain the current visualization interface if no user operation on the parameter data is detected on the visualization interface within a first preset time period after the parameter data is categorized and displayed on the visualization interface. The third response module is used to respond to the user's save operation on the visualization interface within a second preset time period after the parameter data is detected and categorized and displayed on the visualization interface. This is to write the hidden parameter data into a pre-established configuration file according to the default value and write the parameter data on the visualization interface into the pre-established configuration file to determine the new configuration file. The value of the second preset time period is greater than the value of the first preset time period.
7. A control device for a cloud platform, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the control method for the cloud platform as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the cloud platform control method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Cloud platform deployment method, device and equipment and readable storage medium
CN111770174A
Cluster deployment method and device, terminal equipment and storage medium
CN111782232A