CN115714816A - Data center resource supply method and device, electronic equipment and storage medium - Google Patents

Data center resource supply method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115714816A
CN115714816A CN202211310605.1A CN202211310605A CN115714816A CN 115714816 A CN115714816 A CN 115714816A CN 202211310605 A CN202211310605 A CN 202211310605A CN 115714816 A CN115714816 A CN 115714816A
Authority
CN
China
Prior art keywords
resource
cloud platform
data center
resource supply
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211310605.1A
Other languages
Chinese (zh)
Inventor
张弘斐
耿辉
郑富迪
皮军强
冯逸行
吴延军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202211310605.1A priority Critical patent/CN115714816A/en
Publication of CN115714816A publication Critical patent/CN115714816A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application provides a data center resource supply method and device, electronic equipment and a storage medium, and relates to the technical field of cloud computing. The method is applied to a server and comprises a resource application flow and a resource supply flow, wherein in the resource application flow, a resource supply type carried in a resource request sent by a client is determined; calling an interface of the cloud platform corresponding to the resource supply type, and displaying available service items of the cloud platform; and sending the resource application information submitted by the client based on the available service items to the cloud platform so that the cloud platform can generate a resource supply work task corresponding to the resource application information. In the resource supply process, resource supply information sent by the cloud platform after the resource supply work task is executed is recorded, and the resource supply information is forwarded to the client so that the client can access the data center resource according to the resource supply information. According to the mode, the server side is used as the access end of each cloud platform, so that the resource supply efficiency of the data center of the multiple cloud platforms is improved.

Description

Data center resource supply method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a method and an apparatus for supplying data center resources, an electronic device, and a storage medium.
Background
In the construction process of the smart city, respective data centers are established in all cities, and IT resources of the data centers are opened to all units of the city for use.
The existing data center resource supply method is independently provided by respective cloud platforms, a plurality of cloud platforms are independent from each other, and the respective cloud platforms have respective data center resource supply capacity. However, in the financial digital transformation process, the data center faces massive resource supply requirements, and resource architectures and processes from different cloud platforms are different. When accessing the resources of each cloud platform, operations of different processes need to be performed, so that the resource supply capacity of the data center is reduced.
Therefore, the existing method has the technical problem that the resource supply efficiency of the data center of the multi-cloud platform is low.
Disclosure of Invention
The application provides a data center resource supply method and device, electronic equipment and a storage medium, which are used for solving the technical problem of low data center resource supply efficiency of a multi-cloud platform.
According to a first aspect of the present application, a data center resource supply method is provided, which is applied to a server and includes:
responding to a resource request sent by a client, and determining a resource supply type carried in the resource request;
calling an interface of a cloud platform corresponding to the resource supply type, and displaying available service items of the cloud platform;
responding to resource application information submitted by a client based on available service items of the cloud platform, and sending the resource application information to the cloud platform so that the cloud platform can generate a work task of resource supply corresponding to the resource application information;
determining whether the resource application information passes an audit result or not, and sending the audit result to the cloud platform so that the cloud platform determines that the result of the resource supply work task is executed or cancelled based on the audit result, and when the result of the resource supply work task is executed, the cloud platform allocates the data center resource corresponding to the resource application information to a virtual machine container;
and recording resource supply information which is sent by the cloud platform after the work task of resource supply is executed and contains the position information of the virtual machine container, and forwarding the resource supply information to the client so that the client can access the data center resource according to the resource supply information.
Optionally, after forwarding the resource provisioning information to the client, the method further includes:
responding to a management and control request of data center resources sent by the client, and providing a login page of an operation and maintenance platform connected with the server for the client;
and verifying the account information input by the client based on the login page of the operation and maintenance platform, and providing a control interface of the operation and maintenance platform for controlling the data center resources for the client after the verification is passed.
Optionally, the method further comprises:
determining all execution steps executed by the server based on a resource request sent by the client as a flow, and determining each execution step of the server as a node in the flow;
when the flow enters the current node, opening and displaying an operation page corresponding to the current node when the current node executes the steps at the server;
when the operation page meets a preset condition, marking the current node as a completion state, and closing the operation page;
and when the current node is in a finished state and the operation page is in a closed state, controlling the process to enter the next node.
Optionally, determining whether the resource application information is an audit result that is approved includes:
analyzing the needed data center resource of the available service item applied by the resource application information;
and counting the actual data center resources of the available service items applied by the resource application information, and determining whether the resource application information passes the auditing result by judging whether the required data center resources exceed the actual data center resources.
According to a second aspect of the present application, there is provided a data center resource supply method applied to a cloud platform, including:
responding to a request for calling an interface of the cloud platform sent by a server, and returning available service items of the cloud platform to the cloud platform;
responding to resource application information submitted by a client side based on available service items of the cloud platform and sent by the server side, and generating a resource supply work task corresponding to the resource application information;
responding to an audit result of whether the resource application information sent by the server passes the audit or not, and determining that the result of the work task of resource supply is execution or cancellation;
when the result of the work task of the resource supply is execution, allocating the data center resource corresponding to the resource application information to a virtual machine container;
and sending resource supply information containing the position information of the virtual machine container to the server side, so that the server side can forward the resource supply information to the client side after the cloud platform executes the work task of resource supply, and the client side can access the data center resource according to the resource supply information.
According to a third aspect of the present application, there is provided a data center resource supply device, applied to a server, including:
the resource application module is used for responding to a resource request sent by a client and determining a resource supply type carried in the resource request;
the resource application module is also used for calling an interface of the cloud platform corresponding to the resource supply type and displaying available service items of the cloud platform;
the resource application module is also used for responding to resource application information submitted by a client based on available service items of the cloud platform, and sending the resource application information to the cloud platform so that the cloud platform can generate a work task of resource supply corresponding to the resource application information;
the resource supply module is used for determining whether the resource application information passes the audit result or not, sending the audit result to the cloud platform, so that the cloud platform determines that the result of the working task of resource supply is executed or cancelled based on the audit result, and when the result of the working task of resource supply is executed, the cloud platform allocates the data center resource corresponding to the resource application information to a virtual machine container;
the resource supply module is further configured to record resource supply information, which is sent by the cloud platform after the work task of resource supply is executed and contains the location information of the virtual machine container, and forward the resource supply information to the client, so that the client accesses the data center resource according to the resource supply information.
Optionally, the data center resource supply device further includes a resource management and control module;
wherein the resource management and control module is configured to:
responding to a management and control request of data center resources sent by the client, and providing a login page of an operation and maintenance platform connected with the server to the client;
and verifying the account information input by the client based on the login page of the operation and maintenance platform, and providing a control interface of the operation and maintenance platform for controlling the data center resources for the client after the verification is passed.
Optionally, the data center resource supply device further includes a process management module;
wherein the process management module is configured to:
determining all execution steps executed by the server based on a resource request sent by the client as a flow, and determining each execution step of the server as a node in the flow;
when the flow enters the current node, opening and displaying an operation page corresponding to the current node when the current node executes the steps at the server;
when the operation page meets a preset condition, marking the current node as a completion state, and closing the operation page;
and when the current node is in a finished state and the operation page is in a closed state, controlling the process to enter the next node.
According to a fourth aspect of the present application, there is provided a data center resource supply device, which is applied to a cloud platform, and includes:
the sending module is used for responding to a request for calling an interface of the cloud platform sent by a server and returning available service items of the cloud platform to the cloud platform;
the generating module is used for responding to resource application information which is sent by the server and submitted by the client based on the available service items of the cloud platform, and generating a resource supply work task corresponding to the resource application information;
the determining module is used for responding to an audit result of whether the resource application information sent by the server side is approved or not, and determining that the result of the work task supplied by the resource is executed or cancelled;
the allocation module is used for allocating the data center resource corresponding to the resource application information to a virtual machine container when the result of the work task of the resource supply is execution;
the sending module is further configured to send resource supply information including the location information of the virtual machine container to the server, so that the server forwards the resource supply information to the client after the cloud platform completes a work task of resource supply, and the client accesses the data center resource according to the resource supply information.
According to a fifth aspect of the present application, there is provided an electronic device comprising: at least one processor and a memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the data center resource provisioning method of the first or second aspect.
According to a sixth aspect of the present application, there is provided a computer-readable storage medium having stored therein computer-executable instructions for implementing the data center resource provisioning method according to the first or second aspect when executed by a processor.
According to a seventh aspect of the present application, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the data center resource provisioning method of the first or second aspect.
The application provides a data center resource supply method, which is applied to a server and comprises the following steps: responding to a resource request sent by a client, and determining a resource supply type carried in the resource request; calling an interface of the cloud platform corresponding to the resource supply type, and displaying available service items of the cloud platform; responding to resource application information submitted by a client based on available service items of the cloud platform, and sending the resource application information to the cloud platform so that the cloud platform can generate a resource supply work task corresponding to the resource application information; determining whether the resource application information passes the audit result, and sending the audit result to the cloud platform so that the cloud platform can determine whether the result of the resource supply work task is execution or cancellation based on the audit result, and when the result of the resource supply work task is execution, the cloud platform allocates the data center resource corresponding to the resource application information to the virtual machine container; and recording resource supply information which is sent by the cloud platform after the work task of resource supply is executed and contains the position information of the virtual machine container, and forwarding the resource supply information to the client so that the client can access the data center resource according to the resource supply information.
According to the data center resource supply method and system, one server is used as a uniform resource supply inlet of all cloud platforms, a uniform data center resource supply flow is provided, when a client requests any cloud platform to achieve data center resource supply, heterogeneous structures of the cloud platforms do not need to be considered, and the client only needs to communicate with the server. The method can improve the resource supply efficiency of the multi-cloud platform.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of a data center resource supply method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of S104 in fig. 1 according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another data center resource supply method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another data center resource supply method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data center resource supply device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another data center resource supply device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application.
In the financial digital transformation process, the data center faces massive resource supply requirements, and resource architectures from different cloud platforms are different and processes are different. When accessing the resources of each cloud platform, the prior art needs to perform operations of different processes, so that the resource supply capability of the data center is reduced. Therefore, the technical problem that the resource supply efficiency of the data center of the multi-cloud platform is low exists in the prior art.
In order to solve the technical problem, the present invention provides a method for improving resource supply efficiency of a data center of a multi-cloud platform.
The following describes the technical solution of the present application and how to solve the above technical problems in detail by specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a data center resource supply method according to an embodiment of the present application.
As shown in fig. 1, the method of this embodiment, applied to a server, includes:
s101: and responding to the resource request sent by the client, and determining the resource supply type carried in the resource request.
It should be understood that the above-mentioned clients are also called clients. And the resource applicant performs information interaction with the server side through the client side. The resource supply type carried in the resource request may be one type or multiple types, and different cloud platforms correspond to different resource supply types, or one cloud platform corresponds to one resource supply type. By determining the resource supply type carried in the resource request, the embodiment of the application can determine which resource supply type to call in S102. The method and the device have no specific limitation on the form and the interface protocol of the cloud platform.
S102: and calling an interface of the cloud platform corresponding to the resource supply type, and displaying available service items of the cloud platform.
Before the method for supplying data center resources is implemented, in this embodiment, a corresponding cloud platform is connected to a server through an interface of each cloud platform, where the plurality of cloud platforms include, but are not limited to: infrastructure As A Service (IAAS), platform As A Service (PAAS), software as a Service (SaaS).
The IAAS, which is an infrastructure, provides IT infrastructures, such as servers, storages, networks, operating systems, and various basic computing resources, as a service to clients via a network. Through the IT infrastructure, clients may deploy and execute various software such as operating systems or applications.
Platform As A Service (PAAS) deploys and creates cloud infrastructure (e.g., servers, storage, networks, operating systems, etc.) to clients or obtains access to programming languages, libraries and services. The client does not need to manage and control the cloud infrastructure, but needs to control the upper-layer environment of application deployment and application hosting.
Software as a service, saaS, may refer to a cloud-based software delivery model, specifically, cloud application software developed and maintained by a cloud provider, automatic software updates provided, and software provided to clients over the internet in a pay-as-you-go manner. All hardware and traditional software, including middleware, application software, security, etc., are hosted by public cloud providers. Therefore, the cost of the client of the SaaS can be greatly reduced, the speed of deploying, expanding and upgrading the service solution is obviously faster than that of a local deployment system and software, and the total cost can be predicted more accurately.
Because the plurality of cloud platforms are connected with the server side through respective interfaces, and the server side performs information interaction with the cloud platforms in an interface calling mode, the server side can integrate infrastructure as a service, platform as a service and software as a service, the integration of resource supply management of the data center is realized, and the resource supply capacity is further enhanced.
For example, when the cloud platform corresponding to the resource supply type is an infrastructure as a service IAAS, a service item page of the infrastructure as a service is generated for displaying available service items of the infrastructure as a service; when the cloud platform corresponding to the resource supply type is a Platform As A Service (PAAS), generating a service item page of the platform as a service, wherein the service item page is used for displaying available service items of the platform as a service; when the cloud platform corresponding to the resource supply type is an Infrastructure As A Service (IAAS) and a Platform As A Service (PAAS), generating a service item page of the infrastructure as a service and a service item page of the platform as a service, which are respectively used for displaying available service items of the infrastructure as a service and available service items of the platform as a service, so that a client fills in resource application information at a client.
The embodiment of the application does not specifically limit the service items provided by the infrastructure as a service, the platform as a service and the software as a service, and can be adaptively set in combination with a specific scene. Further, the service end can determine the available service items and the unavailable service items of the cloud platform in time, and the reasons for generating the unavailable service items are many, for example: the service items provided by the cloud platform may not be opened for a client with a certain authority, and a certain service item of the cloud platform cannot be opened for the client on the basis that the service item is used by other clients.
Information interaction can be performed between the server and the cloud platform in the embodiment of the application, so that the process of determining the available service items of the cloud platform is convenient, and the embodiment of the application is not particularly limited to this.
S103: and responding to resource application information submitted by the client based on the available service items of the cloud platform, and sending the resource application information to the cloud platform so that the cloud platform can generate a resource supply work task corresponding to the resource application information.
The resource application process executed by the server in S101 to S103 is a unified resource application process provided for the client, and mainly includes two steps: firstly, acquiring available service items of a cloud platform; and secondly, submitting resource application information for generating the work task to the cloud platform.
In summary, the embodiment of the present application provides a unified data center resource application entry. And the client specifies the resource supply type required to be applied when the resource is applied. According to the method and the device for processing the resource application information, the interfaces of the cloud platforms are called in real time, the service items which can be provided by the cloud platforms are inquired and obtained, the available service items corresponding to the cloud platforms are displayed according to different resource supply types selected by a user, the user fills in corresponding resource application information in the service item pages of the corresponding cloud platforms and submits the corresponding resource application information, and after the resource application information is collected, the resource application information can be sent to the cloud platforms in a resource request mode through the interfaces of the cloud platforms, so that the cloud platforms can generate work tasks.
S104: and determining whether the resource application information passes the audit result, and sending the audit result to the cloud platform so that the cloud platform can determine that the result of the work task of resource supply is execution or cancellation based on the audit result, and when the result of the work task of resource supply is execution, the cloud platform allocates the data center resource corresponding to the resource application information to the virtual machine container.
In the embodiment of the application, the audit result includes two results of audit pass and audit fail. A corresponding audit result may be set for the cloud platform corresponding to each resource provision type.
When the cloud platform corresponding to the resource supply type is an infrastructure as a service IAAS and a platform as a service PAAS, and both the audit results pass, the infrastructure as a service issues the resource corresponding to the available service item of the infrastructure as a service filled by the client, and the platform as a service issues the resource corresponding to the available service item of the platform as a service filled by the client. It should be understood that the embodiments of the present application illustrate the audit trail in the following S201 to S202, but in practice, the embodiments of the present application do not specifically limit the number and specific content of the audit trail.
Optionally, when the audit result is failed, the audit result is not sent to the cloud platform, but the operation is returned to the last step, so that the client submits the resource application information based on the available service items of the cloud platform again.
Data center resources may be referred to simply as resources, and thus data center resource supplies may be referred to simply as resource supplies, including but not limited to: the method comprises the steps of deployment and release of resource application of infrastructure as service, deployment and release of resource application of platform as service, and deployment and release of resource application of software as service.
The cloud platform allocates the data center resources corresponding to the resource application information to the virtual machine container, so the data center resources can also be referred to as server resources.
S105: and recording resource supply information which is sent by the cloud platform after the work task of resource supply is executed and contains the position information of the virtual machine container, and forwarding the resource supply information to the client so that the client can access the data center resource according to the resource supply information.
It should be understood that the location information of the virtual machine container is alternatively referred to as resource configuration information. And the client can find the data center resource according to the resource configuration information. According to the embodiment of the application, the resource configuration information can be automatically recorded, the resource agent is automatically deployed, the resource monitoring is automatically deployed, the intellectualization is improved, and the data support is provided for the follow-up improvement of the resource management and control efficiency.
The above-mentioned S104 to S105 are resource supply flows executed by the server. The primary resource supply process corresponds to the online of a newly added service, and a cloud platform is required to provide corresponding server resources for deploying the information system of the service. The resource supply flow mainly comprises the following three steps: firstly, acquiring a work task of resource supply generated by a cloud platform; secondly, determining whether the resource application information passes the auditing result or not; third, a task result is recorded, and the task result is resource supply information including position information of the virtual machine container.
According to the embodiment of the application, one server is used as a uniform resource supply inlet of all cloud platforms, a uniform data center resource supply flow is provided, when a client requests any one cloud platform to realize data center resource supply, heterogeneous structures of the cloud platforms do not need to be considered, and the client only needs to communicate with the server. The method can improve the resource supply efficiency of the multi-cloud platform.
In the resource supply process, the embodiment of the application provides a uniform resource supply inlet of the data center, and then a resource manager checks resource application information submitted by a resource applicant. According to the resource application information processing method and device, the resource application information can be obtained through the cloud platform interface, the resource manager can select whether the audit is passed or not, and the audit result is provided for the cloud platform. If the auditing result is that the auditing is passed, sending a resource issuing request to the corresponding cloud platform so as to enable the cloud platform to issue the resources, and meanwhile, polling the issuing result of the resource issuing task by the server so as to acquire and record the resource supply information provided by the cloud platform after the issuing result is the work task of resource supply executed by the cloud platform; and if the auditing result is that the auditing is not passed, sending a task canceling request to the corresponding cloud platform so that the cloud platform cancels the work task corresponding to the resource application information.
In the related art, resource architectures and processes of cloud platforms are different, which brings a lot of production and maintenance work, and the problems of non-standard configuration, low automation level and insufficient management and control capability after resource supply exist. In order to improve the management and control capability after resource supply, the embodiment of the present application executes the following resource management and control process on the server. In one possible implementation manner, after forwarding the resource provisioning information to the client, the data center resource provisioning method further includes the following steps S106 to S107, where:
s106: and responding to a management and control request of the data center resource sent by the client, and providing a login page of the operation and maintenance platform connected with the server to the client.
S107: and verifying the account information input by the client based on the login page of the operation and maintenance platform, and providing a control interface of the operation and maintenance platform for controlling the data center resources for the client after the verification is passed.
It should be understood that the operation and maintenance platform is a set of software system for automation operation and maintenance work of all infrastructures of the cloud platform and the server, and even if the infrastructures of the cloud platform reach hundreds of thousands of levels, the operation and maintenance work can be still provided rapidly, so that a background guarantee is provided for improving the resource supply efficiency of the multi-cloud platform.
The above S106 to S107 are resource management and control processes of the server, and resource management and control refer to incorporating resources into the operation and maintenance platform management. In order to ensure that the subsequent stable operation can be performed for a long time, after the resources are supplied, the present embodiment effectively manages various information of the resources in a manner that the server is in butt joint with the operation and maintenance platform, including management of the resources, management of resource configuration information, operation and maintenance management, change management, and the like, so as to enhance the management and control capability after the resources are supplied.
The embodiment of the application provides a background management and control entry of a unified data center resource supply method. After the resource manager checks that the data center resources are supplied to the resource applicant, the resource applicant can automatically connect with the operation and maintenance platform through the resource management and control module of the server, so that the functions of automatically recording resource configuration information, automatically deploying monitoring on the resources, automatically deploying agent tools required by subsequent operation and maintenance work and the like are realized.
In a possible implementation manner, the data center resource supply method further includes:
s108: all execution steps executed by the server based on a resource request sent by the client are determined as a flow, and each execution step of the server is determined as a node in the flow.
S109: and when the flow enters the current node, opening and displaying an operation page corresponding to the current node when the server executes the steps.
S110: and when the operation page meets the preset condition, marking the current node as a completion state, and closing the operation page. The content of the preset condition is not specifically limited in the embodiment of the present application.
S111: and when the current node is in a finished state and the operation page is in a closed state, controlling the flow to enter the next node.
In this application embodiment, the method for supplying resources to a data center integrates the processes of the whole data center resource supply method into a set of online processes, and includes: the resource management and control method comprises a resource application flow, a resource supply flow and a resource management and control flow. The steps S108 to S111 may refine each step in the resource application flow, the resource supply flow, and the resource control flow into a node in the flow, and arrange specific acceptors. When the flow is transferred to the corresponding acceptors in the corresponding steps, the acceptors can open the operation pages provided by the embodiment of the application, and further implement resource application, resource supply and resource control operation, so that one-stop service from resource application to resource control is realized.
In summary, the embodiment of the present application mainly achieves integration of multi-cloud platform resource supply and reinforcement of management and control after resource supply. The method has the following two main advantages: (1) The resource supply method and device support integration of heterogeneous multi-cloud platform resource supply and unify resource supply inlets. The method can unify resource supply processes during heterogeneous cloud platform resource supply, and achieves the purposes of standardized and automated one-stop resource application, approval and supply. (2) After the resources are supplied, the resources can be connected with the operation and maintenance platform through the server end, the supplied resources are connected with the operation and maintenance platform in time, and are actively brought into a management system of resource allocation, resource discovery, resource monitoring and resource agent operation of the operation and maintenance platform, so that the resources can be effectively controlled in time after the resources are supplied.
On the basis of the above embodiments, the following describes the technical solution of the present application in more detail with reference to specific embodiments.
Fig. 2 is a schematic flowchart of S104 in fig. 1 according to an embodiment of the present disclosure. On the basis of the embodiment shown in fig. 1, the present embodiment focuses on refining S104 in fig. 1. As shown in fig. 2, the method of the present embodiment includes the following steps S201 to S202, wherein:
s201: and analyzing the required data center resources of the available service items applied by the resource application information.
S202: and counting the actual data center resources of the available service items applied by the resource application information, and determining whether the resource application information passes the auditing result by judging whether the required data center resources exceed the actual data center resources.
By executing the operations from S201 to S202, an effective resource application information auditing basis can be provided in the embodiment of the present application, and a basis is further provided for a cloud platform to effectively issue data center resource data.
Fig. 3 is a schematic flowchart of another data center resource supply method according to an embodiment of the present application. The data center resource supply method is applied to a cloud platform and comprises the following steps:
s301: and responding to a request for calling the interface of the cloud platform sent by the server, and returning available service items of the cloud platform to the cloud platform.
S302: and responding to resource application information sent by the server and submitted by the client based on the available service items of the cloud platform, and generating a resource supply work task corresponding to the resource application information.
S303: and responding to the auditing result of whether the resource application information sent by the server side is approved or not, and determining that the result of the work task of resource supply is execution or cancellation.
S304: and when the result of the work task of the resource supply is execution, allocating the data center resource corresponding to the resource application information to the virtual machine container.
S305: and sending the resource supply information containing the position information of the virtual machine container to the server side, so that the server side can forward the resource supply information to the client side after the cloud platform executes the work task of resource supply, and the client side can access the data center resource according to the resource supply information.
The cloud platform in the embodiment of the application is connected with the server through the interface, and the server can provide a uniform resource supply inlet, so that the workload of the cloud platform is reduced, the resource supply efficiency is improved, whether to execute the work task or not is judged according to the result of the work task supplied by the resource, and the safety can be improved.
Fig. 4 is a flowchart illustrating another data center resource supply method according to an embodiment of the present application. The data center resource supply method can realize interaction among the server, the client and the cloud platform. As shown in fig. 4, the method of the present embodiment includes the following steps S401 to S413:
s401: the client sends a resource request to the server.
S402: and the server determines the resource supply type carried in the resource request.
S403: the cloud platform corresponding to the resource supply type provides the available service items.
S404: and the server calls an interface of the cloud platform corresponding to the resource supply type and displays available service items of the cloud platform.
S405: the client submits resource application information to the server based on the available service items of the cloud platform.
S406: and the server side sends the resource application information to the cloud platform.
S407: and the cloud platform generates a resource supply work task corresponding to the resource application information.
S408: and the server determines whether the resource application information passes the audit result, and sends the audit result to the cloud platform.
S409: and the cloud platform determines the result of the work task of resource supply to be execution or cancellation based on the audit result.
S410: and when the result of the work task of resource supply is execution, the cloud platform allocates the data center resource corresponding to the resource application information to the virtual machine container.
S411: and the cloud platform sends the resource supply information to the server after executing the work task of resource supply.
S412: and the server forwards the resource supply information to the client.
S413: and the client accesses the data center resource according to the resource supply information.
The implementation principle and technical effect of the data center resource supply method are similar to those of the method embodiments, and are not described herein again.
Fig. 5 is a schematic structural diagram of a data center resource supply device according to an embodiment of the present application. The apparatus of the present embodiment may be in the form of software and/or hardware. As shown in fig. 5, the data center resource supply device provided in this embodiment is applied to a server, and includes: a resource application module 51 and a resource provisioning module 52. Wherein:
the resource application module 51 is configured to determine, in response to a resource request sent by a client, a resource supply type carried in the resource request.
The resource application module 51 is further configured to invoke an interface of the cloud platform corresponding to the resource supply type, and display available service items of the cloud platform.
The resource application module 51 is further configured to send, in response to resource application information submitted by the client based on an available service item of the cloud platform, the resource application information to the cloud platform, so that the cloud platform generates a work task for resource supply corresponding to the resource application information.
The resource supply module 52 is configured to determine whether the resource application information passes the audit result, and send the audit result to the cloud platform, so that the cloud platform determines that the result of the work task of resource supply is execution or cancellation based on the audit result, and when the result of the work task of resource supply is execution, the cloud platform allocates the data center resource corresponding to the resource application information to the virtual machine container.
The resource supply module 52 is further configured to record resource supply information that is sent by the cloud platform after the work task of resource supply is executed and contains the location information of the virtual machine container, and forward the resource supply information to the client, so that the client accesses the data center resource according to the resource supply information.
In a possible implementation manner, as shown in fig. 6, the data center resource supply apparatus further includes a resource management and control module 53, where:
a resource management and control module 53, configured to:
and responding to a management and control request of the data center resource sent by the client, and providing a login page of the operation and maintenance platform connected with the server to the client.
And verifying the account information input by the client based on the login page of the operation and maintenance platform, and providing a control interface of the operation and maintenance platform for controlling the data center resources for the client after the verification is passed.
In one possible implementation manner, as shown in fig. 6, the data center resource supply apparatus further includes a flow management module 54, where:
a process management module 54 for:
all execution steps executed by the server based on a resource request sent by the client are determined as a flow, and each execution step of the server is determined as a node in the flow.
And when the flow enters the current node, opening and displaying an operation page corresponding to the current node when the server executes the steps.
And when the operation page meets the preset condition, marking the current node as a completion state, and closing the operation page.
And when the current node is in a finished state and the operation page is in a closed state, controlling the flow to enter the next node.
In one possible implementation, the resource supply module 52 is further configured to:
and analyzing the required data center resources of the available service items applied by the resource application information.
And counting the actual data center resources of the available service items applied by the resource application information, and determining whether the resource application information passes the auditing result by judging whether the required data center resources exceed the actual data center resources.
The present embodiment provides another data center resource supply device, which is applied to a cloud platform, and includes:
and the sending module is used for responding to a request for calling the interface of the cloud platform sent by the server and returning the available service items of the cloud platform to the cloud platform.
And the generating module is used for responding to the resource application information sent by the server and submitted by the client based on the available service items of the cloud platform, and generating the resource supply work task corresponding to the resource application information.
And the determining module is used for responding to the auditing result of whether the resource application information sent by the server passes the auditing or not, and determining that the result of the working task of resource supply is execution or cancellation.
And the allocation module is used for allocating the data center resource corresponding to the resource application information to the virtual machine container when the result of the work task of resource supply is execution.
The sending module is further configured to send resource supply information including the location information of the virtual machine container to the server, so that the server forwards the resource supply information to the client after the cloud platform executes a work task of resource supply, and the client accesses the data center resource according to the resource supply information.
The data center resource supply device provided in this embodiment may be configured to execute the data center resource supply method provided in any method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
In the technical scheme of the application, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good custom of the public order.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device comprises a receiver 70, a transmitter 71, at least one processor 72 and a memory 73, and the electronic device formed by the above components can be used to implement several specific embodiments of the present application, which are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the steps in the method in the foregoing embodiment are implemented.
Embodiments of the present application further provide a computer program product, which includes computer instructions, and when the computer instructions are executed by a processor, the computer instructions implement the steps of the method in the above embodiments.
Various implementations of the systems and techniques described here above may be realized in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or electronic device.
In the context of this application, a computer readable storage medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may be a machine readable signal medium or a machine readable storage medium. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a computer-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data electronic device), or that includes a middleware component (e.g., an application electronic device), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above-described embodiments are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A data center resource supply method is applied to a server and comprises the following steps:
responding to a resource request sent by a client, and determining a resource supply type carried in the resource request;
calling an interface of a cloud platform corresponding to the resource supply type, and displaying available service items of the cloud platform;
responding to resource application information submitted by a client based on available service items of the cloud platform, and sending the resource application information to the cloud platform so that the cloud platform can generate a work task of resource supply corresponding to the resource application information;
determining whether the resource application information passes the audit result, and sending the audit result to the cloud platform so that the cloud platform can determine that the result of the work task of resource supply is execution or cancellation based on the audit result, and when the result of the work task of resource supply is execution, the cloud platform allocates the data center resource corresponding to the resource application information to a virtual machine container;
and recording resource supply information which is sent by the cloud platform after the work task of resource supply is executed and contains the position information of the virtual machine container, and forwarding the resource supply information to the client so that the client can access the data center resource according to the resource supply information.
2. The method of claim 1, further comprising, after forwarding the resource provisioning information to the client:
responding to a management and control request of data center resources sent by the client, and providing a login page of an operation and maintenance platform connected with the server to the client;
and verifying the account information input by the client based on the login page of the operation and maintenance platform, and providing a control interface of the operation and maintenance platform for controlling the data center resources for the client after the verification is passed.
3. The method of claim 2, further comprising:
determining all execution steps executed by the server based on a resource request sent by the client as a flow, and determining each execution step of the server as a node in the flow;
when the flow enters the current node, opening and displaying an operation page corresponding to the current node when the current node executes the steps at the server;
when the operation page meets a preset condition, marking the current node as a completion state, and closing the operation page;
and when the current node is in a finished state and the operation page is in a closed state, controlling the process to enter the next node.
4. The method of claim 1, wherein determining whether the resource application information is approved comprises:
analyzing the needed data center resource of the available service item applied by the resource application information;
and counting the actual data center resources of the available service items applied by the resource application information, and determining whether the resource application information passes the auditing result by judging whether the required data center resources exceed the actual data center resources.
5. A data center resource supply method is applied to a cloud platform and comprises the following steps:
responding to a request for calling an interface of the cloud platform sent by a server, and returning available service items of the cloud platform to the cloud platform;
responding to resource application information submitted by a client side based on available service items of the cloud platform and sent by the server side, and generating a resource supply work task corresponding to the resource application information;
responding to an audit result of whether the resource application information sent by the server passes the audit or not, and determining that the result of the work task of resource supply is execution or cancellation;
when the result of the work task of the resource supply is execution, allocating the data center resource corresponding to the resource application information to a virtual machine container;
and sending resource supply information containing the position information of the virtual machine container to the server, so that the server forwards the resource supply information to the client after the cloud platform executes the work task of resource supply, and the client accesses the data center resource according to the resource supply information.
6. A data center resource supply device is applied to a server and comprises:
the resource application module is used for responding to a resource request sent by a client and determining a resource supply type carried in the resource request;
the resource application module is also used for calling an interface of the cloud platform corresponding to the resource supply type and displaying available service items of the cloud platform;
the resource application module is also used for responding to resource application information submitted by a client based on available service items of the cloud platform, and sending the resource application information to the cloud platform so that the cloud platform can generate a work task of resource supply corresponding to the resource application information;
the resource supply module is used for determining whether the resource application information passes the audit result or not, sending the audit result to the cloud platform, so that the cloud platform determines that the result of the working task of resource supply is executed or cancelled based on the audit result, and when the result of the working task of resource supply is executed, the cloud platform allocates the data center resource corresponding to the resource application information to a virtual machine container;
the resource supply module is further configured to record resource supply information, which is sent by the cloud platform after the work task of resource supply is executed and contains the location information of the virtual machine container, and forward the resource supply information to the client, so that the client accesses the data center resource according to the resource supply information.
7. The apparatus of claim 6, further comprising a resource management module;
wherein the resource management and control module is configured to:
responding to a management and control request of data center resources sent by the client, and providing a login page of an operation and maintenance platform connected with the server to the client;
and verifying the account information input by the client based on the login page of the operation and maintenance platform, and providing a control interface of the operation and maintenance platform for controlling the data center resources for the client after the verification is passed.
8. The apparatus of claim 7, further comprising a process management module;
wherein the process management module is configured to:
determining all execution steps executed by the server based on a resource request sent by the client as a flow, and determining each execution step of the server as a node in the flow;
when the flow enters the current node, opening and displaying an operation page corresponding to the current node when the current node executes the steps at the server;
when the operation page meets a preset condition, marking the current node as a completion state, and closing the operation page;
and when the current node is in a finished state and the operation page is in a closed state, controlling the process to enter the next node.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the data center resource provisioning method of any of claims 1 to 5.
10. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the data center resource provisioning method according to any one of claims 1 to 5.
CN202211310605.1A 2022-10-25 2022-10-25 Data center resource supply method and device, electronic equipment and storage medium Pending CN115714816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211310605.1A CN115714816A (en) 2022-10-25 2022-10-25 Data center resource supply method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211310605.1A CN115714816A (en) 2022-10-25 2022-10-25 Data center resource supply method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115714816A true CN115714816A (en) 2023-02-24

Family

ID=85231707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211310605.1A Pending CN115714816A (en) 2022-10-25 2022-10-25 Data center resource supply method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115714816A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117519838A (en) * 2024-01-04 2024-02-06 浙江大华技术股份有限公司 AI workflow modeling method, related device, equipment, system and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117519838A (en) * 2024-01-04 2024-02-06 浙江大华技术股份有限公司 AI workflow modeling method, related device, equipment, system and medium
CN117519838B (en) * 2024-01-04 2024-04-12 浙江大华技术股份有限公司 AI workflow modeling method, related device, equipment, system and medium

Similar Documents

Publication Publication Date Title
AU2019232804B2 (en) Decision tables and flow engine for building automated flows within a cloud based development platform
CN110765024A (en) Simulation test method, simulation test device, electronic equipment and computer-readable storage medium
WO2018191597A2 (en) Tenant upgrade analytics
US20150066572A1 (en) Identity and access management
US9497096B2 (en) Dynamic control over tracing of messages received by a message broker
KR101416280B1 (en) Event handling system and method
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN113157419A (en) Task processing method based on robot process automation
EP3128416A1 (en) Sdn application integration, management and control method, system and device
CN113014424B (en) Cloud platform management method and device, electronic equipment and storage medium
CN110365762A (en) Service processing method, device, equipment and storage medium
CN113361838A (en) Business wind control method and device, electronic equipment and storage medium
CN114157701A (en) Task testing method, device, equipment and storage medium
CN115714816A (en) Data center resource supply method and device, electronic equipment and storage medium
CN114328132A (en) Method, device, equipment and medium for monitoring state of external data source
CN104935616A (en) Data processing method, device and ESB system
CN113608751B (en) Operation method, device and equipment of reasoning service platform and storage medium
CN112799970B (en) Test data processing method, device, electronic equipment and medium
CN114338820A (en) Network access method, device, electronic equipment and storage medium
CN112395568A (en) Interface authority configuration method, device, equipment and storage medium
CN114090268B (en) Container management method and container management system
US11606245B1 (en) Validating endpoints in a service mesh of a distributed computing system
KR102360885B1 (en) System and method for managing work flow for cloud service
CN114036250A (en) High-precision map task processing method and device, electronic equipment and medium
CN114170027A (en) Processing method and device for public accumulation fund payment account, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination