CN114666234A - 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
CN114666234A
CN114666234A CN202210268359.1A CN202210268359A CN114666234A CN 114666234 A CN114666234 A CN 114666234A CN 202210268359 A CN202210268359 A CN 202210268359A CN 114666234 A CN114666234 A CN 114666234A
Authority
CN
China
Prior art keywords
component
target resource
resource
determining
cloud service
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.)
Granted
Application number
CN202210268359.1A
Other languages
Chinese (zh)
Other versions
CN114666234B (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

Images

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 building instruction is received, determining building information corresponding to the cloud service to be built, wherein the building information comprises a plurality of component identifications and each configuration parameter corresponding to each component identification; determining a target resource component corresponding to each component identifier in a preset resource component library; for the target resource assembly corresponding to each assembly identification, determining the configuration information corresponding to the target resource assembly according to each configuration parameter corresponding to the assembly identification; determining an implementation sequence corresponding to each target resource assembly; 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 the construction of the cloud service. By applying the method, the user can input the related information sending instruction without automatically completing all the flow construction work of the cloud service, and the process is convenient and quick.

Description

Cloud service construction method and device, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of service architecture, in particular to a cloud service construction method and device, a storage medium and electronic equipment.
Background
In the information-based architecture of an enterprise organization, a data center is one of important components. The data center is used as a center for services such as data information centralized storage, calculation, display and the like, and has a large amount of infrastructure requirements. Infrastructure refers to the software and hardware resources, such as computation, networking, storage, operating systems, middleware, etc., needed by a 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 shaft-type development mode is usually adopted manually, infrastructure resources are deployed automatically, all parameter configurations are completed, and the like, so that all construction work of cloud services is completed manually. In the practical application process, the cloud service requirements of the data center are continuously increased. Based on the existing manual cloud service construction mode, the construction process is very complex, a large amount of human resources and time are consumed, and the efficiency is low.
Disclosure of Invention
In view of this, the embodiment of the invention provides a cloud service construction method to solve the problems that the process of manually constructing a cloud service is complicated, a large amount of human resources and time are required to be consumed, and the efficiency is low.
The embodiment of the invention also provides a cloud service construction device used for ensuring the actual realization and application of the method.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a cloud service construction method comprises the following steps:
when a construction instruction of a cloud service to be constructed is received, determining construction information corresponding to the cloud service to be constructed, wherein the construction information comprises a plurality of component identifications and configuration parameters corresponding to each component identification;
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 the target resource assembly corresponding to each assembly identification, determining the configuration information corresponding to the target resource assembly according to each configuration parameter corresponding to the assembly identification;
determining an implementation sequence corresponding to 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 implement the construction of the cloud service to be constructed.
Optionally, the method for determining a target resource component corresponding to each component identifier in a preset resource component library 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 the resource component corresponding to the target component name as a target resource component corresponding to the component identifier.
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 a configuration parameter 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.
Optionally, the determining an implementation order corresponding to each target resource component in the foregoing method includes:
determining a target dependency rule corresponding to the cloud service to be constructed in a plurality of preset dependency rules;
determining a dependency relationship corresponding to 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.
Optionally, in the method, 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 a resource implementation flow corresponding to each target resource assembly according to the implementation sequence corresponding to each target resource assembly so as to generate a resource implementation flow of the cloud service to be constructed.
A cloud service construction apparatus comprising:
the cloud service building method includes the steps that a first determining unit is used for determining building information corresponding to a cloud service to be built when a building instruction of the cloud service to be built is received, wherein the building information comprises a plurality of component identifications and configuration parameters corresponding to each component identification;
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 a target resource component corresponding to each 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 target resource component;
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 implement the construction of the cloud service to be constructed.
The above apparatus, optionally, the second determining unit includes:
the first determining subunit is used for determining a component name corresponding to each resource component in the preset resource component library;
and the matching subunit is used for matching each component identifier with each component name, taking the component name matched with the component identifier as a target component name, and taking the resource component corresponding to the target component name as a target resource component corresponding to the component identifier.
The foregoing 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 an element implementation procedure corresponding to the target resource element;
and a fifth determining subunit, configured to use the configuration parameter and the component implementation flow corresponding to each configuration attribute as the 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 is located 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 the one or more processors to perform the 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 a 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 identifications and each configuration parameter corresponding to each component identification; 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 the target resource assembly corresponding to each assembly identification, determining the configuration information corresponding to the target resource assembly according to each configuration parameter corresponding to the assembly identification; determining an implementation sequence corresponding to 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 implement 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 process of the cloud service to be constructed and construct the cloud service based on the construction information of the cloud service to be constructed and the preset resource component library. The user can input the relevant information of the cloud service to be constructed through the front end, the construction work of all the flows is not required to be completed automatically, the process is convenient and fast, a large amount of time and manpower resources can be saved, the construction 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 used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for constructing a cloud service according to an embodiment of the present invention;
fig. 2 is a flowchart of another method of a cloud service construction method 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 apparatus 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 technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
As can be known from the background art, a data center has a large amount of infrastructure requirements, and in an actual application process, an enterprise organization has a higher normative requirement on the delivery of basic resources, and especially, the IT management and control requirements of organizations such as banks are stricter. The cloud service is a mode which can be circulated through the internet, and can dynamically, on demand and flexibly and expansively acquire resources, software or application services based on the internet. In order to ensure the resource delivery efficiency and the normalization, the data center can provide specific infrastructure resources for users in a cloud service mode, and the cloud service can provide corresponding calculation, storage, networks and software resources and perform specific parameter configuration on the resources aiming at different application scenes. At present, a cloud service is usually manually developed in a shaft type, delivery processes of various resources such as computing, storage, network and the like are constructed from beginning to end, a dictionary table is customized to configure configuration parameters of the cloud service, all deployment work is manually completed, the development process is complex and time-consuming, and flexibility is lacked.
Therefore, the embodiment of the invention provides a cloud service construction method, which realizes the automatic construction of the cloud service to be constructed by presetting a resource component library, does not need all the 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 a cloud service to be constructed is received, determining construction information corresponding to the cloud service to be constructed, wherein the construction information comprises a plurality of component identifications and configuration parameters corresponding to each component identification;
in the method provided by the embodiment of the invention, when a user needs to construct the cloud service, the relevant information of the cloud service to be constructed can be input through the front-end interface of the system, and the construction instruction of the cloud service to be constructed is sent to the system. When the system server receives the building instruction, building information corresponding to the cloud service to be built can be determined based on relevant information input by a user.
In the method provided by the embodiment of the invention, the component option 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 identification of the corresponding resource component, such as the component name, can be correspondingly displayed on the option. The user can select the required resource assembly by selecting the assembly options according to the actual service requirement of the cloud service to be constructed, when the user selects a certain assembly option, a parameter input interface corresponding to the assembly option can be correspondingly displayed in the interface, the parameter input interface can prompt the user to use the parameter type required by the resource assembly, and the user is prompted to input the configuration parameter corresponding to the parameter type. When the user confirms that the cloud service is generated based on the selected options and the input information, the system front end responds to the operation of the user and sends a building 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 component option selected by the user. The system server may use 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 identification corresponding to each component option selected by the user and each configuration parameter corresponding to each component identification 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 present invention, a resource component library is preconfigured in the system, the preset resource component library includes a plurality of resource components corresponding to each preset resource type, and the preset resource type refers to a resource type of an infrastructure, such as a computing type, a storage type, a network type, and the like. Each resource component defines information such as which resources are specifically contained, a parameter type required by resource deployment, an 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 the target resource assembly corresponding to each assembly identification, determining the configuration information corresponding to the target resource assembly according to each configuration parameter corresponding to the assembly identification;
in the method provided by the embodiment of the present invention, the configuration information corresponding to each target resource component, that is, the specific configuration parameter of each target resource component, may be determined based on each configuration parameter corresponding to each component identifier.
S104: determining an implementation sequence corresponding to each target resource component;
in the method provided by the embodiment of the invention, the system can preset the dependency rules of various resource components, and the implementation sequence corresponding to each target resource component, namely the use sequence of each resource in the service process, is determined based on the dependency rules.
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 implement the construction of the cloud service to be constructed.
In the method provided by the embodiment of the invention, each target resource component can be called to generate the resource implementation flow of the cloud service to be constructed, that is, the implementation flow of the infrastructure required by the cloud service to be constructed is generated according to the configuration information 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, when a construction instruction of the 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 identifications and each configuration parameter corresponding to each component identification; 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 the target resource assembly corresponding to each assembly identification, determining the configuration information corresponding to the target resource assembly according to each configuration parameter corresponding to the assembly identification; determining an implementation sequence corresponding to 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 the target resource components 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 process 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 required to be manually completed, the process is convenient and rapid, a large amount of time and human resources can be saved, the construction efficiency is improved, and the flexibility is high.
Based on the method shown in fig. 1, in the method provided in the embodiment of the present invention, the step S102 of determining, in a preset resource component library, a target resource component corresponding to each component identifier 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 present invention, the component name of each resource component in the preset resource component library can be acquired from the pre-stored component information.
And for each component identification, matching the component identification with each component name, taking the component name matched with the component identification 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 identification.
In the method provided by the embodiment of the present invention, each component identifier may be respectively matched with a component name corresponding to each resource component, and a resource component corresponding to a component name matched with the current component identifier is used as a target resource component corresponding to the current component identifier. In an actual application process, each component identifier in the construction information is a component identifier corresponding to a component option selected by a user, each component option selected by the user corresponds to each resource component in a preset resource component library one by one, so each component identifier is respectively matched with a unique resource component in the resource component library, and in the matching process of the component identifier and the component name, only one component name is usually matched with the currently compared component identifier.
Based on the method shown in fig. 1, in the method provided in the embodiment of the present invention, the step S103 of 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 a configuration parameter corresponding to each configuration attribute according to each configuration parameter corresponding to the component identifier;
in the method provided in the embodiment of the present invention, for each target resource component, each configuration attribute corresponding to the target resource component may be determined, and each configuration attribute corresponding to the target resource component may 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 further includes 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 acquired 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 in the embodiment of the present invention, each configuration parameter corresponding to the component identifier is actually each configuration parameter that is prompted to be input according to a use requirement of the target resource component when the user selects to use the target resource component corresponding to the component identifier at the front end, and a parameter attribute of each configuration parameter actually corresponds to each configuration attribute of the target resource component one to one.
Determining a component implementation flow corresponding to the target resource component;
in the method provided by the embodiment of the present invention, an implementation flow of a component corresponding to a target resource component, that is, an implementation flow of a resource corresponding to the target resource component, may be determined according to a component definition of 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 present 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.
To better explain the method provided by the embodiment of the present invention, on the basis of the method shown in fig. 1 and in combination with the flowchart shown in fig. 2, the embodiment of the present invention provides another cloud service construction method, and in the method provided by the embodiment of the present invention, the process for determining the implementation order corresponding to each target resource component, which is 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 pre-configured in the system, and the dependency rules characterize the dependency relationship between the component implementation process of one certain type/certain resource component and the component implementation process of another type/another resource component, for example, the type a resource component needs to be implemented after the type B resource component, and the like. According to each target resource component, a target dependency rule corresponding to the cloud service to be constructed can be determined in a plurality of pre-configured dependency rules. The dependencies characterized by the target dependency rules relate to the target resource component. In an actual application scenario, 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, it is only necessary to determine the dependency relationship of the target resource component based on all the target dependency rules subsequently. The cloud service to be constructed may not have a target dependency rule, that is, there is no dependency relationship between target resource components, and the corresponding implementation sequence of each target resource component is the same, and there is no front-back sequence relationship.
S202: determining a dependency relationship corresponding to each target resource component according to the target dependency rule;
in the method provided by the embodiment of the present invention, the dependency corresponding to each target resource component may be determined according to a target dependency rule, for example, the target dependency rule characterizes that there is a dependency between the target resource component C and the target resource component D, and the target resource component D is implemented after the target resource component C, then it is determined that the dependency corresponding to the target resource component D is implemented when the target resource component D depends on the target resource component C, and under the target dependency rule, the dependencies corresponding to other target resource components are implemented without depending on other components.
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 in the embodiment of the present invention, the implementation order corresponding to each target resource component is determined based on the dependency relationship corresponding to each target resource component, for example, if the target resource component D in the dependency relationship corresponding to the target resource component D depends on the implementation of the target resource component C, the implementation order corresponding to the target resource component D needs to be determined according to the implementation order corresponding to the target resource component C after the target resource component C. If the target resource component does not depend on the implementation of other target resource components in the dependency relationship corresponding to the target resource component, the implementation order corresponding to the target resource component is the first order, and the target resource component can be implemented in parallel with the other target resource components whose implementation orders are the first order.
Further, on the basis of the method shown in fig. 1, in the method provided in the embodiment of the present invention, the process of generating the 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, 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 in this embodiment of the present invention, a resource implementation flow corresponding to each target resource component may be determined based on configuration information corresponding to each target resource component, and specifically, for each target resource component, a component implementation flow corresponding to the target resource component and a configuration parameter corresponding to each configuration attribute may be obtained based on the configuration information corresponding to the target resource component, the configuration parameter corresponding to each configuration attribute is introduced into the component implementation flow, a component implementation flow for completing parameter configuration may be obtained, and the component implementation flow for completing parameter configuration is used as the resource implementation flow corresponding to the target resource component.
And calling a resource implementation flow corresponding to each target resource assembly according to the implementation sequence corresponding to each target resource assembly so as to generate a resource implementation flow of the cloud service to be constructed.
In the method provided by the embodiment of the invention, the resource implementation process corresponding to each target resource component is called according to the implementation sequence corresponding to each target resource component, so as to obtain the resource implementation process of the cloud service to be constructed.
In order to better explain the method provided by the embodiment of the present invention, a cloud service construction process provided by the embodiment of the present invention is explained with reference to a specific application scenario.
In an actual application process, the method provided by the embodiment of the present invention can be implemented by a cloud service building system, which is an instantiation of the cloud service building method shown in fig. 1. The cloud service construction system may also provide services through a cloud service architecture, and a schematic structural diagram of the cloud service construction system is shown in fig. 3, which specifically includes: the cloud service definition module 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 process, a configuration rule and a dependency rule of the component. The configuration rule can be defined by the component definition module, that is, the resource component available for the system is configured, for example, the component type, the specific included resource, the specific configuration content, and the like of the resource component are defined, and the implementation process of the resource component can also be set by the module. The page of each resource component is set through the component definition module, that is, the page to be displayed when the user selects the resource component, namely, the page for prompting the user to input the corresponding parameters. The staff member can also set the dependency rules of the respective resource components through the component definition module.
And the cloud service definition module is used for selecting the configuration rule and defining the component rule by the user. The user needing to construct the cloud service can select the rule needing to be used in the current scene, namely the resource component needing to be used, through the cloud service definition module, and define the component rule through the cloud service definition module, namely define the component information corresponding to the resource component, for example, input each required configuration parameter.
The cloud service construction module is used for completing cloud service construction based on sub-modules of dependency analysis (analyzing dependency rules), rule analysis (analyzing resource components), parameter injection, process engine, page rendering and the like.
In the method provided by the embodiment of the present invention, the preset resource component library may include resource components of resource types such as a computation type, a storage type, a network type, an application type, a tool type, a security type, and the like.
Resource components of a compute class are: resource components such as CVM resources, BMS resources, Oracle DB resources, and the like.
Resource components of storage classes are: and resource components such as CFS resources, CBS resources and COS resources.
Resource components of the web class are: resource components such as load balancing, security groups, certificates, etc.
Resource components of the application class are: NFT, SA, application health check, etc. resource components.
The resource components of the tool class are as follows: SOM, Ant install nanotube, monitor subscription and other resource components.
Security class resource components such as: a security scan, a security dog, etc.
The cloud service types which can be constructed by applying the method provided by the embodiment of the invention are as follows: an interconnected web cloud service, an Oracle cloud service, a big data cloud service, a load balancing cloud service, a CFS cloud service, an interconnected AP cloud service, a MySQL cloud service, a security server cloud service, a monitoring cloud service, a CBS cloud service, and other personalized cloud services.
Based on the method provided by the embodiment of the invention, the user can realize the delivery of infrastructure resources by selecting the resource components required by the construction of the cloud service and inputting the corresponding configuration parameters.
Corresponding to the cloud service construction method shown in fig. 1, an embodiment of the present invention further provides a cloud service construction apparatus, which is used for specifically implementing the method shown in fig. 1, and a schematic structural diagram of the cloud service construction apparatus is shown in fig. 4, and includes:
a first determining unit 301, configured to determine, when a building instruction of a cloud service to be built is received, building information corresponding to the cloud service to be built, where the building information includes a plurality of component identifiers and configuration parameters corresponding to each of the component identifiers;
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 a target resource component corresponding to each 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 target resource component;
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 building of the cloud service to be built.
Based on the device provided by the embodiment of the invention, when a construction instruction of the 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 identifications and each configuration parameter corresponding to each component identification; 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 the target resource assembly corresponding to each assembly identification, determining the configuration information corresponding to the target resource assembly according to each configuration parameter corresponding to the assembly identification; determining an implementation sequence corresponding to 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 the target resource components 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 process 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 required to be manually completed, the process is convenient and rapid, a large amount of time and human resources can be saved, the construction efficiency is improved, and the flexibility is high.
On the basis of the apparatus provided in the foregoing embodiment, in the apparatus provided in the embodiment of the present invention, the second determining unit 302 includes:
the first determining subunit is used for determining a component name corresponding to each resource component in the preset resource component library;
and the matching subunit is used for matching each component identifier with each component name, taking the component name matched with the component identifier as a target component name, and taking the resource component corresponding to the target component name as a target resource component corresponding to the component identifier.
In the apparatus provided in the foregoing embodiment, in the apparatus provided in 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 of the configuration attributes;
a fourth determining subunit, configured to determine an element implementation procedure corresponding to the target resource element;
and a fifth determining subunit, configured to use the configuration parameter and the component implementation flow corresponding to each configuration attribute as the configuration information corresponding to the target resource component.
On the basis of the apparatus provided in the foregoing embodiment, in the apparatus provided in the embodiment of the present invention, the fourth determining unit 304 includes:
a sixth determining subunit, configured to determine, in multiple pre-configured dependency rules, a target dependency rule corresponding to the cloud service to be constructed;
a seventh determining subunit, configured to determine, according to the target dependency rule, a dependency relationship corresponding to each target resource component;
and the eighth determining subunit is configured to determine, according to the dependency relationship corresponding to each target resource component, an implementation order corresponding to each target resource component.
On the basis of the apparatus provided in the foregoing embodiment, in the apparatus provided in the embodiment of the present invention, the generating unit 305 includes:
a ninth determining subunit, configured to determine, according to the configuration information corresponding to each target resource component, a resource implementation procedure corresponding to each target resource component;
and the calling subunit is configured to call a resource implementation flow corresponding to each target resource component according to the implementation sequence corresponding to each target resource component, so as to generate a resource implementation flow of the cloud service to be constructed.
The embodiment of the present invention further provides a storage medium, where the storage medium includes stored instructions, and when the instructions are executed, the device where the storage medium is located is controlled to execute the cloud service building method.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 5, which specifically includes 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 one or more processors 403 to perform the following operations for executing the one or more instructions 402:
when a construction instruction of a cloud service to be constructed is received, determining construction information corresponding to the cloud service to be constructed, wherein the construction information comprises a plurality of component identifications and configuration parameters corresponding to each component identification;
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 the target resource assembly corresponding to each assembly identification, determining the configuration information corresponding to the target resource assembly according to each configuration parameter corresponding to the assembly identification;
determining an implementation sequence corresponding to 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 implement the construction of the cloud service to be constructed.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
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 components and steps have been described above generally in terms of their functionality in order to clearly illustrate this 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 implementation. 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. A cloud service construction method is characterized by comprising the following steps:
when a construction instruction of a cloud service to be constructed is received, determining construction information corresponding to the cloud service to be constructed, wherein the construction information comprises a plurality of component identifications and configuration parameters corresponding to each component identification;
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 the target resource assembly corresponding to each assembly identification, determining the configuration information corresponding to the target resource assembly according to each configuration parameter corresponding to the assembly identification;
determining an implementation sequence corresponding to each target resource assembly;
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 implement the construction of the cloud service to be constructed.
2. The method of claim 1, wherein determining a target resource component corresponding to each component identifier in a predetermined resource component library comprises:
determining a component name corresponding to each resource component in the preset resource component library;
and for each component identification, matching the component identification with each component name, taking the component name matched with the component identification 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 identification.
3. The method of claim 1, wherein determining the configuration information corresponding to the target resource component according to the configuration parameters corresponding to the component identifier comprises:
determining each configuration attribute corresponding to the target resource component;
determining a configuration parameter corresponding to each configuration attribute according to each configuration parameter corresponding to the component identifier;
determining a component implementation process 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 execution order 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 dependency relationship corresponding to 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 according to claim 1, wherein the generating a resource implementation flow 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 comprises:
determining a resource implementation process corresponding to each target resource component according to the configuration information corresponding to each target resource component;
and calling a resource implementation flow corresponding to each target resource assembly according to the implementation sequence corresponding to each target resource assembly so as to generate a resource implementation flow of the cloud service to be constructed.
6. A cloud service construction apparatus, comprising:
the cloud service building method includes the steps that a first determining unit is used for determining building information corresponding to a cloud service to be built when a building instruction of the cloud service to be built is received, wherein the building information comprises a plurality of component identifications and configuration parameters corresponding to each component identification;
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 a target resource component corresponding to each 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 target resource component;
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 implement the construction of the cloud service to be constructed.
7. The apparatus of claim 6, wherein the second determining unit comprises:
the first determining subunit is used for determining a component name corresponding to each resource component in the preset resource component library;
and the matching subunit is used for matching each component identifier with each component name, taking the component name matched with the component identifier as a target component name, and taking the resource component corresponding to the target component name as a target resource component corresponding to the component identifier.
8. The apparatus of claim 6, wherein the third determining unit comprises:
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 an element implementation procedure corresponding to the target resource element;
a fifth determining subunit, configured to use the configuration parameter corresponding to each of the configuration attributes and the component implementation procedure as configuration information corresponding to the target resource component.
9. A storage medium, comprising stored instructions, wherein when executed, the storage medium controls a device to execute 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 true CN114666234A (en) 2022-06-24
CN114666234B 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140032764A1 (en) * 2012-07-30 2014-01-30 International Business Machines Corporation On-boarding services to a cloud environment
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140032764A1 (en) * 2012-07-30 2014-01-30 International Business Machines Corporation On-boarding services to a cloud environment
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
CN114666234B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN110310034B (en) Service arrangement and business flow processing method and device applied to SaaS
US8869111B2 (en) Method and system for generating test cases for a software application
CN108255707B (en) Development role creating method, device, equipment and storage medium of test case
CN110738389A (en) Workflow processing method and device, computer equipment and storage medium
CN108492005B (en) Project data processing method and device, computer equipment and storage medium
CN105281955A (en) Business and resource orchestration system, method and device
CN109858828B (en) Power distribution network fixed value automatic setting method and device and distribution network system
WO2021008576A1 (en) Context information management method, device, and system, and computer-readable storage medium
CN107203464B (en) Method and device for positioning service problem
CN110673787A (en) Volume configuration method and device
CN113760697A (en) Interface testing method and device, electronic equipment and storage medium
CN106921688B (en) Service providing method for distributed system and distributed system
JP6458565B2 (en) Provisioning setting support apparatus, provisioning setting support method, program and system thereof
CN117707837A (en) Interface parameter verification method, device, equipment and readable storage medium
CN109962914A (en) A kind of firewall configuration method and device
CN115242871B (en) Service method and device of business gateway, storage medium and electronic equipment
CN114666234A (en) Cloud service construction method and device, storage medium and electronic equipment
CN109992298B (en) Examination and approval platform expansion method and device, examination and approval platform and readable storage medium
CN114143235A (en) NFV automatic test method, device, equipment and storage medium
CN111880791A (en) Scene instance development method and device
TWI688875B (en) System for open software defined service of data center and method thereof
CN111104331A (en) Software management method, terminal device and computer-readable storage medium
CN112737896B (en) Bandwidth data checking method, device, medium and electronic equipment
CN112418796B (en) Sub-process task node activation method and device, electronic equipment and storage medium
CN111475198B (en) Mimicry method and device of network server

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