A data processing method and related equipment

By acquiring and managing the state and annotation information of computing containers, identifying and probing their relationships, the problem of service instability caused by the instability of computing containers is solved, thereby improving the stability and reliability of application services.

CN119960896BActive Publication Date: 2026-11-17TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311486681.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-08
Publication Date
2026-11-17
Estimated Expiration
2043-11-08

AI Technical Summary

Technical Problem

In cloud-native scenarios, the instability of computing containers makes it difficult to manage service relationships, resulting in application services that are not stable and reliable enough.

Method used

By obtaining the state information of the computing containers, the target containers are filtered and their annotation information is obtained. The container categories are identified, relationship detection information is queried, relationship detection is performed, container relationships are generated, and resource configuration is performed.

Benefits of technology

It improves the stability and reliability of application services by identifying and managing the relationships between computing containers to ensure stable service operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119960896B_ABST
    Figure CN119960896B_ABST
Patent Text Reader

Abstract

This application provides a data processing method and related equipment, applicable to various scenarios such as cloud technology, artificial intelligence, smart transportation, and the Internet of Vehicles. The data processing method acquires container status information for each computing container corresponding to a target application service; based on the container status information, it filters out target computing containers from among the computing containers and acquires the corresponding container annotation information; it identifies the container category corresponding to each target computing container in the container annotation information and queries the corresponding relationship detection information of the target computing container in a preset detection information set according to the container category; when relationship detection information exists, it performs relationship detection on the target computing containers based on the relationship detection information to obtain detection results; based on the detection results, it generates container relationships between target computing containers and configures resources for the target application service based on the container relationships. This application can improve the stability and reliability of the target application service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud technology, specifically to a data processing method and related equipment, which includes a data processing device, electronic equipment, and computer-readable storage medium. Background Technology

[0002] In cloud-native scenarios, container orchestration and management platforms such as Kubernetes can be used to manage and deploy application services. These application services can be implemented by compute containers within the container orchestration and management platform. A compute container is the smallest deployable computing unit created and managed within the container orchestration and management platform and can be used to run application services.

[0003] For application services, the relationships between computing containers can be used to manage services, making them more stable and reliable. However, since computing containers are not stable objects, they may restart, be rebuilt, or drift, making it difficult to obtain the relationships between them. Consequently, it becomes difficult to use these relationships to manage services, resulting in application services that are less stable and reliable.

[0004] In summary, the application services currently suffer from poor stability and reliability. Summary of the Invention

[0005] This application provides a data processing method and related equipment that can improve the stability and reliability of application services.

[0006] A data processing method, comprising:

[0007] Acquire the data to be processed, which includes the container status information of each computing container corresponding to the target application service. The computing container includes computing units configured for the target application service.

[0008] Based on container status information, at least one target computing container is selected from the computing containers, and the container annotation information corresponding to the target computing container is obtained;

[0009] Identify the container category corresponding to each target computing container in the container annotation information, and query the relationship detection information corresponding to each target computing container in the preset detection information set according to the container category;

[0010] When relationship detection information exists, relationship detection is performed on the target computing container based on the relationship detection information to obtain the detection results corresponding to the target computing container;

[0011] Based on the detection results, the container relationships between the target computing containers are generated, and the resources of the target application services are configured based on the container relationships.

[0012] Accordingly, embodiments of this application provide a data processing apparatus, including:

[0013] The acquisition unit can be used to acquire data to be processed, which includes container status information of each computing container corresponding to the target application service. The computing container includes computing units configured for the target application service.

[0014] The filtering unit can be used to filter out at least one target computing container from the computing containers based on the container status information, and obtain the container annotation information corresponding to the target computing container;

[0015] The identification unit can be used to identify the container category corresponding to each target computing container in the container annotation information, and query the relationship detection information corresponding to each target computing container in the preset detection information set according to the container category;

[0016] The detection unit can be used to perform relationship detection on the target computing container based on the relationship detection information when relationship detection information exists, and obtain the detection result corresponding to the target computing container;

[0017] The generation unit can be used to generate container relationships between target computing containers based on the detection results, and to configure resources for target application services based on the container relationships.

[0018] Optionally, in some embodiments, the detection unit may be specifically used to perform relationship detection on the target computing container based on relationship detection information to obtain detection feedback information corresponding to the target computing container; perform content recognition on the detection feedback information to obtain recognition results, and determine the detection results corresponding to the target computing container based on the recognition results.

[0019] Optionally, in some embodiments, the detection unit may be specifically used to determine the relationship detection program corresponding to the target computing container based on the relationship detection information; execute the relationship detection program to obtain the detection feedback information corresponding to the target computing container.

[0020] Optionally, in some embodiments, the detection unit can be specifically used to obtain the detection result corresponding to the target computing container based on the detection state information when the identification result indicates that the detection feedback information contains detection state information, wherein the detection state information is the response state information when executing the relationship detection program; and to determine the detection result corresponding to the target computing container based on the detection object information when the identification result indicates that the detection feedback information contains detection object information, wherein the detection object information is the information of the target object accessed by the relationship detection program.

[0021] Optionally, in some embodiments, the acquisition unit may further be used to acquire container attribute information of the computing container corresponding to the target application service; group the computing containers based on the container attribute information to obtain grouping information of the computing containers; acquire multiple preset relationship detection information, and configure the computing containers according to the grouping information and the preset relationship detection information to obtain at least one preset detection information set.

[0022] Optionally, in some embodiments, the acquisition unit may also be used to determine candidate computing containers in the same group in the computing containers according to the grouping information; filter out target relationship detection information from the preset relationship detection information, and configure the information of the candidate computing containers based on the target relationship detection information to obtain the configured detection information corresponding to each candidate computing container; and generate at least one preset detection information set based on the configured detection information.

[0023] Optionally, in some embodiments, the acquisition unit may further be used to classify computing containers based on container attribute information to obtain at least one container set, the container set including at least one computing container; when grouping indication information for the container set is acquired, the unit acquires the function indication information of each computing container in the container set, and groups the computing containers in the container set based on the function indication information to obtain the grouping information of the computing containers; when no grouping indication information is acquired, the unit generates the grouping information of the computing containers based on the container set.

[0024] Optionally, in some embodiments, the identification unit may be specifically used to determine the container grouping information corresponding to the target computing container based on the container category, and obtain a preset detection information set corresponding to the container grouping information; and query the relationship detection information corresponding to each target computing container in the preset detection information set.

[0025] Optionally, in some embodiments, the generation unit may be specifically used to filter out the basic computing containers in the target computing containers based on container relationships, and obtain the running object information of the running objects running for the basic computing containers; in the running object information, filter out the target running object information of the target running object corresponding to each basic computing container; and configure the basic computing containers according to the target running object information so that the target running objects can run the basic computing containers.

[0026] Optionally, in some embodiments, the generation unit may be specifically used to determine a preset container set corresponding to each target computing container, the preset container set including at least two target computing containers; and to select at least one basic computing container from each preset container set based on container relationships.

[0027] Optionally, in some embodiments, the generation unit may further be used to generate a set of detection information corresponding to the target computing container based on the relationship detection information; when the target computing container is subjected to relationship detection again, the target relationship detection information corresponding to the target computing container is extracted from the detection information set; based on the target relationship detection information, the target computing container is subjected to relationship detection to obtain the target detection result corresponding to the target computing container; the container relationship is updated according to the target detection result to obtain the updated container relationship, and the target application service is configured with resources based on the updated container relationship.

[0028] Furthermore, embodiments of the present invention also provide an electronic device, including a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to implement the data processing method provided in embodiments of the present invention.

[0029] Furthermore, embodiments of this application also provide a computer-readable storage medium storing a computer program adapted for loading by a processor to execute any of the data processing methods provided in embodiments of this application.

[0030] Furthermore, this application also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the data processing methods provided in this application.

[0031] This application embodiment can acquire data to be processed, including container status information of each computing container corresponding to the target application service, and computing containers including computing units configured for the target application service; based on the container status information, at least one target computing container is selected from the computing containers, and container annotation information corresponding to the target computing container is obtained; the container category corresponding to each target computing container is identified in the container annotation information, and the relationship detection information corresponding to each target computing container is queried in a preset detection information set according to the container category; when relationship detection information exists, relationship detection is performed on the target computing containers based on the relationship detection information to obtain the detection result corresponding to the target computing containers; based on the detection result, container relationships between target computing containers are generated, and resource configuration is performed on the target application service based on the container relationships. Since this application can filter out at least one target computing container from the computing containers based on the container status of the computing containers corresponding to the target application service, and then use the container annotation information corresponding to the target computing container to identify the container category of the target computing container, so as to obtain the relationship detection information corresponding to the target computing container, the detection results of the target computing container can be detected using the relationship detection information, so as to generate the container relationship between the target computing containers based on the detection results, and thus the container relationship can be used to configure resources for the target application service to improve the stability and reliability of the target application service. Attached Figure Description

[0032] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 This is a schematic diagram of a scenario illustrating the data processing method provided in an embodiment of this application;

[0034] Figure 2 This is a flowchart illustrating the data processing method provided in an embodiment of this application;

[0035] Figure 3 This is a schematic diagram illustrating the acquisition of a preset detection information set provided in an embodiment of this application;

[0036] Figure 4 This is a schematic diagram of the grouping of computing containers provided in an embodiment of this application;

[0037] Figure 5 This is a schematic diagram illustrating the acquisition of detection results provided in an embodiment of this application;

[0038] Figure 6 A schematic diagram of the combination of detection data provided in the embodiments of this application;

[0039] Figure 7 These are two schematic flowcharts illustrating the data processing method provided in the embodiments of this application;

[0040] Figure 8 This is a schematic diagram of the structure of the data processing apparatus provided in the embodiments of this application;

[0041] Figure 9 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0042] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0043] This application provides a data processing method, apparatus, electronic device, and computer-readable storage medium. The data processing apparatus can be integrated into an electronic device, which may be a server or a terminal, etc.

[0044] The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN) acceleration services, and big data and artificial intelligence platforms. The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, in-vehicle terminal, etc., but is not limited to these. The terminal and server can be directly or indirectly connected via wired or wireless communication, which is not limited herein.

[0045] For example, see Figure 1 Taking the integration of a data processing device into an electronic device as an example, the electronic device can acquire data to be processed, which includes container status information of each computing container corresponding to the target application service. The computing container includes computing units configured for the target application service. Based on the container status information, at least one target computing container is selected from the computing containers, and the container annotation information corresponding to the target computing container is obtained. The container category corresponding to each target computing container is identified in the container annotation information, and the relationship detection information corresponding to each target computing container is queried in a preset detection information set according to the container category. When relationship detection information exists, the relationship detection is performed on the target computing containers based on the relationship detection information to obtain the detection result corresponding to the target computing containers. Based on the detection result, the container relationship between the target computing containers is generated, and the resource configuration of the target application service is performed based on the container relationship.

[0046] This application can process the container status information corresponding to the computing container to obtain the relationship detection information corresponding to the target computing container. The detection information can be used to generate the container relationship between the target computing containers, and then the container relationship can be used to configure the resources of the target application service corresponding to the target computing container to improve the reliability and stability of the target application service.

[0047] This application relates to cloud technology, which refers to a hosting technology that unifies hardware, software, and network resources within a wide area network (WAN) or local area network (LAN) to achieve data computation, storage, processing, and sharing. Cloud technology, based on the cloud computing business model, encompasses network technology, information technology, integration technology, management platform technology, and application technology. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to backend systems for logical processing. Data at different levels will be processed separately, and various industry data will require robust system support, which can only be achieved through cloud computing.

[0048] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.

[0049] This embodiment will be described from the perspective of a data processing device, which can be integrated into an electronic device, such as a server or a terminal. The terminal can include tablet computers, laptops, personal computers (PCs), wearable devices, virtual reality devices, or other smart devices that can acquire data.

[0050] This application provides a data processing method, including:

[0051] The process involves: acquiring data to be processed, including container status information for each computing container corresponding to the target application service, where each computing container includes computing units configured for the target application service; selecting at least one target computing container from the computing containers based on the container status information and acquiring the container annotation information corresponding to the target computing container; identifying the container category corresponding to each target computing container from the container annotation information and querying the relationship detection information corresponding to each target computing container from a preset detection information set based on the container category; when relationship detection information exists, performing relationship detection on the target computing containers based on the relationship detection information to obtain the detection results corresponding to the target computing containers; generating container relationships between target computing containers based on the detection results and configuring resources for the target application service based on the container relationships.

[0052] Regarding the data processing method mentioned above, such as Figure 2 As shown, the specific flow of this data processing method is as follows: steps S201 to S205:

[0053] S201. Obtain the pending data, including the container status information corresponding to the target application service.

[0054] The data to be processed includes container status information for each computing container of the target application service.

[0055] The target application service can refer to a functional service provided by one or more applications or components, such as database services, caching services, etc. Specifically, the target application service can be a stateful service, which is a service that maintains certain state information when processing requests. This means that a stateful service will be affected by previous requests when processing different requests, and may also affect subsequent requests.

[0056] A computing container can include computing units configured for a target application service; the specific implementation of the target application service can be achieved by running the computing container. Each computing container can host sub-service functions within the target application service. Furthermore, each computing container can include at least one sub-computing container.

[0057] Container status information refers to the information about the scheduling status of a computing container. The scheduling status can include completed scheduling and incomplete scheduling.

[0058] For example, when a computing container is scheduled onto a node, it can be said that the computing container has completed scheduling; when a computing container is not scheduled onto a node, it can be said that the computing container has not completed scheduling.

[0059] For step S201, for example, the method of "obtaining pending data including container status information corresponding to the target application service" can be as follows: obtain the service identifier of the target application service; call the data acquisition interface, and obtain the container status information of the computing container corresponding to the target application service based on the service identifier through the data acquisition interface; generate pending data based on the container status information.

[0060] The data acquisition interface can be used to obtain container status information of the computing container. This container status information can be used as data to be processed.

[0061] For step S201, for example, the method of "obtaining pending data including container status information corresponding to the target application service" can be: obtaining a status information acquisition instruction; querying the container status information of the computing container corresponding to the target application service in a preset status information set based on the status information acquisition instruction; and generating pending data based on the container status information.

[0062] S202. Based on the container status information, at least one target computing container is selected from the computing containers, and the container annotation information corresponding to the target computing container is obtained.

[0063] The container annotation information describes information related to the compute container; for example, the container annotation information may include the service type to which the compute container belongs, the number of sub-compute containers included in the compute container, and the container identifier of the compute container.

[0064] The term "service type" refers to the type of service function that a computing container can handle. "Service function" refers to the service capabilities that the target application service can provide; service functions can include database service functions and computing service functions; service types can include database service types and computing service types.

[0065] Accordingly, database service type can refer to the type of database service function that the computing container can be responsible for; computing service type can refer to the type of computing service function that the computing container can be responsible for.

[0066] After obtaining the container status information, this application can use the container status information to filter out target computing containers. Specifically, for step S202, "filtering out at least one target computing container from the computing containers based on the container status information" can be done as follows: identify the status type of the computing container in the container status information; when the status type is the target status type, determine that the computing container is the target computing container; when the status type is not the target status type, determine that the computing container is not the target computing container.

[0067] The status type can include a completed scheduling type and an incomplete scheduling type. When the container status information indicates that the compute container has completed scheduling, the corresponding status type of the compute container is the completed scheduling type. When the container status information indicates that the compute container has not completed scheduling, the corresponding status type of the compute container is the incomplete scheduling type.

[0068] The target status type can be an incomplete scheduling type. This means that the target computing containers selected in this application are incomplete scheduling containers, that is, containers that have not been scheduled to a node.

[0069] For example, regarding step S202, "based on container status information, at least one target computing container is selected from the computing containers" can be done by: comparing the container status information with preset status information to obtain a comparison result; when the comparison result indicates that the container status information is the same as the preset status information, the computing container corresponding to the container status information is taken as the target computing container.

[0070] The preset status information can be information about the computing container not completing the scheduling.

[0071] After the target computing container is selected, this application can obtain the container annotation information corresponding to the target computing container, so as to obtain the container relationship using the container annotation information. Specifically, for step S202, the method of "obtaining the container annotation information corresponding to the target computing container" can be: calling the annotation information acquisition interface and extracting the container annotation information corresponding to the target computing container based on the annotation information interface.

[0072] Alternatively, the method for "obtaining the container annotation information corresponding to the target computing container" can be: obtaining the container identifier of the target computing container; and based on the container identifier of the target computing container, accessing the target field corresponding to the target computing container to obtain the container annotation information corresponding to the target computing container from the target field.

[0073] S203. Identify the container category corresponding to each target computing container in the container annotation information, and query the relationship detection information corresponding to each target computing container in the preset detection information set according to the container category.

[0074] After obtaining the container annotation information, this application can use the container annotation information to identify the container category. Specifically, for step S203, the method of "identifying the container category corresponding to each target computing container in the container annotation information" can be: extracting the service type corresponding to each target computing container from the container annotation information; and determining the container category corresponding to the target computing container based on the service type.

[0075] Specifically, the step "determine the container category corresponding to the target computing container based on the service type" can be done by: obtaining a mapping relationship set, which includes the mapping relationship between preset service types and preset container categories; and determining the container category corresponding to the target computing container based on the mapping relationship set and the service type.

[0076] There is a one-to-one correspondence between container categories and service types. For example, when the service type is database service, the container category of the target computing container is database service; when the service type is computing service, the container category of the target computing container is computing service.

[0077] Regarding step S203, the method for "querying the relationship detection information corresponding to each target computing container in the preset detection information set according to the container category" can be as follows: based on the container category, determine the container grouping information corresponding to the target computing container, and obtain the preset detection information set corresponding to the container grouping information; query the relationship detection information corresponding to each target computing container in the preset detection information set.

[0078] The container grouping information can refer to the information of the service group to which the target computing container belongs; for example, a service group can refer to a collection of computing containers that can provide the same service function in the target application service. For example, when the service function is a database service function, all computing containers in the service group are containers that can provide database service functions; when the service function is a computing service function, all computing containers in the service group are containers that can provide computing service functions.

[0079] The preset detection information set includes preset relationship detection information for each computing container. Preset relationship detection information can refer to information used to detect the role of a computing container in container relationships, or information used to detect container relationships between computing containers. Relationship detection information is a type of preset relationship detection information.

[0080] After obtaining the container category of the target computing container, this application can determine the container grouping information. Specifically, the step of "determining the container grouping information corresponding to the target computing container based on the container category" can be done by: obtaining a list of containers corresponding to the same container category, the list of containers including the target container identifier of at least one target computing container; and using the list of containers as the container grouping information corresponding to the target container.

[0081] After obtaining the container grouping information, this application can use the container grouping information to obtain a preset detection information set. Specifically, the step of "obtaining the preset detection information set corresponding to the container grouping information" can be done by: obtaining a correspondence set, which includes the correspondence between the preset container grouping information and the preset detection information set; and determining the preset detection information set corresponding to the container grouping information based on the correspondence set and the container grouping information.

[0082] Then, the step "querying the relationship detection information corresponding to each target computing container in the preset detection information set" can be done as follows: obtain the target container identifier of the target computing container; based on the target container identifier, query the relationship detection information corresponding to each target computing container in the preset detection information set.

[0083] In addition, for the preset detection information set, before the step of "querying each target in the preset detection information set according to the container category to calculate the corresponding relationship detection information of the container", this application can also generate the preset detection information set, as detailed in steps S2031 to S2033:

[0084] S2031. Obtain the container attribute information of the computing container corresponding to the target application service.

[0085] The container attribute information represents the properties of the computing container. Attributes can include the container's characteristics and functional tags. Characteristics can include the container's IP address and lifecycle; functional tags refer to the tags of the service functions corresponding to the computing container.

[0086] Regarding step S2031, the method for "obtaining the container attribute information of the computing container corresponding to the target application service" can be as follows: obtain multiple preset computing containers; extract the computing container corresponding to the target application service from the preset computing containers based on the service identifier of the target application service; and obtain the container attribute information corresponding to the computing container.

[0087] Specifically, the step "obtain container attribute information corresponding to the computing container" can be done by: obtaining the container tag of the computing container; and extracting the container attribute information corresponding to the computing container from the preset storage space corresponding to the computing container based on the container tag.

[0088] S2032. Based on container attribute information, group the computing containers to obtain the grouping information of the computing containers.

[0089] The aforementioned container grouping information can be included within the grouping information.

[0090] To facilitate configuring preset relationship detection information for computing containers, this application can use grouping information to configure the information of computing containers. Specifically, for step S2032, the step of "grouping computing containers based on container attribute information to obtain grouping information of computing containers" can be performed as follows: classify computing containers based on container attribute information to obtain at least one container set, the container set including at least one computing container; when grouping indication information for the container set is obtained, obtain the function indication information of each computing container in the container set, and group the computing containers in the container set based on the function indication information to obtain the grouping information of computing containers; when grouping indication information is not obtained, generate the grouping information of computing containers based on the container set.

[0091] Among them, grouping indication information can refer to information used to indicate the grouping of computational containers in a set of containers.

[0092] Specifically, the step "classify computing containers based on container attribute information to obtain at least one container set" can be done as follows: determine the container category of each computing container based on container attribute information; for each container category, obtain the computing containers corresponding to the same container category, and use the computing containers corresponding to the same container category as a container set.

[0093] The method of "determining the container category of each computing container based on container attribute information" can be as follows: extract the functional tags of the computing containers from the container attribute information; obtain a target mapping relationship set, which includes the mapping relationship between preset functional tags and preset container categories; and determine the container category of each computing container based on the target mapping relationship set.

[0094] The functional indication information can refer to the sub-functional service corresponding to the computing container in the container set; the sub-functional service can refer to the sub-functional service included in the functional service corresponding to the container set.

[0095] Specifically, the step "obtaining the functional indication information of each computing container in the container set" can be done by: querying the functional indication information in the container attribute information; and when functional indication information exists, extracting the functional indication information of each computing container in the container set from the container attribute information.

[0096] Specifically, the step "grouping the computing containers in the container set based on the functional indication information to obtain the grouping information of the computing containers" can be done as follows: among the computing containers in the container set, determine the reference computing containers with the same functional indication information, and take the reference computing containers with the same functional indication information as the sub-container set; based on the sub-container set, generate the grouping information corresponding to the computing containers.

[0097] Specifically, the step "Generating grouping information of computing containers based on container set" can be done by: obtaining the container identifier of each computing container in the container set, and generating grouping information of computing containers based on the container identifiers corresponding to the same container set.

[0098] Specifically, before the step of "obtaining the functional indication information of each computing container in the container set", grouping indication information can be obtained. Specifically, the method of "obtaining grouping indication information for the container set" can be: determining whether the container attribute information in the container set includes different functional indication information; when different functional indication information exists, triggering the grouping indication information for the container set.

[0099] S2033. Obtain multiple preset relationship detection information, and configure the computing container according to the grouping information and the preset relationship detection information to obtain at least one preset detection information set.

[0100] Regarding step S2033, the method for "obtaining multiple preset relationship probe information" can be as follows: obtain the service identifier corresponding to the target application service, and based on the service identifier, extract multiple preset relationship probe information corresponding to the target application service from the local database. Alternatively, display an information input page corresponding to the target application service, the information input page including information input controls; and generate multiple preset relationship probe information corresponding to the target application service in response to input operations on the information input controls.

[0101] After obtaining multiple preset relationship detection information, this application can configure the computing container. Specifically, the method of "configuring the computing container according to the grouping information and the preset relationship detection information to obtain at least one set of preset detection information" can be as follows: Based on the grouping information, candidate computing containers in the same group are determined in the computing container; target relationship detection information is filtered out from the preset relationship detection information, and the candidate computing containers are configured according to the target relationship detection information to obtain the configured detection information corresponding to each candidate computing container; based on the configured detection information, at least one set of preset detection information is generated.

[0102] Specifically, the step "filtering target detection information from preset relationship detection information" can be done in the following ways: Either any preset relationship detection information can be randomly selected as the target detection information; or, the sequence number corresponding to the preset relationship detection information can be obtained; and the target detection information can be filtered from the preset detection information based on the sequence number.

[0103] Specifically, the step "Configure the candidate computing containers based on the target relationship detection information to obtain the post-configuration detection information for each candidate computing container" can be implemented as follows: For each candidate computing container, obtain the path corresponding to the candidate computing container; mount the target relationship detection information to the path corresponding to the candidate computing container to obtain the post-configuration detection information for the candidate computing container. Alternatively, for each candidate computing container, bind the target relationship detection information to the candidate computing container to obtain the post-configuration detection information for the candidate computing container.

[0104] Specifically, the step "generating at least one preset detection information set based on the post-configuration detection information" can be done by: obtaining the target post-configuration detection information corresponding to each group of information from the post-configuration detection information, and using the target post-configuration detection information as the preset detection information set.

[0105] Steps S2031 to S2033 will be illustrated here with specific examples. For instance... Figure 3As shown, this application can display an information input page corresponding to the target application service. The information input page includes an information input control. In response to the user's input operation on the information input control, preset relationship detection information A and preset relationship detection information B corresponding to the target application service are generated.

[0106] Then, this application can obtain the container attribute information of the computing container corresponding to the target application service; then, based on the container attribute information, the computing containers are grouped to obtain the grouping information of container set A and container set B; when the grouping indication information of container set A is obtained, container set A can be further grouped.

[0107] For example, for a set of containers A, this application can group the set of containers A to obtain the grouping information of the sub-container set a and the grouping information of the sub-container set b; and use the grouping information of the sub-container set a and the grouping information of the sub-container set b as the grouping information of the computation container.

[0108] For example, when there is no need for further grouping of container set B in this application, the grouping information corresponding to container set B can be used as the grouping information of the computing container.

[0109] Then, multiple preset relationship detection information can be obtained, such as preset relationship detection information A and preset relationship detection information B. Next, based on the grouping information of the computing containers, relationship detection information A can be configured to computing containers a1 and a2 in sub-container set a, and computing containers b1 and b2 in sub-container set b. In this way, the preset detection information sets of sub-container set a and sub-container set b can be obtained.

[0110] This application can configure the preset relationship detection information B to the computing containers c1, c2 and c3 in the container set B based on the grouping information of the computing containers, so as to obtain the preset detection information set of the container set B.

[0111] Regarding the grouping of compute containers mentioned above, it can be understood that typical target application services could be database services, public systems, etc. For a single target application service, compute containers under that service can be grouped. The grouping rule is generally to categorize similar target application services into a single container set. This container set can be further subdivided into sub-container sets. When there is no need to further subdivide the compute containers within a container set into sub-container sets, the container set itself does not need to be further subdivided.

[0112] Regarding the grouping of computing containers described above, this section further elaborates on the example of a database service as the target application service. For example, such as... Figure 4As shown, the database service includes a storage sub-service and a synchronization sub-service. In this case, it is more appropriate to divide the computing container corresponding to the database service into two container sets. Based on this, this application can divide the computing container into a first container set corresponding to the storage sub-service and a second container set corresponding to the synchronization sub-service based on the container attribute information.

[0113] For the first set of containers corresponding to the storage sub-service, this application can divide the first set of containers into two sub-sets of containers, such as the first sub-set of containers and the second sub-set of containers. The first sub-set of containers includes two computing containers, such as computing container d1 and computing container d2, and the second sub-set of containers includes two computing containers, such as computing container e1 and computing container e2.

[0114] For the second container set corresponding to the synchronization sub-service, this application does not require the second container set to be divided into a sub-container set. Based on this, this application does not need to divide the second container set into a sub-container set. The second container set may include three computing containers such as computing container f1, computing container f2 and computing container f3.

[0115] against Figure 3 It can be understood here that the diagram describes the process of configuring preset relationship detection information for computing containers. First, users can submit personalized role detection descriptions, which are preset relationship detection information. The preset relationship detection information here is for groups. That is to say, computing containers corresponding to a container set use the same preset relationship detection information, and different container sets use different preset relationship detection information.

[0116] Then, after the target computing container is configured, that is, after the target computing container is scheduled to the corresponding target running object, the role detection controller can initialize or update the detection results corresponding to the target computing container based on the configured preset relationship detection information.

[0117] Steps S201 to S203 will be illustrated here with specific examples. For example, as follows: Figure 5 As shown, the electronic device may include a data processing interface 11 and an information detection controller 12.

[0118] The data processing interface 11 can be used to filter out at least one target computing container. The information detection controller 12 can be used to acquire relationship detection information of the target computing container.

[0119] For example, this application can obtain the container status information of each computing container corresponding to the target application service through the data processing interface 11; then, at least one target computing container can be selected from the computing containers through the data processing interface 11.

[0120] Next, this application can obtain the container annotation information corresponding to the target computing container through the information detection controller 12; and identify the container category corresponding to each target computing container in the container annotation information, and query the relationship detection information corresponding to each target computing container in the preset detection information set according to the container category, so as to obtain the relationship detection information corresponding to the target computing container.

[0121] Then, this application can record the relation detection information corresponding to the target computing container to generate a detection information set corresponding to the target computing container. For example, the detection information set includes a first detection information set corresponding to the first computing container and a second detection information set corresponding to the second computing container.

[0122] It should be noted that when the relationship detection information is updated, this application can obtain the updated relationship detection information and update the detection information set based on the updated relationship detection information.

[0123] S204. When relationship detection information exists, perform relationship detection on the target computing container based on the relationship detection information to obtain the detection result corresponding to the target computing container.

[0124] Regarding step S204, the method for "based on relation detection information, perform relation detection on the target computing container to obtain the detection result corresponding to the target computing container" can be as shown in steps S2041 to S2042:

[0125] S2041. Based on the relationship detection information, perform relationship detection on the target computing container to obtain the detection feedback information corresponding to the target computing container.

[0126] Among them, the detection feedback information can refer to the feedback information obtained after detecting the target computing container.

[0127] Regarding step S2041, the step "based on relation detection information, perform relation detection on the target computing container and obtain the detection feedback information corresponding to the target computing container" can be performed as follows: based on the relation detection information, determine the relation detection program corresponding to the target computing container; execute the relation detection program and obtain the detection feedback information corresponding to the target computing container.

[0128] Among them, a relation detection program can refer to a program used to detect relations with a target computing container.

[0129] The step "determine the relation detection program corresponding to the target computing container based on relation detection information" can be performed in several ways. For example, when the relation detection information includes a unique identifier for the relation detection program, the relation detection program corresponding to the relation detection information can be extracted from multiple preset relation detection programs based on the relation detection information, and then used as the relation detection program corresponding to the relation detection information for the target computing container. Another example is when the relation detection information includes parameters corresponding to the relation detection program, the initial relation detection program corresponding to the target computing container can be obtained; the parameters and the initial relation detection program can then be fused to obtain the relation detection program corresponding to the target computing container.

[0130] S2042. Perform content recognition on the detection feedback information to obtain the recognition result, and determine the detection result corresponding to the target computing container based on the recognition result.

[0131] After obtaining the detection feedback information, this application can perform content recognition on the detection feedback information. Specifically, for step S2042, "perform content recognition on the detection feedback information and obtain recognition results" can be achieved by: comparing the format of the detection feedback information with a preset format; when the format is the same as the preset format, determining that the recognition result indicates that the detection feedback information contains detection status information; when the format is different from the preset format, determining that the recognition result indicates that the detection feedback information contains detection object information.

[0132] Among them, the probe status information is the response status information when the relationship probe program is executed. For example, the probe status information can be represented as a status code; the probe object information is the information of the target object accessed by the relationship probe program. For example, the target object can be a port, a URL, etc.; for example, the probe object information can be represented as the port number of the port.

[0133] The detection results can indicate the role information of the target computing container. The role information can refer to the functional role that the target computing container plays in a container set or group of containers. For example, the role information can include master role information and slave role information. When the role information of the target computing container is master role information, it indicates that the target computing container is responsible for coordinating and managing the behavior of other computing containers whose role information is slave role information. When the role information of the target computing container is master role information, it indicates that the target computing container is a controlled, dependent, or controlled computing container, and follows the management and coordination of the computing container whose role information is master role information.

[0134] After obtaining the identification result, this application can use the identification result to determine the detection result. Specifically, the step of "determining the detection result corresponding to the target computing container based on the identification result" can be as follows: when the identification result indicates that the detection feedback information contains detection status information, the detection result corresponding to the target computing container is obtained based on the detection status information; when the identification result indicates that the detection feedback information contains detection object information, the detection result corresponding to the target computing container is determined based on the detection object information.

[0135] Specifically, the step "obtain the detection result corresponding to the target computing container based on the detection state information" can be done by: comparing the detection state information with the preset detection state information; when the detection state information is the same as the preset state information, obtaining the output result corresponding to the relationship detection program, and using the output result as the detection result corresponding to the target computing container.

[0136] It can be understood here that when the detection result corresponding to the target computing container is determined based on the detection object information, it indicates that the relationship detection program has been successfully executed, and the detection result obtained in this case is accurate.

[0137] For example, relationship probes include the first relationship probe exec, the second relationship probe http, and the third relationship probe gRPC.

[0138] 1) Regarding the first relation probe program exec: If the first relation probe program exec returns a probe status code of 0 after execution, the output result of the relation probe program can be directly obtained and used as the probe result; if the probe status code is not 0, it can be determined that the first relation probe program exe has an execution error and the probe result is unknown.

[0139] 2) Regarding the second relationship probe program (http): If the second relationship probe program (http) accesses the corresponding HTTP interface and obtains a status code of 200, then the output result of the relationship probe program can be directly obtained and used as the probe result. If the probe status code is not 200, then it is determined that the second relationship probe program (http) failed to access the HTTP interface, and the probe result is unknown.

[0140] 3) For the third-party relationship detection program gRPC: If the third-party relationship detection program gRPC executes successfully, the detection status information obtained is status code 0. Then the output result of the relationship detection program can be directly obtained and used as the detection result; otherwise, it is an error status code and the role result is unknown.

[0141] Specifically, the step "determine the detection result corresponding to the target computing container based on the detection object information" can be implemented as follows: when the detection object information is port information, determine the detection result corresponding to the target computing container to indicate that the role information of the target computing container is the main role information; when the detection object information is not port information, determine the detection result corresponding to the target computing container to indicate that the role information of the target computing container is not the main role information.

[0142] For example, a relationship probe may include a fourth relationship probe, tcp. If the fourth relationship probe tcp can access the corresponding TCP port, that is, when the probed object information is TCP port information, the probe result for the target computing container indicates that the target computing container's role information is primary role information; when the probed object information is not TCP port information, it is determined that the probe result for the target computing container indicates that the target computing container's role information is not primary role information, but secondary role information.

[0143] Step S204 will be illustrated with a specific example. For example, as follows: Figure 5 As shown, this application may also include a role detector 13, which can be used at least to perform relationship detection on the target computing container and obtain the detection results corresponding to the target computing container. The role detector 13 can be deployed on an electronic device or on the running object corresponding to the target computing container.

[0144] For example, the running objects include a first running object and a second running object, and the target computing containers include computing containers A, B, and C on the first running object, and computing containers D, E, and F on the second running object. This application can deploy role detectors 13 on the first running object and the second running object respectively.

[0145] Then, for each target computing container, this application can determine the relationship detection program corresponding to the target computing container based on the relationship detection information using the role detector 13; execute the relationship detection program to obtain the detection feedback information corresponding to the target computing container; and perform content recognition on the detection feedback information to obtain the recognition result, and determine the detection result corresponding to the target computing container based on the recognition result. Then, this application can record the detection results detected by the role detector 13 into the detection information set, such as the first detection information set and the second detection information set, through the data acquisition interface 11.

[0146] It should be noted that this application can also use the role detector 13 to create, update, or delete relationship detectors in real time. One relationship detector can correspond to one target computing container.

[0147] S205. Based on the detection results, generate container relationships between target computing containers, and configure resources for target application services based on container relationships.

[0148] Regarding step S205, after obtaining the detection results, this application can generate container relationships. Specifically, the method of "generating container relationships between target computing containers based on the detection results" can be as follows: obtaining container grouping information corresponding to the target computing containers; filtering out the computing containers to be processed that belong to the same container grouping information in the target computing containers; extracting the candidate detection results corresponding to each computing container to be processed from the detection results, and generating target container relationships between computing containers to be processed based on the candidate detection results; and using the target container relationships as the container relationships between target computing containers.

[0149] It can be understood that container relationships include at least one target container relationship corresponding to container grouping information. Specifically, for master-slave relationships, within the target computing containers corresponding to the same container grouping information, only one target computing container will have the master role information at any given time.

[0150] The method for the step "obtaining the container grouping information corresponding to the target computing container" can be found in the explanation above for "determining the container grouping information corresponding to the target computing container based on the container category", and will not be repeated here.

[0151] The step "generating target container relationships between computing containers to be processed based on candidate detection results" can be implemented as follows: based on candidate detection results, determine the role information corresponding to the computing containers to be processed; based on the role information, label the computing containers to be processed to obtain the role label corresponding to each computing container to be processed; based on the role label, determine the target container relationships between the computing containers to be processed.

[0152] Here, container relationships can refer to the relationships between target computing containers, such as master-slave, parent-child, or parallel relationships. Role labels represent the role information that a target computing container plays within the container relationship.

[0153] After generating the container relationship, this application can configure resources for the target application service. Specifically, the step "configure resources for the target application service based on the container relationship" can be performed as shown in steps S2051 to S2053:

[0154] S2051. Based on container relationships, filter out the basic computing container from the target computing container and obtain the runtime object information of the runtime object running on the basic computing container.

[0155] Regarding step S2051, the method for step "selecting basic computing containers from target computing containers based on container relationships" can be as follows: determine a preset container set corresponding to each target computing container, the preset container set including at least two target computing containers; and select at least one basic computing container from each preset container set based on container relationships.

[0156] The preset container set can be the container set corresponding to the container grouping information of the target computing container. The step "determine the preset container set corresponding to each target computing container" can be done as follows: obtain the container grouping information corresponding to the target computing container, and determine the target computing container corresponding to the container grouping information; use the target computing container corresponding to the container grouping information as the preset container set.

[0157] The step "based on container relationships, select at least one basic computing container in each preset container set" can be done as follows: based on container relationships, query the basic computing container whose role information is the target role information in each preset container set; when a basic computing container exists, extract at least one basic computing container from the preset container set.

[0158] After the basic computing container is selected, this application can obtain the runtime object information in order to configure the basic computing container. Specifically, for step S2051, the method of "obtaining the runtime object information of the runtime object running for the basic computing container" can be: obtaining the runtime object information of the runtime object running for the basic computing container through the scheduler; or, calling the object information acquisition interface and obtaining the runtime object information of the runtime object running for the basic computing container through the object information acquisition interface.

[0159] The running object can refer to the object used to run the basic computing container. For example, the running object can be a node, which can be a virtual machine or a physical machine, etc.

[0160] S2052. In the running object information, filter out the target running object information corresponding to the target running object of each basic computing container.

[0161] Among them, the running object information can refer to relevant information about the running object, such as the unique identifier of the running object.

[0162] Regarding step S2052, the method for "filtering out the target running object information of the target running object corresponding to each basic computing container from the running object information" can be as follows: obtain the preset object running information and compare the preset object running information with the running object information; when the running object information is the same as the preset object running information, use the running object information as the target running object information of the target object corresponding to the basic computing container.

[0163] S2053. Configure the basic computing container according to the target running object information so that the target running object can run the basic computing container.

[0164] Regarding step S2053, "Configure the basic computing container according to the target running object information so that the target running object can run the basic computing container" can be done as follows: Based on the target running object information, schedule the basic computing container to the target running object so that the target running object can run the basic computing container.

[0165] It is understood here that the target running object can be a running object in a fault domain. This application schedules the basic computing container to the corresponding target running object, which can prevent the phenomenon that the failure or malfunction of a target running object will cause most computing containers to become unavailable.

[0166] Furthermore, after the step of "performing relationship probing on the target computing container based on relationship probing information to obtain the probing results corresponding to the target computing container", this application can perform relationship probing on the target computing container again. Specifically, this application can generate a set of probing information corresponding to the target computing container based on the relationship probing information; when performing relationship probing on the target computing container again, the target relationship probing information corresponding to the target computing container is extracted from the probing information set; based on the target relationship probing information, the target computing container is subjected to relationship probing to obtain candidate probing results corresponding to the target computing container; based on the candidate probing results, the container relationship is updated to obtain the updated container relationship, and the target application service is configured with resources based on the updated container relationship.

[0167] The detection information set may include the relationship detection information corresponding to each target computing container; specifically, the detection information set may include the detection data combination corresponding to each target computing container, and the detection data combination includes the relationship detection information and the detection results corresponding to the relationship detection information.

[0168] For example, such as Figure 6 As shown, the probe information set can include probe data combinations corresponding to each target computing container. Each probe data combination is associated with a corresponding target computing container. For example, the target computing container pod-0 is associated with a probe data combination, and the probe data combination associated with the target computing container pod-0 includes the relationship probe information and probe results corresponding to the target computing container pod-0.

[0169] Specifically, the step "extracting target relationship detection information corresponding to the target computing container from the detection information set" can be done as follows: based on the target container identifier corresponding to the target computing container, extract the target relationship detection information corresponding to the target computing container from the detection information set.

[0170] Specifically, the method of "based on the target relationship detection information, perform relationship detection on the target computing container and obtain the target detection result corresponding to the target computing container" can be referred to the aforementioned step of "based on the relationship detection information, perform relationship detection on the target computing container and obtain the detection result corresponding to the target computing container", and will not be repeated here.

[0171] Specifically, the step "update the container relationship based on the target detection results to obtain the updated container relationship" can be done as follows: based on the target detection results, label the target computing container to obtain the target role label corresponding to the target computing container, and delete the role label corresponding to the target computing container under the container relationship; based on the target role label, generate candidate container relationships, and replace the container relationship with the candidate container relationship to obtain the updated container relationship.

[0172] Specifically, the method for "configuring resources for the target application service based on the updated container relationship" can be found in the aforementioned method of "configuring resources for the target application service based on the container relationship", and will not be repeated here.

[0173] In summary, this application allows users to configure personalized preset relationship detection information, i.e., role detection methods, and to perceive the container relationships of target computing containers in real time through the configured relationship detection information. Container relationships are typically master-slave relationships, thereby improving the reliability and stability of cloud-native stateful services. For example, by deploying all target computing containers with all role information as master across physical machines or availability zones, high availability across physical machines or availability zones can be achieved. Alternatively, in auxiliary management or high availability processes, in scaling down or eviction scenarios, target computing containers with role information as slave can be prioritized, thereby ensuring the stability of long-connection services for target computing containers with role information as master.

[0174] This application embodiment can acquire data to be processed, including container status information of each computing container corresponding to the target application service, and computing containers including computing units configured for the target application service; based on the container status information, at least one target computing container is selected from the computing containers, and container annotation information corresponding to the target computing container is obtained; the container category corresponding to each target computing container is identified in the container annotation information, and the relationship detection information corresponding to each target computing container is queried in a preset detection information set according to the container category; when relationship detection information exists, relationship detection is performed on the target computing containers based on the relationship detection information to obtain the detection result corresponding to the target computing containers; based on the detection result, container relationships between target computing containers are generated, and resource configuration is performed on the target application service based on the container relationships. Since this application can filter out at least one target computing container from the computing containers based on the container status of the computing containers corresponding to the target application service, and then use the container annotation information corresponding to the target computing container to identify the container category of the target computing container, so as to obtain the relationship detection information corresponding to the target computing container, the detection results of the target computing container can be detected using the relationship detection information, so as to generate the container relationship between the target computing containers based on the detection results, and thus the container relationship can be used to configure resources for the target application service to improve the stability and reliability of the target application service.

[0175] Based on the method described in the above embodiments, the following examples will provide further detailed explanations.

[0176] In this embodiment, the data processing device is specifically integrated into an electronic device, which serves as a server.

[0177] like Figure 7 As shown, a data processing method, the specific process of which is illustrated in S701 to S707:

[0178] S701, The electronic device acquires data to be processed, which includes container status information of each computing container corresponding to the target application service.

[0179] The computing container includes computing units configured for the target application service.

[0180] Specifically, this application can obtain the service identifier of the target application service; call the data acquisition interface, and obtain the container status information of the computing container corresponding to the target application service based on the service identifier through the data acquisition interface; and generate data to be processed based on the container status information.

[0181] S702. The electronic device, based on the container status information, filters out at least one target computing container from the computing containers and obtains the container annotation information corresponding to the target computing container.

[0182] For example, an electronic device can identify the state type of a computing container from the container state information; when the state type is the target state type, it determines that the computing container is the target computing container; when the state type is not the target state type, it determines that the computing container is not the target computing container.

[0183] For example, an electronic device can obtain the container identifier of a target computing container; based on the container identifier of the target computing container, it can access the target field corresponding to the target computing container to obtain the container annotation information corresponding to the target computing container from the target field.

[0184] S703. The electronic device identifies the container category corresponding to each target computing container in the container annotation information, and queries the relationship detection information corresponding to each target computing container in the preset detection information set according to the container category.

[0185] For example, an electronic device can extract the service type corresponding to each target computing container from the container annotation information; based on the service type, it can determine the container category corresponding to the target computing container.

[0186] For example, an electronic device can determine the container grouping information corresponding to a target computing container based on the container category, and obtain a preset detection information set corresponding to the container grouping information; and query the relationship detection information corresponding to each target computing container in the preset detection information set.

[0187] S704. When relationship detection information exists in electronic devices, the relationship detection program corresponding to the target computing container shall be determined based on the relationship detection information.

[0188] For example, when the relationship detection information includes parameters corresponding to the relationship detection program, the electronic device can obtain the initial relationship detection program corresponding to the target computing container; by fusing the parameters and the initial relationship detection program, the relationship detection program corresponding to the target computing container can be obtained.

[0189] S705. The electronic device executes the relationship detection program to obtain the detection feedback information corresponding to the target computing container.

[0190] S706. The electronic device performs content recognition on the detection feedback information, obtains the recognition result, and determines the detection result corresponding to the target computing container based on the recognition result.

[0191] For example, electronic devices can compare the format of the detection feedback information with a preset format; when the format is the same as the preset format, the identification result indicates that the detection feedback information contains detection status information; when the format is different from the preset format, the identification result indicates that the detection feedback information contains detection object information.

[0192] For example, when the identification result indicates that the detection feedback information contains detection status information, the electronic device can obtain the detection result corresponding to the target computing container based on the detection status information; when the identification result indicates that the detection feedback information contains detection object information, the electronic device can determine the detection result corresponding to the target computing container based on the detection object information.

[0193] S707: Based on the detection results, the electronic device generates container relationships between target computing containers and configures resources for target application services based on these container relationships.

[0194] For example, an electronic device can retrieve the container grouping information corresponding to the target computing container; filter out the computing containers to be processed that belong to the same container grouping information in the target computing containers; extract the candidate detection results corresponding to each computing container to be processed from the detection results, and generate the target container relationship between the computing containers to be processed based on the candidate detection results; and use the target container relationship as the container relationship between the target computing containers.

[0195] For example, an electronic device can filter out the basic computing container from the target computing container based on container relationships, and obtain the running object information of the running object running for the basic computing container; in the running object information, filter out the target running object information of the target running object corresponding to each basic computing container; and configure the basic computing container according to the target running object information so that the target running object runs the basic computing container.

[0196] Furthermore, after step S707, this application can perform relationship detection on the target computing container again. For example, the electronic device can generate a set of detection information corresponding to the target computing container based on the relationship detection information. When performing relationship detection on the target computing container again, the target relationship detection information corresponding to the target computing container is extracted from the set of detection information. Based on the target relationship detection information, the target computing container is subjected to relationship detection to obtain candidate detection results corresponding to the target computing container. Based on the candidate detection results, the container relationship is updated to obtain the updated container relationship, and the target application service is configured with resources based on the updated container relationship.

[0197] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0198] This application embodiment can acquire data to be processed, including container status information of each computing container corresponding to the target application service, and computing containers including computing units configured for the target application service; based on the container status information, at least one target computing container is selected from the computing containers, and container annotation information corresponding to the target computing container is obtained; the container category corresponding to each target computing container is identified in the container annotation information, and the relationship detection information corresponding to each target computing container is queried in a preset detection information set according to the container category; when relationship detection information exists, relationship detection is performed on the target computing containers based on the relationship detection information to obtain the detection result corresponding to the target computing containers; based on the detection result, container relationships between target computing containers are generated, and resource configuration is performed on the target application service based on the container relationships. Since this application can filter out at least one target computing container from the computing containers based on the container status of the computing containers corresponding to the target application service, and then use the container annotation information corresponding to the target computing container to identify the container category of the target computing container, so as to obtain the relationship detection information corresponding to the target computing container, the detection results of the target computing container can be detected using the relationship detection information, so as to generate the container relationship between the target computing containers based on the detection results, and thus the container relationship can be used to configure resources for the target application service to improve the stability and reliability of the target application service.

[0199] To better implement the above methods, embodiments of this application also provide a data processing device that can be integrated into an electronic device, such as a server or terminal. The terminal may include a tablet computer, a laptop computer, and / or a personal computer.

[0200] For example, such as Figure 8 As shown, the data processing device may include an acquisition unit 301, a filtering unit 302, an identification unit 303, a detection unit 304, and a generation unit 305, as follows:

[0201] (1) Obtain unit 301;

[0202] The acquisition unit 301 can be used to acquire data to be processed, which includes container status information of each computing container corresponding to the target application service, and the computing container includes computing units configured for the target application service.

[0203] For example, the acquisition unit 301 can also be used to retrieve the container attribute information of the computing container corresponding to the target application service; group the computing containers based on the container attribute information to obtain the grouping information of the computing containers; acquire multiple preset relationship detection information, and configure the computing containers according to the grouping information and the preset relationship detection information to obtain at least one preset detection information set.

[0204] For example, the acquisition unit 301 can be used to determine candidate computing containers in the same group in the computing containers according to the grouping information; filter out target relationship detection information from the preset relationship detection information, and configure the information of the candidate computing containers based on the target relationship detection information to obtain the configured detection information corresponding to each candidate computing container; and generate at least one preset detection information set based on the configured detection information.

[0205] (2) Filtering unit 302;

[0206] The filtering unit 302 can be used to filter out at least one target computing container in the computing container based on the container status information, and obtain the container annotation information corresponding to the target computing container;

[0207] (3) Identification unit 303;

[0208] The identification unit 303 can be used to identify the container category corresponding to each target computing container in the container annotation information, and query the relationship detection information corresponding to each target computing container in the preset detection information set according to the container category.

[0209] For example, the identification unit 303 can be used to determine the container grouping information corresponding to the target computing container based on the container category, and obtain the preset detection information set corresponding to the container grouping information; and query the relationship detection information corresponding to each target computing container in the preset detection information set.

[0210] (4) Detection unit 304;

[0211] The detection unit 304 can be used to perform relationship detection on the target computing container based on the relationship detection information when relationship detection information exists, and obtain the detection result corresponding to the target computing container.

[0212] For example, the detection unit 304 can be used to perform relationship detection on the target computing container based on relationship detection information to obtain the detection feedback information corresponding to the target computing container; perform content recognition on the detection feedback information to obtain the recognition result, and determine the detection result corresponding to the target computing container based on the recognition result.

[0213] For example, the detection unit 304 can be used to determine the relationship detection program corresponding to the target computing container based on the relationship detection information; execute the relationship detection program to obtain the detection feedback information corresponding to the target computing container.

[0214] (5) Generation unit 305;

[0215] The generation unit 305 can be used to generate container relationships between target computing containers based on the detection results, and to configure resources for target application services based on the container relationships.

[0216] For example, generation unit 305 can be used to filter out basic computing containers from target computing containers based on container relationships, and obtain the running object information of the running object running for the basic computing container; in the running object information, filter out the target running object information of the target running object corresponding to each basic computing container; and configure the basic computing container according to the target running object information so that the target running object runs the basic computing container.

[0217] For example, generation unit 305 can be used to generate a set of detection information corresponding to the target computing container based on the relationship detection information; when the target computing container is re-detected, the target relationship detection information corresponding to the target computing container is extracted from the detection information set; based on the target relationship detection information, the target computing container is re-detected to obtain the target detection result corresponding to the target computing container; the container relationship is updated according to the target detection result to obtain the updated container relationship, and the target application service is configured with resources based on the updated container relationship.

[0218] As can be seen from the above, the acquisition unit 301 of this application embodiment can be used to acquire data to be processed, the data to be processed includes container status information of each computing container corresponding to the target application service, and the computing container includes computing units configured for the target application service; the filtering unit 302 can be used to filter at least one target computing container in the computing containers based on the container status information, and acquire container annotation information corresponding to the target computing container; the identification unit 303 can be used to identify the container category corresponding to each target computing container in the container annotation information, and query the relationship detection information corresponding to each target computing container in the preset detection information set according to the container category; the detection unit 304 can be used to perform relationship detection on the target computing container based on the relationship detection information when relationship detection information exists, and obtain the detection result corresponding to the target computing container; the generation unit 305 can be used to generate container relationships between target computing containers according to the detection results, and configure resources for the target application service based on the container relationships. Since this application can filter out at least one target computing container from the computing containers based on the container status of the computing containers corresponding to the target application service, and then use the container annotation information corresponding to the target computing container to identify the container category of the target computing container, so as to obtain the relationship detection information corresponding to the target computing container, the detection results of the target computing container can be detected using the relationship detection information, so as to generate the container relationship between the target computing containers based on the detection results, and thus the container relationship can be used to configure resources for the target application service to improve the stability and reliability of the target application service.

[0219] This application also provides an electronic device, such as... Figure 9As shown, it illustrates a structural schematic diagram of the electronic device involved in an embodiment of the present invention, specifically:

[0220] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0221] The processor 401 is the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes software programs and / or modules stored in the memory 402, and calls data stored in the memory 402, to perform various functions and process data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.

[0222] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0223] The electronic device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0224] The electronic device may also include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0225] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 runs the applications stored in the memory 402 to realize various functions, as follows:

[0226] The process involves: acquiring data to be processed, including container status information for each computing container corresponding to the target application service, where each computing container includes computing units configured for the target application service; selecting at least one target computing container from the computing containers based on the container status information and acquiring the container annotation information corresponding to the target computing container; identifying the container category corresponding to each target computing container from the container annotation information and querying the relationship detection information corresponding to each target computing container from a preset detection information set based on the container category; when relationship detection information exists, performing relationship detection on the target computing containers based on the relationship detection information to obtain the detection results corresponding to the target computing containers; generating container relationships between target computing containers based on the detection results and configuring resources for the target application service based on the container relationships.

[0227] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0228] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by a computer program, or by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0229] Therefore, embodiments of this application provide a computer-readable storage medium storing a computer program that can be loaded by a processor to execute any of the data processing methods provided in embodiments of this application.

[0230] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0231] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0232] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the data processing methods provided in the embodiments of this application, the beneficial effects that any of the data processing methods provided in the embodiments of this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0233] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the methods provided in the various optional implementations of the above embodiments.

[0234] The data processing method and related equipment provided in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A data processing method, characterized in that, include: Acquire data to be processed, the data to be processed including container status information of each computing container corresponding to the target application service, the computing container including computing units configured for the target application service; Based on the container status information, at least one target computing container is selected from the computing containers, and the container annotation information corresponding to the target computing container is obtained; The container category corresponding to each target computing container is identified in the container annotation information, and the relationship detection information corresponding to each target computing container is queried in the preset detection information set according to the container category; When relationship detection information exists, relationship detection is performed on the target computing container based on the relationship detection information to obtain the detection result corresponding to the target computing container; Based on the detection results, container relationships between the target computing containers are generated, and resource configuration is performed on the target application service based on the container relationships.

2. The data processing method according to claim 1, characterized in that, The step of performing relationship detection on the target computing container based on the relationship detection information to obtain the detection result corresponding to the target computing container includes: Based on the relationship detection information, relationship detection is performed on the target computing container to obtain the detection feedback information corresponding to the target computing container; Content recognition is performed on the detection feedback information to obtain the recognition result, and the detection result corresponding to the target computing container is determined based on the recognition result.

3. The data processing method according to claim 2, characterized in that, The step of performing relationship detection on the target computing container based on the relationship detection information to obtain the detection feedback information corresponding to the target computing container includes: Based on the relationship detection information, determine the relationship detection program corresponding to the target computing container; The relationship detection procedure is executed to obtain the detection feedback information corresponding to the target computing container.

4. The data processing method according to claim 3, characterized in that, The step of determining the detection result corresponding to the target computing container based on the identification result includes: When the identification result indicates that the detection feedback information has detection status information, the detection result corresponding to the target computing container is obtained based on the detection status information, and the detection status information is the response status information when the relationship detection program is executed; When the identification result indicates that the detection feedback information contains detection object information, the detection result corresponding to the target computing container is determined based on the detection object information, wherein the detection object information is the information of the target object accessed by the relationship detection program.

5. The data processing method according to claim 1, characterized in that, Before querying the preset detection information set for each target to calculate the corresponding relationship detection information based on the container category, the method further includes: Obtain the container attribute information of the computing container corresponding to the target application service; Based on the container attribute information, the computing containers are grouped to obtain the grouping information of the computing containers; Multiple preset relationship detection information are acquired, and the computing container is configured according to the grouping information and the preset relationship detection information to obtain at least one preset detection information set.

6. The data processing method according to claim 5, characterized in that, The step of configuring the computing container according to the grouping information and the preset relationship detection information to obtain at least one preset detection information set includes: Based on the grouping information, candidate computing containers in the same group are identified within the computing containers; Target relationship detection information is selected from the preset relationship detection information, and based on the target relationship detection information, information configuration is performed on the candidate computing containers to obtain the configured detection information corresponding to each candidate computing container. Based on the configured detection information, at least one preset detection information set is generated.

7. The data processing method according to claim 5, characterized in that, The step of grouping the computing containers based on the container attribute information to obtain the grouping information of the computing containers includes: Based on the container attribute information, the computing containers are classified to obtain at least one container set, and the container set includes at least one computing container; When grouping indication information for the container set is obtained, the function indication information of each computing container in the container set is obtained, and the computing containers in the container set are grouped based on the function indication information to obtain the grouping information of the computing containers. When the grouping indication information is not obtained, the grouping information of the computing container is generated based on the container set.

8. The data processing method according to claim 1, characterized in that, The step of querying the relation detection information corresponding to each target container in the preset detection information set according to the container category includes: Based on the container category, determine the container grouping information corresponding to the target computing container, and obtain the preset detection information set corresponding to the container grouping information; Query the relationship detection information corresponding to each target computing container in the preset detection information set.

9. The data processing method according to claim 1, characterized in that, The resource configuration for the target application service based on the container relationship includes: Based on the container relationship, a basic computing container is selected from the target computing containers, and the running object information of the running object running for the basic computing container is obtained. From the running object information, the target running object information corresponding to each basic computing container is selected. Based on the target running object information, the basic computing container is configured so that the target running object runs the basic computing container.

10. The data processing method according to claim 9, characterized in that, The step of selecting basic computing containers from the target computing containers based on the container relationships includes: Determine a preset container set corresponding to each target computing container, wherein the preset container set includes at least two target computing containers; Based on container relationships, at least one basic computing container is selected from each preset container set.

11. The data processing method according to claim 1, characterized in that, After performing relationship detection on the target computing container based on the relationship detection information and obtaining the detection result corresponding to the target computing container, the method further includes: Based on the relationship detection information, a detection information set corresponding to the target computing container is generated; When the target computing container is probed again, the target relationship probe information corresponding to the target computing container is extracted from the probe information set; Based on the target relationship detection information, relationship detection is performed on the target computing container to obtain the target detection result corresponding to the target computing container; Based on the target detection results, the container relationship is updated to obtain the updated container relationship, and the target application service is configured with resources based on the updated container relationship.

12. A data processing apparatus, characterized in that, include: An acquisition unit is used to acquire data to be processed, the data to be processed including container status information of each computing container corresponding to the target application service, the computing container including a computing unit configured for the target application service; The filtering unit is used to filter out at least one target computing container from the computing containers based on the container status information, and to obtain the container annotation information corresponding to the target computing container. The identification unit is used to identify the container category corresponding to each target computing container in the container annotation information, and query the relationship detection information corresponding to each target computing container in the preset detection information set according to the container category; The detection unit is used to perform relationship detection on the target computing container based on the relationship detection information when relationship detection information exists, and obtain the detection result corresponding to the target computing container; The generation unit is used to generate container relationships between the target computing containers based on the detection results, and to configure resources for the target application service based on the container relationships.

13. An electronic device, characterized in that, It includes a processor and a memory, the memory storing an application program, and the processor running the application program within the memory to perform the steps of the data processing method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted for loading by a processor to perform the data processing method according to any one of claims 1 to 11.

15. A computer program product, characterized in that, The computer program product stores a computer program adapted for loading by a processor to execute the data processing method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Equipment determination method and device, storage medium and electronic device

    CN116339927A

  • Probe updating method and device, equipment and storage medium

    CN116775204A