Data processing method and related equipment
By obtaining and analyzing the status information of the computing container in a cloud-native environment, identifying and detecting the container relationship, the application service stability and reliability problems caused by the instability of the computing container are solved, and more efficient resource allocation and service management are achieved.
Patent Information
- Application Number
- CN202311486681.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-08
- Publication Date
- 2025-05-09
AI Technical Summary
In cloud-native scenarios, the instability of computing containers makes it difficult to obtain the relationship between containers, which in turn affects the stability and reliability of application services.
By obtaining the pending data, including the container status information of each computing container corresponding to the target application service, the target computing container is filtered out, its container annotation information is obtained, the container category is identified, and the relationship detection information is queried based on the category, relationship detection is performed, container relationships are generated, and resource configuration is performed based on this relationship.
Improve the stability and reliability of application services, and ensure service continuity and performance by effectively managing the relationship between computing containers.
Smart Images

Figure CN119960896A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud technology, and in particular to a data processing method and related equipment, wherein the related equipment includes a data processing device, an electronic device, and a computer-readable storage medium. Background Art
[0002] In cloud-native scenarios, container orchestration and management platforms such as Kubernetes can be used to manage and deploy application services. Application services can be implemented by computing containers in the container orchestration and management platform. Computing containers are the smallest deployable computing units created and managed in the container orchestration and management platform, and can be used to run application services.
[0003] For application services, the relationship between computing containers can be used to manage services, making the services more stable and reliable. However, since computing containers are not stable objects, computing containers may be restarted, rebuilt, or drift, which makes it difficult to obtain the relationship between computing containers, and thus difficult to use the relationship between computing containers to manage services, resulting in unstable and unreliable application services.
[0004] In summary, there are currently problems with the stability and reliability of application services. Summary of the invention
[0005] The embodiments of the present application provide a data processing method and related equipment, which can improve the stability and reliability of application services.
[0006] A data processing method, comprising:
[0007] Acquire data to be processed, where the data to be processed includes container status information of each computing container corresponding to the target application service, where the computing container includes a computing unit configured for the target application service;
[0008] 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;
[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 there is relationship detection information, based on the relationship detection information, a relationship detection is performed on the target computing container to obtain a detection result corresponding to the target computing container;
[0011] According to the detection results, the container relationship between the target computing containers is generated, and based on the container relationship, the resources of the target application service are configured.
[0012] Accordingly, an embodiment of the present application provides a data processing device, including:
[0013] An acquisition unit may be 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;
[0014] A screening unit may be used to screen out at least one target computing container from the computing containers based on the container status information, and obtain container annotation information corresponding to the target computing container;
[0015] An identification unit may be used to identify a 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 a preset detection information set according to the container category;
[0016] The detection unit may be used to perform a relationship detection on the target computing container based on the relationship detection information when there is relationship detection information, and obtain a detection result corresponding to the target computing container;
[0017] The generation unit can be used to generate container relationships between target computing containers according to the detection results, and perform resource configuration for the target application service based on the container relationships.
[0018] Optionally, in some embodiments, the detection unit can be specifically used to perform relationship detection on the target computing container based on the relationship detection information to obtain detection feedback information corresponding to the target computing container; perform content recognition on the detection feedback information to obtain a recognition result, and determine the detection result corresponding to the target computing container based on the recognition result.
[0019] Optionally, in some embodiments, the detection unit may be specifically configured to determine a relationship detection program corresponding to the target computing container based on the relationship detection information; and execute the relationship detection program to obtain 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 status information when the recognition result indicates that the detection feedback information contains detection status information, and the detection status information is response status information when executing the relationship detection program; when the recognition result indicates that the detection feedback information contains detection object information, determine the detection result corresponding to the target computing container based on the detection object information, and the detection object information is information of the target object accessed by the relationship detection program.
[0021] Optionally, in some embodiments, the acquisition unit can also be used to obtain 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; 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.
[0022] Optionally, in some embodiments, the acquisition unit can also be used to determine candidate computing containers of the same group in the computing container based on the grouping information; filter out target relationship detection information from the preset relationship detection information, and configure the candidate computing containers based on the target relationship detection information to obtain the post-configuration detection information corresponding to each candidate computing container; and generate at least one preset detection information set based on the post-configuration detection information.
[0023] Optionally, in some embodiments, the acquisition unit can also be used to classify computing containers based on container attribute information to obtain at least one container set, where the container set includes at least one computing container; when grouping indication information for the container set is obtained, function indication information of each computing container in the container set is obtained, and based on the function indication information, the computing containers in the container set are grouped to obtain grouping information of the computing containers; when the grouping indication information is not obtained, the grouping information of the computing containers is generated based on the container set.
[0024] Optionally, in some embodiments, the identification unit can 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 can be specifically used to filter out the basic computing container in the target computing container based on the container relationship, 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; according to the target running object information, configure the basic computing container so that the target running object runs the basic computing container.
[0026] Optionally, in some embodiments, the generation unit can 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; based on the container relationship, at least one basic computing container is screened out in each preset container set.
[0027] Optionally, in some embodiments, the generation unit can also be used to generate a detection information set 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 a target detection result corresponding to the target computing container; according to the target detection result, the container relationship is updated to obtain an updated container relationship, and based on the updated container relationship, resources are configured for the target application service.
[0028] In addition, an embodiment of the present invention further provides 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 by the embodiment of the present invention.
[0029] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for loading by a processor to execute any data processing method provided in the embodiment of the present application.
[0030] In addition, an embodiment of the present application also provides a computer program product, including a computer program, which implements any data processing method provided in the embodiment of the present application when the computer program is executed by a processor.
[0031] The embodiment of the present application can obtain data to be processed, and the data to be processed includes container status information of each computing container corresponding to the target application service, and the computing container includes a computing unit configured for the target application service; based on the container status information, at least one target computing container is screened out from the computing container, 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 container based on the relationship detection information to obtain a detection result corresponding to the target computing container; based on the detection result, a container relationship between the target computing containers is generated, and based on the container relationship, resource configuration is performed on the target application service. Since the present application can screen out at least one target computing container from the computing containers based on the container status of the computing container corresponding to the target application service, and then can 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, in this way, the detection result 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 result, so that 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 It is a scenario schematic diagram of the data processing method provided in the embodiment of the present application;
[0034] Figure 2 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0035] Figure 3 is a schematic diagram of obtaining a preset detection information set provided in an embodiment of the present application;
[0036] Figure 4 is a schematic diagram of grouping computing containers provided in an embodiment of the present application;
[0037] Figure 5 is a schematic diagram of obtaining detection results provided in an embodiment of the present application;
[0038] Figure 6 A schematic diagram of the detection data combination provided in an embodiment of the present application;
[0039] Figure 7 FIG2 is a flow chart of a data processing method provided in an embodiment of the present application;
[0040] Figure 8 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0041] Fig. 9 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0043] The embodiments of the present application provide a data processing method, device, electronic device and computer-readable storage medium. The data processing device can be integrated in an electronic device, which can be a server or a terminal.
[0044] Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, car terminal, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0045] For example, see Figure 1 Taking the data processing device integrated in the electronic device as an example, the electronic device can obtain 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 a computing unit configured for the target application service; based on the container status information, at least one target computing container is screened out from the computing container, 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 the preset detection information set according to the container category; when the relationship detection information exists, the 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 result, the container relationship between the target computing containers is generated, and based on the container relationship, the resource configuration is performed on the target application service.
[0046] Among them, the present application can process the container status information corresponding to the computing container to obtain the relationship detection information corresponding to the target computing container, so that 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 perform resource allocation for the target application service corresponding to the target computing container to improve the reliability and stability of the target application service.
[0047] Among them, the present application involves cloud technology, which refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize the calculation, storage, processing, and sharing of data. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application, which can form a resource pool and be used on demand, flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites, and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately, and all kinds of industry data require strong system backing support, which can only be achieved through cloud computing.
[0048] It should be noted that the description order of the following embodiments 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 specifically integrated into an electronic device, which can be a server or a terminal. The terminal can include a tablet computer, a laptop computer, a personal computer (PC), a wearable device, a virtual reality device, or other smart devices that can acquire data.
[0050] The present application provides a data processing method, comprising:
[0051] Obtain 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; based on the container status information, screen out at least one target computing container from the computing container, and obtain container annotation information corresponding to the target computing container; 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 a preset detection information set according to the container category; when relationship detection information exists, perform relationship detection on the target computing container based on the relationship detection information to obtain a detection result corresponding to the target computing container; generate a container relationship between the target computing containers according to the detection result, and perform resource configuration on the target application service based on the container relationship.
[0052] Regarding the data processing method mentioned above, Figure 2 As shown, the specific process of the data processing method is shown in steps S201 to S205:
[0053] S201. Obtain data to be processed including container status information corresponding to a target application service.
[0054] The data to be processed includes container status information of each computing container of the target application service.
[0055] The so-called target application service may refer to a functional service provided by one or more applications or components, such as a database service, a cache service, etc. Specifically, the target application service may be a stateful service, which may refer to a service that maintains certain state information when processing a request. This means that a stateful service will be affected by previous requests when processing different requests and may have an impact on subsequent requests.
[0056] The so-called computing container may include a computing unit configured for a target application service; the specific implementation of the target application service may be realized by running the computing container. Each computing container may carry a sub-service function in the target application service. Each computing container may include at least one sub-computing container.
[0057] The so-called container status information may refer to information about the scheduling status of the computing container. The scheduling status may include completed scheduling and uncompleted scheduling.
[0058] For example, when a computing container is scheduled to a node, the computing container can be said to have completed scheduling; when a computing container is not scheduled to a node, the computing container can be said to have not completed scheduling.
[0059] For step S201, for example, the method of "obtaining data to be processed including container status information corresponding to the target application service" can be: obtaining the service identifier of the target application service; calling the data acquisition interface, and obtaining the container status information of the computing container corresponding to the target application service based on the service identifier through the data acquisition interface; generating data to be processed based on the container status information.
[0060] The data acquisition interface may be an interface for acquiring container status information of a computing container, wherein the container status information may be used as data to be processed.
[0061] For step S201, for example, the method of "obtaining data to be processed including container status information corresponding to the target application service" can be: obtaining a status information acquisition instruction; based on the 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 container status information, generating data to be processed.
[0062] S202: Based on the container status information, select at least one target computing container from the computing containers, and obtain container annotation information corresponding to the target computing container.
[0063] The container annotation information describes information related to the computing container; for example, the container annotation information may include the service type to which the computing container belongs, the number of sub-computing containers included in the computing container, and the container identifier of the computing container.
[0064] The so-called service type may refer to the type of service function that the computing container can be responsible for. The service function may refer to the service function that the target application service can provide; the service function may include database service function and computing service function; the service type may include database service type and computing service type.
[0065] Accordingly, the database service type may refer to the type of database service function that the computing container can be responsible for; the computing service type may refer to the type of computing service function that the computing container can be responsible for.
[0066] After the present application obtains the container status information, the target computing container can be screened out using the container status information. Specifically, for step S202, the method of "screening out at least one target computing container in the computing container based on the container status information" can be: identifying the status type of the computing container in the container status information; when the status type is the target status type, determining that the computing container is the target computing container; when the status type is not the target status type, determining that the computing container is not the target computing container.
[0067] Among them, the status type may include a completed scheduling type and an unfinished scheduling type; when the container status information is information that the computing container has completed scheduling, the status type corresponding to the computing container is a completed scheduling type; when the container status information is information that the computing container has not completed scheduling, the status type corresponding to the computing container is an unfinished scheduling type.
[0068] The target state type may be an unscheduled type. It can be understood that the target computing container selected by the present application is an unscheduled computing container, that is, the target computing container is a container that has not been scheduled to a node.
[0069] For another example, for step S202, the method of "selecting at least one target computing container from the computing containers based on the container status information" can be: comparing the container status information with the 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, taking the computing container corresponding to the container status information as the target computing container.
[0070] The preset status information may be information indicating that the computing container has not completed scheduling.
[0071] After filtering out the target computing container, the present application can obtain the container annotation information corresponding to the target computing container, so as to obtain the container relationship by 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 of "obtaining container annotation information corresponding to the target computing container" may be: obtaining a container identifier of the target computing container; and based on the container identifier of the target computing container, accessing a 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, the present 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; based on the service type, determining the container category corresponding to the target computing container.
[0075] Specifically, the step of "determining the container category corresponding to the target computing container based on the service type" can be: obtaining a mapping relationship set, the mapping relationship set including the mapping relationship between the preset service type and the preset container category; determining the container category corresponding to the target computing container based on the mapping relationship set and the service type.
[0076] Among them, the container category and the service type are in a one-to-one correspondence. For example, when the service type is database service, the container category of the target computing container is the database service category; when the service type is computing service, the container category of the target computing container is the computing service category.
[0077] For step S203, the method of the step of "querying the relationship detection information corresponding to each target computing container in the preset detection information set according to the container category" can be: 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 may refer to the information of the service group to which the target computing container belongs; for example, the service group may 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 the database service function; when the service function is a computing service function, all computing containers in the service group are containers that can provide the computing service function.
[0079] The preset detection information set includes preset relationship detection information corresponding to each computing container; the so-called preset relationship detection information may refer to relevant information used to detect the role information of the computing container in the container relationship; or relevant information used to detect the container relationship of the computing container. The relationship detection information belongs to the preset relationship detection information.
[0080] After obtaining the container category of the target computing container, the present 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: obtaining a container list corresponding to the same container category, the container list including a target container identifier of at least one target computing container; and using the container list as the container grouping information corresponding to the target container.
[0081] After obtaining the container grouping information, the present application can use the container grouping information to obtain the preset detection information set. Specifically, the step of "obtaining the preset detection information set corresponding to the container grouping information" can be: obtaining a correspondence set, the correspondence set including the correspondence between the preset container grouping information and the preset detection information set; based on the correspondence set and the container grouping information, determining the preset detection information set corresponding to the container grouping information.
[0082] Then, the step of "querying the relationship detection information corresponding to each target computing container in the preset detection information set" can be: obtaining the target container identifier of the target computing container; based on the target container identifier, querying 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, the present application may also generate a preset detection information set before the step of "querying the relationship detection information corresponding to each target computing container in the preset detection information set according to the container category", for details, see steps S2031 to S2033:
[0084] S2031. Obtain container attribute information of the computing container corresponding to the target application service.
[0085] The container attribute information may represent the attribute information of the computing container, and the so-called attribute may include the characteristics and function labels of the computing container. The characteristics may include the IP address and life cycle of the computing container; the function label may refer to the label of the service function corresponding to the computing container.
[0086] For step S2031, the method of the step "obtaining container attribute information of the computing container corresponding to the target application service" can be: obtaining multiple preset computing containers; based on the service identifier of the target application service, extracting the computing container corresponding to the target application service from the preset computing container; obtaining the container attribute information corresponding to the computing container.
[0087] Specifically, the step of “obtaining container attribute information corresponding to the computing container” may be performed by: obtaining a container tag of the computing container; and extracting the container attribute information corresponding to the computing container from a preset storage space corresponding to the computing container based on the container tag.
[0088] S2032: Group the computing containers based on the container attribute information to obtain grouping information of the computing containers.
[0089] The aforementioned container grouping information may be included in the grouping information.
[0090] In order to facilitate the configuration of preset relationship detection information for computing containers, the present application may use grouping information to configure information for computing containers. Specifically, for step S2032, the step of "grouping computing containers based on container attribute information to obtain grouping information of computing containers" may be: based on container attribute information, classifying computing containers to obtain at least one container set, the container set including at least one computing container; when obtaining grouping indication information for the container set, obtaining function indication information of each computing container in the container set, and based on the function indication information, grouping computing containers in the container set to obtain grouping information of computing containers; when the grouping indication information is not obtained, generating grouping information of computing containers based on the container set.
[0091] The grouping indication information may refer to information used to indicate grouping of computing containers in the container set.
[0092] Specifically, the step of "classifying computing containers based on container attribute information to obtain at least one container set" can be as follows: based on the container attribute information, determining the container category of each computing container; for each container category, obtaining the computing containers corresponding to the same container category, and taking the computing containers corresponding to the same container category as the container set.
[0093] Among them, the method of "determining the container category of each computing container based on the container attribute information" can be: extracting the function label of the computing container from the container attribute information; obtaining a target mapping relationship set, the target mapping relationship set including the mapping relationship between the preset function label and the preset container category; based on the target mapping relationship set, determining the container category of each computing container.
[0094] The function indication information may refer to a sub-function service corresponding to a computing container in a container set; and the sub-function service may refer to a sub-function service included in a function service corresponding to the container set.
[0095] Specifically, the step of "obtaining function indication information of each computing container in the container set" may be performed by: searching for function indication information in the container attribute information; when function indication information exists, extracting function indication information of each computing container in the container set from the container attribute information.
[0096] Specifically, the step of "grouping the computing containers in the container set based on the function indication information to obtain the grouping information of the computing containers" can be: among the computing containers in the container set, determining the reference computing containers with the same function indication information, and taking the reference computing containers with the same function indication information as the sub-container set; based on the sub-container set, generating the grouping information corresponding to the computing container.
[0097] Specifically, the step of "generating grouping information of computing containers based on the container set" may be performed by obtaining a container identifier of each computing container in the container set, and generating grouping information of computing containers based on the container identifier corresponding to the same container set.
[0098] Specifically, before the step of "obtaining the function indication information of each computing container in the container set", the grouping indication information may be obtained. Specifically, the method of "obtaining the grouping indication information for the container set" may be: determining whether the container attribute information in the container set includes different function indication information; and when different function indication information exists, triggering the grouping indication information for the container set.
[0099] S2033: Acquire 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] For step S2033, the method of "obtaining multiple preset relationship detection information" can be: obtaining a service identifier corresponding to the target application service, and based on the service identifier, extracting multiple preset relationship detection information corresponding to the target application service in the local database. Alternatively, displaying an information input page corresponding to the target application service, the information input page includes an information input control; in response to an input operation on the information input control, generating multiple preset relationship detection information corresponding to the target application service.
[0101] After obtaining multiple preset relationship detection information, the present 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 preset detection information set" can be: determining candidate computing containers of the same group in the computing container according to the grouping information; screening out target relationship detection information from the preset relationship detection information, and configuring the candidate computing containers based on the target relationship detection information to obtain the configured detection information corresponding to each candidate computing container; generating at least one preset detection information set based on the configured detection information.
[0102] Specifically, the step of "selecting the target detection information from the preset relationship detection information" may be: any preset relationship detection information may be randomly selected as the target detection information. Alternatively, a sequence number corresponding to the preset relationship detection information is obtained; and based on the sequence number, the target detection information is selected from the preset detection information.
[0103] Specifically, the step of "configuring information for candidate computing containers based on target relationship detection information to obtain post-configuration detection information corresponding to each candidate computing container" may be: for each candidate computing container, obtaining the path corresponding to the candidate computing container; mounting the target relationship detection information to the path corresponding to the candidate computing container to obtain post-configuration detection information corresponding to the candidate computing container. Alternatively, for each candidate computing container, binding the target relationship detection information to the candidate computing container to obtain post-configuration detection information corresponding to the candidate computing container.
[0104] Specifically, the step of "generating at least one preset detection information set based on the post-configuration detection information" may be: obtaining target post-configuration detection information corresponding to each grouping information in the post-configuration detection information, and using the target post-configuration detection information as the preset detection information set.
[0105] Steps S2031 to S2033 are described below with reference to a specific example. Figure 3As shown, the present application can display an information input page corresponding to the target application service, the information input page including 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, the present 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 the grouping information of 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 container set A, the present application can group container set A to obtain grouping information of sub-container set a and grouping information of sub-container set b; and use the grouping information of sub-container set a and grouping information of sub-container set b as the grouping information of the calculation container.
[0108] For example, for container set B, when the present application does not require further grouping of container set B, 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 may 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, the relationship detection information A may be configured to computing container a1 and computing container a2 in sub-container set a, and computing container b1 and computing container b2 in sub-container set b, so that a preset detection information set of sub-container set a and a preset detection information set of sub-container set b may be obtained.
[0110] The present 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 that the preset detection information set of the container set B can be obtained.
[0111] Regarding the above grouping of computing containers, it can be understood that a typical example is that the target application service can be a database service, a public display system, etc. For a target application service, the computing containers under the target application service can be grouped. The grouping rule is generally to group the target application services of the same type into a container set. The container set can be further subdivided into sub-container sets. When there is no need to subdivide the computing containers in the container set into sub-container sets, the container set can no longer be subdivided.
[0112] Regarding the above grouping of computing containers, the target application service is further described here by taking the database service as an example. 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, the present 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 container set corresponding to the storage sub-service, the present application may divide the first container set into two sub-container sets, such as a first sub-container set and a second sub-container set, wherein the first sub-container set includes two computing containers such as computing container d1 and computing container d2, and the second sub-container set 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, the present application does not require the second container set to be divided into sub-container sets. Based on this, the present application does not need to divide the second container set into sub-container sets, wherein 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 figure describes the process of configuring preset relationship detection information for computing containers. First, the user can submit a personalized role detection description definition, that is, preset relationship detection information. The preset relationship detection information here is for grouping, that is, the 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 result corresponding to the target computing container based on the configured preset relationship detection information.
[0117] Steps S201 to S203 are described with a specific example. Figure 5 As shown, the electronic device may include a data processing interface 11 and an information detection controller 12 .
[0118] The so-called data processing interface 11 can be used at least to filter out at least one target computing container. The so-called information detection controller 12 can be used at least to obtain the relationship detection information of the target computing container.
[0119] For example, the present application may obtain 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 may be screened out from the computing containers through the data processing interface 11.
[0120] Next, the present 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 to obtain the relationship detection information corresponding to the target computing container.
[0121] Then, the present application can record the relationship 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 here that when the relationship detection information is updated, the present application can obtain the updated relationship detection information, and update the detection information set based on the updated relationship detection information.
[0123] S204: When there is relationship detection information, perform relationship detection on the target computing container based on the relationship detection information to obtain a detection result corresponding to the target computing container.
[0124] With respect to step S204, the method of 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" 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 detection feedback information corresponding to the target computing container.
[0126] The detection feedback information may refer to feedback information obtained after detecting the target computing container.
[0127] For step S2041, the method of the step of "based on the relationship detection information, performing relationship detection on the target computing container to obtain detection feedback information corresponding to the target computing container" can be: based on the relationship detection information, determining the relationship detection program corresponding to the target computing container; executing the relationship detection program to obtain the detection feedback information corresponding to the target computing container.
[0128] The relationship detection program may refer to a program used to perform relationship detection on a target computing container.
[0129] There are many ways to perform the step of "determining the relationship detection program corresponding to the target computing container based on the relationship detection information". For example, when the relationship detection information includes a unique identifier of the relationship detection program, the relationship detection program corresponding to the relationship detection information can be extracted from multiple preset relationship detection programs based on the relationship detection information, and the relationship detection program corresponding to the relationship detection information is used as the relationship detection program corresponding to the target computing container. For another example, when the relationship detection information includes parameters corresponding to the relationship detection program, the initial relationship detection program corresponding to the target computing container can be obtained; the parameters and the initial relationship detection program are merged to obtain the relationship detection program corresponding to the target computing container.
[0130] S2042: Perform content recognition on the detection feedback information to obtain a 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, the present application can perform content recognition on the detection feedback information. Specifically, for step S2042, the method of "performing content recognition on the detection feedback information to obtain a recognition result" can be: 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 detection status information is the response status information when executing the relationship detection program, for example, the detection status information can be represented as a status code; the detection object information is the information of the target object accessed by the relationship detection program, for example, the target object can be a port, a URL, etc.; for example, the detection object information can be represented as the port number of the port.
[0133] Among them, the detection result can indicate the role information of the target computing container; the role information can refer to the information of the functional role undertaken by the target computing container in the container set or container group; for example, the role information can include master role information and slave role information; when the role information of the target computing container is the master role information, it indicates that the target computing container is responsible for coordinating and managing the behavior of computing containers whose role information is the slave role information; when the role information of the target computing container is the 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 the master role information.
[0134] After obtaining the recognition result, the present application can use the recognition result to determine the detection result. Specifically, the step of "determining the detection result corresponding to the target computing container based on the recognition result" can be as follows: when the recognition result indicates that the detection feedback information contains detection status information, based on the detection status information, obtain the detection result corresponding to the target computing container; when the recognition result indicates that the detection feedback information contains detection object information, determine the detection result corresponding to the target computing container based on the detection object information.
[0135] Specifically, the step of "obtaining the detection result corresponding to the target computing container based on the detection status information" can be: comparing the detection status information with the preset detection status information; when the detection status information is the same as the preset status 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 is executed successfully. In this case, the detection result obtained is accurate.
[0137] For example, the relationship detection program includes a first relationship detection program exec, a second relationship detection program http, and a third relationship detection program grpc.
[0138] 1) For the first relationship detection program exec: If the detection status information returned by the first relationship detection program exec at the end of the execution is status code 0, then the output result corresponding to the relationship detection program can be directly obtained, and the output result can be used as the detection result; if the detection status information is a status code other than 0, in this case it can be determined that the first relationship detection program exe has an execution error and the detection result is unknown.
[0139] 2) For the second relationship detection program http: If the second relationship detection program http accesses the corresponding http interface and the detection status information obtained is a status code 200, then the output result corresponding to the relationship detection program can be directly obtained and the output result is used as the detection result. If the detection status information is a status code other than 200, then it is determined that the second relationship detection program http fails to access the http interface and the detection result is unknown.
[0140] 3) For the third relationship detection program grpc: If the third relationship detection program grpc is executed successfully and the obtained detection status information is status code 0, then the output result corresponding to the relationship detection program can be directly obtained and the output result can be used as the detection result; the other cases are error status codes and the role result is unknown.
[0141] Specifically, the step of "determining the detection result corresponding to the target computing container based on the detection object information" can be as follows: when the detection object information is port information, determining that the detection result corresponding to the target computing container indicates that the role information of the target computing container is the main role information; when the detection object information is not port information, determining that the detection result corresponding to the target computing container indicates that the role information of the target computing container is not the main role information.
[0142] For example, the relationship detection program may include a fourth relationship detection program tcp. If the fourth relationship detection program tcp can access the corresponding tcp port, that is, when the detection object information is tcp port information, the detection result corresponding to the target computing container indicates that the role information of the target computing container is the primary role information; when the detection object information is not tcp port information, it is determined that the detection result corresponding to the target computing container indicates that the role information of the target computing container is not the primary role information, but the secondary role information.
[0143] Regarding step S204, a specific example is used here to illustrate. Figure 5 As shown, the present application may also include a role detector 13, which may be used at least to perform relationship detection on the target computing container to obtain a detection result corresponding to the target computing container. The role detector 13 may be deployed on an electronic device or on a running object corresponding to the target computing container.
[0144] For example, the running object includes a first running object and a second running object, and the target computing container includes computing container A, computing container B, and computing container C on the first running object, and computing container D, computing container E, and computing container F on the second running object. The present application can deploy the role detector 13 on the first running object and the second running object respectively.
[0145] Then, for each target computing container, the present application can determine the relationship detection program corresponding to the target computing container based on the relationship detection information through 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, the present application can record the detection result 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 here that the present application can also create, update or delete a relationship detection program in real time through the role detector 13. One relationship detection program can correspond to one target computing container.
[0147] S205. Generate a container relationship between target computing containers according to the detection result, and perform resource configuration for the target application service based on the container relationship.
[0148] For step S205, after obtaining the detection results, the present application can generate a container relationship. Specifically, the step of "generating a container relationship between target computing containers based on the detection results" can be: obtaining container grouping information corresponding to the target computing container; screening out the to-be-processed computing containers belonging to the same container grouping information in the target computing container; extracting the candidate detection results corresponding to each to-be-processed computing container from the detection results, and generating the target container relationship between the to-be-processed computing containers based on the candidate detection results; and using the target container relationship as the container relationship between the target computing containers.
[0149] It can be understood that the container relationship includes a target container relationship corresponding to at least one container grouping information. For the master-slave relationship, among the target computing containers corresponding to the same container grouping information, only one target computing container has the master role information at the same time.
[0150] Among them, the method of the step "obtaining the container grouping information corresponding to the target computing container" can refer to the explanation of the above "determining the container grouping information corresponding to the target computing container based on the container category", which will not be repeated here.
[0151] Among them, the step of "generating a target container relationship between the computing containers to be processed based on the candidate detection results" can be as follows: based on the candidate detection results, determining the role information corresponding to the computing containers to be processed; based on the role information, labeling the computing containers to be processed to obtain the role label corresponding to each computing container to be processed; based on the role label, determining the target container relationship between the computing containers to be processed.
[0152] The container relationship may refer to the relationship between target computing containers, such as a master-slave relationship, a parent-child relationship, or a parallel relationship, etc. The role label represents the role information of the target computing container in the container relationship.
[0153] After the container relationship is generated, the application can configure resources for the target application service. Specifically, the method of the step "configuring resources for the target application service based on the container relationship" can be as shown in steps S2051 to S2053:
[0154] S2051. Based on the container relationship, filter out the basic computing container in the target computing container, and obtain the running object information of the running object running on the basic computing container.
[0155] For step S2051, the step of "filtering out basic computing containers in the target computing container based on the container relationship" can be performed by: determining a preset container set corresponding to each target computing container, the preset container set including at least two target computing containers; based on the container relationship, filtering out at least one basic computing container in each preset container set.
[0156] The preset container set may be a container set corresponding to the container grouping information of the target computing container. The step of "determining the preset container set corresponding to each target computing container" may be performed by: obtaining the container grouping information corresponding to the target computing container, and determining the target computing container corresponding to the container grouping information; and using the target computing container corresponding to the container grouping information as the preset container set.
[0157] Among them, the step of "based on the container relationship, screening out at least one basic computing container in each preset container set" can be as follows: based on the container relationship, querying the basic computing container whose role information is the target role information in each preset container set; when a basic computing container exists, extracting at least one basic computing container from the preset container set.
[0158] After filtering out the basic computing container, the present application can obtain the running object information so as to configure the basic computing container. Specifically, for step S2051, the step of "obtaining the running object information of the running object running for the basic computing container" can be: obtaining the running object information of the running object running for the basic computing container through the scheduler; or, calling the object information acquisition interface, and obtaining the running object information of the running object running for the basic computing container through the object information acquisition interface.
[0159] The running object may refer to an object used to run the basic computing container. For example, the running object may be a node, and the node may be a virtual machine or a physical machine, etc.
[0160] S2052. Filter out the target running object information of the target running object corresponding to each basic computing container from the running object information.
[0161] The running object information may refer to relevant information of the running object, such as a unique identifier of the running object.
[0162] For step S2052, the method of the step of "filtering out the target running object information of the target running object corresponding to each basic computing container in the running object information" can be: obtaining the preset object running information, and comparing the preset object running information with the running object information; when the running object information is the same as the preset object running information, using 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 runs the basic computing container.
[0164] For step S2053, the method of "configuring the basic computing container according to the target running object information so that the target running object runs the basic computing container" can be: based on the target running object information, scheduling the basic computing container to the target running object so that the target running object runs the basic computing container.
[0165] It can be understood here that the target running object can be a running object in the fault domain. The present application schedules the basic computing container to the corresponding target running object, which can prevent a target running object from failing or malfunctioning, causing most computing containers to be unavailable.
[0166] In addition, after 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", the present application can perform relationship detection on the target computing container again. Specifically, the present application can generate a detection information set corresponding to the target computing container based on the relationship detection information; when performing relationship detection on the target computing container again, extract the target relationship detection information corresponding to the target computing container from the detection information set; based on the target relationship detection information, perform relationship detection on the target computing container to obtain candidate detection results corresponding to the target computing container; based on the candidate detection results, update the container relationship to obtain an updated container relationship, and based on the updated container relationship, perform resource configuration for the target application service.
[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 result corresponding to the relationship detection information.
[0168] For example, Figure 6 As shown, the detection information set may include a detection data combination corresponding to each target computing container. Each detection data combination is associated with the corresponding target computing container. For example, the target computing container pod-0 is associated with the detection data combination, and the detection data combination associated with the target computing container pod-0 includes the relationship detection information and detection results corresponding to the target computing container pod-0.
[0169] Specifically, the step of “extracting target relationship detection information corresponding to the target computing container from the detection information set” may be performed by extracting target relationship detection information corresponding to the target computing container from the detection information set based on the target container identifier corresponding to the target computing container.
[0170] Specifically, the method of the step of "performing relationship detection on the target computing container based on the target relationship detection information to obtain the target detection result corresponding to the target computing container" can refer to the aforementioned 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", which will not be repeated here.
[0171] Specifically, the step of "updating the container relationship according to the target detection result to obtain the updated container relationship" can be as follows: based on the target detection result, labeling the target computing container to obtain the target role label corresponding to the target computing container, and deleting the role label corresponding to the target computing container under the container relationship; generating a candidate container relationship according to the target role label, and replacing the container relationship with the candidate container relationship to obtain the updated container relationship.
[0172] Specifically, the method of the step “configuring resources for the target application service based on the updated container relationship” can be specifically referred to the aforementioned method of “configuring resources for the target application service based on the container relationship”, which will not be repeated here.
[0173] In summary, the present application allows users to configure personalized preset relationship detection information, that is, the role detection method, and perceive the container relationship of the target computing container in real time through the configured relationship detection information. The container relationship is usually a master-slave relationship, thereby improving the reliability and stability of cloud-native stateful services. For example: by deploying the target computing container with all role information as the master role information across physical machines or across availability zones, the purpose of high availability across physical machines or across availability zones is achieved. Alternatively, in the auxiliary management and control process or the high availability process, in the scenario of scaling down or eviction, the target computing container with role information as the slave role information is preferentially selected, thereby ensuring the stability of the long connection service of the target computing container with role information as the master role information.
[0174] The embodiment of the present application can obtain data to be processed, and the data to be processed includes container status information of each computing container corresponding to the target application service, and the computing container includes a computing unit configured for the target application service; based on the container status information, at least one target computing container is screened out from the computing container, 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 container based on the relationship detection information to obtain a detection result corresponding to the target computing container; based on the detection result, a container relationship between the target computing containers is generated, and based on the container relationship, resource configuration is performed on the target application service. Since the present application can screen out at least one target computing container from the computing containers based on the container status of the computing container corresponding to the target application service, and then can 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, in this way, the detection result 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 result, so that 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] According to the method described in the above embodiment, the following is further described in detail with examples.
[0176] In this embodiment, the data processing device is specifically integrated into an electronic device, and the electronic device is a server.
[0177] like Figure 7 As shown, a data processing method, the specific process is shown in S701 to S707:
[0178] S701. The electronic device obtains data to be processed, where the data to be processed includes container status information of each computing container corresponding to a target application service.
[0179] The computing container includes computing units configured for target application services.
[0180] Specifically, the present 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 selects at least one target computing container from the computing containers based on the container status information, and obtains container annotation information corresponding to the target computing container.
[0182] For example, the electronic device may identify the state type of the computing container in the container state information; when the state type is the target state type, determine that the computing container is the target computing container; when the state type is not the target state type, determine that the computing container is not the target computing container.
[0183] For example, the electronic device may obtain a container identifier of a target computing container; based on the container identifier of the target computing container, access a target field corresponding to the target computing container to obtain 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, the electronic device may extract the service type corresponding to each target computing container from the container annotation information; and determine the container category corresponding to the target computing container based on the service type.
[0186] For example, the electronic device may 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.
[0187] S704: When there is relationship detection information, the electronic device determines a relationship detection program corresponding to the target computing container based on the relationship detection information.
[0188] For example, when the relationship detection information includes parameters corresponding to a relationship detection program, the electronic device may obtain an initial relationship detection program corresponding to the target computing container; and fuse the parameters with the initial relationship detection program to obtain a relationship detection program corresponding to the target computing container.
[0189] S705: The electronic device executes a relationship detection program to obtain detection feedback information corresponding to the target computing container.
[0190] S706: The electronic device performs content recognition on the detection feedback information to obtain a recognition result, and determines the detection result corresponding to the target computing container based on the recognition result.
[0191] For example, the electronic device may compare the format of the detection feedback information with a preset format; when the format is the same as the preset format, it is determined that the recognition result indicates that the detection feedback information contains detection status information; when the format is different from the preset format, it is determined that the recognition result indicates that the detection feedback information contains detection object information.
[0192] For example, when the recognition 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 recognition 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: The electronic device generates a container relationship between target computing containers according to the detection result, and performs resource configuration for the target application service based on the container relationship.
[0194] For example, the electronic device can obtain the container grouping information corresponding to the target computing container; filter out the to-be-processed computing containers belonging to the same container grouping information in the target computing container; extract the candidate detection results corresponding to each to-be-processed computing container from the detection results, and generate the target container relationship between the to-be-processed computing containers based on the candidate detection results; and use the target container relationship as the container relationship between the target computing containers.
[0195] For example, based on the container relationship, the electronic device can filter out the basic computing container in the target computing container, and obtain the running object information of the running object running on 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; according to the target running object information, configure the basic computing container so that the target running object runs the basic computing container.
[0196] Furthermore, after step S707, the present application may perform relationship detection on the target computing container again. For example, the electronic device may generate a detection information set corresponding to the target computing container based on the relationship detection information; when performing relationship detection on the target computing container again, extract the target relationship detection information corresponding to the target computing container from the detection information set; based on the target relationship detection information, perform relationship detection on the target computing container to obtain candidate detection results corresponding to the target computing container; based on the candidate detection results, update the container relationship to obtain an updated container relationship, and based on the updated container relationship, perform resource configuration for the target application service.
[0197] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0198] The embodiment of the present application can obtain data to be processed, and the data to be processed includes container status information of each computing container corresponding to the target application service, and the computing container includes a computing unit configured for the target application service; based on the container status information, at least one target computing container is screened out from the computing container, 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 container based on the relationship detection information to obtain a detection result corresponding to the target computing container; based on the detection result, a container relationship between the target computing containers is generated, and based on the container relationship, resource configuration is performed on the target application service. Since the present application can screen out at least one target computing container from the computing containers based on the container status of the computing container corresponding to the target application service, and then can 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, in this way, the detection result 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 result, so that 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] In order to better implement the above method, an embodiment of the present application also provides a data processing device, which can be integrated into an electronic device, such as a server or a terminal. The terminal may include a tablet computer, a laptop computer and / or a personal computer.
[0200] For example, Figure 8 As shown, the data processing device may include an acquisition unit 301, a screening unit 302, an identification unit 303, a detection unit 304 and a generation unit 305, as follows:
[0201] (1) Acquisition unit 301;
[0202] The acquisition unit 301 may be used to acquire data to be processed, where the data to be processed includes container status information of each computing container corresponding to the target application service, and the computing container includes a computing unit configured for the target application service.
[0203] For example, the acquisition unit 301 can also be used to 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 obtained, and according to the grouping information and the preset relationship detection information, the computing container is configured to obtain at least one preset detection information set.
[0204] For example, the acquisition unit 301 can be used to determine candidate computing containers of the same group in the computing container based on the grouping information; filter out the target relationship detection information in the preset relationship detection information, and configure the candidate computing containers based on the target relationship detection information to obtain the post-configuration detection information corresponding to each candidate computing container; and generate at least one preset detection information set based on the post-configuration detection information.
[0205] (2) screening unit 302;
[0206] The screening unit 302 may be configured to screen out at least one target computing container from the computing containers based on the container status information, and obtain container annotation information corresponding to the target computing container;
[0207] (3) identification unit 303;
[0208] The identification unit 303 may 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 may be configured to perform a relationship detection on the target computing container based on the relationship detection information when there is relationship detection information, and obtain a 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 the relationship detection information to obtain detection feedback information corresponding to the target computing container; perform content recognition on the detection feedback information to obtain a 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 may be configured to determine a relationship detection program corresponding to the target computing container based on the relationship detection information; and execute the relationship detection program to obtain detection feedback information corresponding to the target computing container.
[0214] (5) generating unit 305;
[0215] The generating unit 305 may be configured to generate container relationships between target computing containers according to the detection result, and perform resource configuration for the target application service based on the container relationships.
[0216] For example, the generation unit 305 can be used to filter out the basic computing container in the target computing container based on the container relationship, 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; according to the target running object information, configure the basic computing container so that the target running object runs the basic computing container.
[0217] For example, the generation unit 305 can be used to generate a detection information set 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; according to the target detection result, the container relationship is updated to obtain the updated container relationship, and based on the updated container relationship, the target application service is configured with resources.
[0218] As can be seen from the above, the acquisition unit 301 of the embodiment of the present application can be used to acquire data to be processed, and the data to be processed includes container status information of each computing container corresponding to the target application service, and the computing container includes a computing unit configured for the target application service; the screening unit 302 can be used to screen 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; 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 there is relationship detection information, and obtain the detection result corresponding to the target computing container; the generation unit 305 can be used to generate the container relationship between the target computing containers according to the detection result, and perform resource configuration for the target application service based on the container relationship. Since the present application can screen out at least one target computing container from the computing containers based on the container status of the computing container corresponding to the target application service, and then can 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, in this way, the detection result 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 result, so that 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] The present application also provides an electronic device, such as Fig. 9As shown, it shows a schematic diagram of the structure of an 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 appreciate that Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0221] The processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the electronic device and processes 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 processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned 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, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an 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 a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. 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 for supplying power to each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 403 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0224] The electronic device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0225] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, as follows:
[0226] Obtain 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; based on the container status information, screen out at least one target computing container from the computing container, and obtain container annotation information corresponding to the target computing container; 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 a preset detection information set according to the container category; when relationship detection information exists, perform relationship detection on the target computing container based on the relationship detection information to obtain a detection result corresponding to the target computing container; generate a container relationship between the target computing containers according to the detection result, and perform resource configuration on the target application service based on the container relationship.
[0227] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0228] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0229] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute any data processing method provided in the embodiment of the present application.
[0230] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0231] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0232] Since the instructions stored in the computer-readable storage medium can execute the steps in any data processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any data processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0233] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the method provided in various optional implementations provided in the above embodiments.
[0234] The above is a detailed introduction to a data processing method and related equipment provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data processing method, characterized in that: include: Acquire data to be processed, where the data to be processed includes container status information of each computing container corresponding to the target application service, where the computing container includes a computing unit configured for the target application service; Based on the container status information, at least one target computing container is screened out from the computing containers, and container annotation information corresponding to the target computing container is acquired; 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; When there is relationship detection information, based on the relationship detection information, performing relationship detection on the target computing container to obtain a detection result corresponding to the target computing container; According to the detection result, a container relationship between the target computing containers is generated, and based on the container relationship, resource configuration is performed on the target application service.
2. The data processing method according to claim 1, characterized in that: The performing relationship detection on the target computing container based on the relationship detection information to obtain a detection result corresponding to the target computing container includes: Based on the relationship detection information, performing relationship detection on the target computing container to obtain detection feedback information corresponding to the target computing container; Content recognition is performed on the detection feedback information to obtain a recognition result, and the detection result corresponding to the target computing container is determined according to the recognition result.
3. The data processing method according to claim 2, characterized in that: The performing relationship detection on the target computing container based on the relationship detection information to obtain detection feedback information corresponding to the target computing container includes: Based on the relationship detection information, determining a relationship detection program corresponding to the target computing container; The relationship detection program is executed to obtain detection feedback information corresponding to the target computing container.
4. The data processing method according to claim 3, characterized in that: The determining, according to the identification result, a detection result corresponding to the target computing container includes: When the recognition result indicates that the detection feedback information contains detection state information, acquiring the detection result corresponding to the target computing container based on the detection state information, wherein the detection state information is response state information when the relationship detection program is executed; When the recognition 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, where the detection object information is 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 the relationship detection information corresponding to each target computing container according to the container category, the method further includes: Obtaining 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 grouping information of the computing containers; A plurality of preset relationship detection information is obtained, and information is configured on the computing container 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 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: Determine, according to the grouping information, candidate computing containers of the same group in the computing containers; Filtering out target relationship detection information from the preset relationship detection information, and configuring information for candidate computing containers based on the target relationship detection information to obtain configured detection information corresponding to each candidate computing container; At least one of the preset detection information sets is generated based on the configured detection information.
7. The data processing method according to claim 5, characterized in that: The 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, where the container set includes at least one computing container; When the 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 containers is generated based on the container set.
8. The data processing method according to claim 1, characterized in that: The querying of the relationship detection information corresponding to each target computing 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 a preset detection information set corresponding to the container grouping information; The relationship detection information corresponding to each target computing container is queried in the preset detection information set.
9. The data processing method according to claim 1, characterized in that: The configuring resources for the target application service based on the container relationship includes: Based on the container relationship, a basic computing container is screened out from the target computing container, and running object information of a running object running on the basic computing container is obtained; Filtering the target running object information of the target running object corresponding to each basic computing container from the running object information; The basic computing container is configured according to the target running object information 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 a basic computing container from the target computing container based on the container relationship includes: Determine a preset container set corresponding to each of the target computing containers, wherein the preset container set includes at least two target computing containers; Based on the container relationship, 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 a detection result corresponding to the target computing container, the method further includes: Based on the relationship detection information, generate a detection information set corresponding to the target computing container; When performing relationship detection on the target computing container again, extracting target relationship detection information corresponding to the target computing container from the detection information set; Based on the target relationship detection information, performing relationship detection on the target computing container to obtain a target detection result corresponding to the target computing container; According to the target detection result, the container relationship is updated to obtain an updated container relationship, and based on the updated container relationship, resource configuration is performed on the target application service.
12. A data processing device, characterized in that: include: An acquisition unit, configured to acquire data to be processed, wherein the data to be processed includes container status information of each computing container corresponding to a target application service, wherein the computing container includes a computing unit configured for the target application service; a screening unit, configured to screen out at least one target computing container from the computing containers based on the container status information, and obtain container annotation information corresponding to the target computing container; an identification unit, configured to identify a container category corresponding to each target computing container in the container annotation information, and query relationship detection information corresponding to each target computing container in a preset detection information set according to the container category; A detection unit, configured to perform a relationship detection on the target computing container based on the relationship detection information when there is relationship detection information, and obtain a detection result corresponding to the target computing container; A generating unit is used to generate a container relationship between the target computing containers according to the detection result, and perform resource configuration for the target application service based on the container relationship.
13. An electronic device, characterized in that: It comprises 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 execute the steps in 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, and the computer program is suitable for being loaded by a processor to execute 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, and the computer program is suitable for being loaded by a processor to execute the data processing method according to any one of claims 1 to 11.