Automatic server resource allocation method and device based on CMDB

The automatic allocation process of server resources is realized through CMDB, which solves the inefficiency and error problems caused by manual entry, and realizes automated resource allocation and enterprise operation efficiency improvement.

CN120336410APending Publication Date: 2025-07-18PARK DO CREDIT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510388043.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, the enterprise server resource allocation process relies on manual entry, resulting in inefficiency and errors prone to occur.

Method used

Through the CMDB-based server resource automatic allocation method, the configuration management database CMDB realizes an automated server resource allocation process, including obtaining application name lists, generating expansion information forms, approvals and final resource allocation.

Benefits of technology

It realizes automation of the application server resource allocation process, and improves the operation efficiency of the enterprise and the accuracy of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120336410A_ABST
    Figure CN120336410A_ABST
Patent Text Reader

Abstract

The invention provides a CMDB-based server resource automatic allocation method and device, relates to the technical field of data processing, is applied to a rear end of a work order system, responds to a request sent by a front end for obtaining application module data, calls a CMDB application query interface, obtains all application name lists associated with applicant information, and sends the application name lists to the back end of the work order system. The application name list is returned to the front end; in response to a capacity expansion demand filling request sent by a front end for a target application, generating a capacity expansion information form, and returning the capacity expansion information form to the front end; responding to capacity expansion information sent by the front end, generating a capacity expansion work order and approval information of the capacity expansion work order, and sending the approval information to the front end; and in response to an approval passing result sent by the front end, executing a corresponding capacity expansion work order so as to carry out server resource allocation according to the capacity expansion information, and sending an allocation success notification to the front end. Therefore, the automation of the application server resource allocation process is realized, and the enterprise operation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of data processing. Specifically, it relates to a method and device for automatically allocating server resources based on CMDB. Background Art

[0002] A Configuration Management Database (CMDB) is a logical database that stores and manages various configuration information of devices in an enterprise's IT architecture. It is closely associated with all service support and service delivery processes, supports the operation of these processes, realizes the value of configuration information, and at the same time depends on relevant processes to ensure the accuracy of data.

[0003] In current enterprise asset management, the process of resource allocation mostly adopts the traditional method of manual entry by operation and maintenance personnel. This process is not only inefficient but also prone to errors, resulting in incorrect allocation or recording of resources. Summary of the Invention

[0004] In view of this, the purpose of this application is to provide a method and device for automatically allocating server resources based on CMDB, which can automate the process of allocating application server resources and improve the operation efficiency of enterprises.

[0005] In a first aspect, an embodiment of this application provides a method for automatically allocating server resources based on CMDB, which is applied to the front end of a work order system. The method includes the following steps:

[0006] Applied to the back end of the work order system, the method includes the following steps:

[0007] Respond to the request from the front end to obtain application module data, extract applicant information from the request, and call the CMDB application query interface of the configuration management database to obtain a list of all application names associated with the applicant information, and return the application name list to the front end for the applicant to select a target application;

[0008] Respond to the request from the front end to fill in the expansion requirement for the target application, generate an expansion information form, and return the expansion information form to the front end for the applicant to fill in the corresponding expansion information;

[0009] Respond to the expansion information sent by the front end, generate an expansion work order and approval information for the expansion work order, and send the approval information to the front end for the corresponding approval personnel at each node in the approval process to approve the expansion work order;

[0010] In response to the approval result sent by the front end, execute the corresponding capacity expansion work order to allocate server resources according to the capacity expansion information, and send a successful allocation notice to the front end.

[0011] In some embodiments, after sending the successful allocation notice to the front end, the following steps are further included:

[0012] Call the CMDB server update interface to update the deployment module information of the corresponding server.

[0013] In some embodiments, before generating the capacity expansion information form in response to the capacity expansion requirement filling request for the target application sent by the front end, the following steps are further included:

[0014] In response to the target application selection information sent by the front end, call the CMDB application query interface to obtain the basic information of the selected target application, and return the basic information to the front end in a set format so that the front end can display the basic information of the target application on the work order page.

[0015] In some embodiments, the capacity expansion requirement information includes at least one of the information of computer room, network partition, resource environment, cluster name, operating system, machine type, disk type, CPU, memory, data disk, resource quantity, authorized user, machine use, and resource validity period.

[0016] In some embodiments, generating the capacity expansion information form in response to the capacity expansion requirement filling request for the target application sent by the front end includes the following steps:

[0017] In response to the request from the front end to obtain the cluster name, obtain the information of the computer room and network partition from the request, and query the list of cluster names associated with the computer room and the network partition from the CMDB;

[0018] Send the cluster name list and the new option to the front end so that the applicant can select the target cluster name from the cluster name list or select the new option; wherein, in response to the new option selection information sent by the front end, generate a new cluster name and send the new cluster name to the front end for display.

[0019] In some embodiments, generate a new cluster name based on the names of the computer room and the resource environment.

[0020] In some embodiments, executing the corresponding capacity expansion work order in response to the approval result sent by the front end includes the following steps:

[0021] In response to the approval result sent by the front end, obtain the capacity expansion information of the corresponding capacity expansion work order, and obtain the category of the operating system from the capacity expansion information;

[0022] Classify the expansion work order according to the category of the operating system, generate a configuration information table for the classified expansion work order, and send the configuration information table to the front end so that the allocator can fill in the corresponding configuration information;

[0023] In response to the configuration information sent by the front end, call the CMDB server query interface to query the configuration information, and determine whether the server in the configuration information exists. If it exists, mark the server resource allocation as successful.

[0024] In a second aspect, an embodiment of the present application provides a CMDB-based server resource automatic allocation device, which is applied to the back end of a work order system. The device includes:

[0025] An acquisition module, configured to respond to a request from the front end to acquire application module data, extract applicant information from the request, call the CMDB application query interface of the configuration management database, acquire a list of all application names associated with the applicant information, and return the application name list to the front end so that the applicant can select a target application;

[0026] A generation module, configured to respond to a request from the front end to fill in the expansion requirement for the target application, generate an expansion information form, and return the expansion information form to the front end so that the applicant can fill in the corresponding expansion information;

[0027] An approval module, configured to respond to the expansion information sent by the front end, generate an expansion work order and approval information for the expansion work order, and send the approval information to the front end so that the corresponding approvers at each node in the approval process can approve the expansion work order;

[0028] An allocation module, configured to respond to the approval passed result sent by the front end, execute the corresponding expansion work order to allocate server resources according to the expansion information, and send an allocation success notification to the front end.

[0029] In a third aspect, an electronic device provided by an embodiment of the present application includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the memory through the bus. When the machine-readable instructions are executed by the processor, the steps of the CMDB-based server resource automatic allocation method according to any one of the first aspects are executed.

[0030] In a fourth aspect, a computer-readable storage medium provided by an embodiment of the present application stores a computer program. When the computer program is run by a processor, the steps of the CMDB-based server resource automatic allocation method according to any one of the first aspects are executed.

[0031] A method and device for automatically allocating server resources based on CMDB according to the present application are applied to the backend of a work order system. In response to a request from the front end to obtain application module data, applicant information is extracted from the request, and a configuration management database CMDB application query interface is called to obtain a list of all application names associated with the applicant information, and the list of application names is returned to the front end for the applicant to select a target application; in response to a request from the front end to fill in an expansion requirement for the target application, an expansion information form is generated and returned to the front end for the applicant to fill in corresponding expansion information; in response to the expansion information sent by the front end, an expansion work order and approval information for the expansion work order are generated, and the approval information is sent to the front end for the corresponding approval personnel at each node in the approval process to approve the expansion work order; in response to the approval pass result sent by the front end, the corresponding expansion work order is executed to allocate server resources according to the expansion information, and a successful allocation notice is sent to the front end. Thus, the automation of the application server resource allocation process is realized, and the operation efficiency of the enterprise is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.

[0033] Figure 1 Shows a flowchart of the method for automatically allocating server resources based on CMDB according to the embodiments of the present application;

[0034] Figure 2 Shows a flowchart of generating an expansion information form in response to a request from the front end to fill in an expansion requirement for the target application;

[0035] Figure 3 Shows a flowchart of executing the corresponding expansion work order in response to the approval pass result sent by the front end;

[0036] Figure 4 Shows a schematic structural diagram of the device for automatically allocating server resources based on CMDB according to the embodiments of the present application;

[0037] Figure 5 Shows a block diagram of the structure of the electronic device according to the embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0038] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. It should be understood that the accompanying drawings in this application are only for the purposes of illustration and description, and are not used to limit the protection scope of this application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowchart may not be implemented in sequence, and steps without a logical context relationship may be reversed or implemented simultaneously. In addition, those skilled in the art may add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of this application.

[0039] In addition, the described embodiments are only some embodiments of this application, rather than all embodiments. The components of the embodiments of this application usually described and illustrated in the accompanying drawings here may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of this application claimed, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative efforts fall within the protection scope of this application.

[0040] It should be noted that the term "including" will be used in the embodiments of this application to indicate the existence of the features stated hereinafter, but does not exclude the addition of other features.

[0041] In view of the technical problems proposed in the background art, this application provides a method and device for automatically allocating server resources based on CMDB, which can automate the process of allocating application server resources and improve the operation efficiency of enterprises.

[0042] See the attached Figure 1 to the specification. A method for automatically allocating server resources based on CMDB provided by the embodiments of this application is applied to the backend of a work order system. The method includes the following steps:

[0043] S1. Respond to the request from the front end to obtain application module data, extract the applicant information from the request, call the configuration management database CMDB application query interface, obtain all application name lists associated with the applicant information, and return the application name lists to the front end for the applicant to select a target application.

[0044] S2. Respond to the request from the front end to fill in the expansion requirement for the target application, generate an expansion information form, and return the expansion information form to the front end for the applicant to fill in the corresponding expansion information.

[0045] S3. In response to the capacity expansion information sent by the front end, generate a capacity expansion work order and the approval information for the work order, and send the approval information to the front end so that the corresponding approvers at each node in the approval process can approve the capacity expansion work order;

[0046] S4. In response to the approval passed result sent by the front end, execute the corresponding capacity expansion work order to allocate server resources according to the capacity expansion information, and send a successful allocation notice to the front end.

[0047] In this application, the front end of the work order system refers to the part that directly interacts with users, that is, the user interface (UI). It is responsible for presenting the functions of the system to users (including applicants, approvers, and allocators) in a visual and interactive manner, including building a user operation interface through technologies such as HTML, CSS, and JavaScript, and presenting pages such as resource application work order pages and server information display pages. For example, on the resource application work order page, applicants can see input boxes or drop-down selection boxes such as computer room, network partition, and cluster name, which are convenient for filling in and selecting relevant information. The back end of the work order system is mainly responsible for business logic processing, data storage and management, and interaction with the Configuration Management Database (CMDB), including receiving data sent by the front end and processing it according to business rules. For example, execute the corresponding capacity expansion work order according to the approval result and operating system parameters submitted by the front end.

[0048] In step S1, the request for obtaining application module data sent by the front end can be generated based on the applicant clicking the "application module" operation in the resource application server work order filling interface provided by the front end of the work order system; this request carries the applicant identifier. After receiving this request, the back end extracts the applicant identifier and calls the application query interface of the Configuration Management Database (CMDB) to obtain a list of all application names associated with the applicant. That is, the applications in the obtained application name list are screened according to the corresponding relationship between applications and responsible persons / developers in the Configuration Management Database (CMDB), which limits the applicants to only select the applications they are responsible for or develop.

[0049] Furthermore, send the obtained application name list to the front end for display in a set format. For example, after the front end receives the application name list data, it renders the "application module" drop-down menu on the work order page so that the applicant can select the target application from the "application module" drop-down menu on the front end.

[0050] Among them, after receiving the target application selection information sent by the front end, the CMDB application query interface is called to obtain the basic information of the selected target application, and the basic information is returned to the front end in a set format, so that the front end can display the basic information of the target application on the work order page. For example, the business line, Chinese system name, Chinese module name, application responsible person, developer, vertical PE, server, etc. of the application are displayed line by line below the selected target reference on the work order page.

[0051] In step S2, after the applicant selects the target application and has no objections to the basic information displayed by the front end, for example, clicks the "next" button on the work order page, the front end generates a request for filling in the expansion requirements for the target application and sends it to the back end. After receiving the request for filling in the expansion requirements, the back end generates an expansion information form and sends it to the front end for the applicant to fill in expansion requirement information such as computer room, network partition, resource environment, cluster name, operating system, machine type, disk type, CPU, memory, data disk, resource quantity, authorized user, machine usage, resource validity period, etc.

[0052] See the attached Figure 2 In step S2, the response to the request from the front end for filling in the expansion requirements for the target application and generating the expansion information form includes the following steps:

[0053] S201. Respond to the request from the front end to obtain the cluster name, obtain the information of the computer room and network partition from the request, and query the list of cluster names associated with the computer room and the network partition from the CMDB;

[0054] S202. Send the list of cluster names and the new option to the front end for the applicant to select the target cluster name from the list of cluster names or select the new option; among them, respond to the information of the new option selection sent by the front end, generate a new cluster name, and send the new cluster name to the front end for display.

[0055] In step S201, the request from the front end to obtain the cluster name can be generated based on the applicant clicking the "cluster name" option on the work order page, and the request carries the information of the computer room and network partition. This is because in this application, before the applicant clicks the "cluster name" option on the work order page, the information of the computer room and network partition needs to be filled in first. After receiving the request, the back end extracts the information of the computer room and network partition from it, and then calls the CMDB application query interface, passes in the parameter values of the computer room and network partition, and queries the list of cluster names associated with the computer room and network partition under this application group in the database.

[0056] The applicant can directly view the relevant cluster names based on the selected computer room and network partition information, facilitating quick and easy selection without the need to manually input the cluster name, avoiding input errors, and reducing the complexity of the applicant's operations. Moreover, it ensures that the applicant can only select from the legitimate cluster names provided by the backend, guaranteeing the validity of the selected cluster name and its relevance to the computer room and network partition, and avoiding data inconsistency issues.

[0057] In step S202, if there are associated clusters, the backend will organize the cluster name list and the new option into a dropdown data format and return it to the frontend; if there are no associated clusters, only the new option will be returned to the frontend for the applicant to select. Among them, if the applicant selects the new option, a new cluster name is generated based on the name of the computer room and the resource environment, and the new cluster name is sent to the frontend for display. For example, the new cluster name is generated according to the rule of "computer room name - resource environment name + number". In one embodiment, the computer room name is "a", the resource environment name is "b", and the new cluster name is "a - b - 01".

[0058] In step S3, after the applicant fills out the expansion information form, the frontend sends the expansion information to the backend. After receiving the expansion information, the backend generates a corresponding expansion order and the approval information for the expansion work order, and sends the approval information to the frontend to enter the approval process, so that the corresponding approvers at each node in the approval process can approve the expansion work order. Among them, the approval information includes project information, expansion information, and whether it is approved information; the project information includes the English name of the module, the Chinese name of the module, the English name of the system, the Chinese name of the system, the English name of the business line, the Chinese name of the business line, the application responsible person, the developer, the vertical PE, and the machine information snapshot; the expansion information is the expansion information when the applicant fills out the work order, including the computer room, network partition, resource environment, cluster name, operating system, machine type, disk type, CPU, memory, data disk, resource quantity, authorized user, machine usage, and resource validity period.

[0059] In step S4, refer to the attached Figure 3 , in response to the approval - passed result sent by the frontend, execute the corresponding expansion work order, including the following steps:

[0060] S401. In response to the approval - passed result sent by the frontend, obtain the expansion information of the corresponding expansion work order, and obtain the category of the operating system from the expansion information;

[0061] S402. Divide the expansion work order according to the category of the operating system, generate a configuration information table for the divided expansion work order, and send the configuration information table to the frontend so that the assignees can fill in the corresponding configuration information;

[0062] S403. In response to the configuration information sent by the front end, call the CMDB server query interface to query the configuration information, and determine whether the server in the configuration information exists. If it exists, mark the server resource allocation as successful.

[0063] In step S401, each approver performs an approval operation on the front end, and the front end sends the approval result to the back end. The back end determines whether the expansion work order passes through all approval links according to the approval process rules. If all approval links are passed, obtain the category information of the operating system in the corresponding expansion work order.

[0064] In step S402, execute the corresponding expansion work order according to the category of the operating system. For example, if the category of the operating system is Linux, execute the Linux expansion work order; if the category of the operating system is Windows, execute the Windows expansion work order. And generate a configuration information table for the divided expansion work order, and send the configuration information table to the front end for the allocator to fill in the corresponding configuration information. The configuration information includes the host name, IP, host IP or SN (write SN for physical machines and write IP for virtual machines), IAAS platform, and VIP of the server. These input fields are for collecting detailed server resource allocation information, and different information plays different roles in the server resource allocation process. For example: The host name is the unique identifier of the server in the network, which is convenient for management and identification; the IP address is used for the communication and location of the server in the network; for virtual machines or host-based servers, the host IP or serial number can help determine the deployment location or physical basis of the server; the IAAS platform involves information related to Infrastructure as a Service (IAAS), which may affect the way of resource allocation and configuration. VIP (Virtual IP) may be used for load balancing or high-availability services to ensure the stability and reliability of the service.

[0065] In step S403, the front end sends the configuration information filled in by the allocator to the back end. After receiving it, the back end calls the CMDB server query interface to query the configuration information, and checks whether the server exists. If it exists, mark the server allocation as successful; if not, return an error message to the front end, prompting the resource allocator to fill in again.

[0066] When the back end completes the server allocation and the verification is successful, send a successful allocation notice to the front end. The front end displays the server allocation success information on the work order page.

[0067] Further, after the backend sends a successful allocation notification prompt to the frontend, it also performs a server change operation. Specifically, it calls the CMDB server update interface to update the deployment module information of the CMDB corresponding server to the cluster name applied for by the applicant to ensure the data consistency and accuracy of the entire server resource management system and avoid data conflicts or information inconsistencies. After the update is completed, the backend records information such as the server change time and change content, and sends a server change completion notification to the frontend. After receiving the notification, the frontend updates and displays the server change result on the work order page to complete the entire automatic server resource allocation process.

[0068] It can be seen that a method for automatically allocating server resources based on CMDB provided by this application automates the process of allocating server resources for applications through a work order system, ensuring the automatic management of IT assets - servers and the enterprise operation efficiency.

[0069] Based on the same inventive concept, an apparatus for automatically allocating server resources based on CMDB is also provided in an embodiment of this application. Since the principle of solving problems by the apparatus in the embodiment of this application is similar to that of the method for automatically allocating server resources based on CMDB in the above embodiment of this application, the implementation of the apparatus can refer to the implementation of the method, and the repeated parts will not be elaborated.

[0070] As shown in the specification append Figure 4 As shown, an apparatus for automatically allocating server resources based on CMDB is also provided in this application, which is applied to the backend of the work order system. The apparatus includes:

[0071] An obtaining module 401, configured to respond to a request from the frontend for obtaining application module data, extract applicant information from the request, call the CMDB application query interface of the configuration management database, obtain a list of all application names associated with the applicant information, and return the application name list to the frontend to allow the applicant to select a target application;

[0072] A generating module 402, configured to respond to a request from the frontend for filling in the expansion requirement for the target application, generate an expansion information form, and return the expansion information form to the frontend to allow the applicant to fill in the corresponding expansion information;

[0073] An approval module 403, configured to respond to the expansion information sent by the frontend, generate an expansion work order and approval information for the expansion work order, and send the approval information to the frontend to allow the corresponding approval personnel at each node in the approval process to approve the expansion work order;

[0074] The allocation module 404 is configured to execute a corresponding expansion work order in response to the approval result sent by the front end, allocate server resources according to the expansion information, and send an allocation success notification to the front end.

[0075] In some embodiments, the apparatus further includes:

[0076] The update module is configured to call the CMDB server update interface to update the deployment module information of the corresponding server.

[0077] In some embodiments, the apparatus further includes:

[0078] The selection module is configured to call the CMDB application query interface in response to the target application selection information sent by the front end, obtain the basic information of the selected target application, and return the basic information to the front end in a set format, so that the front end can display the basic information of the target application on the work order page.

[0079] In some embodiments, the generation module 402 responds to the expansion requirement filling request for the target application sent by the front end and generates an expansion information form, including: responding to the request for obtaining the cluster name sent by the front end, obtaining the information of the computer room and the network partition from the request, and querying from the CMDB a list of cluster names associated with the computer room and the network partition; sending the list of cluster names and the new option to the front end to allow the applicant to select a target cluster name from the list of cluster names or select the new option; where, in response to the new option selection information sent by the front end, a new cluster name is generated and the new cluster name is sent to the front end for display. Among them, the new cluster name is generated based on the name of the computer room and the resource environment.

[0080] In some embodiments, the allocation module 404 responds to the approval result sent by the front end and executes a corresponding expansion work order, including: responding to the approval result sent by the front end, obtaining the expansion information of the corresponding expansion work order, and obtaining the category of the operating system from the expansion information; dividing the expansion work order according to the category of the operating system, generating a configuration information table for the divided expansion work order, and sending the configuration information table to the front end to allow the allocator to fill in the corresponding configuration information; responding to the configuration information sent by the front end, calling the CMDB server query interface to query the configuration information, and determining whether there is a server in the configuration information. If so, mark the server resource allocation as successful.

[0081] An automatic server resource allocation device based on CMDB provided by the present application is applied to the backend of the work order system. By means of an acquisition module, in response to a request from the front end for acquiring application module data, it extracts applicant information from the request, invokes the application query interface of the Configuration Management Database (CMDB), obtains a list of all application names associated with the applicant information, and returns the list of application names to the front end for the applicant to select a target application. By means of a generation module, in response to a request from the front end for filling in the expansion requirement for the target application, it generates an expansion information form and returns the expansion information form to the front end for the applicant to fill in the corresponding expansion information. By means of an approval module, in response to the expansion information sent from the front end, it generates an expansion work order and approval information for the expansion work order, and sends the approval information to the front end for the approval personnel corresponding to each node in the approval process to approve the expansion work order. By means of an allocation module, in response to the approval passed result sent from the front end, it executes the corresponding expansion work order to allocate server resources according to the expansion information, and sends an allocation success notification to the front end. Thus, the automation of the application server resource allocation process is realized, and the operation efficiency of the enterprise is improved.

[0082] Based on the same inventive concept of the present invention, the attached Figure 5 As shown in the figure, a structure of an electronic device 500 provided by an embodiment of the present application, the electronic device 500 includes: at least one processor 501, at least one network interface 504 or other user interfaces 503, a memory 505, and at least one communication bus 502. The communication bus 502 is used to realize the connection and communication between these components. The electronic device 500 optionally includes a user interface 503, including a display (for example, a touch screen, an LCD, a CRT, a holographic imaging or a projector, etc.), a keyboard or a pointing device (for example, a mouse, a trackball, a touchpad or a touch screen, etc.).

[0083] The memory 505 may include a read-only memory and a random access memory, and provide instructions and data to the processor 501. A part of the memory 505 may also include a non-volatile random access memory (NVRAM).

[0084] In some embodiments, the memory 505 stores the following elements, which may be protection modules or data structures, or subsets thereof, or extended sets thereof:

[0085] An operating system 5051, including various system programs, used to implement various basic services and process hardware-based tasks;

[0086] The application program module 5052 includes various application programs, such as a launcher, a MediaPlayer, a Browser, etc., which are used to implement various application services.

[0087] In the embodiment of the present application, by invoking the program or instruction stored in the memory 505, the processor 501 is used to execute the steps in a method for automatically allocating server resources based on CMDB, and can realize the automation of the application server resource allocation process, improving the enterprise operation efficiency.

[0088] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it executes the steps in the method for automatically allocating server resources based on CMDB.

[0089] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, it can execute the above-mentioned method for automatically allocating server resources based on CMDB.

[0090] In the embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some communication interfaces. The indirect coupling or communication connection of devices or units can be in an electrical, mechanical or other form.

[0091] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0092] In addition, each functional unit in the embodiments provided by the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0093] If a function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.

[0094] Finally, it should be noted that the above embodiments are only specific implementation manners of this application, used to illustrate the technical solutions of this application, rather than limiting it. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the art within the technical scope disclosed in this application can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims

1. An automatic server resource allocation method based on CMDB, characterized in that Applied to the backend of the work order system, the method includes the following steps: In response to a request from the front end to obtain application module data, extract applicant information from the request, and call the application query interface of the Configuration Management Database (CMDB) to obtain a list of all application names associated with the applicant information, and return the application name list to the front end for the applicant to select a target application; In response to a request from the front end to fill in the expansion requirement for the target application, generate an expansion information form and return the expansion information form to the front end for the applicant to fill in the corresponding expansion information; In response to the expansion information sent by the front end, generate an expansion work order and approval information for the expansion work order, and send the approval information to the front end for the approval personnel at each node in the approval process to approve the expansion work order; In response to the approval passed result sent by the front end, execute the corresponding expansion work order to allocate server resources according to the expansion information, and send a successful allocation notice to the front end.

2. The automatic server resource allocation method based on CMDB according to claim 1, characterized in that After sending the successful allocation notice to the front end, the following steps are further included: Call the CMDB server update interface to update the deployment module information of the corresponding server.

3. A method for automatically allocating server resources based on CMDB according to claim 1, characterized in that, Before generating the expansion information form in response to the request from the front end to fill in the expansion requirement for the target application, the following steps are further included: In response to the target application selection information sent by the front end, call the CMDB application query interface to obtain the basic information of the selected target application, and return the basic information to the front end in a set format so that the front end can display the basic information of the target application on the work order page.

4. The automatic server resource allocation method based on CMDB according to claim 3, characterized in that, The expansion requirement information includes at least one of the following information: computer room, network partition, resource environment, cluster name, operating system, machine type, disk type, CPU, memory, data disk, resource quantity, authorized user, machine use, and resource validity period.

5. A method for automatically allocating server resources based on CMDB according to claim 4, characterized in that, Generating the expansion information form in response to the request from the front end to fill in the expansion requirement for the target application includes the following steps: In response to a request from the front end to obtain the cluster name, obtain the information of the computer room and network partition from the request, and query the CMDB for a list of cluster names associated with the computer room and the network partition; Send the cluster name list and a new option to the front end for the applicant to select a target cluster name from the cluster name list or select the new option; wherein, in response to the new option selection information sent by the front end, generate a new cluster name and send the new cluster name to the front end for display.

6. The automatic server resource allocation method based on CMDB according to claim 5, characterized in that, Among them, Generate a new cluster name based on the names of the computer room and the resource environment.

7. A method for automatically allocating server resources based on CMDB according to claim 6, characterized in that Executing the corresponding expansion work order in response to the approval passed result sent by the front end includes the following steps: In response to the approval passed result sent by the front end, obtain the expansion information of the corresponding expansion work order, and obtain the category of the operating system from the expansion information; Divide the expansion work order according to the category of the operating system, generate a configuration information table for the divided expansion work order, and send the configuration information table to the front end for the allocator to fill in the corresponding configuration information; In response to the configuration information sent by the front end, the CMDB server query interface is called to query the configuration information, and it is determined whether there is a server in the configuration information. If there is, the server resource allocation is marked as successful.

8. An automatic server resource allocation device based on CMDB, characterized in that Applied to the backend of the work order system, the device includes: An acquisition module, configured to respond to a request from the front end to acquire application module data, extract applicant information from the request, call the CMDB application query interface of the configuration management database, obtain a list of all application names associated with the applicant information, and return the application name list to the front end for the applicant to select a target application; A generation module, configured to respond to a request from the front end to fill in the expansion requirement for the target application, generate an expansion information form, and return the expansion information form to the front end for the applicant to fill in the corresponding expansion information; An approval module, configured to respond to the expansion information sent by the front end, generate an expansion work order and approval information for the expansion work order, and send the approval information to the front end for the approval personnel corresponding to each node in the approval process to approve the expansion work order; An allocation module, configured to respond to the approval passed result sent by the front end, execute the corresponding expansion work order to allocate server resources according to the expansion information, and send an allocation success notification to the front end.

9. An electronic device, characterized in that, Includes: A processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the memory through the bus. When the machine-readable instructions are executed by the processor, the steps of the CMDB-based server resource automatic allocation method according to any one of claims 1 to 7 are executed.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is run by the processor, the steps of the CMDB-based server resource automatic allocation method according to any one of claims 1 to 7 are executed.