CN114666234B - Cloud service construction method and device, storage medium and electronic equipment - Google Patents

Cloud service construction method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114666234B
CN114666234B CN202210268359.1A CN202210268359A CN114666234B CN 114666234 B CN114666234 B CN 114666234B CN 202210268359 A CN202210268359 A CN 202210268359A CN 114666234 B CN114666234 B CN 114666234B
Authority
CN
China
Prior art keywords
component
target resource
cloud service
determining
resource
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.)
Active
Application number
CN202210268359.1A
Other languages
Chinese (zh)
Other versions
CN114666234A (en
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202210268359.1A priority Critical patent/CN114666234B/en
Publication of CN114666234A publication Critical patent/CN114666234A/en
Application granted granted Critical
Publication of CN114666234B publication Critical patent/CN114666234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • H04L41/5054Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • H04L41/5051Service on demand, e.g. definition and deployment of services in real time
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a cloud service construction method and device, a storage medium and electronic equipment, wherein the method comprises the following steps: when a construction instruction is received, construction information corresponding to cloud service to be constructed is determined, wherein the construction information comprises a plurality of component identifiers and various configuration parameters corresponding to each component identifier; determining a target resource component corresponding to each component identifier in a preset resource component library; for each target resource component corresponding to the component identifier, determining configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier; determining the corresponding implementation sequence of each target resource component; and generating a corresponding resource implementation flow according to the configuration information corresponding to each target resource component and the implementation sequence corresponding to each target resource component so as to realize cloud service construction. By applying the method, the user inputs the related information sending instruction, all process construction work of cloud service is not required to be completed by the user, and the process is convenient and quick.

Description

Cloud service construction method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of service architecture technologies, and in particular, to a cloud service construction method and apparatus, a storage medium, and an electronic device.
Background
In the informatization architecture of an enterprise organization, a data center is one of the important components. The data center is used as a center for the services of centralized storage, calculation, display and the like of data information, and has a great amount of infrastructure requirements. Infrastructure refers to the computing, network, storage, operating system, middleware, etc. hardware and software resources required by the data center to perform functions.
In the construction process of the data center, specific infrastructure resources can be provided by constructing cloud services so as to realize corresponding service functions.
At present, a vertical shaft type development mode is usually adopted manually, infrastructure resources are deployed by themselves, all parameter configuration is completed, and all construction work of cloud services is completed manually. In the actual application process, the cloud service requirements of the data center are continuously increased. Based on the existing artificial cloud service construction mode, the construction process is quite complex, a large amount of manpower resources and time are consumed, and the efficiency is low.
Disclosure of Invention
In view of the above, the embodiment of the invention provides a cloud service construction method to solve the problems of complicated process, great consumption of manpower resources and time and low efficiency of manually constructing cloud services.
The embodiment of the invention also provides a cloud service construction device which is used for guaranteeing the actual implementation and application of the method.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
a cloud service construction method comprises the following steps:
when a construction instruction of cloud service to be constructed is received, construction information corresponding to the cloud service to be constructed is determined, wherein the construction information comprises a plurality of component identifiers and various configuration parameters corresponding to each component identifier;
determining a target resource component corresponding to each component identifier in a preset resource component library; the preset resource component library comprises a plurality of resource components corresponding to each preset resource type;
for each target resource component corresponding to the component identifier, determining configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier;
determining the corresponding implementation sequence of each target resource component;
and generating a resource implementation flow of the cloud service to be constructed according to the configuration information corresponding to each target resource component and the implementation sequence corresponding to each target resource component so as to construct the cloud service to be constructed.
In the above method, optionally, the determining, in a preset resource component library, each component identifier corresponding to a target resource component includes:
determining a component name corresponding to each resource component in the preset resource component library;
and for each component identifier, matching the component identifier with each component name, taking the component name matched with the component identifier as a target component name, and taking a resource component corresponding to the target component name as a target resource component corresponding to the component identifier.
In the above method, optionally, the determining, according to each configuration parameter corresponding to the component identifier, configuration information corresponding to the target resource component includes:
determining each configuration attribute corresponding to the target resource component;
determining the configuration parameters corresponding to each configuration attribute according to each configuration parameter corresponding to the component identifier;
determining a component implementation flow corresponding to the target resource component;
and taking the configuration parameters corresponding to each configuration attribute and the component implementation flow as the configuration information corresponding to the target resource component.
The method, optionally, the determining the implementation sequence corresponding to each target resource component includes:
determining a target dependency rule corresponding to the cloud service to be constructed in a plurality of preset dependency rules;
determining a corresponding dependency relationship of each target resource component according to the target dependency rule;
and determining the implementation sequence corresponding to each target resource component according to the dependency relationship corresponding to each target resource component.
In the above method, optionally, the generating a resource implementation procedure of the cloud service to be constructed according to the configuration information corresponding to each target resource component and the implementation sequence corresponding to each target resource component includes:
determining a resource implementation flow corresponding to each target resource component according to the configuration information corresponding to each target resource component;
and calling the resource implementation flow corresponding to each target resource component according to the implementation sequence corresponding to each target resource component so as to generate the resource implementation flow of the cloud service to be constructed.
A cloud service construction apparatus, comprising:
the cloud service construction method comprises a first determining unit, a second determining unit and a third determining unit, wherein the first determining unit is used for determining construction information corresponding to cloud service to be constructed when a construction instruction of the cloud service to be constructed is received, and the construction information comprises a plurality of component identifiers and configuration parameters corresponding to each component identifier;
the second determining unit is used for determining a target resource component corresponding to each component identifier in a preset resource component library; the preset resource component library comprises a plurality of resource components corresponding to each preset resource type;
a third determining unit, configured to determine, for each target resource component corresponding to the component identifier, configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier;
a fourth determining unit, configured to determine an implementation order corresponding to each of the target resource components;
and the generating unit is used for generating a resource implementation flow of the cloud service to be constructed according to the configuration information corresponding to each target resource component and the implementation sequence corresponding to each target resource component so as to realize the construction of the cloud service to be constructed.
The above apparatus, optionally, the second determining unit includes:
a first determining subunit, configured to determine a component name corresponding to each resource component in the preset resource component library;
and the matching subunit is used for matching the component identifier with each component name, taking the component name matched with the component identifier as a target component name, and taking a resource component corresponding to the target component name as a target resource component corresponding to the component identifier.
The above apparatus, optionally, the third determining unit includes:
a second determining subunit, configured to determine each configuration attribute corresponding to the target resource component;
a third determining subunit, configured to determine, according to each configuration parameter corresponding to the component identifier, a configuration parameter corresponding to each configuration attribute;
a fourth determining subunit, configured to determine a component implementation procedure corresponding to the target resource component;
and a fifth determining subunit, configured to use the configuration parameters corresponding to each configuration attribute and the component implementation flow as configuration information corresponding to the target resource component.
A storage medium comprising stored instructions, wherein the instructions, when executed, control a device on which the storage medium resides to perform a cloud service construction method as described above.
An electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors as a cloud service construction method as described above.
Based on the cloud service construction method provided by the embodiment of the invention, when a construction instruction of cloud service to be constructed is received, construction information corresponding to the cloud service to be constructed is determined, wherein the construction information comprises a plurality of component identifiers and each configuration parameter corresponding to each component identifier; determining a target resource component corresponding to each component identifier in a preset resource component library; the preset resource component library comprises a plurality of resource components corresponding to each preset resource type; for each target resource component corresponding to the component identifier, determining configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier; determining the corresponding implementation sequence of each target resource component; and generating a resource implementation flow of the cloud service to be constructed according to the configuration information corresponding to each target resource component and the implementation sequence corresponding to each target resource component so as to realize the construction of the cloud service to be constructed. By applying the method provided by the embodiment of the invention, the system can automatically generate the resource implementation flow of the cloud service to be constructed based on the construction information of the cloud service to be constructed and the preset resource component library, and construct the cloud service. The user can input the relevant information of the cloud service to be built through the front end, the building work of all processes is not required to be completed by the user, the process is convenient and fast, a large amount of time and manpower resources can be saved, the building efficiency is improved, and the flexibility is high.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a method flowchart of a cloud service construction method provided in an embodiment of the present invention;
fig. 2 is a flowchart of another method of cloud service construction according to an embodiment of the present invention;
fig. 3 is a schematic architecture diagram of a cloud service construction system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a cloud service construction device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As known from the background art, a data center has a great amount of infrastructure requirements, and in the practical application process, an enterprise organization has higher standardization requirements on delivery of basic resources, and especially, IT management requirements of institutions such as banks are more strict. Cloud services are a way to dynamically, on-demand, and flexibly and extendably acquire resources, software, or application services based on the internet through internet circulation. In order to ensure the resource delivery efficiency and standardization, the data center can provide specific infrastructure resources for users in a cloud service mode, and the cloud service can provide corresponding computing, storage, network and software resources and perform specific parameter configuration on the resources according to different application scenes. At present, cloud services are usually manually developed in a vertical shaft mode, a delivery flow of various resources such as calculation, storage and network is built from scratch, configuration parameters of the cloud services are configured by customizing dictionary tables, all deployment works are manually completed, the development process is complex and time-consuming, and flexibility is lacking.
Therefore, the embodiment of the invention provides a cloud service construction method, which realizes automatic construction of cloud service to be constructed by presetting a resource component library, does not need all processes of manually constructing the cloud service, and can save construction time and manpower resources.
The embodiment of the invention provides a cloud service construction method, which can be applied to a cloud service construction system, wherein an execution subject of the method can be a server of the system, and a flow chart of the method is shown in fig. 1 and comprises the following steps:
s101: when a construction instruction of cloud service to be constructed is received, construction information corresponding to the cloud service to be constructed is determined, wherein the construction information comprises a plurality of component identifiers and various configuration parameters corresponding to each component identifier;
in the method provided by the embodiment of the invention, when a user needs to build the cloud service, the related information of the cloud service to be built can be input through the front-end interface of the system, and the building instruction of the cloud service to be built is sent to the system. When the system server receives the construction instruction, construction information corresponding to the cloud service to be constructed can be determined based on the relevant information input by the user.
In the method provided by the embodiment of the invention, the component options corresponding to each resource component in the preset resource component library can be provided for the user through the front-end interface, and the component identifiers, such as component names and the like, of the corresponding resource components can be correspondingly displayed on the options. The user can select a required resource component by selecting a component option according to the actual service requirement of the cloud service to be constructed, and when the user selects a certain component option, a parameter input interface corresponding to the component option can be correspondingly displayed in the interface, and the parameter input interface prompts the user to input configuration parameters corresponding to the parameter types by prompting the user to use the parameter types required by the resource component. When the user confirms that cloud service is generated based on the selected options and the input information, the front end of the system responds to the operation of the user, and can send a construction instruction based on the component identification corresponding to each component option selected by the user and each configuration parameter input by the user on the parameter input interface corresponding to the selected component option. The system server can take each configuration parameter input by the user in the parameter input interface corresponding to the component option as each configuration parameter corresponding to the component identifier corresponding to the component option. And taking the component identifier corresponding to each component option selected by the user and each configuration parameter corresponding to each component identifier as construction information corresponding to the cloud service to be constructed.
S102: determining a target resource component corresponding to each component identifier in a preset resource component library; the preset resource component library comprises a plurality of resource components corresponding to each preset resource type;
in the method provided by the embodiment of the invention, a resource component library is preconfigured in the system, the preset resource component library comprises a plurality of resource components corresponding to each preset resource type, and the preset resource types refer to resource types of infrastructure, such as a computing class, a storage class, a network class and the like. Each resource component defines information such as which resources are specifically contained, the types of parameters required by resource deployment, the implementation flow for deploying the resources and the like.
In the method provided by the embodiment of the invention, each component identifier can be respectively matched with each resource component in the preset resource component library, and the target resource component corresponding to each component identifier is selected from the preset resource component library.
S103: for each target resource component corresponding to the component identifier, determining configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier;
in the method provided by the embodiment of the invention, the configuration information corresponding to each target resource component can be determined based on each configuration parameter corresponding to each component identifier, namely, the specific configuration parameter of each target resource component is determined.
S104: determining the corresponding implementation sequence of each target resource component;
in the method provided by the embodiment of the invention, the dependency rules of various resource components can be preset in the system, and the implementation sequence corresponding to each target resource component is determined based on the dependency rules, namely the use sequence of each type of resource in the service process.
S105: and generating a resource implementation flow of the cloud service to be constructed according to the configuration information corresponding to each target resource component and the implementation sequence corresponding to each target resource component so as to construct the cloud service to be constructed.
According to the method provided by the embodiment of the invention, the resource implementation flow of the cloud service to be built can be generated by calling each target resource component according to the configuration information and the implementation sequence corresponding to each target resource component, namely the implementation flow of the infrastructure required by the cloud service to be built is generated, so that the cloud service to be built is built.
Based on the method provided by the embodiment of the invention, when a construction instruction of cloud service to be constructed is received, construction information corresponding to the cloud service to be constructed is determined, wherein the construction information comprises a plurality of component identifiers and various configuration parameters corresponding to each component identifier; determining a target resource component corresponding to each component identifier in a preset resource component library; the preset resource component library comprises a plurality of resource components corresponding to each preset resource type; for each target resource component corresponding to the component identifier, determining configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier; determining the corresponding implementation sequence of each target resource component; and generating a resource implementation flow of the cloud service to be constructed according to the configuration information and the implementation sequence corresponding to each target resource component so as to realize the construction of the cloud service. By applying the method provided by the embodiment of the invention, the system can automatically generate the corresponding resource implementation flow according to the construction information of the cloud service to be constructed, so as to realize the construction of the cloud service. The construction work of each flow of the cloud service is not needed to be completed manually, the process is convenient and quick, a large amount of time and manpower resources can be saved, the construction efficiency is improved, and the flexibility is high.
On the basis of the method shown in fig. 1, in the method provided by the embodiment of the present invention, in a preset resource component library mentioned in step S102, a process of determining each component identifier corresponding to a target resource component includes:
determining a component name corresponding to each resource component in the preset resource component library;
in the method provided by the embodiment of the invention, the component name of each resource component in the preset resource component library can be obtained from the pre-stored component information.
And for each component identifier, matching the component identifier with each component name, taking the component name matched with the component identifier as a target component name, and taking a resource component corresponding to the target component name as a target resource component corresponding to the component identifier.
In the method provided by the embodiment of the invention, each component identifier can be respectively matched with the component name corresponding to each resource component, and the resource component corresponding to the component name matched with the current component identifier is used as the target resource component corresponding to the current component identifier. In the actual application process, each component identifier in the construction information is a component identifier corresponding to a component option selected by a user, and each component option selected by the user corresponds to each resource component in a preset resource component library one by one, so that each component identifier is matched with a unique resource component in the resource component library, and in the matching process of the component identifier and the component name, usually, only one component name is matched with the currently compared component identifier.
Based on the method shown in fig. 1, in the method provided by the embodiment of the present invention, a process for determining configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier mentioned in step S103 includes:
determining each configuration attribute corresponding to the target resource component; determining the configuration parameters corresponding to each configuration attribute according to each configuration parameter corresponding to the component identifier;
in the method provided by the embodiment of the invention, for each target resource component, each configuration attribute corresponding to the target resource component can be determined, and each configuration attribute corresponding to the target resource component can be configured in advance in the component definition of the target resource component.
In the method provided by the embodiment of the invention, the construction information also comprises the parameter attribute of each configuration parameter, and the parameter attribute of each configuration parameter corresponding to the component identifier corresponding to the target resource component can be obtained from the construction information. And comparing each configuration attribute corresponding to the target resource component with the parameter attribute of each configuration parameter corresponding to the component identifier, and taking the configuration parameter corresponding to the parameter attribute matched with the currently compared configuration attribute as the configuration parameter corresponding to the currently compared configuration attribute.
In the method provided by the embodiment of the invention, when the user selects to use the target resource component corresponding to the component identifier at the front end, prompting the input configuration parameters according to the use requirement of the target resource component, wherein the parameter attribute of the configuration parameters is in one-to-one correspondence with the configuration attributes of the target resource component.
Determining a component implementation flow corresponding to the target resource component;
in the method provided by the embodiment of the invention, the implementation flow of the corresponding component can be determined according to the component definition of the target resource component, namely the implementation flow of the resource corresponding to the target resource component;
and taking the configuration parameters corresponding to each configuration attribute and the component implementation flow as the configuration information corresponding to the target resource component.
In the method provided by the embodiment of the invention, the configuration parameters corresponding to each configuration attribute corresponding to the target resource component and the component implementation flow corresponding to the target resource component are used as the configuration information corresponding to the target resource component.
In order to better explain the method provided by the embodiment of the present invention, on the basis of the method shown in fig. 1, in combination with the flowchart shown in fig. 2, the embodiment of the present invention provides another cloud service construction method, where in the method provided by the embodiment of the present invention, a process for determining an implementation sequence corresponding to each target resource component mentioned in step S104 includes:
s201: determining a target dependency rule corresponding to the cloud service to be constructed in a plurality of preset dependency rules;
in the method provided by the embodiment of the invention, a plurality of dependency rules are preconfigured in the system, and the dependency rules represent the dependency relationship between the component implementation flow of one type/one resource component and the component implementation flow of another type/another resource component, for example, the A type resource component needs to be implemented after the B type resource component, and the like. And determining a target dependency rule corresponding to the cloud service to be constructed from a plurality of preset dependency rules according to each target resource component. The dependency of the target dependency rule characterization relates to the target resource component. In an actual application scene, there may be one or more target dependency rules corresponding to the cloud service to be constructed, and if there are multiple target dependency rules, determining the dependency relationship of the target resource component based on all the target dependency rules. The cloud service to be built may not have a target dependency rule, that is, there is no dependency relationship among the target resource components, and then the implementation sequence corresponding to each target resource component is the same, and there is no front-back sequence relationship.
S202: determining a corresponding dependency relationship of each target resource component according to the target dependency rule;
in the method provided by the embodiment of the invention, the dependency relationship corresponding to each target resource component can be determined according to the target dependency rule, for example, the target dependency rule characterizes that the target resource component C and the target resource component D have the dependency relationship, and the target resource component D is implemented after the target resource component C, then the dependency relationship corresponding to the target resource component D is determined to be the implementation of the target resource component D depending on the target resource component C, and the dependency relationships corresponding to other target resource components are not dependent on the implementation of other components under the target dependency rule.
S203: and determining the implementation sequence corresponding to each target resource component according to the dependency relationship corresponding to each target resource component.
In the method provided by the embodiment of the invention, based on the dependency relationship corresponding to each target resource component, the implementation sequence corresponding to each target resource component is determined, for example, if the target resource component D depends on the implementation of the target resource component C in the dependency relationship corresponding to the target resource component D, the implementation sequence corresponding to the target resource component D should be determined after the target resource component C according to the implementation sequence corresponding to the target resource component C. If the target resource component is independent of the implementation of other target resource components in the dependency relationship corresponding to the target resource component, the implementation sequence corresponding to the target resource component is the first order, and the target resource component can be implemented in parallel with the target resource components with the other implementation sequences being the first order.
Further, in the method provided by the embodiment of the present invention on the basis of the method shown in fig. 1, a process of generating a resource implementation procedure of the cloud service to be built according to the configuration information corresponding to each target resource component and the implementation sequence corresponding to each target resource component, which is mentioned in step S105, includes:
determining a resource implementation flow corresponding to each target resource component according to the configuration information corresponding to each target resource component;
in the method provided by the embodiment of the invention, the resource implementation flow corresponding to each target resource component can be determined based on the configuration information corresponding to each target resource component, specifically, for each target resource component, the component implementation flow corresponding to the target resource component and the configuration parameter corresponding to each configuration attribute can be obtained based on the configuration information corresponding to each target resource component, the configuration parameters corresponding to each configuration attribute are imported into the component implementation flow, the component implementation flow for completing parameter configuration can be obtained, and the component implementation flow for completing parameter configuration is taken as the resource implementation flow corresponding to the target resource component.
And calling the resource implementation flow corresponding to each target resource component according to the implementation sequence corresponding to each target resource component so as to generate the resource implementation flow of the cloud service to be constructed.
According to the method provided by the embodiment of the invention, the resource implementation flow corresponding to each target resource component is called according to the implementation sequence corresponding to each target resource component, and the resource implementation flow of the cloud service to be constructed is obtained.
In order to better illustrate the method provided by the embodiment of the present invention, the cloud service construction process provided by the embodiment of the present invention is described next with reference to a specific application scenario.
In an actual application process, the method provided by the embodiment of the invention can be implemented through a cloud service construction system, and the system is an instantiation of the cloud service construction method shown in fig. 1. The cloud service construction system can also provide services through a cloud service architecture, and a structural schematic diagram of the cloud service construction system is shown in fig. 3, and specifically includes: the cloud service comprises a cloud service construction module, a cloud service definition module and a component definition module.
And the component definition module is used for defining a user interface, an implementation flow, configuration rules and dependency rules of the component. The staff can define the configuration rules through the component definition module, namely, the configuration system can be used for configuring the resource components, such as defining the component types of the resource components, specifically included resources, specific configuration contents and the like, and can also set the implementation flow of the resource components through the module. The page of each resource component is set through the component definition module, namely, when the user selects the resource component, the page to be displayed is the page for prompting the user to input the corresponding parameters. The worker may also set the dependency rules for individual resource components through the component definition module.
And the cloud service definition module is used for selecting the configuration rule by the user and defining the component rule. A user needing to construct cloud service can select a rule to be used in the current scene, namely a resource component to be used, through the cloud service definition module, and define a component rule, namely component information corresponding to the resource component, namely input required configuration parameters, through the cloud service definition module.
The cloud service construction module is used for completing cloud service construction based on sub-modules such as dependency analysis (analysis of dependency rules), rule analysis (analysis of resource components), parameter injection, flow engine, page rendering and the like.
In the method provided by the embodiment of the invention, the preset resource component library can comprise resource components of resource types such as a computing class, a storage class, a network class, an application class, a tool class, a security class and the like.
Resource components of the computing class are as follows: CVM resource, BMS resource, oracleDB resource, and other resource components.
Resource components of the storage class such as: resource components such as CFS resources, CBS resources, COS resources, and the like.
Resource components of the network class such as: load balancing, security groups, certificates, and other resource components.
Resource components of the application class such as: NFT, SA, application health check, etc.
Resource components of the tool class such as: SOM, ant install the resource assembly such as nano tube, monitoring subscription.
Security class resource components such as: security scan, security dog, etc.
The cloud service types which can be constructed by the method provided by the embodiment of the invention are as follows: interconnection web cloud services, oracle cloud services, big data cloud services, load balancing cloud services, CFS cloud services, interconnection AP cloud services, mySQL cloud services, security server cloud services, monitoring cloud services, CBS cloud services, and other personalized cloud services.
Based on the method provided by the embodiment of the invention, the user can realize the delivery of the infrastructure resources by selecting the resource components required by constructing the cloud service and inputting the corresponding configuration parameters.
Corresponding to a cloud service construction method shown in fig. 1, an embodiment of the present invention further provides a cloud service construction apparatus, configured to implement the method shown in fig. 1, where a schematic structural diagram of the method is shown in fig. 4, and the method includes:
the first determining unit 301 is configured to determine, when a construction instruction for a cloud service to be constructed is received, construction information corresponding to the cloud service to be constructed, where the construction information includes a plurality of component identifiers and respective configuration parameters corresponding to each component identifier;
a second determining unit 302, configured to determine, in a preset resource component library, a target resource component corresponding to each component identifier; the preset resource component library comprises a plurality of resource components corresponding to each preset resource type;
a third determining unit 303, configured to determine, for each target resource component corresponding to the component identifier, configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier;
a fourth determining unit 304, configured to determine an implementation order corresponding to each of the target resource components;
and the generating unit 305 is configured to generate a resource implementation procedure of the cloud service to be built according to the configuration information corresponding to each target resource component and the implementation sequence corresponding to each target resource component, so as to implement the construction of the cloud service to be built.
Based on the device provided by the embodiment of the invention, when a construction instruction of cloud service to be constructed is received, construction information corresponding to the cloud service to be constructed is determined, wherein the construction information comprises a plurality of component identifiers and various configuration parameters corresponding to each component identifier; determining a target resource component corresponding to each component identifier in a preset resource component library; the preset resource component library comprises a plurality of resource components corresponding to each preset resource type; for each target resource component corresponding to the component identifier, determining configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier; determining the corresponding implementation sequence of each target resource component; and generating a resource implementation flow of the cloud service to be constructed according to the configuration information and the implementation sequence corresponding to each target resource component so as to realize the construction of the cloud service. By applying the device provided by the embodiment of the invention, the system can automatically generate the corresponding resource implementation flow according to the construction information of the cloud service to be constructed, so as to realize the construction of the cloud service. The construction work of each flow of the cloud service is not needed to be completed manually, the process is convenient and quick, a large amount of time and manpower resources can be saved, the construction efficiency is improved, and the flexibility is high.
On the basis of the apparatus provided by the foregoing embodiment, in the apparatus provided by the embodiment of the present invention, the second determining unit 302 includes:
a first determining subunit, configured to determine a component name corresponding to each resource component in the preset resource component library;
and the matching subunit is used for matching the component identifier with each component name, taking the component name matched with the component identifier as a target component name, and taking a resource component corresponding to the target component name as a target resource component corresponding to the component identifier.
On the basis of the apparatus provided by the foregoing embodiment, in the apparatus provided by the embodiment of the present invention, the third determining unit 303 includes:
a second determining subunit, configured to determine each configuration attribute corresponding to the target resource component;
a third determining subunit, configured to determine, according to each configuration parameter corresponding to the component identifier, a configuration parameter corresponding to each configuration attribute;
a fourth determining subunit, configured to determine a component implementation procedure corresponding to the target resource component;
and a fifth determining subunit, configured to use the configuration parameters corresponding to each configuration attribute and the component implementation flow as configuration information corresponding to the target resource component.
On the basis of the apparatus provided by the foregoing embodiment, in the apparatus provided by the embodiment of the present invention, the fourth determining unit 304 includes:
a sixth determining subunit, configured to determine, from a plurality of preset dependency rules, a target dependency rule corresponding to the cloud service to be built;
a seventh determining subunit, configured to determine a dependency relationship corresponding to each target resource component according to the target dependency rule;
and an eighth determining subunit, configured to determine, according to the dependency relationship corresponding to each target resource component, an implementation sequence corresponding to each target resource component.
On the basis of the apparatus provided by the foregoing embodiment, in the apparatus provided by the embodiment of the present invention, the generating unit 305 includes:
a ninth determining subunit, configured to determine, according to configuration information corresponding to each target resource component, a resource implementation procedure corresponding to each target resource component;
and the calling subunit is used for calling the resource implementation flow corresponding to each target resource component according to the implementation sequence corresponding to each target resource component so as to generate the resource implementation flow of the cloud service to be constructed.
The embodiment of the invention also provides a storage medium, which comprises stored instructions, wherein the equipment where the storage medium is located is controlled to execute the cloud service construction method when the instructions run.
The embodiment of the present invention further provides an electronic device, whose structural schematic diagram is shown in fig. 5, specifically including a memory 401, and one or more instructions 402, where the one or more instructions 402 are stored in the memory 401, and configured to be executed by the one or more processors 403 to perform the following operations by the one or more instructions 402:
when a construction instruction of cloud service to be constructed is received, construction information corresponding to the cloud service to be constructed is determined, wherein the construction information comprises a plurality of component identifiers and various configuration parameters corresponding to each component identifier;
determining a target resource component corresponding to each component identifier in a preset resource component library; the preset resource component library comprises a plurality of resource components corresponding to each preset resource type;
for each target resource component corresponding to the component identifier, determining configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier;
determining the corresponding implementation sequence of each target resource component;
and generating a resource implementation flow of the cloud service to be constructed according to the configuration information corresponding to each target resource component and the implementation sequence corresponding to each target resource component so as to construct the cloud service to be constructed.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. The cloud service construction method is characterized by comprising the following steps of:
when a construction instruction of cloud service to be constructed is received, construction information corresponding to the cloud service to be constructed is determined, wherein the construction information comprises a plurality of component identifiers and various configuration parameters corresponding to each component identifier;
determining a target resource component corresponding to each component identifier in a preset resource component library; the preset resource component library comprises a plurality of resource components corresponding to each preset resource type;
for each target resource component corresponding to the component identifier, determining configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier;
determining the corresponding implementation sequence of each target resource component;
and generating a resource implementation flow of the cloud service to be constructed according to the configuration information corresponding to each target resource component and the implementation sequence corresponding to each target resource component so as to construct the cloud service to be constructed.
2. The method according to claim 1, wherein determining, in a preset resource component library, each component identifier corresponds to a target resource component, includes:
determining a component name corresponding to each resource component in the preset resource component library;
and for each component identifier, matching the component identifier with each component name, taking the component name matched with the component identifier as a target component name, and taking a resource component corresponding to the target component name as a target resource component corresponding to the component identifier.
3. The method according to claim 1, wherein determining the configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier includes:
determining each configuration attribute corresponding to the target resource component;
determining the configuration parameters corresponding to each configuration attribute according to each configuration parameter corresponding to the component identifier;
determining a component implementation flow corresponding to the target resource component;
and taking the configuration parameters corresponding to each configuration attribute and the component implementation flow as the configuration information corresponding to the target resource component.
4. The method of claim 1, wherein determining the corresponding order of implementation for each of the target resource components comprises:
determining a target dependency rule corresponding to the cloud service to be constructed in a plurality of preset dependency rules;
determining a corresponding dependency relationship of each target resource component according to the target dependency rule;
and determining the implementation sequence corresponding to each target resource component according to the dependency relationship corresponding to each target resource component.
5. The method of claim 1, wherein the generating the resource implementation procedure of the cloud service to be built according to the configuration information corresponding to each target resource component and the implementation sequence corresponding to each target resource component includes:
determining a resource implementation flow corresponding to each target resource component according to the configuration information corresponding to each target resource component;
and calling the resource implementation flow corresponding to each target resource component according to the implementation sequence corresponding to each target resource component so as to generate the resource implementation flow of the cloud service to be constructed.
6. A cloud service construction apparatus, comprising:
the cloud service construction method comprises a first determining unit, a second determining unit and a third determining unit, wherein the first determining unit is used for determining construction information corresponding to cloud service to be constructed when a construction instruction of the cloud service to be constructed is received, and the construction information comprises a plurality of component identifiers and configuration parameters corresponding to each component identifier;
the second determining unit is used for determining a target resource component corresponding to each component identifier in a preset resource component library; the preset resource component library comprises a plurality of resource components corresponding to each preset resource type;
a third determining unit, configured to determine, for each target resource component corresponding to the component identifier, configuration information corresponding to the target resource component according to each configuration parameter corresponding to the component identifier;
a fourth determining unit, configured to determine an implementation order corresponding to each of the target resource components;
and the generating unit is used for generating a resource implementation flow of the cloud service to be constructed according to the configuration information corresponding to each target resource component and the implementation sequence corresponding to each target resource component so as to realize the construction of the cloud service to be constructed.
7. The apparatus according to claim 6, wherein the second determining unit includes:
a first determining subunit, configured to determine a component name corresponding to each resource component in the preset resource component library;
and the matching subunit is used for matching the component identifier with each component name, taking the component name matched with the component identifier as a target component name, and taking a resource component corresponding to the target component name as a target resource component corresponding to the component identifier.
8. The apparatus according to claim 6, wherein the third determining unit includes:
a second determining subunit, configured to determine each configuration attribute corresponding to the target resource component;
a third determining subunit, configured to determine, according to each configuration parameter corresponding to the component identifier, a configuration parameter corresponding to each configuration attribute;
a fourth determining subunit, configured to determine a component implementation procedure corresponding to the target resource component;
and a fifth determining subunit, configured to use the configuration parameters corresponding to each configuration attribute and the component implementation flow as configuration information corresponding to the target resource component.
9. A storage medium comprising stored instructions, wherein the instructions, when executed, control a device in which the storage medium is located to perform the cloud service construction method according to any one of claims 1 to 5.
10. An electronic device comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the cloud service construction method of any of claims 1-5.
CN202210268359.1A 2022-03-18 2022-03-18 Cloud service construction method and device, storage medium and electronic equipment Active CN114666234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210268359.1A CN114666234B (en) 2022-03-18 2022-03-18 Cloud service construction method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210268359.1A CN114666234B (en) 2022-03-18 2022-03-18 Cloud service construction method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114666234A CN114666234A (en) 2022-06-24
CN114666234B true CN114666234B (en) 2024-02-27

Family

ID=82029166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210268359.1A Active CN114666234B (en) 2022-03-18 2022-03-18 Cloud service construction method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114666234B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108063824A (en) * 2017-12-22 2018-05-22 云南天成科技有限公司 A kind of cloud service system and construction method
CN110555113A (en) * 2019-09-02 2019-12-10 西北工业大学 cloud service ontology construction method based on description text
CN113672351A (en) * 2021-08-20 2021-11-19 中国建设银行股份有限公司 Cloud service construction method and device
CN114168747A (en) * 2021-12-03 2022-03-11 上海德衡数据科技有限公司 Knowledge base construction method and system based on cloud service

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8856382B2 (en) * 2012-07-30 2014-10-07 International Business Machines Corporation On-boarding services to a cloud environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108063824A (en) * 2017-12-22 2018-05-22 云南天成科技有限公司 A kind of cloud service system and construction method
CN110555113A (en) * 2019-09-02 2019-12-10 西北工业大学 cloud service ontology construction method based on description text
CN113672351A (en) * 2021-08-20 2021-11-19 中国建设银行股份有限公司 Cloud service construction method and device
CN114168747A (en) * 2021-12-03 2022-03-11 上海德衡数据科技有限公司 Knowledge base construction method and system based on cloud service

Also Published As

Publication number Publication date
CN114666234A (en) 2022-06-24

Similar Documents

Publication Publication Date Title
CN110310034B (en) Service arrangement and business flow processing method and device applied to SaaS
US10044639B2 (en) Reservation of resources and deployment of applications using an integrated development environment
CN109710236B (en) Service development and implementation method, device, platform and medium based on shared service
CN108432208A (en) A kind of arranging service method, apparatus and server
CN111527474B (en) Dynamic delivery of software functions
CN108255707B (en) Development role creating method, device, equipment and storage medium of test case
CN105281955A (en) Business and resource orchestration system, method and device
CN105260203A (en) Model-based Hadoop deploy and allocation method
CN110098952A (en) A kind of management method and device of server
US10015279B2 (en) Application assignment reconciliation and license management
CN111416727A (en) VNF uploading instantiation method and device
CN106921688B (en) Service providing method for distributed system and distributed system
CN114255016A (en) Workflow system application method, system, computer and readable storage medium
CN110673787A (en) Volume configuration method and device
CN114666234B (en) Cloud service construction method and device, storage medium and electronic equipment
CN112333672A (en) Method and device for opening UPF network element of 5G core network
CN106230623A (en) A kind of VIM site selection method and device
CN104572255A (en) Multilayer application hosting method, device and system
CN115437647A (en) Multi-frame-adaptive micro-service deployment method, device, terminal and storage medium
CN111106971B (en) Device registration management method, device and computer-readable storage medium
CN115242871B (en) Service method and device of business gateway, storage medium and electronic equipment
CN110971665A (en) Management method, system, equipment and storage medium for interfacing multi-type storage
CN106714169B (en) Wireless network characteristic configuration method and system
CN112433821B (en) Method and device for building business model, electronic equipment and medium
CN109034438A (en) Booking method, device, equipment and the storage medium of hotel guest-room

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
GR01 Patent grant
GR01 Patent grant