A cloud platform management method, device, equipment and medium
By judging the conflict between the associated attributes of user requests and the current function and generating target instructions to execute, the problem of cloud platform deployment and management complexity is solved, and efficient and flexible cloud platform management and maintenance is achieved.
Patent Information
- Application Number
- CN202210609518.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2042-05-31
AI Technical Summary
The deployment and management process of cloud platforms is complex, consumes a lot of manpower, material resources and financial resources, and the later maintenance is time-consuming and labor-intensive, making it difficult to flexibly respond to complex and changeable user needs.
By obtaining the user's request for the target function, and determining the conflict based on the associated attributes of the target function and the currently enabled function, a target instruction is generated and sent to the target host agent for execution, and finally the execution result is displayed.
The cloud platform management process is simplified, the management and maintenance complexity is reduced, the deployment efficiency and flexibility is improved, the operation and maintenance support is reduced, and the platform is facilitated.
Smart Images

Figure CN114995836B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to a cloud platform management method, device, equipment and medium. Background Art
[0002] With the rapid development of the Internet, the concept of cloud has emerged in the public's vision. The concept of cloud is based on "cloud computing" technology to achieve interconnection between various terminal devices. All resources and applications enjoyed by users are provided by a cloud backend with super storage and computing capabilities. Since the emergence of cloud, the deployment of cloud platforms has always been a large and complex process. From bare metal deployment to containerized deployment, and then to on k8s deployment, although the workload has been reduced, it is still quite complicated. For commercial companies, deploying a private cloud is a one-time job, but in the face of complex and changing user needs, each deployment is equivalent to a customized operation, which consumes a lot of manpower, material and financial resources, and the subsequent maintenance is also time-consuming and labor-intensive. In summary, how to flexibly manage cloud platforms and reduce the complexity of management and maintenance needs to be further resolved. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide a cloud platform management method, device, equipment and medium, which can flexibly manage the cloud platform and reduce the complexity of management and maintenance. The specific scheme is as follows:
[0004] In a first aspect, the present application discloses a cloud platform management method, comprising:
[0005] Obtaining a target request initiated by a user for a target function, and determining whether the target request conflicts with the currently enabled function based on associated attributes of the target function and the currently enabled function;
[0006] If there is no conflict, generating a target instruction corresponding to the target request and sending the target instruction to the corresponding target host agent program so that the target instruction is executed by the target host agent program, and then generating a target instruction execution result corresponding to the target instruction;
[0007] The target instruction execution result is obtained from the target host agent program, and the target instruction execution result is displayed on the user's web page front end.
[0008] Optionally, after determining whether the target request conflicts with the currently enabled function based on the associated attribute between the target function and the currently enabled function, the method further includes:
[0009] If there is a conflict, a corresponding conflict reason is generated indicating that the target request cannot be executed, and the conflict reason is displayed on the front end of the web page of the user;
[0010] A corresponding solution is generated according to the cause of the conflict, and the user is guided to initiate a request for the target again after resolving the conflict through the solution.
[0011] Optionally, executing the target instruction through the target host agent program and then generating a target instruction execution result corresponding to the target instruction includes:
[0012] The target host agent program obtains target-related resources corresponding to the target function from a preset content library and executes the target instruction based on the target-related resources, and then generates a target instruction execution result corresponding to the target instruction.
[0013] Optionally, the acquiring a target request initiated by a user for a target function, and judging whether there is a conflict between the target request and the currently enabled function based on an associated attribute between the target function and the currently enabled function, includes:
[0014] Obtaining a target function deployment request initiated by a user for a target function, and determining whether the target function deployment request conflicts with the currently enabled function based on an associated attribute between the target function and the currently enabled function;
[0015] Correspondingly, if there is no conflict, generating a target instruction corresponding to the target request and sending the target instruction to the corresponding target host agent program so that the target instruction is executed by the target host agent program, and then generating a target instruction execution result corresponding to the target instruction, including:
[0016] If there is no conflict, a target function deployment instruction corresponding to the target function deployment request is generated and the target function deployment instruction is sent to the corresponding target host agent program, so that the target host agent program can obtain the target-related resources corresponding to the target function from the preset content library and execute the target function deployment instruction based on the target-related resources, and then generate a target instruction execution result corresponding to the target function deployment instruction.
[0017] Optionally, the acquiring a target request initiated by a user for a target function, and judging whether there is a conflict between the target request and the currently enabled function based on an associated attribute between the target function and the currently enabled function, includes:
[0018] Obtaining a target function activation request initiated by a user for a target function, and determining whether the target function activation request conflicts with the currently enabled function based on an associated attribute between the target function and the currently enabled function;
[0019] Correspondingly, if there is no conflict, generating a target instruction corresponding to the target request and sending the target instruction to the corresponding target host agent program so that the target instruction is executed by the target host agent program, and then generating a target instruction execution result corresponding to the target instruction, including:
[0020] If there is no conflict, a target function enable instruction corresponding to the target function enable request is generated and the target function enable instruction is sent to the corresponding target host agent program, so that the target host agent program can obtain the target-related resources corresponding to the target function from the preset content library and execute the target function enable instruction based on the target-related resources, and then generate a target instruction execution result corresponding to the target function enable instruction.
[0021] Optionally, also include:
[0022] Execute the target command through the target host agent program, and generate the corresponding target command execution progress at a preset period;
[0023] The target instruction execution progress is obtained from the target host agent program, and the target instruction execution progress is displayed on the front end of the user's web page.
[0024] Optionally, displaying the target instruction execution result on the user's webpage front end includes:
[0025] If the target instruction execution result is successful, the target instruction execution result is successfully displayed on the front end of the user's web page;
[0026] If the execution result of the target instruction is failure, a corresponding execution failure reason is generated based on the execution result and the execution failure reason is displayed on the front end of the user's web page.
[0027] In a second aspect, the present application discloses a cloud platform management device, including:
[0028] A request judgment module, used for obtaining a target request initiated by a user for a target function, and judging whether the target request conflicts with the currently enabled function based on the associated attributes of the target function and the currently enabled function;
[0029] an instruction execution module, configured to generate a target instruction corresponding to the target request and send the target instruction to a corresponding target host agent program if there is no conflict, so that the target instruction is executed by the target host agent program, and then generate a target instruction execution result corresponding to the target instruction;
[0030] The result display module is used to obtain the target instruction execution result from the target host agent program and display the target instruction execution result on the user's web page front end.
[0031] In a third aspect, the present application discloses an electronic device, comprising:
[0032] Memory, used to store computer programs;
[0033] A processor is used to execute the computer program to implement the steps of the cloud platform management method disclosed above.
[0034] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the cloud platform management method disclosed above are implemented.
[0035] When the present application manages the cloud platform, the target request initiated by the user for the target function is first obtained, and based on the associated attributes of the target function and the currently enabled function, it is determined whether the target request conflicts with the currently enabled function, and then if there is no conflict, a target instruction corresponding to the target request is generated and sent to the corresponding target host agent program, so that the target instruction is executed by the target host agent program, and then a target instruction execution result corresponding to the target instruction is generated, and finally the target instruction execution result is obtained from the target host agent program, and the target instruction execution result is displayed on the front end of the user's web page. It can be seen that when the present application manages the cloud platform, after obtaining the target request initiated for the target function, it is determined whether there is a conflict based on the associated attributes of the target function and the currently enabled function, and if there is no conflict, the corresponding target instruction is issued, the target instruction is issued to the target main agent program, and the host agent program executes the instruction, generates and sends the corresponding instruction execution result, and after obtaining the target instruction execution result, the result is displayed on the front end. Therefore, after obtaining the target request initiated for the target function and making a conflict judgment, this application can issue instructions to the target host agent program, so that the delivery personnel can directly deploy to the maintenance node during deployment, so that they can easily control the deployment process without having to modify a large number of parameters through the background every time to adapt to the user environment, greatly simplifying the process and accelerating the delivery progress; on the other hand, customer administrators can also manage functions independently as the business changes without contacting the delivery manufacturer, reducing a lot of operation and maintenance support work, and at the same time, the platform can be easily updated by updating the content library. In summary, this application can flexibly manage the cloud platform and reduce the complexity of management and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0037] Figure 1 A flow chart of a cloud platform management method provided for this application;
[0038] Figure 2 A specific cloud platform management method flow chart provided for this application;
[0039] Figure 3 A specific cloud platform management method flow chart provided for this application;
[0040] Figure 4 A specific cloud platform management method flow chart provided for this application;
[0041] Figure 5 A schematic diagram of the process of enabling and disabling cloud platform functions provided for this application;
[0042] Figure 6 A schematic diagram of the structure of a cloud platform management device provided for this application;
[0043] Figure 7 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] Since the emergence of cloud, the deployment of cloud platform has been a huge and complex process, from bare metal deployment to containerized deployment, and then to on k8s deployment. Although the workload has been reduced, it is still quite complicated. For commercial companies, deploying a private cloud is a one-time job, but in the face of complex and changing user needs, each deployment is equivalent to a customized operation, which consumes a lot of manpower, material and financial resources, and the later maintenance is also time-consuming and laborious. For this reason, this application provides a cloud platform management method that can flexibly manage the cloud platform and reduce the complexity of management and maintenance.
[0046] The embodiment of the present invention discloses a cloud platform management method, see Figure 1 As shown, the method includes:
[0047] Step S11: obtaining a target request initiated by a user for a target function, and determining whether there is a conflict between the target request and the currently enabled function based on the associated attributes of the target function and the currently enabled function.
[0048] In this embodiment, the target request initiated by the user for the target function includes but is not limited to a target function deployment request, a target function activation request, and a target function disable request. It is understandable that the user control center can choose to deploy the target function module, activate the target function module, and disable the target function module according to its own needs. When the target request initiated by the user for the target function is obtained, and according to whether the target function conflicts with the currently enabled function, the control center determines the logic of the function module and grasps the association relationship between each module.
[0049] It should be pointed out that the reserved extension interface in the control center can also provide other functions such as update function modules. That is, when the user obtains the update instruction corresponding to the update function, the control center can also perform a prior logical judgment so as to generate relevant instructions through the control center and send the relevant instructions to the corresponding target host agent program to complete the corresponding update request. Through the above technical solution, by designing reasonable module association attributes, the host agent executable instructions are correctly generated, so as to initiate accurate target instructions for the target request in the future to complete the management-related operations of the cloud platform.
[0050] Step S12: If there is no conflict, a target instruction corresponding to the target request is generated and the target instruction is sent to the corresponding target host agent program so that the target instruction is executed by the target host agent program, and then a target instruction execution result corresponding to the target instruction is generated.
[0051] Specifically, if the control center determines the associated attributes of the target function and the currently enabled function, and if there is no conflict, the control center generates a target instruction corresponding to the target request and sends the target instruction to the corresponding target host agent program, so that the target instruction can be subsequently executed by the target host agent program and a target instruction execution result corresponding to the target instruction can be generated. The host agent program is a program that executes instructions, and has strong extensibility. As long as its interface is met, it can theoretically execute any desired execution command, including but not limited to executing cmd commands and installing monitoring programs on the content library.
[0052] In this embodiment, if there is a conflict, the corresponding conflict reason that the target request cannot be executed is generated, and the conflict reason is displayed on the front end of the user's web page; a corresponding solution is generated according to the conflict reason, and the user is guided to initiate the target request again after resolving the conflict through the solution. Specifically, if there is a conflict, the corresponding conflict reason that the target request cannot be executed is generated, and an execution failure code is returned, the conflict reason is displayed on the front end of the user's web page, and then a corresponding solution is generated according to the conflict reason, and the user is guided to retry after resolving the conflict through the solution, including but not limited to the need to connect the network card first if the network card is not connected.
[0053] In this embodiment, the target instruction is executed by the target host agent program, and then the target instruction execution result corresponding to the target instruction is generated, which also includes: executing the target instruction by the target host agent program, and generating the corresponding target instruction execution progress in a preset period; obtaining the target instruction execution progress from the target host agent program, and displaying the target instruction execution progress on the user's web page front end. That is, during the execution process, the execution progress is periodically returned to the control center, and the preset period is a period set by the user. According to the actual needs of the user, the progress return period is set. After receiving the progress feedback, the control center displays it to the user in the form of a chart or progress bar, so as to inform the user of the completion status of the corresponding instruction through the front-end display. Through the above technical solution, the control center designs reasonable combination instructions according to the different module associations. The host agent is the only module that contacts the control center and needs to have a high reliability, while retaining extensibility for use with extended functions such as monitoring.
[0054] Step S13: Obtain the target instruction execution result from the target host agent program, and display the target instruction execution result on the user's web page front end.
[0055] In this embodiment, the target instruction execution result is obtained from the target host agent program, and the target instruction execution result is displayed on the user's web front end, including: if the target instruction execution result is successful, the target instruction execution result is successfully displayed on the user's web front end; if the target instruction execution result is failed, a corresponding execution failure reason is generated based on the execution result and the execution failure reason is displayed on the user's web front end. That is, if the target instruction execution result is successful, the target instruction execution result is successfully displayed on the user's web front end, and if the target instruction execution result fails, a corresponding execution failure reason is generated on the user's front end based on the execution result. Through the above technical solution, the execution result of the target instruction is returned to the web front end, so that the user can view the execution result of the target request initiated for the target function, so that the user can view the corresponding execution result in time.
[0056] It can be seen that when the cloud platform management is performed in this embodiment, after obtaining the target request initiated for the target function, it is determined whether there is a conflict based on the associated attributes of the target function and the currently enabled function. If there is no conflict, the corresponding target instruction is issued, and the target instruction is issued to the target main agent program and the host agent program executes the instruction, generates and sends the corresponding instruction execution result, and after obtaining the target instruction execution result, the result is displayed on the front end. Therefore, after obtaining the target request initiated for the target function and making a conflict judgment, the application can issue instructions to the target host agent program, so that the delivery personnel can directly deploy to the maintenance node when deploying, so that the deployment process can be easily controlled without having to modify a large number of parameters through the background every time to adapt to the user environment, greatly simplifying the process and accelerating the delivery progress; on the other hand, the customer administrator can also manage the function independently as the business changes, without contacting the delivery manufacturer, reducing a lot of operation and maintenance support work, and at the same time, the platform can be easily updated by updating the content library. In summary, the application can flexibly manage the cloud platform and reduce the complexity of management and maintenance.
[0057] See also Figure 2 As shown, the embodiment of the present invention discloses a specific cloud platform management method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.
[0058] Step S21: obtaining a target function deployment request initiated by a user for a target function, and determining whether there is a conflict between the target function deployment request and the currently enabled function based on the associated attributes of the target function and the currently enabled function.
[0059] In this embodiment, a target function deployment request initiated by a user for a target function is obtained, and the control center determines the associated attributes of the target function and the currently enabled function, and analyzes whether the target function deployment request conflicts with the currently enabled function. Through the above technical solution, the control center obtains the target function deployment request initiated by the user for the target function, and makes a request conflict judgment, so that the control center can subsequently issue a corresponding target instruction to the target host agent program, thereby performing subsequent target-related resource search and execution of the target function deployment instruction through the target host agent program.
[0060] Step S22: If there is no conflict, a target function deployment instruction corresponding to the target function deployment request is generated and the target function deployment instruction is sent to the corresponding target host agent program, so that the target host agent program can obtain the target-related resources corresponding to the target function from the preset content library and execute the target function deployment instruction based on the target-related resources, and then generate a target instruction execution result corresponding to the target function deployment instruction.
[0061] Specifically, when there is no conflict, a target function deployment instruction corresponding to the target function deployment request is generated, and the target function deployment instruction is sent to the corresponding target host agent program, so that the corresponding target related resources can be obtained from the preset content library through the target host agent program. Among them, the preset content library is a preset database that stores the installation package resources of each module of the cloud platform. The preset content library can not only realize the existence of the installation program, but also store the image files required by the cloud platform. Extending its interface can not only realize the update of the installation program, but also realize the update of the cloud platform image. It can be understood that when performing target function deployment, the corresponding target function installation package resources are required, and the host agent program obtains the corresponding related resources for the target function from the preset content library, and executes the target function deployment instruction based on the target related resources, and generates the target instruction execution result corresponding to the target function deployment instruction.
[0062] In this embodiment, if there is a conflict, the corresponding conflict reason why the target function deployment request cannot be executed is generated, and the conflict reason is displayed on the user's web page front end; a corresponding solution is generated based on the conflict reason, and the user is guided to resolve the conflict through the solution and then initiate the target request again.
[0063] In this embodiment, the target function deployment instruction is executed by the target host agent program, and the corresponding target function deployment instruction execution progress is generated at a preset period; the target function deployment instruction execution progress is obtained from the target host agent program, and the target function deployment instruction execution progress is displayed on the user's web page front end. Through the above technical solution, resources related to the target function deployment request are obtained from the preset content library, and the target function deployment instruction is executed according to the related resources, so as to obtain the corresponding execution result later, and the result is displayed on the front end.
[0064] Step S23: Obtain the target instruction execution result from the target host agent program, and display the target instruction execution result on the user's web page front end.
[0065] In this embodiment, through the above technical solution, the delivery personnel can directly deploy to the maintenance node during deployment, so that they can easily control the deployment process without having to modify a large number of parameters through the background each time to adapt to the user environment, which greatly simplifies the process and accelerates the delivery progress.
[0066] See also Figure 3 As shown, the embodiment of the present invention discloses a specific cloud platform management method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.
[0067] Step S31: obtaining a target function activation request initiated by a user for a target function, and determining whether there is a conflict between the target function activation request and the currently enabled function based on the associated attributes of the target function and the currently enabled function.
[0068] In this embodiment, a target function activation request initiated by a user for a target function is obtained, and the control center determines the associated attributes of the target function and the currently enabled function, and analyzes whether the target function activation request conflicts with the currently enabled function. Through the above technical solution, the control center obtains the target function activation request initiated by the user for the target function, and performs request conflict judgment, so that the control center can subsequently issue a corresponding target function activation instruction to the target host agent program, thereby performing subsequent target-related resource search and execution of the target function activation instruction through the target host agent program.
[0069] Step S32: If there is no conflict, a target function enable instruction corresponding to the target function enable request is generated and the target function enable instruction is sent to the corresponding target host agent program, so that the target host agent program can obtain the target-related resources corresponding to the target function from the preset content library and execute the target function enable instruction based on the target-related resources, and then generate a target instruction execution result corresponding to the target function enable instruction.
[0070] Specifically, when there is no conflict, a target function activation instruction corresponding to the target function activation request is generated, and the target function activation instruction is sent to the corresponding target host agent program, so that the corresponding target related resources can be obtained from the preset content library through the target host agent program. It can be understood that when the target function is activated, the installation package resources of the corresponding target function are required, and the host agent program obtains the related resources corresponding to the target function from the preset content library, and executes the target function activation instruction based on the target related resources, and generates the target instruction execution result corresponding to the target function activation instruction.
[0071] In this embodiment, if there is a conflict, the corresponding conflict reason why the target function activation request cannot be executed is generated, and the conflict reason is displayed on the user's web page front end; a corresponding solution is generated based on the conflict reason, and the user is guided to resolve the conflict through the solution and then initiate the target request again.
[0072] In this embodiment, the target function activation instruction is executed by the target host agent program, and the corresponding target function activation instruction execution progress is generated at a preset period; the target function activation instruction execution progress is obtained from the target host agent program, and the target function activation instruction execution progress is displayed on the user's web page front end. Through the above technical solution, resources related to the target function activation request are obtained from the preset content library, and the target function activation instruction is executed according to the related resources, so as to obtain the corresponding execution result later, and the result is displayed on the front end.
[0073] Step S33: Obtain the target instruction execution result from the target host agent program, and display the target instruction execution result on the user's web page front end.
[0074] It can be seen that in this embodiment, through the above technical solution, the customer administrator can also enable functions independently as the business changes without contacting the delivery manufacturer, thereby reducing a large amount of operation and maintenance support work.
[0075] See also Figure 4As shown, the embodiment of the present invention discloses a specific cloud platform management method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.
[0076] Step S41: obtaining a target function disabling request initiated by a user for a target function, and determining whether there is a conflict between the target function disabling request and the currently enabled function based on the associated attributes of the target function and the currently enabled function.
[0077] In this embodiment, the cloud platform function is enabled and disabled as shown in the flowchart. Figure 5 As shown, a target function disabling request initiated by a user for a target function is obtained, and the control center determines the associated attributes of the target function and the currently enabled function, and analyzes whether the target function disabling request conflicts with the currently enabled function. Through the above technical solution, the control center obtains the target function disabling request initiated by the user for the target function, and makes a request conflict judgment, so that the control center can subsequently issue a corresponding target instruction to the target host agent program, thereby performing subsequent target-related resource search and execution of the target function disabling instruction through the target host agent program.
[0078] Step S42: If there is no conflict, a target function disabling instruction corresponding to the target function disabling request is generated and the target function disabling instruction is sent to the corresponding target host agent program so that the target function disabling instruction is executed by the target host agent program, and then a target instruction execution result corresponding to the target function disabling instruction is generated.
[0079] Specifically, if the control center determines the associated attributes of the target function and the currently enabled function and if there is no conflict, the control center generates a target function disable instruction corresponding to the target request and sends the target function disable instruction to the corresponding target host agent program, so that the target function disable instruction can be subsequently executed by the target host agent program and a target instruction execution result corresponding to the target function disable instruction can be generated.
[0080] In this embodiment, if there is a conflict, a corresponding conflict reason for the inability to execute the target function disabling request is generated, and the conflict reason is displayed on the user's web page front end; a corresponding solution is generated according to the conflict reason, and the user is guided to resolve the conflict through the solution and then initiate the target function disabling request again. Specifically, if there is a conflict, a corresponding conflict reason for the inability to execute the target function disabling request is generated, and an inability to execute code is returned, the conflict reason is displayed on the user's web page front end, and then a corresponding solution is generated according to the conflict reason, and the user is guided to resolve the conflict through the solution and then try again.
[0081] Step S43: Obtain the target instruction execution result from the target host agent program, and display the target instruction execution result on the user's web page front end.
[0082] It can be seen that in this embodiment, through the above technical solution, the customer administrator can also independently disable functions as the business changes without contacting the delivery manufacturer, thereby reducing a large amount of operation and maintenance support work.
[0083] See also Figure 6 The embodiment of the present application disclosed a cloud platform management device, including:
[0084] The request judgment module 11 is used to obtain a target request initiated by a user for a target function, and judge whether the target request conflicts with the currently enabled function based on the associated attributes of the target function and the currently enabled function;
[0085] An instruction execution module 12, for generating a target instruction corresponding to the target request and sending the target instruction to a corresponding target host agent program if there is no conflict, so that the target instruction is executed by the target host agent program, and then generating a target instruction execution result corresponding to the target instruction;
[0086] The result display module 13 is used to obtain the target instruction execution result from the target host agent program and display the target instruction execution result on the user's web page front end.
[0087] It can be seen that when the cloud platform management is performed in this embodiment, after obtaining the target request initiated for the target function, it is determined whether there is a conflict based on the associated attributes of the target function and the currently enabled function. If there is no conflict, the corresponding target instruction is issued, and the target instruction is issued to the target main agent program and the host agent program executes the instruction, generates and sends the corresponding instruction execution result, and after obtaining the target instruction execution result, the result is displayed on the front end. Therefore, after obtaining the target request initiated for the target function and making a conflict judgment, the application can issue instructions to the target host agent program, so that the delivery personnel can directly deploy to the maintenance node when deploying, so that the deployment process can be easily controlled without having to modify a large number of parameters through the background every time to adapt to the user environment, greatly simplifying the process and accelerating the delivery progress; on the other hand, the customer administrator can also manage the function independently as the business changes, without contacting the delivery manufacturer, reducing a lot of operation and maintenance support work, and at the same time, the platform can be easily updated by updating the content library. In summary, the application can flexibly manage the cloud platform and reduce the complexity of management and maintenance.
[0088] In some specific embodiments, the cloud platform management device further includes:
[0089] A conflict reason generating module, used for generating a corresponding conflict reason for the inability to execute the target request if there is a conflict, and displaying the conflict reason on the front end of the web page of the user;
[0090] The request retry module is used to generate a corresponding solution according to the cause of the conflict, and guide the user to re-initiate the target request after resolving the conflict through the solution.
[0091] In some specific embodiments, the instruction execution module 12 is specifically used to: obtain target-related resources corresponding to the target function from a preset content library through the target host agent program and execute the target instruction based on the target-related resources, and then generate a target instruction execution result corresponding to the target instruction.
[0092] In some specific embodiments, the request judgment module 11 is specifically used to: obtain a target function deployment request initiated by a user for a target function, and judge whether the target function deployment request conflicts with the currently enabled function based on the associated attributes of the target function and the currently enabled function;
[0093] Correspondingly, the instruction execution module 12 is specifically used to: if there is no conflict, generate a target function deployment instruction corresponding to the target function deployment request and send the target function deployment instruction to the corresponding target host agent program, so as to obtain the target-related resources corresponding to the target function from the preset content library through the target host agent program and execute the target function deployment instruction based on the target-related resources, and then generate a target instruction execution result corresponding to the target function deployment instruction.
[0094] In some specific embodiments, the request judgment module 11 is specifically used to: obtain a target function activation request initiated by a user for a target function, and determine whether the target function activation request conflicts with the currently enabled function based on the associated attributes of the target function and the currently enabled function;
[0095] Correspondingly, the instruction execution module 12 is specifically used to: if there is no conflict, generate a target function enable instruction corresponding to the target function enable request and send the target function enable instruction to the corresponding target host agent program, so that the target host agent program can obtain the target-related resources corresponding to the target function from the preset content library and execute the target function enable instruction based on the target-related resources, and then generate a target instruction execution result corresponding to the target function enable instruction.
[0096] In some specific embodiments, the cloud platform management device further includes:
[0097] An execution progress generating module, used for executing the target instruction through the target host agent program, and generating a corresponding target instruction execution progress at a preset period;
[0098] The execution progress display module is used to obtain the execution progress of the target instruction from the target host agent program and display the execution progress of the target instruction on the front end of the user's web page.
[0099] In some specific embodiments, the result display module 13 specifically includes:
[0100] A success result display unit, used for displaying the target instruction execution result successfully on the front end of the user's web page if the target instruction execution result is successful;
[0101] The failure result display unit is used to generate a corresponding execution failure reason based on the execution result if the execution result of the target instruction is a failure, and display the execution failure reason on the front end of the user's web page.
[0102] Figure 7 An electronic device 20 provided in an embodiment of the present application is shown. The electronic device 20 may further include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the cloud platform management method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may be specifically an electronic computer.
[0103] In this embodiment, the power supply 23 is used to provide voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0104] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0105] Among them, the operating system 221 is used to manage and control the hardware devices on the electronic device 20, and the computer program 222 can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the cloud platform management method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0106] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed cloud platform management method. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.
[0107] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0108] The above is a detailed introduction to a cloud platform management method, device, equipment and medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A cloud platform management method, characterized in that: include: Obtaining a target request initiated by a user for a target function, and determining whether the target request conflicts with the currently enabled function based on associated attributes of the target function and the currently enabled function; If there is no conflict, generating a target instruction corresponding to the target request and sending the target instruction to the corresponding target host agent program so that the target instruction is executed by the target host agent program, and then generating a target instruction execution result corresponding to the target instruction; Obtaining the target command execution result from the target host agent program, and displaying the target command execution result on the user's web page front end; The acquiring of a target request initiated by a user for a target function, and judging whether there is a conflict between the target request and the currently enabled function based on an associated attribute between the target function and the currently enabled function, includes: Obtaining a target function deployment request initiated by a user for a target function, and determining whether the target function deployment request conflicts with the currently enabled function based on an associated attribute between the target function and the currently enabled function; Correspondingly, if there is no conflict, generating a target instruction corresponding to the target request and sending the target instruction to the corresponding target host agent program so that the target instruction is executed by the target host agent program, and then generating a target instruction execution result corresponding to the target instruction, including: If there is no conflict, a target function deployment instruction corresponding to the target function deployment request is generated and the target function deployment instruction is sent to the corresponding target host agent program, so that the target host agent program can obtain the target-related resources corresponding to the target function from the preset content library and execute the target function deployment instruction based on the target-related resources, and then generate a target instruction execution result corresponding to the target function deployment instruction; wherein the preset content library is a preset database for storing the installation package resources of each module of the cloud platform, and the cloud platform is updated by updating the preset content library; when performing target function deployment, the installation package resources corresponding to the target function are obtained from the preset content library.
2. The cloud platform management method according to claim 1, characterized in that: After determining whether the target request conflicts with the currently enabled function based on the associated attribute between the target function and the currently enabled function, the method further includes: If there is a conflict, a corresponding conflict reason is generated indicating that the target request cannot be executed, and the conflict reason is displayed on the front end of the web page of the user; A corresponding solution is generated according to the cause of the conflict, and the user is guided to initiate a request for the target again after resolving the conflict through the solution.
3. The cloud platform management method according to claim 1, characterized in that: The step of executing the target instruction through the target host agent program and then generating a target instruction execution result corresponding to the target instruction includes: The target host agent program obtains target-related resources corresponding to the target function from a preset content library and executes the target instruction based on the target-related resources, and then generates a target instruction execution result corresponding to the target instruction.
4. The cloud platform management method according to claim 3, characterized in that: The obtaining of a target request initiated by a user for a target function, and judging whether the target request conflicts with the currently enabled function based on an associated attribute of the target function and the currently enabled function, includes: Obtaining a target function activation request initiated by a user for a target function, and determining whether the target function activation request conflicts with the currently enabled function based on an associated attribute between the target function and the currently enabled function; Correspondingly, if there is no conflict, generating a target instruction corresponding to the target request and sending the target instruction to the corresponding target host agent program so that the target instruction is executed by the target host agent program, and then generating a target instruction execution result corresponding to the target instruction, including: If there is no conflict, a target function enable instruction corresponding to the target function enable request is generated and the target function enable instruction is sent to the corresponding target host agent program, so that the target host agent program can obtain the target-related resources corresponding to the target function from the preset content library and execute the target function enable instruction based on the target-related resources, and then generate a target instruction execution result corresponding to the target function enable instruction.
5. The cloud platform management method according to claim 1, characterized in that: Also includes: Execute the target command through the target host agent program, and generate the corresponding target command execution progress at a preset period; The target instruction execution progress is obtained from the target host agent program, and the target instruction execution progress is displayed on the front end of the user's web page.
6. The cloud platform management method according to any one of claims 1 to 5, characterized in that: The displaying of the target instruction execution result on the user's webpage front end includes: If the target instruction execution result is successful, the target instruction execution result is successfully displayed on the front end of the user's web page; If the execution result of the target instruction is failure, a corresponding execution failure reason is generated based on the execution result and the execution failure reason is displayed on the front end of the user's web page.
7. A cloud platform management device, characterized in that: include: A request judgment module, used for obtaining a target request initiated by a user for a target function, and judging whether the target request conflicts with the currently enabled function based on the associated attributes of the target function and the currently enabled function; an instruction execution module, configured to generate a target instruction corresponding to the target request and send the target instruction to a corresponding target host agent program if there is no conflict, so that the target instruction is executed by the target host agent program, and then generate a target instruction execution result corresponding to the target instruction; A result display module, used to obtain the target instruction execution result from the target host agent program, and display the target instruction execution result on the user's web page front end; Wherein, the request judgment module is specifically used for: Obtaining a target function deployment request initiated by a user for a target function, and determining whether the target function deployment request conflicts with the currently enabled function based on an associated attribute between the target function and the currently enabled function; Accordingly, the instruction execution module is specifically used for: If there is no conflict, a target function deployment instruction corresponding to the target function deployment request is generated and the target function deployment instruction is sent to the corresponding target host agent program, so that the target host agent program can obtain the target-related resources corresponding to the target function from the preset content library and execute the target function deployment instruction based on the target-related resources, and then generate a target instruction execution result corresponding to the target function deployment instruction; wherein the preset content library is a preset database for storing the installation package resources of each module of the cloud platform, and the cloud platform is updated by updating the preset content library; when performing target function deployment, the installation package resources corresponding to the target function are obtained from the preset content library.
8. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, used to execute the computer program to implement the steps of the cloud platform management method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the cloud platform management method as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and system for resolving multilateral conflicts of virtualization platform
CN102402466A