CN115269117A - Resource creating method and device, computer equipment and storage medium - Google Patents

Resource creating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115269117A
CN115269117A CN202210895535.4A CN202210895535A CN115269117A CN 115269117 A CN115269117 A CN 115269117A CN 202210895535 A CN202210895535 A CN 202210895535A CN 115269117 A CN115269117 A CN 115269117A
Authority
CN
China
Prior art keywords
resource
created
target
configuration file
resource configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210895535.4A
Other languages
Chinese (zh)
Inventor
陈岗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huace Huihong Technology Co ltd
Original Assignee
Shenzhen Huace Huihong Technology Co ltd
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 Shenzhen Huace Huihong Technology Co ltd filed Critical Shenzhen Huace Huihong Technology Co ltd
Priority to CN202210895535.4A priority Critical patent/CN115269117A/en
Publication of CN115269117A publication Critical patent/CN115269117A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a resource creating method, a resource creating device, computer equipment and a storage medium, wherein the resource creating method comprises the following steps: acquiring at least one initial resource configuration file; each initial resource configuration file comprises resource configuration information of at least one resource to be created; generating at least one target resource configuration file and determining the sending sequence of each target resource configuration file according to the resource configuration information of each resource to be created; and sending at least one target resource configuration file to a resource creating end according to the sending sequence, so that the resource creating end creates resources to be created corresponding to each target resource configuration file based on the resource attribute information in sequence according to the receiving sequence of each target resource configuration file and the arrangement sequence of the resource attribute information in the target resource configuration file. By adopting the embodiment of the application, the resources can be orderly established, the problems of resource establishment failure and invalid resource establishment caused by dependence are avoided, and the resource waste is avoided.

Description

Resource creating method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a resource creating method, a resource creating apparatus, a computer device, and a computer-readable storage medium.
Background
With the development of computer technology, the container provides a management scheme with lighter weight, better portability and higher starting speed for the application. The container orchestration engine may provide resource scheduling, service discovery, etc. functions for the containerized application based on the containerization technique. In the deployment of a scaled container arrangement engine, resources that need to be created are often many, and generally, attributes of the resources can be written into a configuration file, and then the resources are created through the configuration file. In practical application, the resource creation mode may cause problems such as resource creation failure and creation of invalid resources, thereby causing a problem of waste or low power of resource creation. Therefore, it is necessary to innovate a new resource creation method to solve the above problems.
Disclosure of Invention
Embodiments of the present application provide a resource creation method and apparatus, a computer device, and a storage medium, which can reduce the problems of resource creation failure and invalid resource creation by creating resources in order, and avoid resource waste.
In one aspect, an embodiment of the present application provides a resource creating method, including:
acquiring at least one initial resource configuration file; the resource configuration information comprises resource attribute information and sequence indication information, and the sequence indication information is used for indicating the creation sequence of the resource to be created in at least one resource to be created corresponding to at least one initial resource configuration file;
generating at least one target resource configuration file and determining the sending sequence of each target resource configuration file according to the resource configuration information of each resource to be created; the target resource configuration files comprise resource attribute information of one or more resources to be created, and the resource attribute information of the resources to be created is arranged according to a creation sequence;
and sending at least one target resource configuration file to a resource creating end according to the sending sequence, so that the resource creating end creates resources to be created corresponding to each target resource configuration file based on the resource attribute information in sequence according to the receiving sequence of each target resource configuration file and the arrangement sequence of the resource attribute information in the target resource configuration file.
In one aspect, an embodiment of the present application provides a resource creating apparatus, including:
the acquisition module is used for acquiring at least one initial resource configuration file; the resource configuration information comprises resource attribute information and sequence indication information, and the sequence indication information is used for indicating the creation sequence of the resource to be created in at least one resource to be created corresponding to at least one initial resource configuration file;
the generating module is used for generating at least one target resource configuration file and determining the sending sequence of each target resource configuration file according to the resource configuration information of each resource to be created; the target resource configuration files comprise resource attribute information of one or more resources to be created, and the resource attribute information of the resources to be created is arranged according to the creation sequence;
and the sending module is used for sending the at least one target resource configuration file to the resource creating end according to the sending sequence, so that the resource creating end creates resources to be created corresponding to the target resource configuration files in sequence on the basis of the resource attribute information according to the receiving sequence of the target resource configuration files and the arrangement sequence of the resource attribute information in the target resource configuration files.
Accordingly, an embodiment of the present application provides a computer device, including: a processor, a memory, and a network interface; the processor is connected with the memory and the network interface, wherein the network interface is used for providing a network communication function, the memory is used for storing program codes, and the processor is used for calling the program codes to execute the resource creating method in the embodiment of the application.
Accordingly, embodiments of the present application provide a computer-readable storage medium, in which a computer program is stored, where the computer program includes program instructions, and when the program instructions are executed by a processor, the method for creating a resource in embodiments of the present application is performed.
Accordingly, embodiments of the present application provide a computer program product, which includes a computer program or computer instructions, and when the computer program or the computer instructions are executed by a processor, the resource creation method of the embodiments of the present application is implemented.
In the embodiment of the application, the resource configuration information is extended, and the resource configuration information includes extended sequence indication information in addition to the basic resource attribute information. The resource configuration information of the resources to be created is written into the initial resource configuration file, the target resource configuration files can be generated through the resource configuration information of the resources to be created, the target resource configuration files and the resource attribute information contained in the target resource configuration files are arranged in sequence according to the sequence indication information, the target resource configuration files can also be sent to the resource creation end according to the sending sequence to create the resources, and then the resources to be created can be created in sequence at the resource creation end according to the receiving sequence of the target resource configuration files and the resource attribute information arrangement sequence in the target resource configuration files. Therefore, the resources are created in the mode, the creation sequence of the resources to be created can be indicated through the sequence indication information in the whole process, and the creation of the resources to be created is performed in order, so that the problems of resource creation failure and invalid resource creation caused by concurrent creation can be reduced, and the waste of the resources can be avoided by effectively creating the resources.
Drawings
FIG. 1 is an architecture diagram of a resource creation system provided by an embodiment of the present application;
fig. 2 is a first flowchart illustrating a resource creation method according to an embodiment of the present application;
FIG. 3a is a schematic content diagram of an initial resource configuration file according to an embodiment of the present application;
FIG. 3b is a schematic content diagram of a target resource configuration file according to an embodiment of the present application;
FIG. 3c is a content diagram of another target resource profile provided by an embodiment of the present application;
FIG. 3d is a schematic diagram of a resource creation process provided by an embodiment of the present application;
fig. 4 is a flowchart illustrating a second method for creating a resource according to an embodiment of the present application;
FIG. 5 is a content diagram of another initial resource profile provided by an embodiment of the present application;
fig. 6a is a flowchart illustrating a resource creating method according to an embodiment of the present application;
FIG. 6b is a schematic diagram of a resource dependency relationship provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a resource creating apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
First, technical terms related to the embodiments of the present application will be briefly described.
Kubernets: an open source cluster management system is used for automatically deploying, expanding and managing containerized application programs, which are called k8s for short.
Resource: all objects in k8s are resources (e.g., namespace, deployment, service, ingress, configmap, secret, etc.), and can be created through commands or configuration files. The configuration file may specifically be a yaml file, which is a resource manifest in k8s and is used to define the attributes of the resource in k8s, generally ending in yaml, such as pod.
kubecect: the command line management tool provided by k8s is responsible for connecting an Application Programming Interface (API) to manage the k8s cluster.
The resource creating method improves the content of a resource configuration file, and adds other information including sequence indication information to indicate the creating sequence of the resource on the basis of defining the attribute of the resource to be created through resource attribute information, thereby realizing orderly creating of the resource and avoiding the problem of resource creating failure caused by adopting a concurrent resource creating mode when the resource is dependent. Specifically, by acquiring an initial resource configuration file containing resource configuration information, the definition of each resource to be created can be known based on the resource attribute information in the resource configuration information, and the creation sequence of the resource to be created in all the resources to be created is identified based on the sequence indication information in the resource configuration information; the method comprises the steps of generating target resource configuration files according to resource configuration information of resources to be created, wherein the resource attribute information of the resources to be created, which is included in the target resource configuration files, is arranged according to the creation sequence of the resources, so that the orderliness of resource creation at a resource creation end can be ensured, further, the sending sequence of each target resource configuration file can be determined according to the resource configuration information, each target resource configuration file can be sent to a resource creation end according to the sending sequence, so that the resource creation end can create the resources to be created defined by the resource attribute information in sequence based on the receiving sequence of the target resource configuration files and the arrangement sequence of the resource attribute information in each target resource configuration file, and therefore, the creation of the resources is in the order, even if the resources are depended on, the successful creation of the resources can be ensured due to the orderliness of the resource creation, the creation of invalid resources can be avoided, and the waste of the resources can be avoided.
The architecture of the resource creation system provided by the embodiment of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is an architecture diagram of a resource creation system according to an embodiment of the present application. As shown in fig. 1, the resource creation system includes a resource configuration device 100 and a resource creation device 101, and the resource configuration device 100 and the resource creation device 101 can establish a communication connection in a wired or wireless manner.
The resource configuration device 100 is configured to configure related information of a resource to be created, and specifically, a developer may write an initial resource configuration file to configure information such as an attribute, an order, and a dependency relationship of the resource to be created. It can be seen that the initial resource configuration file in the present application is different from a conventional resource configuration file that only defines attributes of resources, and in structural content, the initial resource configuration file in the present application further adds sequence indication information to identify a creation sequence of resources to be created on the basis of including resource attribute information, and then performs related processing on the initial resource configuration file to realize orderly creation and starting of the required resources in the resource creation device 101. The relevant processing of the initial resource profile herein includes, but is not limited to: generating a target resource configuration file according to the resource configuration information in the initial configuration file, determining the sending sequence of the target resource configuration file according to the sequence indication information in the initial resource configuration file, and the like. The resource to be created may be a resource to be created, and specifically, the resource to be created may be a resource in kubernets (an open source cluster management system, which is used to automatically deploy, extend, and manage a containerized application program, abbreviated as k8 s), such as a namespace (a resource used to isolate cluster resources), a deployment (a workload resource), a service (a service resource), an ingress (a mapping rule resource, a rule used to define how a request is forwarded to a service), a configmap (a security management resource, which is used to manage plaintext configuration), a secret (a security management resource, which is used to manage ciphertext configuration, such as storing and managing some sensitive data, such as a password, a key, and the like), and the like.
It should be noted that the resource configuration device 100 may be a terminal device, and the terminal device includes but is not limited to: the mobile phone, the computer, the intelligent voice interaction equipment, the intelligent household electrical appliances, the vehicle-mounted terminal, the aircraft and other equipment are not limited in the application. The number of the terminal devices is not limited in the present application.
The resource creating device 101 belongs to a resource creating end, and is configured to receive each target resource configuration file, and create resources to be created corresponding to the target resource configuration files in sequence based on the resource attribute information according to a receiving sequence of the target resource configuration files and an arrangement sequence of the resource attribute information in the target resource configuration files. The target resource profile is a resource profile that the resource creating apparatus 101 can recognize. Different from the initial resource configuration file, the target resource configuration file is a resource configuration file formed by arranging and reforming all resources to be created, and in order to enable the resource creation end to smoothly identify the resource configuration file, only the resource attribute information of the resources to be created is included, and other information, such as sequence indication information, is not included. Further, the target resource configuration file may include resource attribute information of one resource to be created, and may also include resource attribute information of multiple resources to be created, and when the target resource configuration file includes resource attribute information of multiple resources to be created, the resource attribute information in the target resource configuration file may be arranged according to a creation order indicated by the order indication information of each resource to be created, so that the resource creation device 101 may create resources to be created corresponding to the target resource configuration file in order based on the sequentially arranged resource attribute information. It is understood that the resources created in the present application may be physical resources or virtual resources required for completing a service.
It should be noted that the resource creation device 101 may be a server at a K8s server, where the server may be an independent physical server, may also be a server cluster or a distributed system formed by a plurality of physical servers, and may also be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, a cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a CDN, and a big data and artificial intelligence platform, but is not limited thereto. The number of servers is not limited in this application.
According to the resource creating system provided by the embodiment of the application, the resource attribute information and the sequence indication information of the resources to be created are configured through the initial resource configuration file, the resource configuration equipment can acquire the initial resource configuration file, know the definition of each resource to be created based on the resource attribute information in the resource configuration information, and identify the creating sequence of the resources to be created in all the resources to be created based on the sequence indication information in the resource configuration information; the method comprises the steps of generating target resource configuration files according to resource configuration information of resources to be created, wherein the resource attribute information of the resources to be created, which is included in the target resource configuration files, can be arranged according to the creation sequence of the resources, so that the orderliness of resource creation at a resource creation end can be ensured, further, the sending sequence of each target resource configuration file can be determined according to the resource configuration information, and each target resource configuration file is sent to a resource creation end according to the sending sequence.
Referring to fig. 2, fig. 2 is a first flowchart illustrating a resource creating method according to an embodiment of the present application. The resource creation method may be performed by a computer device (e.g., the resource configuration device 100 in fig. 1). The resource creation method may include the following steps S201 to S203.
S201, at least one initial resource configuration file is obtained.
A computer device may obtain M (M is a positive integer) initial resource profiles, which are resource profiles created by developers. Each initial resource configuration file includes resource configuration information of at least one resource to be created, and the number of resources to be created included in different initial resource configuration files may be the same or different, for example, each initial resource configuration file includes only resource configuration information of one resource to be created, or one part of the initial resource configuration files includes resource configuration information of a plurality of (i.e., at least two) resources to be created, and the other part of the initial resource configuration files includes resource configuration information of one resource to be created.
The resource configuration information comprises resource attribute information and sequence indication information, and the sequence indication information is used for indicating the creation sequence of the resource to be created in at least one resource to be created corresponding to at least one initial resource configuration file. It can be seen that, unlike the conventional resource configuration file only containing resource attribute information, the present application improves the content of the initial resource configuration file: the sequence indication information is added to the normal structure of the initial resource configuration file, that is, the resource configuration information includes resource attribute information and sequence indication information. Therefore, the resource configuration information of one resource to be created can be used for defining the basic attribute and the extended attribute of the resource to be created. The resource attribute information is used to define basic attributes of the resource to be created, which include but are not limited to: the type of resource to be created, metadata of the resource to be created, the name of the resource to be created, a label of the resource to be created, and the like. The order indication information is used to define a creation order of the resource to be created in all configured resources to be created, and may be regarded as an extended attribute defined by the resource to be created. The order indication information may be a value of a specific key, for example, the order identifier flow-id is 1, which indicates that the creation order of the resource to be created corresponding to the order identifier is the first one. For example, if an initial resource configuration file a (including resource configuration information of 3 resources to be created) and an initial resource configuration file B (including resource configuration information of 2 resources to be created) are obtained, where flow-id of a resource R1 to be created is 2, it indicates that 2 is arranged in the creation sequence of 5 resources to be created by the resource R1 to be created, and the 2 nd created resource in the resource creation process may be the resource R1 to be created.
In one implementation, the order indication information is located at the outermost layer of the resource attribute information. After the attribute of the resource to be created is defined by the resource attribute information in the resource configuration file, the sequence indication information may be added to the outer layer of the attribute definition (i.e., the resource attribute information) of the resource to be created, where the sequence indication information belongs to the outer layer configuration of the normal structure of the resource configuration file. Exemplarily, an initial resource profile as shown in fig. 3a, in which the first sentence is order indication information and then definition of basic properties of the K8s resource, i.e. resource property information. By setting the sequence indication information in the outermost layer of the resource attribute information of the resource to be created, the creation sequence of the resource to be created can be quickly acquired by preferentially reading the sequence indication information of the initial resource configuration file, so that the resource attribute information of the resource to be created can be processed according to the creation sequence.
S202, according to the resource configuration information of each resource to be created, at least one target resource configuration file is generated and the sending sequence of each target resource configuration file is determined.
The target resource configuration file generated according to the resource configuration information of each resource to be created is different from the initial resource configuration file, and in order to enable the resource creation terminal to quickly identify the target resource configuration file, the target resource configuration file is a resource configuration file which does not include the extended attribute for defining the resource to be created. And if the resource configuration information comprises the resource attribute information and the sequence indication information, the target resource configuration file generated according to the resource configuration information comprises the resource attribute information of the resource to be created but does not comprise the sequence indication information. As shown in fig. 3b, the content of the target resource configuration file is a schematic diagram, where the target resource configuration file is a resource configuration file with an outer layer configuration removed, and the outer layer configuration removed can be conveniently identified by the resource creation end for efficient resource creation.
The target resource configuration file is a resource configuration file formed by rearranging the resource attribute information of all the defined resources to be created according to the corresponding generation rule. Each target resource configuration file comprises resource attribute information of one or more resources to be created, and the resource attribute information of each resource to be created is arranged according to the creation sequence.
In one implementation, the generation rule may be: and extracting the resource attribute information of a resource to be created in the initial resource configuration file to form a target resource configuration file. The resource attribute information of each resource to be created can form a target resource configuration file independently, so that each target resource configuration file comprises the resource attribute information of the resource to be created, and the number of the generated target resource configuration files is equal to the number of the resources to be created.
In another implementation, the generation rule may be: and separating the resource attribute information of the resource to be created, which is dependent in the initial resource configuration file, into different target resource configuration files. One target resource configuration file may contain resource attribute information for one or more resources to be created. When the target resource profile includes resource attribute information of a plurality of (at least two) resources to be created, the resource attribute information of the respective resources to be created may be arranged in the creation order indicated by the order indication information. For example, the target resource configuration file shown in fig. 3c includes resource attribute information of the resource R1 to be created and resource attribute information of the resource R3 to be created, which are arranged in sequence. By arranging the resource attribute information of a plurality of resources to be created, the resource creating terminal can create the resources according to the arranged resource attribute information in sequence.
And determining the sending sequence of each target resource configuration file according to the resource configuration information of each resource to be created. The sending sequence refers to the sequence of sending each target resource configuration file to the resource creating end. Since each resource to be created in the target resource configuration file has the sequence indication information to indicate the creation sequence, the transmission sequence of each target resource configuration file can be determined by the sequence indication information, for example, the creation sequence is directly used as the transmission sequence of the target resource configuration file, and a transmission sequence different from the creation sequence can also be set for the target resource configuration file based on the size of the creation sequence of the resource to be created. The sending sequence can be set for the sequence of uploading the target resource configuration files to the resource creating end, so that the resources can be created in sequence.
S203, at least one target resource configuration file is sent to the resource creating end according to the sending sequence, so that the resource creating end creates resources to be created corresponding to each target resource configuration file based on the resource attribute information in sequence according to the receiving sequence of each target resource configuration file and the arrangement sequence of the resource attribute information in the target resource configuration file.
Since the definition of the extended attribute of the resource to be created cannot be identified by the resource creating terminal, and the target resource profile is the definition from which the extended attribute of the resource to be created is removed, the target resource profile is a resource profile that can be identified by the resource creating terminal, and may be simply referred to as an identifiable resource profile. The method includes that target resource configuration files are sent to a resource creating end according to a sending sequence, generally speaking, the target resource configuration files are sent to the resource creating end in sequence according to the sending sequence, the receiving sequence of the resource creating end to the target resource configuration files can be the same as the sending sequence, one target resource configuration file can be sent after the creation of a resource to be created corresponding to the previous target resource configuration file is completed, or the target resource configuration file can be sent after the previous target resource configuration file is sent successfully, and at the moment, the target resource configuration files can be sent no matter whether the creation of the resource to be created corresponding to the previous target resource configuration file is completed or not. In some cases, the receiving order of each target configuration file by the resource creating end may also be different from the sending order, for example, the sending order of two target resource configuration files may also be set to be parallel sending according to an actual situation although the sending order is determined to be the sequential order, and at this time, the receiving of the two target resource configuration files by the resource creating end is simultaneous. In general, the resource creating end can create the resources to be created corresponding to each target resource configuration file based on the resource attribute information in sequence according to the receiving sequence of each target resource configuration file and the arrangement sequence of the resource attribute information in the target resource configuration file, so as to create and start the resources to be created in sequence. At least part of or all of the target resource configuration files in the at least one target resource configuration file can be sent in sequence, so that the sequential creation of part or all of the resources to be created is realized, the probability of resource creation failure is reduced, and the waste of resources is avoided by creating effective resources.
For example, 3 target resource configuration files are generated according to the resource configuration information of each resource to be created, and are respectively a target resource configuration file T1 (including the resource attribute information of the resource R1 to be created), a target resource configuration file T2 (including the resource attribute information of the resource R2 to be created), and a target resource configuration file T3 (including the resource attribute information of the resource R3 to be created), and the sending sequence of each target resource configuration file is T1, T2, and T3, and the target resource configuration files are sequentially transmitted to the resource creating end, the resource creating end creates the resource R1 to be created according to the resource attribute information of the resource R1 to be created, then creates the resource R2 to be created according to the resource attribute information of the resource R2 to be created, and finally creates the resource R3 to be created according to the resource attribute information of the resource R3 to be created. In particular, the process diagram of resource creation shown in fig. 3 d.
Optionally, the resource creation side in this application may be a kubernets server side. And after the target resource configuration file is generated, the target resource configuration file can be sent to a resource creation end for resource creation by executing a starting command of resource creation. For example, the target resource configuration file is a yaml file that can be recognized by the k8s server, and kubeccl create-f xxx.
According to the resource creating method provided by the embodiment of the application, the definition of each resource to be created can be known based on the resource attribute information in the resource configuration information by acquiring the initial resource configuration file containing the resource configuration information, and the creating sequence of the resource to be created in all the resources to be created is identified based on the sequence indication information in the resource configuration information; the method comprises the steps of generating target resource configuration files according to resource configuration information of resources to be created, wherein the resource attribute information of the resources to be created, which is included in the target resource configuration files, is arranged according to the creation sequence of the resources, so that the orderliness of resource creation at a resource creation end can be ensured, further, the sending sequence of each target resource configuration file can be determined according to the resource configuration information, each target resource configuration file can be sent to a resource creation end according to the sending sequence, so that the resource creation end can create the resources to be created defined by the resource attribute information in sequence based on the receiving sequence of the target resource configuration files and the arrangement sequence of the resource attribute information in each target resource configuration file, and therefore, the creation of the resources is in the order, even if the resources are depended on, the successful creation of the resources can be ensured due to the orderliness of the resource creation, the creation of invalid resources can be avoided, and the waste of the resources can be avoided.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a resource creating method according to an embodiment of the present application. The resource creation method may be performed by a computer device (e.g., the resource configuration device 100 in fig. 1). The resource creation method may include the following steps S401-S405.
S401, at least one initial resource configuration file is obtained.
S402, extracting resource attribute information and sequence indication information from the resource configuration information of each resource to be created.
The resource attribute information and the sequence indication information included in the resource configuration information in the initial resource configuration file can be extracted respectively and used in different processing contents. Optionally, the content of the initial resource configuration file may be read by a kubecect plug-in the computer device, so as to obtain the outer layer configuration of the resource attribute information, that is, the sequence indication information, and then extract the resource attribute information. Since the resource attribute information is necessary for creating the resource to be created, the resource attribute information may be used to determine the target resource configuration file, the sequence indication information of each resource to be created is ordered information, and a determination basis may be provided for the sending sequence of the target resource configuration file through the sequence indication information, which may be specifically referred to in the following descriptions of step S403 and step S404.
S403, generating at least one target resource configuration file according to the resource attribute information of each resource to be created.
In one embodiment, a target resource profile may be generated according to resource attribute information of a resource to be created, such that the target resource profile includes resource attribute information of the resource to be created, and the number of the target resource profiles is the same as the number of the resources to be created. For example, if the total number of resources to be created included in each initial resource configuration file is 10, then 10 target resource configuration files may be generated according to a rule for generating one target resource configuration file according to the resource attribute information of one resource to be created, that is: the method comprises the steps of generating a target resource configuration file T1 based on resource attribute information of a resource R1 to be created, generating a target resource configuration file T2, \8230, 8230, and generating a target resource configuration file T10 based on resource attribute information of a resource R10 to be created, wherein the target resource configuration file T1 is generated based on the resource attribute information of the resource R2 to be created.
Optionally, the resource configuration information may further include dependency indication information, and the dependency indication information may also be regarded as an extended attribute of the resource to be created. The dependency indication information is used to indicate a dependency relationship between resources to be created, where the dependency relationship between the resources to be created refers to whether creation of one resource to be created needs to depend on another resource to be created, and specifically may indicate that there is a dependency between the resources to be created or there is no dependency between the resources to be created. The existence of the dependency among the resources to be created means that: the creation of one resource to be created depends on another resource to be created, for example, the creation of the resource R2 to be created depends on the resource R1 to be created, and then the resource R2 to be created needs to wait for the completion of the creation of the resource R1 to be created before being created. The absence of dependency between the resources to be created means that the creation of one resource to be created is not dependent on another resource to be created. For example, the creation of the resource R2 to be created does not depend on the resource R1 to be created, and the resource R1 to be created and the resource R2 to be created may be created in parallel. In an optional implementation manner, the dependency indication information may also be located at an outer layer of the resource attribute information, and since the sequence indication information may also be located at the outer layer of the resource attribute information, the sequence indication information and the dependency indication information may be collectively referred to as an outer layer configuration of the resource attribute information. An initial resource profile is shown in fig. 5, in which the dependency indication information check is TRUE, indicating that the creation of the next resource depends on the current resource. In the case that the resource configuration information includes the resource attribute information, the sequence indication information, and the dependency indication information, the target resource configuration file generated according to the resource configuration information includes the resource attribute information of the resource to be created but does not include the sequence indication information and the dependency indication information, as shown in fig. 3 b.
In another embodiment, in the case that the resource configuration information further includes dependency indication information, the resource attribute information and the dependency indication information may also be integrated for the generation of the target resource configuration file, that is, in the present application, the resource is sequentially created through the sequence indication information, and some settings may also be performed on the creation of the resource in combination with the dependency indication information, so that the power for creating the resource to be created with the dependency relationship is higher. Specific description of this manner can be found in the following description of the corresponding embodiments, which are not detailed herein.
S404, determining the sending sequence of each target resource configuration file according to the creating sequence indicated by the sequence indication information of each resource to be created.
In one implementation manner, one target resource configuration file includes attribute information of one resource to be created, and the sending sequence of each target resource configuration file may be directly determined by sequence indication information of the resource to be created, that is: and taking the creation sequence indicated by the sequence indication information of the resource to be created as the sending sequence of the target resource configuration file in which the resource attribute information of the resource to be created is located. For example, the resources R1 to R3 to be created respectively correspond to the target resource configuration files T1 to T3, and the sequence indication information indicates that the creation sequence of the resources to be created is respectively 1 for the creation sequence of the resource R1 to be created, 2 for the creation sequence of the resource R2 to be created, and 3 for the creation sequence of the resource R3 to be created, so that the sending sequence of each of the target resource configuration files T1 to T3 is also 1, 2, and 3. In another implementation manner, one target resource configuration file includes attribute information of at least two resources to be created, and the sending order of each target resource configuration file may be determined by selecting the maximum order indication information or the minimum order indication corresponding to the resources to be created in the target configuration resources.
S405, at least one target resource configuration file is sent to a resource creating end according to the sending sequence, so that the resource creating end creates resources to be created corresponding to each target resource configuration file based on the resource attribute information in sequence according to the receiving sequence of each target resource configuration file and the arrangement sequence of the resource attribute information in the target resource configuration file.
In an embodiment, under the condition that one target resource configuration file includes resource attribute information of one resource to be created, and the resource configuration information includes dependency indication information, the specific implementation steps of sending at least one target resource configuration file to the resource creation end according to the sending sequence may refer to the following description (1) to (2):
(1) And reading the target dependency indication information from the resource configuration information of the first resource to be created.
The target dependency indication information is dependency indication information of the first resource to be created, and the target dependency indication information is used for indicating whether creation of the second resource to be created is dependent on the first resource to be created. The first resource to be created and the second resource to be created are included in at least one resource to be created corresponding to at least one initial resource configuration file, the creation order indicated by the order indication information of the first resource to be created is adjacent to the creation order indicated by the order indication information of the second resource to be created, and the creation order of the first resource to be created is prior to that of the second resource to be created.
The first resource to be created may be any resource to be created among all resources to be created, the target dependency indication information of the first resource to be created may be represented by a specific key, for example, check, a specific value of the specific key may indicate whether the creation of the second resource to be created depends on the first resource to be created, for example, if check is TRUE, it represents that the creation of the second resource to be created depends on the first resource to be created, and if check is FALSE, it represents that the creation of the second resource to be created does not depend on the first resource to be created. The second resource to be created is a resource to be created next to the first resource to be created, and specifically, is a resource to be created that is adjacent to the first resource to be created in the creation order and is subsequent to the first resource to be created. Other resources to be created which depend on the first resource to be created can be determined through the target dependence indication information, so that the specific sending time of the target resource configuration file corresponding to each resource to be created can be further determined, and the successful creation of the resource to be created which depends on the target dependence indication information is ensured.
(2) And sending the first target resource configuration file and the second target resource configuration file to a resource creation end according to the sending sequence of the first target resource configuration file and the second target resource configuration file and the target dependency indication information.
The first target resource configuration file is a target resource configuration file corresponding to a first resource to be created, the first target resource configuration file is a target resource configuration file generated according to resource attribute information of the first resource to be created, the second target resource configuration file is a target resource configuration file corresponding to a second resource to be created, and the second target resource configuration file is a target resource configuration file generated according to resource attribute information of the second resource to be created.
In the creation sequence, the first resource to be created may be set in advance before the second resource to be created is created according to the sequence indication information of each resource to be created, and the first target resource configuration file may be sent to the resource creation end before the second target resource configuration file according to the predetermined creation sequence, that is, the sending sequence of the first target resource configuration file and the second target resource configuration file is: the first target resource configuration file is sent first, and then the second target resource configuration file is sent. The dependency relationship between the first resource to be created and the second resource to be created, which is indicated by the target dependency indication information, may determine a specific sending opportunity of the two target resource configuration files in the determined sending order, that is, whether the second target resource configuration file needs to wait for the first resource to be created corresponding to the first target resource configuration file to complete the sending.
In one implementation, for different contents indicated by the target dependency indication information, the step (2) may specifically include any one of the following two manners:
the first method is as follows: if the sending sequence of the first target resource configuration file is prior to that of the second target resource configuration file, and the target dependency indication information indicates that the creation of the second resource to be created depends on the first resource to be created, the first target resource configuration file is sent to the resource creation end, so that the resource creation end creates the first resource to be created according to the resource attribute information contained in the first target resource configuration file; and after detecting that the first resource to be created is created, sending the second target resource configuration file to the resource creating end, so that the resource creating end creates a second resource to be created according to the created first resource to be created and the resource attribute information contained in the second target resource configuration file.
Specifically, if the sending order of the first target resource profile is prior to that of the second target resource profile, and the target dependency indication information indicates that the creation of the second resource to be created depends on the first resource to be created, it indicates that the first target resource profile may be sent earlier than the second target resource profile in actual sending, and there is a dependency between the second resource to be created and the first resource to be created, and the second resource to be created needs to wait for the first resource to be created before being created. Therefore, the first target resource configuration file can be sent to the resource creating end, and the first target resource configuration file includes the resource attribute information of the first resource to be created, so that the first resource to be created can be created at the resource creating end according to the resource attribute information of the first resource to be created, and the actual resource can be obtained. And then, detecting whether the first resource to be created is created completely, and sending a second target resource configuration file containing resource attribute information of a second resource to be created to the resource creating end for resource creation under the condition that the first resource to be created is detected to be created completely, wherein specifically, the resource creating end can create the second resource to be created according to the resource attribute information of the second resource to be created and the created first resource to be created. Therefore, in the link of actually creating the resources, the resources on which the resources depend can be well created when one resource is created, so that the problem of resource creation failure caused by the concurrent creation of the resources at the resource creation end is avoided, and the probability of successful creation of the resources with the dependency relationship is further ensured.
The second method comprises the following steps: if the sending sequence of the first target resource configuration file is prior to that of the second target resource configuration file, and the target dependency indication information indicates that the creation of the second resource to be created is independent of the first resource to be created, the first target resource configuration file and the second target resource configuration file are sent to the resource creation end together, so that the resource creation end creates the first resource to be created according to the resource attribute information contained in the first target resource configuration file, and creates the second resource to be created according to the resource attribute information contained in the second target resource configuration file.
Specifically, if the sending order of the first target resource profile is prior to the second target resource profile, and the target dependency indication information indicates that the creation of the second resource to be created does not depend on the first resource to be created, it indicates that the first target resource profile may be sent to the resource creation end before the second target resource profile in actual sending, and the creation of the first resource to be created and the second resource to be created may be independent, so that even if the first target resource profile and the second target resource profile are sent to the resource creation end together, or the second target resource profile is sent to the resource creation end to create the second resource to be created when the first resource to be created is not created yet, there is no problem of resource creation failure. In order to create the required resource to be created more quickly, preferably, the first target resource profile containing the resource attribute information of the first resource to be created and the second target resource profile containing the resource attribute information of the second resource to be created may be sent to the resource creating terminal together, so that the resource creating terminal may create the first resource to be created and the second resource to be created concurrently. Therefore, the time for creating the resources to be created is saved while the successful creation of the resources to be created is ensured, and the efficiency of creating the resources is improved. In another implementation manner, the first target resource configuration file and the second target resource configuration file may also be sequentially sent to the resource creation end according to the sending order, that is, the second target resource configuration file is sent immediately after the first target resource configuration file is sent successfully, and at this time, it is not necessary to wait for the resource creation end to complete the creation of the first resource to be created according to the first target resource configuration file before sending, and in this manner, the resource can be created in order.
It should be noted that, for any two resources to be created in all resources to be created defined in the initial resource configuration file, the target resource configuration file may be generated according to the above manner, and the specific sending time of each target resource configuration file is determined, so that the resources are created efficiently and orderly, and the efficiency and the success rate of creating the resources are improved.
According to the resource creating method provided by the embodiment of the application, at least one target resource configuration file can be generated according to the resource attribute information configured in the initial resource configuration file, and in the process of sending the target resource configuration files according to the sending sequence, the sending time of each target resource configuration file can be determined by combining the resource dependence information, so that invalid resource creation caused by dependence can be avoided, resource waste and manual troubleshooting time waste caused by invalid resource creation are avoided, and the order of the resources to be created with the dependence relation is realized and the resources are effectively created.
Referring to fig. 6a, fig. 6a is a schematic flowchart of a resource creating method according to an embodiment of the present application. The resource creation method may be performed by a computer device (e.g., the resource configuration device 100 in fig. 1). The resource creation method may include the following steps S601-S603. In this embodiment, a generation manner of each target resource configuration file and a determination manner of a transmission order are mainly described.
In one embodiment, the resource configuration information further includes dependency indication information, that is, the resource configuration information of one resource to be created in the initial resource configuration file specifically includes the following three: resource attribute information, order indication information, and dependency indication information. For the dependency indication information, reference may be made to the related description in the foregoing embodiments.
Alternatively, before performing step S601, resource attribute information, order indication information, and dependency indication information may be extracted from the resource configuration information of each resource to be created. Further, at least one target resource configuration file may be generated according to the resource attribute information and the dependency indication information, which may be specifically described in steps S601-S602 below.
S601, according to the dependency indication information in the resource configuration information of each resource to be created, splitting each resource to be created into at least one group.
The dependency indication information of one resource to be created can be used to indicate whether the creation of the next resource to be created depends on the resource to be created. If one resource to be created is dependent on the other resource to be created, the two resources to be created can be regarded as having dependence, and thus one resource to be created can be created after the creation of the other resource to be created is completed. For example, the dependency indication information of the resource R1 to be created indicates that the creation of the resource R2 to be created depends on the resource R2 to be created, and before the resource R2 to be created starts to be created, the resource R1 to be created needs to be created, so that the failure in creating the resource R2 to be created can be avoided. In order to ensure the successful creation of the resources to be created, the resource attribute information of the two resources to be created can be divided into different target resource configuration files, so that the target resource configuration files corresponding to the two resources to be created are sent in sequence, and when one resource to be created is successfully created, the other resource to be created is created by sending the other target resource configuration file, so as to ensure the successful creation of the other resource to be created. Therefore, each resource to be created can be divided into different groups according to the dependency indication information in the resource configuration information of each resource to be created, so as to obtain at least one group. The non-dependency means that the creation of one resource to be created in the same group is not dependent on another resource to be created in the group, for example, the group a includes a resource to be created R1, a resource to be created R2, and a resource to be created R3, and any two resources to be created do not have a dependency. In addition, there is a dependency between at least some of the resources to be created in different groups, where the dependency between at least some of the resources to be created means that creation of one resource to be created in one group depends on one resource to be created in another group. For example, the resource R1 to be created in the group a is depended on by the resource R2 to be created in the group B. The method is determined by a specific splitting rule, any two resources to be created which have dependence are split into different groups, and the resources to be created which do not have dependence are likely to be split into the same group, so that all the resources can be created orderly.
In one implementation, the specific implementation manner of step S601 may include: determining the dependency relationship among the resources to be created according to the dependency indication information in the resource configuration information of the resources to be created; if the dependency relationship indicates that a fourth resource to be created in the resources to be created depends on a third resource to be created, dividing the third resource to be created into a first group, and dividing the fourth resource to be created into a second group; and if the dependency relationship indicates that the fourth resource to be created in each resource to be created does not depend on the third resource to be created, dividing the third resource to be created and the fourth resource to be created into the same group.
By analyzing the dependency indication information of each resource to be created, the dependency relationship between any two resources to be created can be determined, and then the dependency relationship between the resources to be created is obtained. For example, all the resources to be created include 4 resources to be created, which are R1, R2, R3, and R4, respectively, the dependency indication information of R1 indicates that the creation of R2 and R3 depends on R1, the dependency indication information of R2 indicates that the creation of R4 depends on R2, the dependency indication information of R3 indicates that the creation of the resource to be created does not depend on R3, and the dependency indication information of R4 also indicates that the creation of the resource to be created does not depend on R4, which can be specifically seen in fig. 6b, where a connecting line between the resources to be created indicates that there is a dependency between two resources.
Whether the dependency exists between any two resources to be created can be known based on the dependency relationship. Any two resources of all the resources to be created include a third resource to be created and a fourth resource to be created, the third resource to be created is any one of all the resources to be created, the creation order indicated by the order indication information of the third resource to be created is prior to the fourth resource to be created, the creation order of the fourth resource to be created may be adjacent to or not adjacent to the third resource to be created, for example, the creation order of the third resource to be created is 1, the creation order of the fourth resource to be created is 3, one resource to be created may depend on one or more other resources to be created, for example, the resource to be created R4 depends on the resource to be created R1 and the resource to be created R2, that is, the resource to be created R4 needs to wait until the creation of both the resource to be created R1 and the resource to be created R2 is completed before being created.
If the dependency relationship indicates that the fourth resource to be created is dependent on the third resource to be created, it indicates that the third resource to be created is dependent on the fourth resource to be created, and the fourth resource to be created needs to be created after the creation of the third resource to be created is completed. If the dependency relationship indicates that the fourth resource to be created does not depend on the third resource to be created, it indicates that the third resource to be created is not dependent on the fourth resource to be created, and then the fourth resource to be created and the third resource to be created are divided into the same group, so that the resources to be created can be created according to the original creation sequence. All resources to be created can be split according to the above rules, so as to obtain at least one packet.
In one implementation manner, if multiple resources to be created all depend on the same resource to be created in the dependency relationship of each resource to be created and there is no dependency between the resources to be created, the multiple resources to be created may be divided into one group, and the resources to be created on which the multiple resources to be created depend may be divided into another group. Following the foregoing example, where the resources to be created R2, R3 both depend on R1, and there is no dependency between R2 and R3, then the resources to be created R2, R3 may be divided into a groups, R1 into B groups, and R2 is dependent on R4, then R4 may be divided into C groups. It can be seen that there is no dependency on the resources to be created in each group, and there may be a dependency on the part of the resources to be created between any two groups.
S602, generating a target resource configuration file corresponding to the target grouping according to the sequence indication information and the resource attribute information in the resource configuration information of the resource to be created, which are contained in the target grouping, so as to obtain at least one target resource configuration file.
The target grouping is any one of the at least one grouping, and the target resource configuration file corresponding to the target grouping comprises resource attribute information of the resource to be created corresponding to the target grouping. If the target grouping comprises a resource to be created, a target resource configuration file can be directly generated according to the resource attribute information of the resource to be created, and the target resource configuration file comprises the resource attribute information of the resource to be created in the target grouping. For example, if the group a includes the resource R1 to be created, the target resource profile corresponding to the group a includes resource attribute information of the resource R1 to be created. If the target group includes a plurality of (at least two) resources to be created, a target resource configuration file may be generated according to the resource attribute information and the sequence indication information of the plurality of resources to be created, where the target resource configuration file includes the resource attribute information of the plurality of resources to be created in the group, and the resource attribute information of the plurality of resources to be created may be arranged according to the corresponding sequence indication information, thereby ensuring that each resource to be created is split into each group and the target resource configuration file is also created in order. For example, assuming that the target group includes the resource R1 to be created and the resource R3 to be created, and the creation sequence of these two resources to be created in all the resources to be created is 1 and 3, the resource attribute information of the resource R1 to be created and the resource attribute information of the resource R3 to be created are included in the target resource configuration file corresponding to this target group, and the resource attribute information of the resource R1 to be created is arranged before the resource attribute information of the resource R3 to be created, which is the target resource configuration file shown in fig. 3 c. Each group in the at least one group can generate a target resource configuration file corresponding to each group according to the above rule, so as to obtain at least one target resource configuration file.
It should be noted that, if the dependency relationship indicates that there is no dependency between any two resources to be created in each resource to be created, all the resources to be created may be divided into a group, and a target resource configuration file may be generated. The target resource configuration file includes resource attribute information arranged according to the order indication information of each resource to be created.
S603, determining the sending sequence of each target resource configuration file according to the minimum sequence indication information of the resource to be created corresponding to each target resource configuration file.
According to the generation manner of the target resource configuration file as described in the above steps S601-S602, one target resource configuration file includes resource attribute information of one or more resources to be created. The sending order of each target resource configuration file may be determined based on the order indication information, specifically, based on the minimum order indication information of the resource to be created corresponding to each target resource configuration file. The minimum sequence indication information is the sequence indication information of the resource to be created with the minimum creation sequence corresponding to one target resource configuration file. If a target resource profile includes resource attribute information for a resource to be created, then the minimum order indication information is the order indication information for the resource to be created. For example, the target resource profile includes resource attribute information of the resource R1 to be created, and then the minimum sequence indication information is sequence indication information of the resource R1 to be created. If one target resource configuration file includes resource attribute information of two or more resources to be created, the minimum order indication information may be order indication information of the resources to be created corresponding to the first resource attribute information in the target resource configuration file. For example, the target resource configuration file T1 includes resource attribute information of the resource R1 to be created and the resource R2 to be created, which are sequentially arranged, where the sequence indication information of the resource R1 to be created is 1, the sequence indication information of the resource R2 to be created is 2, and then the minimum sequence indication information is the sequence indication information 1 of the resource R1 to be created. In one mode, the size of the minimum order indication information corresponding to each target resource configuration file may be directly determined as the transmission order of each target resource configuration file, and in another mode, the continuous transmission order identifier may be reset according to the size of the minimum order indication information corresponding to each target resource configuration file to indicate the transmission order of each target resource configuration file.
For example, the at least one target resource configuration file includes a target resource configuration file T1 and a target resource configuration file T2, where the target resource configuration file T1 includes resource attribute information of sequentially arranged resources R1 to be created and R2 to be created, and the target resource configuration file T2 includes resource attribute information of sequentially arranged resources R3 to be created and R4 to be created. The minimum sequence indication information corresponding to the target resource configuration file T1 is sequence indication information 1 of the resource R1 to be created, and the minimum sequence indication information corresponding to the target resource configuration file T2 is sequence indication information 3 of the resource R3 to be created, so that it is determined that the transmission sequence of the target resource configuration file T1 is 1 and the transmission sequence of the target resource configuration file T2 is 2.
If at least one target resource configuration file is a target resource configuration file, the target resource configuration file can be directly sent to the resource creation end, so that the resource creation end sequentially creates resources to be created corresponding to the target resource configuration file according to the resource attribute information sequentially arranged in the target resource configuration file. For example, the target resource configuration file Tr includes resource attribute information arranged in the order of 10 resources to be created, and according to the arrangement order of the resource attribute information in the target resource configuration file, a first resource to be created may be created first, and then a second resource to be created, \8230 \ 8230;, 10 resources to be created are created in sequence.
If at least one target resource configuration file comprises two or more target resource configuration files, after the sending sequence of each target resource configuration file is determined, each target resource configuration file can be sequentially sent to the resource creation end according to the sending sequence, so that the resource creation end creates resources to be created corresponding to each target resource configuration file sequentially based on the resource attribute information according to the receiving sequence of each target resource configuration file and the arrangement sequence of the resource attribute information in the target resource configuration file.
In one embodiment, the at least one target resource profile includes a third target resource profile and a fourth target resource profile, and the third target resource profile is transmitted in an order prior to the fourth target resource profile. The third target resource allocation file is any one of the other target resource allocation files except the target resource allocation file whose transmission sequence is arranged at the last target resource allocation file in the at least one target resource allocation file, and the fourth target resource allocation file is one of the other target resource allocation files which is adjacent to the third target resource allocation file and is subsequent to the third target resource allocation file in the transmission sequence in the at least one target resource allocation file. Part of the resources to be created corresponding to the resource attribute information in the fourth target resource configuration file may depend on the resources to be created corresponding to the resource attribute information in the third target resource configuration file.
Sending at least one target resource configuration file to a resource creation end according to a sending sequence, comprising: sequentially sending at least one target resource configuration file to a resource creation end according to a sending sequence, wherein in the sending process, a fourth target resource configuration file is sent to the resource creation end after the fact that the resource creation end completes creation of a target resource to be created corresponding to resource attribute information in the third target resource configuration file is detected, so that the resource creation end creates a resource to be created corresponding to the fourth target resource configuration file according to the resource attribute information in the fourth target resource configuration file and the created target resource to be created; and the target resource to be created is a resource to be created, which is depended on by the creation of the resource to be created corresponding to the resource attribute information in the fourth target resource configuration file.
Each target resource configuration file can be sequentially sent to the resource creation end according to the sending sequence, and the specific sending time of each target resource configuration file can follow the introduced rule, namely each target resource configuration file is sent to the resource creation end after the creation of the resource to be created which is depended on in the previous target resource configuration file is completed. For example, the target resource configuration file T1 and the target resource configuration file T2, where the target resource configuration file T1 includes resource attribute information of sequentially arranged resources R1 to be created and resources R2 to be created, and the target resource configuration file T2 includes resource attribute information of sequentially arranged resources R3 to be created and resources R4 to be created. The resource R3 to be created depends on the resource R1 to be created, so the target resource configuration file T2 may be sent to the resource creation end after the target resource configuration file T1 is sent to the resource creation end, and the resource creation end completes creation of the resource R1 to be created, and then sends the target resource configuration file T2 to the resource creation end, and completes creation of the resource R3 to be created according to the resource attribute information of the resource R3 to be created and the created resource R1 to be created, at this time, the resource R2 to be created corresponding to the target resource configuration file T1 may also be created in parallel. In another mode, the fourth target resource configuration file may also be sent to the resource creating side after it is detected that the resource creating side has created all the resources to be created corresponding to the resource attribute information in the third target resource configuration file. When creating resources in k8s, the sending of the target resource configuration file may send an identifiable yaml file to the k8s server for resource creation by executing a corresponding resource creation start command, such as kubetcl create-f xxx.
It should be noted that, when the resource creation scheme provided in the embodiment of the present application is used to create a resource in k8s, all the contained contents, such as extracting order indication information, generating a recognizable resource configuration file (e.g., a yaml file), sending the recognizable resource configuration file, and the like, may be implemented by a kubecect plug-in, and the functions of the developed kubecect plug-in are further extended.
The above steps S601 to S602 may be taken as a specific implementation manner of the step S403 in the embodiment corresponding to fig. 4, and the step S603 may be taken as a specific implementation manner of the step S404 in the embodiment corresponding to fig. 4; the schemes described in steps S601-S603 may also be used as a specific implementation manner of step S202 in the corresponding embodiment of fig. 2.
According to the resource creation scheme provided by the embodiment of the application, each resource to be created can be split into at least one group according to the dependency indication information contained in the resource configuration information, the resource to be created in each group is not dependent, the ordered creation of the resource to be created can be ensured, the dependent resource to be created is divided into different groups, and the target resource configuration file is generated and then contained in different target resource configuration files, so that each target resource configuration file can be uploaded to the resource creation end according to the sequence, the resource can be created and started strictly according to the sequence, the problem of invalid resource creation caused by dependence is avoided, the resource waste and the waste of manual investigation time caused by the problem are avoided, the problem of failure in resource creation caused by concurrent resource creation can be avoided, and the effectiveness and the success rate of resource creation are improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a resource creating apparatus according to an exemplary embodiment of the present application. The resource creating means may be a computer program (including program code) running in a computer device, for example, the resource creating means is an application software; the resource creation apparatus may be configured to perform corresponding steps in the method provided by the embodiment of the present application. As shown in fig. 7, the resource creating apparatus 700 may include at least one of: an obtaining module 701, a generating module 702 and a sending module 703.
An obtaining module 701, configured to obtain at least one initial resource configuration file; the resource configuration information comprises resource attribute information and sequence indication information, and the sequence indication information is used for indicating the creation sequence of the resource to be created in at least one resource to be created corresponding to the at least one initial resource configuration file;
a generating module 702, configured to generate at least one target resource configuration file according to the resource configuration information of each resource to be created, and determine a sending sequence of each target resource configuration file; the target resource configuration files comprise resource attribute information of one or more resources to be created, and the resource attribute information of the resources to be created is arranged according to the creation sequence;
a sending module 703, configured to send the at least one target resource configuration file to a resource creating end according to the sending order, so that the resource creating end creates, according to the receiving order of each target resource configuration file and the arrangement order of the resource attribute information in the target resource configuration file, resources to be created corresponding to each target resource configuration file sequentially based on the resource attribute information.
In an embodiment, the generating module 702 is specifically configured to: extracting resource attribute information and sequence indication information from the resource configuration information of each resource to be created; generating at least one target resource configuration file according to the resource attribute information of each resource to be created; and determining the sending sequence of each target resource configuration file according to the creating sequence indicated by the sequence indication information of each resource to be created.
In one embodiment, one of the target resource profiles includes resource attribute information of a resource to be created; the resource configuration information further includes dependency indication information, and the sending module 703 is specifically configured to: reading target dependence indication information from resource configuration information of a first resource to be created; the target dependency indication information is used to indicate whether creation of a second resource to be created depends on the first resource to be created, the first resource to be created and the second resource to be created are included in at least one resource to be created corresponding to the at least one initial resource configuration file, a creation order indicated by the order indication information of the first resource to be created is adjacent to a creation order indicated by the order indication information of the second resource to be created, and the creation order of the first resource to be created is prior to the second resource to be created; according to the sending sequence of a first target resource configuration file and a second target resource configuration file and the target dependency indication information, sending the first target resource configuration file and the second target resource configuration file to a resource creation end; the first target resource configuration file is a target resource configuration file generated according to the resource attribute information of the first resource to be created, and the second target resource configuration file is a target resource configuration file generated according to the resource attribute information of the second resource to be created.
In an embodiment, the sending module 703 is specifically configured to: if the sending sequence of the first target resource configuration file is prior to that of the second target resource configuration file, and the target dependency indication information indicates that the creation of the second resource to be created depends on the first resource to be created, the first target resource configuration file is sent to a resource creation end first, so that the resource creation end creates the first resource to be created according to resource attribute information contained in the first target resource configuration file; after the first resource to be created is detected to be created, the second target resource configuration file is sent to the resource creating end, so that the resource creating end creates the second resource to be created according to the created first resource to be created and the resource attribute information contained in the second target resource configuration file.
In another embodiment, the sending module 703 is specifically configured to: if the sending sequence of the first target resource configuration file is prior to that of the second target resource configuration file, and the target dependency indication information indicates that the creation of the second resource to be created does not depend on the first resource to be created, the first target resource configuration file and the second target resource configuration file are sent to a resource creation end together, so that the resource creation end creates the first resource to be created according to resource attribute information contained in the first target resource configuration file, and creates the second resource to be created according to resource attribute information contained in the second target resource configuration file.
In one embodiment, the resource configuration information further includes dependency indication information; the generating module 702 is specifically configured to: according to the dependency indication information in the resource configuration information of each resource to be created, splitting each resource to be created into at least one group, wherein no dependency exists between different resources to be created in the same group; generating a target resource configuration file corresponding to a target group according to sequence indication information and resource attribute information in resource configuration information of resources to be created, wherein the sequence indication information and the resource attribute information are contained in the target group, so as to obtain at least one target resource configuration file, wherein the target group is any one group in the at least one group, and the target resource configuration file corresponding to the target group comprises the resource attribute information of the resources to be created, which corresponds to the target group; and determining the sending sequence of each target resource configuration file according to the minimum sequence indication information of the resource to be created corresponding to each target resource configuration file.
In an embodiment, the generating module 702 is specifically configured to: determining a dependency relationship between the resources to be created according to dependency indication information in the resource configuration information of the resources to be created; if the dependency relationship indicates that a fourth resource to be created in the resources to be created depends on a third resource to be created, dividing the third resource to be created into a first group, and dividing the fourth resource to be created into a second group; the creation sequence indicated by the sequence indication information of the third resource to be created is prior to the fourth resource to be created; and if the dependency relationship indicates that a fourth resource to be created in each resource to be created does not depend on a third resource to be created, dividing the third resource to be created and the fourth resource to be created into the same group.
It can be understood that the functions of the functional modules of the resource creation apparatus described in this embodiment of the present application may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the description related to the foregoing method embodiment, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure. The computer device 800 may comprise a standalone device (e.g., one or more of a server, a node, a terminal, etc.) or may comprise a component (e.g., a chip, a software module, or a hardware module, etc.) within a standalone device. The computer device 800 may comprise at least one processor 801 and a communication interface 802, further optionally the computer device 800 may also comprise at least one memory 803 and a bus 804. The processor 801, the communication interface 802, and the memory 803 are connected by a bus 804.
The processor 801 is a module for performing arithmetic operation and/or logical operation, and may specifically be one or a combination of multiple processing modules, such as a Central Processing Unit (CPU), a picture processing Unit (GPU), a Microprocessor (MPU), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a Complex Programmable Logic Device (CPLD), a coprocessor (which assists the central processing Unit to complete corresponding processing and Application), and a Micro Controller Unit (MCU).
The communication interface 802 may be used to provide information input or output to at least one processor. And/or, the communication interface 802 may be used to receive and/or transmit data externally, and may be a wired link interface such as an ethernet cable, and may also be a wireless link (Wi-Fi, bluetooth, general wireless transmission, vehicle-mounted short-range communication technology, other short-range wireless communication technologies, and the like) interface. The communication interface 802 may serve as a network interface.
The memory 803 is used to provide a storage space in which data, such as an operating system and computer programs, may be stored. The memory 803 may be one or a combination of Random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or portable read-only memory (CD-ROM), among others.
At least one processor 801 in the computer device 800 is configured to invoke computer programs stored in at least one memory 803 for performing the resource creation methods described in the embodiments shown herein.
In one possible implementation, the processor 801 in the computer device 800 is configured to invoke a computer program stored in the at least one memory 803 for performing the following operations: acquiring at least one initial resource configuration file; the resource configuration information comprises resource attribute information and sequence indication information, and the sequence indication information is used for indicating the creation sequence of the resource to be created in at least one resource to be created corresponding to the at least one initial resource configuration file; generating at least one target resource configuration file and determining the sending sequence of each target resource configuration file according to the resource configuration information of each resource to be created; the target resource configuration files comprise resource attribute information of one or more resources to be created, and the resource attribute information of the resources to be created is arranged according to the creation sequence; and sending the at least one target resource configuration file to a resource creating end according to the sending sequence, so that the resource creating end creates resources to be created corresponding to the target resource configuration files in sequence based on the resource attribute information according to the receiving sequence of the target resource configuration files and the arrangement sequence of the resource attribute information in the target resource configuration files.
In one embodiment, the processor 801 is specifically configured to: extracting resource attribute information and sequence indication information from the resource configuration information of each resource to be created; generating at least one target resource configuration file according to the resource attribute information of each resource to be created; and determining the sending sequence of each target resource configuration file according to the creating sequence indicated by the sequence indication information of each resource to be created.
In one embodiment, one of the target resource profiles includes resource attribute information of a resource to be created; the resource configuration information further includes dependency indication information, and the processor 801 is specifically configured to: reading target dependence indication information from resource configuration information of a first resource to be created; the target dependency indication information is used to indicate whether creation of a second resource to be created depends on the first resource to be created, the first resource to be created and the second resource to be created are included in at least one resource to be created corresponding to the at least one initial resource profile, a creation order indicated by the order indication information of the first resource to be created is adjacent to a creation order indicated by the order indication information of the second resource to be created, and the creation order of the first resource to be created is prior to the second resource to be created; according to the sending sequence of a first target resource configuration file and a second target resource configuration file and the target dependency indication information, sending the first target resource configuration file and the second target resource configuration file to a resource creation end; the first target resource configuration file is a target resource configuration file generated according to the resource attribute information of the first resource to be created, and the second target resource configuration file is a target resource configuration file generated according to the resource attribute information of the second resource to be created.
In one embodiment, the processor 801 is specifically configured to: if the sending sequence of the first target resource configuration file is prior to that of the second target resource configuration file, and the target dependency indication information indicates that the creation of the second resource to be created depends on the first resource to be created, the first target resource configuration file is sent to a resource creation end first, so that the resource creation end creates the first resource to be created according to resource attribute information contained in the first target resource configuration file; after the first resource to be created is detected to be completely created, the second target resource configuration file is sent to the resource creating end, so that the resource creating end creates the second resource to be created according to the created first resource to be created and resource attribute information contained in the second target resource configuration file.
In another embodiment, the processor 801 is specifically configured to: if the sending sequence of the first target resource configuration file is prior to that of the second target resource configuration file, and the target dependency indication information indicates that the creation of the second resource to be created does not depend on the first resource to be created, the first target resource configuration file and the second target resource configuration file are sent to a resource creation end together, so that the resource creation end creates the first resource to be created according to resource attribute information contained in the first target resource configuration file, and creates the second resource to be created according to resource attribute information contained in the second target resource configuration file.
In one embodiment, the resource configuration information further includes dependency indication information; the processor 801 is specifically configured to: according to the dependency indication information in the resource configuration information of each resource to be created, splitting each resource to be created into at least one group, wherein no dependency exists between different resources to be created in the same group; generating a target resource configuration file corresponding to a target group according to sequence indication information and resource attribute information in resource configuration information of resources to be created, wherein the sequence indication information and the resource attribute information are contained in the target group, so as to obtain at least one target resource configuration file, wherein the target group is any one group in the at least one group, and the target resource configuration file corresponding to the target group comprises the resource attribute information of the resources to be created, which corresponds to the target group; and determining the sending sequence of each target resource configuration file according to the minimum sequence indication information of the resource to be created corresponding to each target resource configuration file.
In one embodiment, the processor 801 is specifically configured to: determining a dependency relationship between the resources to be created according to dependency indication information in the resource configuration information of the resources to be created; if the dependency relationship indicates that a fourth resource to be created in the resources to be created depends on a third resource to be created, dividing the third resource to be created into a first group, and dividing the fourth resource to be created into a second group; the creation sequence indicated by the sequence indication information of the third resource to be created is prior to the fourth resource to be created; and if the dependency relationship indicates that a fourth resource to be created in each resource to be created does not depend on a third resource to be created, dividing the third resource to be created and the fourth resource to be created into the same group.
It should be understood that the computer device 800 described in this embodiment of the present application may perform the description of the resource creating method in the corresponding embodiment described above, and may also perform the description of the resource creating apparatus 700 in the corresponding embodiment shown in fig. 7, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
In addition, it should be further noted that an exemplary embodiment of the present application further provides a storage medium, where a computer program of the foregoing resource creation method is stored in the storage medium, where the computer program includes program instructions, and when one or more processors load and execute the program instructions, the description of the resource creation method in the embodiment may be implemented, which is not described herein again, and beneficial effects of using the same method are also described herein without being described again. It will be understood that the program instructions may be deployed to be executed on one computer device or on multiple computer devices that are capable of communicating with each other.
The computer-readable storage medium may be the resource creation apparatus provided in any of the foregoing embodiments or an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash card (flash card), and the like, provided on the computer device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the computer device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the computer device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
In one aspect of the application, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided by one aspect of the embodiments of the present application.
In one aspect of the present application, another computer program product is provided, which comprises a computer program or computer instructions, which when executed by a processor, implement the steps of the resource creation method provided by the embodiments of the present application.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device can be merged, divided and deleted according to actual needs.
While only some embodiments have been described in detail herein, it will be understood that all modifications and equivalents may be resorted to, falling within the scope of the invention.

Claims (10)

1. A method for resource creation, the method comprising:
acquiring at least one initial resource configuration file; the resource configuration information comprises resource attribute information and sequence indication information, and the sequence indication information is used for indicating the creation sequence of the resource to be created in at least one resource to be created corresponding to the at least one initial resource configuration file;
generating at least one target resource configuration file and determining the sending sequence of each target resource configuration file according to the resource configuration information of each resource to be created; the target resource configuration files comprise resource attribute information of one or more resources to be created, and the resource attribute information of the resources to be created is arranged according to the creation sequence;
and sending the at least one target resource configuration file to a resource creating end according to the sending sequence, so that the resource creating end creates resources to be created corresponding to the target resource configuration files in sequence based on the resource attribute information according to the receiving sequence of the target resource configuration files and the arrangement sequence of the resource attribute information in the target resource configuration files.
2. The method according to claim 1, wherein the generating at least one target resource profile and determining a transmission order of each target resource profile according to the resource configuration information of each resource to be created comprises:
extracting resource attribute information and sequence indication information from the resource configuration information of each resource to be created;
generating at least one target resource configuration file according to the resource attribute information of each resource to be created;
and determining the sending sequence of each target resource configuration file according to the creating sequence indicated by the sequence indication information of each resource to be created.
3. The method of claim 2, wherein one of said target resource profiles comprises resource attribute information for a resource to be created; the resource configuration information further includes dependency indication information, and the sending the at least one target resource configuration file to a resource creation end according to the sending order includes:
reading target dependence indication information from resource configuration information of a first resource to be created; the target dependency indication information is used to indicate whether creation of a second resource to be created depends on the first resource to be created, the first resource to be created and the second resource to be created are included in at least one resource to be created corresponding to the at least one initial resource profile, a creation order indicated by the order indication information of the first resource to be created is adjacent to a creation order indicated by the order indication information of the second resource to be created, and the creation order of the first resource to be created is prior to the second resource to be created;
according to the sending sequence of a first target resource configuration file and a second target resource configuration file and the target dependency indication information, sending the first target resource configuration file and the second target resource configuration file to a resource creation end;
the first target resource configuration file is a target resource configuration file generated according to the resource attribute information of the first resource to be created, and the second target resource configuration file is a target resource configuration file generated according to the resource attribute information of the second resource to be created.
4. The method of claim 3, wherein the sending the first target resource profile and the second target resource profile to a resource creation side according to a sending order of the first target resource profile and the second target resource profile and the target dependency indication information comprises:
if the sending sequence of the first target resource configuration file is prior to that of the second target resource configuration file, and the target dependency indication information indicates that the creation of the second resource to be created depends on the first resource to be created, the first target resource configuration file is sent to a resource creation end first, so that the resource creation end creates the first resource to be created according to resource attribute information contained in the first target resource configuration file;
after the first resource to be created is detected to be completely created, the second target resource configuration file is sent to the resource creating end, so that the resource creating end creates the second resource to be created according to the created first resource to be created and resource attribute information contained in the second target resource configuration file.
5. The method of claim 4, wherein the method further comprises:
if the sending sequence of the first target resource configuration file is prior to that of the second target resource configuration file, and the target dependency indication information indicates that the creation of the second resource to be created does not depend on the first resource to be created, the first target resource configuration file and the second target resource configuration file are sent to a resource creation end together, so that the resource creation end creates the first resource to be created according to resource attribute information contained in the first target resource configuration file, and creates the second resource to be created according to resource attribute information contained in the second target resource configuration file.
6. The method of claim 2, wherein the resource configuration information further includes dependency indication information;
the generating at least one target resource configuration file according to the resource attribute information of each resource to be created includes:
according to the dependency indication information in the resource configuration information of each resource to be created, splitting each resource to be created into at least one group, wherein no dependency exists between different resources to be created in the same group;
generating a target resource configuration file corresponding to a target group according to sequence indication information and resource attribute information in resource configuration information of resources to be created, wherein the sequence indication information and the resource attribute information are contained in the target group, so as to obtain at least one target resource configuration file, wherein the target group is any one group in the at least one group, and the target resource configuration file corresponding to the target group comprises the resource attribute information of the resources to be created, which corresponds to the target group;
the determining, according to the creation order indicated by the order indication information of each resource to be created, a transmission order of each target resource configuration file includes:
and determining the sending sequence of each target resource configuration file according to the minimum sequence indication information of the resource to be created corresponding to each target resource configuration file.
7. The method of claim 6, wherein the splitting each resource to be created into at least one group according to the dependency indication information in the resource configuration information of each resource to be created comprises:
determining a dependency relationship between the resources to be created according to dependency indication information in the resource configuration information of the resources to be created;
if the dependency relationship indicates that a fourth resource to be created in the resources to be created depends on a third resource to be created, dividing the third resource to be created into a first group, and dividing the fourth resource to be created into a second group; the creation sequence indicated by the sequence indication information of the third resource to be created is prior to the fourth resource to be created;
and if the dependency relationship indicates that a fourth resource to be created in each resource to be created does not depend on a third resource to be created, dividing the third resource to be created and the fourth resource to be created into the same group.
8. A resource creation apparatus, comprising:
the acquisition module is used for acquiring at least one initial resource configuration file; the resource configuration information comprises resource attribute information and sequence indication information, and the sequence indication information is used for indicating the creation sequence of the resource to be created in at least one resource to be created corresponding to the at least one initial resource configuration file;
the generating module is used for generating at least one target resource configuration file and determining the sending sequence of each target resource configuration file according to the resource configuration information of each resource to be created; the target resource configuration files comprise resource attribute information of one or more resources to be created, and the resource attribute information of the resources to be created is arranged according to the creation sequence;
and the sending module is used for sending the at least one target resource configuration file to a resource creating end according to the sending sequence, so that the resource creating end creates resources to be created corresponding to the target resource configuration files in sequence on the basis of the resource attribute information according to the receiving sequence of the target resource configuration files and the arrangement sequence of the resource attribute information in the target resource configuration files.
9. A computer device, comprising: a processor, a memory, and a network interface;
the processor is coupled to the memory and the network interface, wherein the network interface is configured to provide a network communication function, the memory is configured to store program code, and the processor is configured to call the program code to perform the resource creation method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, perform the resource creation method of any one of claims 1 to 7.
CN202210895535.4A 2022-07-26 2022-07-26 Resource creating method and device, computer equipment and storage medium Pending CN115269117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210895535.4A CN115269117A (en) 2022-07-26 2022-07-26 Resource creating method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210895535.4A CN115269117A (en) 2022-07-26 2022-07-26 Resource creating method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115269117A true CN115269117A (en) 2022-11-01

Family

ID=83771431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210895535.4A Pending CN115269117A (en) 2022-07-26 2022-07-26 Resource creating method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115269117A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737393A (en) * 2023-08-11 2023-09-12 腾讯科技(深圳)有限公司 Resource deployment method and device, storage medium and electronic equipment
CN116737393B (en) * 2023-08-11 2024-05-10 腾讯科技(深圳)有限公司 Resource deployment method and device, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737393A (en) * 2023-08-11 2023-09-12 腾讯科技(深圳)有限公司 Resource deployment method and device, storage medium and electronic equipment
CN116737393B (en) * 2023-08-11 2024-05-10 腾讯科技(深圳)有限公司 Resource deployment method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US20170331867A1 (en) Method, device and system for pushing file
CN109951547B (en) Transaction request parallel processing method, device, equipment and medium
US20120151476A1 (en) Virtual machine morphing for heterogeneous migration environments
CN108256118B (en) Data processing method, device, system, computing equipment and storage medium
CN108282527A (en) Generate the distributed system and method for Service Instance
CN110532182B (en) Automatic testing method and device for virtualization platform
WO2023165471A1 (en) Cloud platform application deployment method and apparatus, electronic device, and storage medium
CN109120680B (en) Control system, method and related equipment
CN109039687A (en) Load-balancing method, device, system, equipment and the storage medium of request
CN107609197A (en) A kind of method of data synchronization, data synchronization unit and mobile terminal
CN115269117A (en) Resource creating method and device, computer equipment and storage medium
CN112257736A (en) Model training system, method, equipment and storage medium based on multiple clusters
CN111241594A (en) Method and device for signing transaction information, computer equipment and storage medium
CN112650710B (en) Data migration sending method and device, storage medium and electronic device
JP5906906B2 (en) Log management method, log management system, and information processing apparatus
CN111464395B (en) Method and device for creating blockchain and readable storage medium
CN114024822A (en) Block chain-based Internet of things equipment management method, equipment, server and medium
CN109033189B (en) Compression method and device of link structure log, server and readable storage medium
CN112766486A (en) Searching method of neural network structure, terminal, server and readable storage medium
US9184996B2 (en) Thin client system, management server, client environment management method and program
CN113704107B (en) Application testing method, device, equipment and computer readable storage medium
CN113986379B (en) Application starting method and device, computer equipment and storage medium
CN111476663B (en) Data processing method and device, node equipment and storage medium
CN111884904B (en) Method and device for dynamically managing vxlan tunnel based on equipment configuration
CN108874564A (en) A kind of inter-process communication methods, electronic equipment and readable storage medium storing program for executing

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
CB02 Change of applicant information

Address after: 2601, 2602, 2603, 2606, Zhongzhou building, No. 3088, Jintian Road, Gangxia community, Futian street, Futian District, Shenzhen, Guangdong 518000

Applicant after: Shenzhen Xiaoyudian Digital Technology Co.,Ltd.

Address before: 2601, 2602, 2603, 2606, Zhongzhou building, No. 3088, Jintian Road, Gangxia community, Futian street, Futian District, Shenzhen, Guangdong 518000

Applicant before: Shenzhen Huace Huihong Technology Co.,Ltd.

CB02 Change of applicant information