Processing method, device, intelligent workstation and electronic device for operator service

By providing AI systems and intelligent workstations to support customization of business applications and pre-generated verification of workflows, it solves the problem of fragmentation of artificial intelligence services, reduces the cost of AI system construction and use, and improves resource utilization.

CN112069204BActive Publication Date: 2024-10-29BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202011069033.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-30
Publication Date
2024-10-29
Estimated Expiration
2040-09-30

AI Technical Summary

Technical Problem

With the penetration of artificial intelligence services in various industries, the innovation of artificial intelligence services has become fragmented and scenario-based. Each industry needs to develop AI business services independently, resulting in a waste of resources and an increase in costs.

Method used

Provide an AI system, including an intelligent workstation, application center module, task center module, data access module, workflow engine, computing resource management module and log management module, and provide reusable computing through the component market and user interface. Sub-components support customization of business applications and pre-generation and verification of workflows, enabling the sharing of computing resources and data resources.

Benefits of technology

It reduces the construction and use costs of AI systems for various business units within the enterprise, improves the innovation efficiency and resource utilization of artificial intelligence technology, and realizes the intensive development of computing resources and data resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112069204B_ABST
    Figure CN112069204B_ABST
Patent Text Reader

Abstract

The present application discloses a processing method for operator services, which relates to the field of artificial intelligence technology and can be used in the fields of machine learning and deep learning, cloud computing and cloud platforms, computer vision, natural language processing, voice interaction, etc. The specific implementation scheme is: determining at least one original field configured for the target operator service, wherein each original field is used to describe a characteristic attribute of the processing object of the target operator service; determining the operator category to which the target operator service belongs; based on the determined operator category, obtaining a mapping relationship between at least one original field and at least one standard field; based on the obtained mapping relationship, converting the characteristic attribute information of the characteristic attribute described by each original field into the characteristic attribute information described by the corresponding standard field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology and can be used in fields such as cloud computing and cloud platforms. More specifically, it relates to a processing method, device, intelligent workstation, electronic device and storage medium for operator services. Background Art

[0002] With the continuous development of artificial intelligence technology, artificial intelligence services have begun to penetrate into various industries. For example, various industries have begun to introduce artificial intelligence services in various links, resulting in the rapid fragmentation and scenario-based innovation of artificial intelligence services. Summary of the invention

[0003] The present application provides a processing method, device, electronic device, and storage medium for operator services.

[0004] According to a first aspect, a processing method for an operator service is provided, comprising: determining at least one original field configured for a target operator service, wherein each original field is used to describe a characteristic attribute of a processing object of the target operator service; determining an operator category to which the target operator service belongs; based on the determined operator category, obtaining a mapping relationship between the at least one original field and at least one standard field; based on the obtained mapping relationship, converting characteristic attribute information of the characteristic attribute described by each original field into characteristic attribute information described by a corresponding standard field.

[0005] According to a second aspect, a processing device for an operator service is provided, comprising: a first determination module, used to determine at least one original field configured for a target operator service, wherein each original field is used to describe a characteristic attribute of a processing object of the above-mentioned target operator service; a second determination module, used to determine the operator category to which the above-mentioned target operator service belongs; an acquisition module, used to acquire a mapping relationship between the above-mentioned at least one original field and at least one standard field based on the determined operator category; and a conversion module, used to convert characteristic attribute information of the characteristic attribute described by the above-mentioned each original field into characteristic attribute information described by the corresponding standard field based on the acquired mapping relationship.

[0006] According to a third aspect, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method of an embodiment of the present application.

[0007] According to a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, including: the above-mentioned computer instructions are used to enable the above-mentioned computer to execute the method of the embodiment of the present application.

[0008] According to a fifth aspect, a computer program product is provided, comprising a computer program, which implements the above method when executed by a processor.

[0009] According to the technical solution provided in the embodiment of the present application, for each type of operator service, a set of standard fields for internal use is defined, and at the same time, a mapping relationship between the original fields of each manufacturer and the standard fields is defined to uniformly describe the same feature attributes.

[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.

[0012] Figure 1A The system architecture according to the embodiment of the present application is exemplarily shown;

[0013] Figure 1B The application scenarios according to the embodiments of the present application are exemplified;

[0014] Figure 1C A block diagram of an intelligent workstation according to an embodiment of the present application is exemplarily shown;

[0015] Figure 2A A flowchart of a method for processing a workflow according to an embodiment of the present application is exemplarily shown;

[0016] Figure 2B and Figure 2C A schematic diagram exemplarily shows a face recognition application and a face recognition workflow according to an embodiment of the present application;

[0017] Figure 2D The working principle diagram of the AI ​​system according to the embodiment of the present application is exemplified;

[0018] Figure 3A A flowchart of a processing method for a business application according to an embodiment of the present application is exemplarily shown;

[0019] Figure 3B A schematic diagram exemplarily shows how to merge multiple application instances into one business task according to an embodiment of the present application;

[0020] Figure 3C The schematic diagram of batch processing of multiple application instances according to an embodiment of the present application is exemplarily shown;

[0021] Figure 4 A flowchart of a processing method for an operator service according to an embodiment of the present application is exemplarily shown;

[0022] Figure 5A A flowchart of a processing method for an operator service according to another embodiment of the present application is exemplarily shown;

[0023] Figure 5B A schematic diagram of deploying an operator service according to an embodiment of the present application is exemplarily shown;

[0024] Figure 5C A schematic diagram of generating a service image according to an embodiment of the present application is exemplarily shown;

[0025] Figures 5D to 5F A schematic diagram exemplarily shows three combination relationships among operations, operator services, and containers according to an embodiment of the present application;

[0026] Figure 5G A schematic diagram of a model hybrid according to an embodiment of the present application is exemplarily shown;

[0027] Fig. 6A A flowchart of a processing method for an operator service according to another embodiment of the present application is exemplified;

[0028] Figure 6B A schematic diagram of traffic scheduling according to an embodiment of the present application is exemplarily shown;

[0029] Fig. 7A A block diagram of a device for processing a workflow according to an embodiment of the present application is exemplarily shown;

[0030] Figure 7B A block diagram of a processing device for business applications according to an embodiment of the present application is exemplarily shown;

[0031] Figure 7C A block diagram of a processing device for an operator service according to an embodiment of the present application is exemplarily shown;

[0032] Fig.7D A block diagram of a processing device for an operator service according to another embodiment of the present application is exemplarily shown;

[0033] Fig. 7E A block diagram of a processing device for an operator service according to another embodiment of the present application is exemplarily shown;

[0034] Figure 8 It is an electronic device that can implement the method and device of the embodiments of the present application. DETAILED DESCRIPTION

[0035] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0036] In the process of implementing the embodiments of the present application, the inventors discovered the following problems in the related technologies: as artificial intelligence services began to penetrate into various industries, each industry introduced artificial intelligence services in various links, and each industry developed a set of AI business services separately based on the actual application scenarios of each link, resulting in the rapid fragmentation and scenario-based trends of artificial intelligence service innovation.

[0037] In this regard, the embodiments of the present application provide a relatively complete AI system that can overcome the defects existing in the above-mentioned related technologies, such as the fragmentation and scenario-based innovation of artificial intelligence services.

[0038] It should be noted that in an embodiment of the present application, the AI ​​system may, for example, include: an intelligent workstation (A1 workstation), a processing method for workflows, business applications, operator services, computing resources, etc.

[0039] The present AI system will be described in detail below in combination with a system structure suitable for the AI ​​system, application scenarios, and illustrative embodiments for implementing the solution.

[0040] Figure 1A The system architecture according to the embodiment of the present application is exemplified.

[0041] like Figure 1A As shown, the system architecture 100A of the AI ​​system includes: an intelligent workstation 110, an application center module 120, a task center module 130, a data access module 140, a workflow engine 150, a computing resource management module 160, a tenant user management module 170, a log management module 180 and a data sharing module 190.

[0042] In simple terms, the smart workstation 110 includes a component market, a user interface, and an expansion port. The component market is used to provide various application components, including but not limited to logic components, operator components, business components, alarm components, statistical components, data sharing components, and other components. The user interface is used for users to customize various corresponding business applications for various specific application scenarios based on various application components provided by the component market. The expansion port is used to receive external input AI model files or operator services, so that the smart workstation 110 can generate corresponding operator components through the inference service framework and based on the AI ​​model files or operator services received by the expansion port to enrich and update the component market in the smart workstation 110.

[0043] The application center module 120 is used to manage various business applications defined by users in the intelligent workstation 110. The application center module 120 supports the integration of business applications produced by the intelligent workstation 110 and data accessed by the data access module 140 into an independent artificial intelligence application definition template; supports application version management, application description, application type, default parameter configuration and registration, etc.; can provide unified AI application management services to support users to quickly load applications. The data access module 140 accesses the data generated by various data sources to the AI ​​system so as to serve as data input for each application instance. The task center module 130 is used to process and manage business applications customized by the intelligent workstation 110 and business applications managed by the application center module 120, and at the same time generates corresponding workflow instances based on the interrelated data sources, business applications and execution plans in each business task, and sends the generated workflow instances to the workflow engine 150 for processing. The workflow engine 150 is used to process each workflow instance and store the processing results in the corresponding database.

[0044] The computing power resource management module 160 is used to deploy various operator services, thereby providing computing power support for the workflow engine 150 to process workflow instances. Multiple resource groups can be divided in the computing power resource management module 160, and different resource groups can be provided to different tenants for use, so as to achieve resource isolation between tenants. The tenant user management module 170 is used to configure and manage resource groups allocated to each tenant, users within each tenant, and each tenant. Therefore, in an embodiment of the present application, AI operator services can be provided to different business units (different business departments, corresponding to different tenants) in batches using a set of artificial intelligence platforms (AI systems), thereby reducing the construction cost and use cost of the AI ​​systems of various business units within the enterprise.

[0045] The log management module 180 is used to manage all logs generated in the AI ​​system.

[0046] The data sharing module 190 is used to share the data stored in the above database with external parties.

[0047] In addition, the system architecture 100A may also include: system statistics module and other modules ( Figure 1A The system statistics module is used to perform data statistics on the component market, the application center module 120, the task center module 130, and the data access module 140.

[0048] Unlike traditional cloud platforms that need to be expanded and constructed separately, the cloud platform for AI systems provided in the embodiments of the present application can realize the sharing and interconnection of computing resources, operator services, and application services, thereby realizing the intensive development of computing resources and data resources.

[0049] Figure 1B The application scenarios according to the embodiments of the present application are exemplified.

[0050] In the vehicle capture scenario, it is usually necessary to detect the vehicle model first, and then extract attributes and features for different vehicle models. Some vehicle models, such as four-wheelers, also require OCR text recognition; after that, it is necessary to perform image storage, ABF storage, and attribute / small image push processing in sequence. In addition, some vehicle models, such as four-wheelers, usually need to perform face recognition related operations after ABF storage.

[0051] Through the AI ​​system provided in the embodiment of the present application, a vehicle capture application can be customized by splicing components, and thus the following Figure 1B The vehicle capture workflow is shown in Figure 2. Figure 1B As shown, the workflow 100B includes: a start node, an end node, logic nodes such as switch and parallel, a vehicle type detection node, an OCR node, an attribute extraction node, and a feature extraction node for four-wheeled vehicles, an attribute extraction node and a feature extraction node for three-wheeled vehicles, an attribute extraction node and a feature extraction node for motorcycles, as well as an image storage node, an ABF storage node, and an attribute / thumbnail push node for four-wheeled vehicles, an image storage node, an ABF storage node, and an attribute / thumbnail push node for three-wheeled vehicles, an image storage node, an ABF storage node, and an attribute / thumbnail push node for motorcycles, and an attribute extraction node, a feature extraction node, an image storage node, and an ABF storage node for face recognition of four-wheeled vehicles.

[0052] It should be understood that in the embodiment of the present application, different task nodes in the workflow correspond to different application components in the business application.

[0053] According to an embodiment of the present application, the present application provides a smart workstation.

[0054] Figure 1C A block diagram of an intelligent workstation according to an embodiment of the present application is exemplarily shown.

[0055] like Figure 1C As shown, the intelligent workstation 110 may include a component marketplace 111 and a user interface 112 .

[0056] The component market 111 is used to provide various application components.

[0057] The user interface 112 is used for users to customize various business applications based on various application components provided by the component market 111. In various business applications, multiple application components and connection relationships between multiple application components can be defined. In addition, the multiple application components defined in various business applications include at least one operator component.

[0058] It should be noted that in the embodiment of the present application, the application components provided by the component market 111 may include but are not limited to the following types of components: logic components, operator components (AI operator components), business components, alarm components, statistical components, data sharing components, etc.

[0059] Further, each type of component may include at least one component. Exemplarily, the above-mentioned logic components may include but are not limited to the following components: sequential components, parallel components, concurrent components, skip components, termination components, conditional execution components, etc. Exemplarily, the above-mentioned operator components may include but are not limited to the following components: visual target detection components, visual target classification components, visual target feature extraction components, visual video classification components, visual pixel segmentation components, visual optical character recognition components (OCR components), speech recognition components, speech synthesis components, etc. Exemplarily, the above-mentioned business components may include but are not limited to the following components: snapshot deduplication components, target position deduplication (target position, i.e., position that does not change over a period of time) components, position relative relationship description (such as position relationship description between A and B, including but not limited to: relative distance between A and B, relative position of A and B (such as up, down, left, right, inside, outside, etc.) and other relationship description) components, etc. Exemplarily, the above-mentioned alarm components may include but are not limited to the following components: density alarm components, cross-line alarm components, attribute alarm components, traffic alarm components, duration alarm components, keyword alarm components, etc. Exemplarily, the above statistical components may include but are not limited to the following components: density statistical component, flow statistical component, duration statistical component, etc. Exemplarily, the above data sharing components may include but are not limited to the following components: data persistence component, data push component, message queue component, data cache component, etc.

[0060] In an embodiment of the present application, for specific application scenarios, especially newly emerging application scenarios, users can develop less or even no code logic, but directly select various existing application components from the component market 110 for splicing, thereby quickly customizing a complete set of business logic (business application).

[0061] Compared with the need to customize the corresponding business logic for different application scenarios in the related art, which results in the inability to use existing application components for new application scenarios, especially the inability to use existing operator components to quickly define the business logic that matches the current application scenario, through the embodiment of the present application, since the intelligent workstation is provided with a component market and a user interface, when a new application scenario appears, the user can directly select the operator component provided in the component market to quickly define the business logic that matches the current application scenario. In this case, the user (developer) does not need to develop and adapt a new logic code from the upper layer to the lower layer, thereby improving work efficiency and at the same time improving the reuse rate of each existing operator component.

[0062] As an optional embodiment, the intelligent workstation may further include: an expansion port for receiving an externally input AI model file or operator service. The intelligent workstation may generate a corresponding operator component based on the externally input AI model file or operator service through an inference service framework.

[0063] It should be noted that through the technical solution provided in the embodiments of this application, software developers are no longer fighting alone, but can deeply participate in community construction (intelligent workstation construction) and achieve innovation in artificial intelligence technology with other software developers. For example, software developers in any business department of each enterprise can input their own AI model files into the intelligent workstation, thereby registering them as corresponding operator components.

[0064] In one embodiment, the AI ​​model file can be directly input into the above-mentioned intelligent workstation through the expansion port, and then the corresponding operator service is first generated through the inference service framework in the intelligent workstation, and then registered as the corresponding operator component. In another embodiment, the corresponding operator service can also be generated externally based on the AI ​​model file, and then the operator service is directly input into the above-mentioned intelligent workstation through the expansion port, so as to be registered as the corresponding operator component in the intelligent workstation.

[0065] It should be noted that, in an embodiment of the present application, the registration information registered when registering an operator component (i.e., registering an operator service) may include, but is not limited to: the name, identifier, type, version number of the operator component, the input parameter type, output parameter type and configuration information of the operator service, the computing power quota of the operator service (including the upper and lower limits of the quota), and so on. The computing power quota of the operator service can be obtained by prediction at the time of registration. In the process of predicting the computing power quota of the operator service, different numbers of threads can be opened for the operator service, and then the computing power quota required for each operator service copy (different copies have different numbers of threads opened) is recorded (including but not limited to the number of instances, QPS, CPU share, GPU share, etc.). In addition, the configuration information of the operator service includes the original fields configured for the operator service. In an embodiment of the present application, the registration information registered when registering the operator component may also include the mapping relationship between each original field of the operator component and each standard field.

[0066] In addition, it should be noted that in the embodiment of the present application, the application components in the intelligent workstation can not only be added, but also deleted, modified and updated. Moreover, the configuration information of the operator service can be modified, so the embodiment of the present application has the ability to redefine the implemented execution logic, that is, the ability to fine-tune the details of the implemented execution logic.

[0067] Through the embodiments of the present application, a comprehensive and scalable AI platform (AI system) is provided, which can receive external incoming AI components and register them as shared components of the platform, and can support flexible expansion and iteration of AI requirements in a platform-based manner, thereby supporting continuous and developable innovation of artificial intelligence technology. In addition, through the embodiments of the present application, the general execution logic can be registered in the form of components in the intelligent workstation, so that the shared components can be reused to the greatest extent possible, and for new application scenarios, these shared components can be used to splice business applications that match the new application scenarios at the lowest cost and fastest speed.

[0068] According to an embodiment of the present application, the present application provides a method for processing a workflow.

[0069] Figure 2A A flowchart of a method for processing a workflow according to an embodiment of the present application is exemplified.

[0070] like Figure 2A As shown, the workflow processing method 200A may include operations S210 to S240.

[0071] In operation S210, a user-defined business application is obtained. In one embodiment, a user-defined business application through the above-mentioned intelligent workstation can be obtained. In the user-defined business application, multiple application components and connection relationships between multiple application components are defined, and the multiple application components may include at least one operator component.

[0072] In operation S220, a corresponding workflow is pre-generated based on the business application, wherein each of the multiple application components defined in the business application corresponds to a task node in the workflow, and the connection relationship between the multiple application components corresponds to the data flow between the multiple task nodes in the workflow.

[0073] In operation S230, a target node check is performed for each task node in the workflow, wherein the target node includes at least one of the following: an upstream node and a downstream node.

[0074] In operation S240 , in response to the target node verification passing, the workflow is saved.

[0075] For example, Figure 2B As shown in the figure, the user-defined face recognition application includes the start component, face detection component, switch component, parallel component 1 and parallel component 2, attribute extraction component, feature extraction component, parallel component 3 and parallel component 4, image storage component, ABF storage component and end component; the connection relationship between the components is shown in the figure. Figure 2B The face recognition application shown in the figure has a pre-generated face recognition workflow as follows Figure 2C As shown, it includes a start node (corresponding to the start component), a face detection node (corresponding to the face detection component), a switch node (corresponding to the switch component), parallel node 1 (corresponding to parallel component 1) and parallel node 2 (corresponding to parallel component 2), an attribute extraction node (corresponding to the attribute extraction component), a feature extraction node (corresponding to the feature extraction component), parallel node 3 (corresponding to parallel component 3) and parallel node 4 (corresponding to parallel component 4), a picture storage node (corresponding to the picture storage component), an ABF storage node (corresponding to the ABF storage component) and an end node (corresponding to the end component); the data flow between the nodes in the workflow is shown by the arrowed lines in the figure.

[0076] In an embodiment of the present application, after the workflow is pre-generated, in response to a user's request to save the workflow, the connection relationship between the task nodes in the workflow can be first verified to be accurate. In response to the verification result indicating that the connection relationship between all task nodes in the workflow is accurate, the workflow is saved; otherwise, in response to the verification result indicating that the connection relationship between any one or more task nodes in the workflow is inaccurate, an alarm is issued for the workflow.

[0077] In one embodiment, for the interconnected upstream nodes and downstream nodes, the connection relationship between the upstream node and the downstream node can be verified to be accurate based on the data type output by the upstream node and the data type output by the downstream node. In simple terms, for the interconnected upstream nodes and downstream nodes, if the data type output by the upstream node is consistent with the data type output by the downstream node, then the connection relationship between the upstream node and the downstream node is accurate; otherwise, if the data type output by the upstream node is inconsistent with the data type output by the downstream node, then the connection relationship between the upstream node and the downstream node is inaccurate. For the verified inaccurate connection relationship, an alarm can be used to inform the developer of the error. Furthermore, modification suggestions can be given for the error.

[0078] Continue to refer Figure 2C ,like Figure 2C For the face recognition workflow shown in the figure, for the start node in the figure, you can only check whether the data type output by the node is consistent with the data type input by its downstream node, i.e., the switch node. For the end node in the figure, you can only check whether the data type input by the node is consistent with the data type output by its upstream node, i.e., the ABF storage node. For other nodes in the figure except the start node and the end node, you need to check whether the data type input by this node is consistent with the data type output by its upstream node, and whether the data type output by this node is consistent with the data type output by its downstream node.

[0079] Compared with directly generating and saving the corresponding workflow according to the business application, which makes it impossible to ensure that the connection relationship between the upstream and downstream task nodes in the workflow is accurate, through the embodiment of the present application, before saving the workflow, the workflow can be pre-generated, and the connection relationship between the upstream and downstream task nodes connected to each other in the workflow can be automatically verified to be accurate. If the connection relationship between all the upstream and downstream task nodes connected to each other in the workflow is accurate, then saving the workflow can ensure that the connection relationship between the upstream and downstream task nodes in the saved workflow is accurate; otherwise, an alarm is issued so that the developer can promptly discover the deficiencies / errors of the currently defined business application.

[0080] As an optional embodiment, the method may further include the following operations.

[0081] In response to the target node failing verification, an alarm is issued for the workflow.

[0082] In an embodiment of the present application, after the workflow is pre-generated, in response to a user's request to save the workflow, the connection relationship between the task nodes in the workflow can be first verified to be accurate. In response to the verification result indicating that the connection relationship between all task nodes in the workflow is accurate, the workflow is saved; otherwise, in response to the verification result indicating that the connection relationship between any one or more task nodes in the workflow is inaccurate, an alarm is issued for the workflow.

[0083] As an optional embodiment, the method may further include: after saving the workflow, performing the following operations.

[0084] Get the input data of the saved workflow.

[0085] Based on the acquired input data and the workflow, a corresponding workflow instance is generated.

[0086] Based on the workflow instance, a corresponding workflow instance diagram is generated.

[0087] In the embodiment of the present application, after saving the workflow, the user can also configure the corresponding task, including configuring the execution plan of the task, the mapping relationship between the data source and the workflow. For example, for the face detection workflow, the configuration information of the face detection task includes: the execution plan "such as executing the face detection task at 10 pm every Monday and Tuesday" and the data source "the video stream or image stream collected by the specified camera, or the video stream or image stream collected by the camera in the specified area" and the workflow "such as Figure 2C Therefore, in an embodiment of the present application, a data source associated with the current workflow can be obtained from the task configuration information, and the input data of the workflow can be obtained through a data receiver of the data source. After obtaining the input data of the workflow (such as a video stream), the workflow can be instantiated based on the input data, that is, a workflow instance is generated, and then a schematic diagram of the workflow instance, that is, a workflow instance diagram, is generated.

[0088] It should be noted that, in the embodiment of the present application, the data access module may include multiple receivers, and different receivers are used to receive data collected by data acquisition devices produced by different manufacturers.

[0089] Through the embodiments of the present application, a workflow instance diagram is used to visualize the writing logic of an AI application, which can help developers quickly understand the internal functional structure of the AI ​​application.

[0090] Further, as an optional embodiment, the method may also include the following operations.

[0091] After generating the workflow instance, the task center module can send the generated workflow instance to the workflow engine through the distributor.

[0092] The workflow engine distributes the tasks corresponding to each task node in the workflow instance distributed by the distributor to the queue through the distribution end.

[0093] At least one execution end obtains tasks from the queue and processes them.

[0094] The execution end stores the execution result of each task in a preset storage (such as memory), and the distribution end reads the execution result of each task from the preset storage and distributes subsequent tasks to the queue based on the read execution result.

[0095] For example, Figure 2D As shown, the business application can be customized in the intelligent workstation 110 first, and then the customized business application is sent to the application center module 120. When executing the business task according to the preset execution plan, the task center module 130 obtains the business application associated with the execution plan from the application center module 120, and obtains the data source associated with the execution plan from the data access module 140 (including receivers 141 to 14n), and then generates a workflow instance, and sends the workflow instance to the workflow engine 150 through any one of the distributors 131 to 13n. The workflow engine 150 distributes the tasks corresponding to each task node in the received workflow instance to the queue 152 through the distribution terminal 151. Then, the execution terminal 1 and the execution terminal 2 obtain the tasks from the queue 152 and process them according to their own computing capabilities. After each execution of a node task, the execution terminal 1 and the execution terminal 2 will store the execution result in the memory 153, and then the distribution terminal 151 reads the execution result of each task from the memory 153 and distributes the subsequent tasks to the queue based on the read execution result. It should be understood that in a workflow instance, a task corresponding to any child node needs to be placed in the distribution terminal 151 and distributed to the queue 152 only after all tasks corresponding to all parent nodes of the child node are executed.

[0096] It should be noted that, in the embodiment of the present application, the execution end 1 and the execution end 2 can be execution ends on different virtual machines, or can be execution ends on the same virtual machine. In addition, a virtual machine can have one or more execution ends.

[0097] Through the embodiments of the present application, since all data between the distribution end and the execution end are run based on memory, the system resource usage caused by network requests can be reduced.

[0098] Furthermore, as an optional embodiment, the method may also include the following operations.

[0099] The amount of tasks acquired by each of the at least one execution end within a unit time is controlled.

[0100] Through the embodiments of the present application, the total number of tasks pulled by each execution end per second can be limited to ensure the performance of each execution end and prevent it from being overloaded.

[0101] Further, in the embodiment of the present application, the visualization of the workflow instance diagram may also include the visualization of the input parameters and output parameters of all nodes in the running process. In addition, in the embodiment of the present application, in a complete business application execution process, all components (such as operator components, business components, logic components, other components, etc.) included in the business application may also be uniformly parameterized, or may also be switched to the latest version of each component according to user request.

[0102] Alternatively, as another optional embodiment, the method may also include the following operations.

[0103] The tasks corresponding to multiple task nodes that satisfy affinity routing in the control workflow instance are all processed on the same execution end.

[0104] It should be noted that in the embodiment of the present application, the tasks corresponding to multiple task nodes with strong task correlation can be used as tasks that meet affinity routing. For example, for face detection applications, the tasks corresponding to the attribute node and the feature node are highly correlated, so the tasks corresponding to these two nodes can be used as tasks that meet affinity routing, and these two tasks can be controlled to be processed on the same execution end.

[0105] Through the embodiments of the present application, when defining the upper-layer AI application scheduling, a portion of the task nodes in the AI ​​workflow can be selected and defined as affinity routing task nodes, so that the execution end can selectively pull tasks that meet the affinity routing for processing, thereby reducing resource usage.

[0106] Alternatively, as another optional embodiment, the method may also include the following operations.

[0107] Execute the tasks corresponding to each task node in the workflow instance.

[0108] The input parameters and / or output parameters of each task node are recorded according to the task execution results.

[0109] In an embodiment of the present application, for any workflow instance, the following table (Table 1) can be generated to record the input parameters, output parameters, configuration parameters, etc. of each task node in the workflow.

[0110] Table 1

[0111]

[0112] Through the embodiments of the present application, instance record queries of all workflow instances and workflow instance details queries can be supported; it can also support the viewing and verification of the execution results of each execution step of the implemented business logic in a specific application scenario, and can effectively verify whether the functional details or effects actually implemented are consistent with expectations; it can also support unified retrieval and screening of historical execution records of a specific type of AI application to quickly locate the problem; it can implement fine-grained unified execution strategy management of AI applications, so that users can understand the input, output and configuration of each task node.

[0113] According to an embodiment of the present application, the present application provides a processing method for business applications.

[0114] Figure 3A The flowchart of the processing method for business application according to the embodiment of the present application is exemplified.

[0115] like Figure 3A As shown, the processing method 300A for business applications may include operations S310 to S330.

[0116] In operation S310 , a plurality of predefined business applications are determined.

[0117] In operation S320, at least one business task is generated based on the multiple business applications, wherein each business task includes a business application having the same data sources and execution plans among the multiple business applications.

[0118] In operation S330 , batch control is performed on the business applications included in each business task.

[0119] In the embodiment of the present application, for each business application customized by the intelligent workstation, the mapping relationship between the business application, the data source and the execution plan can be further defined. Multiple application instances with the same data source and execution plan can be combined into one business task (i.e., batch task) for execution.

[0120] For example, Figure 3B As shown, in the vehicle detection task 300B, the data sources of the three application instances, namely the four-wheel vehicle detection task 310, the three-wheel vehicle detection task 320 and the motorcycle detection task 330, are the same, which are all vehicle capture video streams collected at a certain intersection, and the execution plans of these three application instances are also the same, which are to perform vehicle detection from 10 pm to 12 am every Monday and Tuesday, so these three application instances can be combined into one business task execution.

[0121] like Figure 3B As shown, the vehicle detection task 300B includes: a start node, an end node, logic nodes such as switch and parallel, and a vehicle type detection node 301; the four-wheeled vehicle detection task 310 includes an OCR node 311, an attribute node 312, a feature node 313, a map storage node 314, an ABF storage node 315, and an attribute / small image push node 316 for four-wheeled vehicles; the three-wheeled vehicle detection task 320 includes an attribute node 321, a feature node 322, a map storage node 323, an ABF storage node 324, and an attribute / small image push node 325 for three-wheeled vehicles; the motorcycle detection task 330 includes an attribute node 331, a feature node 332, a map storage node 333, an ABF storage node 334, and an attribute / small image push node 335 for motorcycles.

[0122] In one embodiment, the task center module can quickly establish a mapping relationship between each business application and the corresponding data source and execution plan based on the user-defined task configuration information, and merge multiple application instances (multiple application instances) with the same data source and execution plan into one business task (i.e., batch task), and then uniformly open, close, and configure all application instances in the batch task in batch mode. In addition, in an embodiment of the present application, it supports the management of the opening and closing status of application instances according to the minimum granularity of each device unit within the batch task; and supports the independent management of specific application instances in the batch task.

[0123] It should be understood that traditional AI systems (such as AI vision systems) can only develop a set of dedicated AI execution logic (AI business applications) for specific scenarios. In addition, traditional AI systems can only match one set of AI execution logic for data input from the same device (i.e., data source), and cannot flexibly switch to different AI execution logics. Therefore, for traditional AI systems, only one AI application instance can be started, stopped, and configured in batches in one business task, and it does not support merging multiple application instances in one application scenario into one business task to perform batch start, stop, and configuration operations at the same time.

[0124] Unlike traditional AI systems, in the embodiments of the present application, the AI ​​system can provide a variety of implemented application components, and external developers can also share the operator components they develop into the AI ​​system. Therefore, for newly emerging application scenarios, corresponding application components can be selected from the AI ​​system for flexible splicing, thereby customizing a set of execution logic (business applications). In addition, the AI ​​system can merge business applications, that is, multiple application instances with the same data source and execution plan can be merged into one business task. Therefore, the AI ​​system can flexibly match data input from the same device (ie, data source) to different AI execution logics, and supports merging multiple application instances in an application scenario into one business task and performing batch start, stop and configuration operations at the same time.

[0125] As an optional embodiment, the method may further include: when there are at least two business applications among the above-mentioned multiple business applications that need to call the same operator service at the bottom layer, controlling the at least two business applications to reuse the operator service.

[0126] For example, Figure 3B As shown, the four-wheel vehicle detection task 310 includes a node 312 for providing attributes, a node 313 for providing features, a node 314 for storing graphs, a node 315 for ABF storage, and a node 316 for pushing attributes / small graphs; the three-wheel vehicle detection task 320 includes a node 321 for providing attributes, a node 322 for providing features, a node 323 for storing graphs, a node 324 for ABF storage, and a node 325 for pushing attributes / small graphs for three-wheel vehicles; the motorcycle detection task 330 includes a node 331 for providing attributes, a node 332 for providing features, a node 333 for storing graphs, a node 334 for ABF storage, and a node 335 for pushing attributes / small graphs for motorcycles. Therefore, the four-wheel vehicle, three-wheel vehicle, and motorcycle detection tasks can reuse operator services such as providing attributes, providing features, storing graphs, ABF storage, and pushing attributes / small graphs at the bottom layer.

[0127] It should be understood that traditional AI systems (such as AI vision systems) are designed specifically for specific scenarios because different AI execution logics (AI business applications) are developed separately. Therefore, for multiple AI business applications running on the same device, even if the upper layer references the same AI execution logic, traditional AI systems cannot reuse operator services at the bottom layer through strategies, resulting in performance loss.

[0128] Unlike traditional AI systems, in the embodiments of the present application, the AI ​​system supports multiple business applications to reuse operator services at the bottom layer, thereby saving computing power resources and improving the performance of computing power resources (including software resources, such as response times).

[0129] Further, as an optional embodiment, controlling the at least two business application multiplexing operator services mentioned above may include: controlling the same service image of the at least two business application multiplexing operator services.

[0130] Since multiple service images can be registered under the same operator service, in one embodiment, when there are multiple business applications that reuse the same operator service at the bottom layer, the multiple business applications can be controlled to reuse different service images or the same service image of the same operator service at the bottom layer.

[0131] Through the embodiments of the present application, when multiplexing operator services at the bottom layer, multiplexing the same service image of the same operator service can save the cost of hardware computing resources and improve the performance of computing resources compared to multiplexing different service images of the same operator service.

[0132] Furthermore, as an optional embodiment, controlling the same service image of the multiplexing operator service of the at least two business applications mentioned above may include: for each of the at least two business applications, when the input data of the service image is the same, controlling the service image to execute once and returning the execution result to each of the at least two business applications.

[0133] For example, business application 1 and business application 2 can reuse operator service a at the bottom layer, and service images a1 to service images a1 are registered under operator service a. n , then control business application 1 and business application 2 to preferentially reuse the same service image (such as service image a1) of operator service a. In the case where business application 1 and business application 2 reuse service image a1 of operator service a, if business application 1 first calls and executes service image a1, and business application 2 calls service image a1 later, and the input parameters when business application 1 calls service image a1 are the same as the input parameters when business application 2 calls service image a1, both of which are "xxx", then the algorithm logic of service image a1 can be executed only when business application 1 calls service image a1, and the algorithm logic of service image a1 is no longer executed when business application 2 calls service image a1, but the execution result when business application 1 calls service image a1 is directly returned to business application 2. In addition, if business application 1 and business application 2 call service image a1 at the same time, and the input parameters when business application 1 and business application 2 call service image a1 are the same, both of which are "xxx", in this case, the algorithm logic can be executed only once for service image a1, and the execution result can be returned to business application 1 and business application 2 at the same time.

[0134] Through the embodiments of the present application, when there are multiple business applications reusing the same service image of the same operator service, and the input parameters when the multiple business applications call the service image are the same, the algorithm logic can be executed only once on the service image, and the execution result of the service image can be directly shared.

[0135] Alternatively, as an optional embodiment, the method may further include: for each business task, if there are at least two identical business applications for different business parties in the current business task, merging the at least two identical business applications in the current business task.

[0136] It should be understood that in the embodiment of the present application, the same business application may be a business application with the same business logic, input parameters, output parameters and configuration parameters.

[0137] Specifically, in an embodiment of the present application, tasks of AI application instances created by multiple users can be merged. That is, if multiple users simultaneously enable execution tasks of the same AI business application on the same device or in the same area, these execution tasks can be merged into the same task under the names of multiple users.

[0138] For example, if the execution plans and data sources of application instance 1 created by user 1 and application instance 2 created by user 2 are the same, application instance 1 and application instance 2 can be combined into one task, such as task 1. If the input parameters, output parameters, and configuration parameters of application instance 1 and application instance 2 are the same, application instance 1 and application instance 2 can be combined into one application instance, such as application instance 0, in task 1, but application instance 0 needs to be registered under both user 1 and user 2.

[0139] It should be understood that when multiple users repeatedly create the same application instance on the same device, if these application instances are merged, these application instances will repeatedly occupy resources.

[0140] Through the embodiments of the present application, the same application instances created by different users are merged, which can not only simplify the entire business task, but also avoid the same application instance from repeatedly occupying resources, causing resource shortage and waste.

[0141] Further, as an optional embodiment, merging at least two identical business applications in the current business task may include: controlling at least two identical business applications to share the same application instance at the bottom layer.

[0142] Through the embodiments of the present application, applications of the same application instances created by different users are merged, such as sharing the same application instance (workflow instance) at the bottom layer. This can not only simplify the entire business task at the upper layer, but also avoid the same application instance from repeatedly occupying resources at the bottom layer, causing resource shortage and waste.

[0143] Furthermore, as an optional embodiment, controlling at least two identical business applications to share the same application instance at the bottom layer may include the following operations.

[0144] Obtain an execution result of the application instance for one business application of at least two identical business applications.

[0145] The obtained execution result is sent to all business parties associated with at least two identical business applications.

[0146] Exemplarily, after merging application instance 1 of user 1 and application instance 2 of user 2 into application instance 0, no matter application instance 1 calls workflow instance 0 first, or application instance 2 calls workflow instance 0 first, or application instance 1 and application instance 2 call workflow instance 0 at the same time, workflow instance 0 can be executed only once and the execution result can be returned to user 1 and user 2 at the same time.

[0147] Through the embodiments of the present application, after merging the application instances of multiple users, by executing the workflow instance 0 only once and allowing multiple users to share the execution results, the cost of computing resources can be saved, the performance of computing resources (such as hardware resources) can be improved, and work efficiency can also be improved.

[0148] It should be understood that for traditional AI systems, the configuration of a set of business applications is usually fixed and hard-coded, making it impossible to flexibly adjust its configuration, resulting in very limited application scenarios.

[0149] In the embodiment of the present application, users can use application definition templates to customize business applications. For defined business applications, users can also fine-tune business applications at two levels. For example, at the application level, the AI ​​operator components referenced in the business application can be adjusted. For another example, at the component level, the configuration parameters (such as various thresholds) of the AI ​​operator components referenced in the business application can be further adjusted. Therefore, the AI ​​system application provided in the embodiment of the present application is more flexible and has a wider range of application scenarios.

[0150] Exemplarily, for an AI vision system, if multiple AI vision applications share a data source (such as an image stream) and perform detection on multiple areas in the image stream respectively, for example, one AI vision application is used to perform vehicle density statistics on area A in the image, and another AI vision application is used to perform pedestrian density statistics on area B in the image, then the relevant configuration parameters of the two AI vision applications, such as the vehicle density threshold and the pedestrian density threshold, can be configured differently.

[0151] Through the embodiments of the present application, for different detection areas in the image stream, it supports differentiated configuration of configuration parameters of related components in different AI vision applications at the regional level, which can adapt to different application scenarios.

[0152] In the embodiments of the present application, Figure 3C As shown, the task center module can obtain multiple defined business applications from the application center module, and obtain the input data of each business application from receiver A, receiver B, receiver C..., and then merge tasks and workflows according to the pre-set strategy, and perform batch start and stop control (task start and stop control) on multiple application instances within the task, and then distribute the workflow instances corresponding to each batch of tasks to workflow A (including task node A, task node B, task node C...), workflow B (including task node X, task node Y, task node Z...) in the workflow engine through distributor A, distributor B, distributor C... In addition, the task center module includes an execution node management module for managing execution nodes; an application definition management module for defining applications (such as adjusting operator modules in applications); and a business management module for managing business.

[0153] According to an embodiment of the present application, the present application provides a processing method for operator services.

[0154] Figure 4 The flowchart of the processing method for operator service according to the embodiment of the present application is exemplified.

[0155] like Figure 4 As shown, the processing method 400 for operator services may include operations S410 to S440.

[0156] In operation S410 , at least one primitive field configured for a target operator service is determined, wherein each primitive field is used to describe a characteristic attribute of a processing object of the target operator service.

[0157] In operation S420 , the operator category to which the target operator service belongs is determined.

[0158] In operation S430 , based on the determined operator category, a mapping relationship between at least one original field and at least one standard field is acquired.

[0159] In operation S440, based on the acquired mapping relationship, feature attribute information of the feature attribute described by each original field is converted into feature attribute information described by the corresponding standard field.

[0160] It should be understood that for builders of larger AI systems, it is often necessary to build AI systems in batches and by department. Typical examples include transportation, emergency management, and other fields. After the completion of multiple phases of project construction, the same type of AI operator service will usually have multiple versions (provided by multiple manufacturers) coexisting in the AI ​​system. For example, there is a special type of application in the AI ​​system, namely, video capture applications for specific objects. The number and content of feature fields defined by the AI ​​operator services provided by different manufacturers for such applications may be different, resulting in the descriptions of the same feature by the parameters output by different AI operator services may be inconsistent with each other, which is not conducive to unified management. For builders or managers, they naturally hope to be able to uniformly manage the operator services provided by various manufacturers, thereby reducing the inconvenience in application management and daily applications caused by different operator definitions.

[0161] In response to the above problems, the processing method for operator services provided in the embodiment of the present application can pre-establish a mapping relationship between all original fields defined in various types of operator services and all standard fields defined in the AI ​​system. Then, for each operator service, the mapping relationship between all original fields of the operator service and the corresponding standard fields can be determined according to the operator category to which the operator service belongs. Finally, according to the mapping relationship, the characteristic attribute information of the characteristic attribute described by each original field in the output parameter of the operator service is converted into the characteristic attribute information described by the corresponding standard field.

[0162] For example, for face recognition applications, it is assumed that the original fields used by the operator service provided by manufacturer A to describe male and female genders are "male" and "female" respectively, and the original fields used by the operator service provided by manufacturer B to describe male and female genders are "1" and "2" respectively, and the standard fields defined in the AI ​​system to describe male and female genders are "0" and "1" respectively. Then, for face recognition applications, the mapping relationship between the original fields defined by manufacturers A and B to describe male and female genders and the standard fields defined in the AI ​​system to describe male and female genders is shown in the following table (Table 2).

[0163] Table 2

[0164] Manufacturer Male (standard mapping) Female (standard mapping) Manufacturer A "male" → "0" "female" → "1" Manufacturer B "1”→"0” "2”→"1”

[0165] It should be noted that in an embodiment of the present application, the operator category to which the operator service / AI model belongs and the original fields customized by the manufacturer can be registered when registering the operator service, and the mapping relationship between the original fields of the operator service and the corresponding standard fields can also be recorded.

[0166] In the related art, even for the same type of operator services, since the fields defined by different manufacturers to describe the same feature attribute may be different, the descriptions of the same feature attribute by the fields customized by different manufacturers may be more or less different, which is not conducive to the unified management of information.

[0167] Different from the above-mentioned related technologies, in the embodiments of the present application, a set of standard fields is defined for each type of operator service, and the mapping relationship between the original fields of each manufacturer and the standard fields is defined at the same time, so as to uniformly describe the same feature attributes.

[0168] As an optional embodiment, the method may further include: storing the converted characteristic attribute information in a target database. The target database may be obtained by the following operations.

[0169] Each standard field is determined, wherein each standard field is used to describe a characteristic attribute of a processing object of an operator service belonging to the above operator category.

[0170] Get the database template.

[0171] The database template is configured based on each standard field to obtain the target database.

[0172] In an embodiment of the present application, a set of standard fields is defined for each type of operator service, and a mapping relationship between the original fields of each manufacturer and the standard fields is also defined. Therefore, based on the mapping relationship, parameters in different formats output by calling the same category of operator services can be converted into parameters in a standard format for unified storage.

[0173] In one embodiment, for each type of operator service, all characteristic attribute dimensions that need to be described when processing objects using this type of operator service can be determined first, then all standard fields used to describe all characteristic attribute dimensions can be obtained, and finally, configuration items corresponding to all standard fields can be configured in a predefined general database template to obtain a database for storing standard output parameters of this type of operator service (obtained by converting the original output parameters through the mapping relationship between the original fields and the standard fields). It should be understood that the above configuration items include configuration items for the structure definition and field definition of the database table.

[0174] Through the embodiments of the present application, a database that matches the format of standard output parameters of different categories of operator services can be quickly configured so that the standard output parameters of the same type of operator services can be uniformly stored.

[0175] Further, as an optional embodiment, the method may also include: generating the index field of the target database mentioned above.

[0176] It should be noted that the AI ​​system provided in the embodiment of the present application may include a large number of operator services of various types, and the AI ​​system may also provide external expansion ports for operator services. Therefore, there are many operator services that need to be managed. And through the AI ​​system, a large number of AI applications of various types can be quickly customized. Faced with numerous AI applications, there is naturally a lot of data that needs to be stored, and the number and types of databases required are naturally also many. Therefore, there are also many databases that need to be managed.

[0177] Therefore, in the embodiment of the present application, different index fields can also be generated for different databases to facilitate the management of the database.

[0178] Further, as an optional embodiment, an index field of the target database is generated based on the high-frequency search terms currently used for the above-mentioned target database.

[0179] In one embodiment, the user can manually configure the index fields of each database. In another embodiment, the system can automatically generate the index fields of each database based on the high-frequency search terms used by the user to search each database.

[0180] It should be understood that since the AI ​​system in the embodiment of the present application may need to manage many databases, duplication of names may occur when manually configuring index fields, which may lead to confusion in database management. Automatic configuration of the index fields of the database can not only deeply learn the user's search habits, so that most users can quickly retrieve the corresponding database, but also automatically check whether duplication of names occurs, thereby avoiding confusion in database management as much as possible.

[0181] Alternatively, as an optional embodiment, the method may further include at least one of the following operations.

[0182] Operation 1: All standard fields used to configure the target database are configured as search items for information stored in the target database.

[0183] Operation 2: configuring at least one standard field whose current search frequency is higher than a preset value among all standard fields as a search item for information stored in the target database.

[0184] Operation 3: configuring at least one designated standard field among all standard fields as a search item for information stored in the target database.

[0185] In one embodiment, the user can manually perform operations 1 to 3 to configure corresponding search items for each database. In another embodiment, the system can also automatically perform operations 1 to 3 to configure corresponding search items for each database.

[0186] It should be understood that the method of configuring the search item in operation 2 is similar to the method of configuring the index field in the above embodiment, so when manually configuring the search item, there may be a situation where the naming is repeated, which may lead to inaccurate search results. When automatically configuring the search item, not only can the user's search habits be deeply learned so that most users can quickly retrieve the corresponding information, but also whether the naming is repeated can be automatically checked, thereby maximizing the accuracy of the search results.

[0187] Through the embodiments of the present application, the output parameters of the same type of operator services can not only be uniformly stored in standard fields, but also can be uniformly retrieved.

[0188] Alternatively, as an optional embodiment, the method may further include: in response to receiving an external request for obtaining feature attribute information stored in a target database, first converting the requested feature attribute information into feature attribute information described by external universal standard fields, and then outputting it.

[0189] It should be understood that the AI ​​system provided in the embodiments of the present application can provide data sharing services in addition to providing AI operator services, AI applications, and AI workflow sharing services. However, providing external data sharing services based on data stored in internal universal standard fields may cause difficulties for external users in reading and understanding.

[0190] Therefore, in the embodiment of the present application, when providing data sharing services, the data format can be converted again based on external universal standard fields so as to provide shared data with better readability and understandability to the outside world.

[0191] It should be noted that in the embodiment of the present application, the method for performing data format conversion based on an external universal standard field is similar to the method for performing data format conversion based on an internal universal standard field, and will not be described in detail here.

[0192] Alternatively, as an optional embodiment, the method may further include the following operations.

[0193] Generate a data life cycle (data elimination cycle) for the target database.

[0194] Based on the data life cycle, the historical data stored in the target database is eliminated.

[0195] In one embodiment, for application scenarios where data growth is slow, a data life cycle can be set for the database according to actual needs. In each data life cycle, the database can automatically clear data whose creation time falls within the previous data life cycle.

[0196] Through the embodiments of the present application, users can customize the data life cycle of the database, and the database can automatically clear some historical data stored therein according to the data life cycle, thereby reducing the amount of data stored in the database and further improving the retrieval speed of the database.

[0197] Alternatively, as an optional embodiment, the method may further include: in response to the data volume of the information stored in the target database reaching a preset value (upper limit of the data volume), performing database and table sharding processing on the target database.

[0198] In one embodiment, for application scenarios with a fast data growth rate, if the database is still managed according to the data life cycle, data that is still useful may be lost. Therefore, in this application scenario, an upper limit value (preset value) of the data volume can be set for the database according to actual needs. When the actual data volume reaches the upper limit value of the data volume, a sub-database and a sub-database table are created for the current database. The data structure of the sub-database and the sub-database table is the same as the data structure of the current database.

[0199] Through the embodiments of the present application, users can customize the upper limit of the data volume of the database, and the database can automatically configure the corresponding sub-library and table logic based on the upper limit of the data volume, thereby reducing the amount of data stored in a single database or database table, thereby improving the retrieval speed of the database, and at the same time avoiding the loss of data that is currently of use.

[0200] In one embodiment, the data growth trend of each database may be predicted first, and then a reasonable database management method may be selected based on the actual prediction result.

[0201] Alternatively, as an optional embodiment, the method may further include: before storing the converted characteristic attribute information in the target database, checking whether there is a field in the target database that matches the converted characteristic attribute information.

[0202] In one embodiment, in response to the inspection result indicating that there is a field in the target database that matches the converted characteristic attribute information, the converted characteristic attribute information is stored in the corresponding field in the target database; otherwise, in response to the inspection result indicating that there is no field in the target database that matches the converted characteristic attribute information, an alarm is issued.

[0203] Through the embodiments of the present application, a dynamic database insertion interface is provided to support the insertion of data that conforms to the database field definition. For example, it can ensure that the upper-level AI workflow can complete the accurate recording of newly captured data.

[0204] In addition, in another embodiment, in response to the verification result indicating that there is no field matching the converted characteristic attribute information in the target database, in addition to an alarm, it is also possible to verify whether the converted characteristic attribute information is characteristic attribute information described by a newly added standard field. In response to the verification result indicating that the converted characteristic attribute information is characteristic attribute information described by a newly added standard field, the fields of the database may also be expanded.

[0205] According to an embodiment of the present application, the present application provides another processing method for operator services.

[0206] Figure 5A The following is a flowchart of a processing method for an operator service according to another embodiment of the present application.

[0207] like Figure 5A As shown, the processing method 500A for operator services may include operations S510 to S530.

[0208] In operation S510, N types of computing resources for deploying an operator service are determined, wherein in each type of computing resources in the N types of computing resources, at least one container is set for the operator service.

[0209] In operation S520, N service images generated based on the operator service are obtained.

[0210] In operation S530, the N service images are respectively deployed into containers set for operator services in N types of computing resources.

[0211] In the process of implementing the embodiments of the present application, the inventors found that: in traditional artificial intelligence technology, each link is severely fragmented. For example, training an AI model requires a separate system (model training system), and after the AI ​​model is produced, it is necessary to generate an image file in another system (image publishing system) for publishing, and finally to the production system for image deployment and actual prediction. Therefore, the training system and prediction system of the AI ​​model cannot be smoothly connected. In addition, in traditional artificial intelligence technology, all images contained in a set of AI applications are deployed on a separate hardware device, and before the AI ​​application is implemented, the deployment plan of the application has been solidified and determined. Therefore, heterogeneous resource scheduling cannot be achieved when running AI applications, resulting in poor efficiency of heterogeneous computing power resources, high unit computing power cost, and serious waste of resources. For example, a certain enterprise has 2.7w GPUs, but the overall utilization rate is only 13.42%.

[0212] In addition, in the process of implementing the embodiments of the present application, the inventors found that:

[0213] (1) From the perspective of computing power evolution, the computing power of artificial intelligence systems can basically double every 6 months. Various AI chip manufacturers continue to launch new computing platforms every year. On the one hand, these computing platforms reduce the cost of using artificial intelligence. On the other hand, the old computing platforms and the newly launched computing platforms are mixed in the user's artificial intelligence cloud platform, which increases the difficulty of managing the artificial intelligence cloud platform.

[0214] (2) From the perspective of AI system construction costs, currently, AI cloud platforms are unable to achieve the sharing and interoperability of computing resources, operator services, and application services, which increases the cost of building and using AI systems between enterprises and between departments (business units) within enterprises.

[0215] Therefore, the embodiments of the present application provide a set of artificial intelligence solutions that can effectively eliminate the differences between different computing platforms while enjoying the rapid growth of computing power, realize the sharing and interoperability of computing resources, operator services, and application services, and reduce construction and use costs.

[0216] In an embodiment of the present application, multiple service images registered under the same operator service can be deployed simultaneously in containers of multiple computing resources, so that when executing application logic, the operator service can be used as a unified request interface, and indiscriminate scheduling of heterogeneous resources can be achieved by calling service images deployed in different categories of computing resources.

[0217] For example, Figure 5BAs shown, the artificial intelligence cloud platform 500B includes: computing power resources 510, computing power resources 520, computing power resources 530 and computing power resources 540, and these computing power resources are different types of computing power resources provided by different manufacturers. For each operator service registered in the AI ​​system, such as operator service A, containers 511, 521, 531 and 541 can be set in computing power resources 510, computing power resources 520, computing power resources 530 and computing power resources 540 in sequence, and service images A1, service images A2, service images A3 and service images A4 are generated based on operator service A, and service images A1, service images A2, service images A3 and service images A4 are deployed in containers 511, 521, 531 and 541 in sequence.

[0218] Compared with the related art in which the operator service of the same application is fixedly deployed on a single hardware device, and the operator service cannot be shared among heterogeneous resources, and thus heterogeneous scheduling of the operator service cannot be achieved, the embodiment of the present application can generate multiple service images based on one operator service, and deploy different service images in different categories of computing resources, thereby achieving the sharing of operator services among heterogeneous resources, and further achieving heterogeneous scheduling of operator services.

[0219] As an optional embodiment, the method may further include the following operations.

[0220] Predict the resource quotas required to support the operation of the above operator services.

[0221] Based on the predicted resource quota, at least one container is set for the operator service in each of the N types of computing resources.

[0222] Continue to refer Figure 5B In an embodiment of the present application, when registering operator service A, the computing power quota required to run operator service A can be predicted, and the configuration parameters of container 511, container 521, container 531 and container 541 (such as upper and lower limits of QPS, CPU proportion, GPU proportion, etc.) can be set according to the computing power quota.

[0223] In the embodiment of the present application, by predicting the resource quota required by each operator service and deploying each operator service based on it, not only can the computing power resources be shared, but also the resource efficiency can be improved.

[0224] Further, as an optional embodiment, based on the predicted resource quota, in each type of computing power resources among the N types of computing power resources, at least one container is set for the operator service, including: for each type of computing power resources, the following operations are performed.

[0225] Convert the predicted resource quota (abstract computing power quota) into a resource quota that matches the computing power resources of the current category.

[0226] Based on the converted resource quota, at least one container is set for the operator service in the computing resources of the current category.

[0227] It should be noted that, since different computing resources are measured in different ways, a unified abstract computing resource measurement method is used in the embodiment of the present application to first predict the computing resource quota and then convert it, so as to achieve unified management of multiple computing resources.

[0228] Continue to refer Figure 5B In an embodiment of the present application, when registering operator service A, the abstract computing power quota required to run operator service A can be predicted, and then the abstract computing power quota can be converted into the actual computing power quota specific to each type of computing power resource through equivalent conversion, and then the configuration parameters of container 511, container 521, container 531 and container 541 (such as the upper and lower limits of QPS, CPU proportion, GPU proportion, etc.) are set according to each actual computing power quota.

[0229] Through the embodiments of the present application, a set of artificial intelligence computing platforms can effectively eliminate the differences between different computing platforms while enjoying the rapid growth of computing power, such as eliminating the differences in the measurement of different categories of computing power resources through abstract computing power quotas, thereby realizing transparent and unified management of computing power resources between heterogeneous computing platforms. In addition, in the embodiments of the present application, by predicting the resource quotas required by each operator service and deploying each operator service based on this, not only can computing power resources be shared, but resource efficiency can also be improved.

[0230] It should be noted that in the embodiments of the present application, a set of operator management services can be used to quickly access various AI operator services, including vision, voice, semantics, knowledge graphs, etc. During the operator service registration process, the operator's computing power evaluation is completed, and the computing power quota of the operator service is generated and registered based on the computing power evaluation results, realizing a unified abstract definition of cross-platform operators.

[0231] Alternatively, as an optional embodiment, the method may also include: in response to the load of any container set for the above-mentioned operator service exceeding a preset value (such as the upper limit of the number of instances, QPS, CPU share, GPU share, etc.), expanding the capacity of the container whose load exceeds the preset value.

[0232] Continue to refer Figure 5BAfter the service image A1, service image A2, service image A3 and service image A4 of operator service A are deployed in container 511, container 521, container 531 and container 541 respectively, in response to the number of instances of operator service A in container 511 exceeding the upper limit of the number of instances of container 511, the parameters of container 511 can be reconfigured, such as increasing the upper limit of the number of instances.

[0233] It should be understood that in the embodiment of the present application, the capacity expansion processing of the overloaded container also includes but is not limited to modifying the upper limit values ​​of the container's QPS, CPU ratio, GPU ratio, etc.

[0234] In the embodiment of the present application, the business needs of high-frequency computing services can be met through dynamic expansion processing.

[0235] Alternatively, as an optional embodiment, the method may further include the following operations.

[0236] In response to the addition of M types of computing resources, M newly generated service images based on the operator service are obtained, wherein in each type of computing resources in the M types of computing resources, at least one container is set for the operator service.

[0237] Deploy M service images into containers in M ​​types of computing resources respectively.

[0238] It should be understood that the method of deploying the M service images of the above-mentioned operator services in the newly added M types of computing resources is similar to the method of deploying the N service images of the above-mentioned operator services in the newly added N types of computing resources, and the embodiments of the present application will not be repeated here.

[0239] Through the embodiments of the present application, in addition to supporting cross-platform scheduling of the existing multiple computing resources in the artificial intelligence cloud platform, a computing resource expansion interface can also be provided to expand other heterogeneous computing resources in the cloud platform.

[0240] Alternatively, as an optional embodiment, the method may also include: in response to receiving a request for an operator service, scheduling computing resources for responding to the request based on a computing load balance between N types of computing resources.

[0241] In the embodiment of the present application, the heterogeneous platform traffic distribution strategy and the platform internal traffic distribution strategy can be pre-set. In response to receiving at least one request from any operator service, the request can be first distributed to the corresponding computing power resource (computing platform) according to the heterogeneous platform traffic distribution strategy, and then the request distributed to the computing power resource (computing platform) can be further distributed to the corresponding node inside the platform according to the platform internal traffic distribution strategy.

[0242] Through the embodiments of the present application, by adopting reasonable dynamic traffic scheduling strategies (such as heterogeneous platform traffic distribution strategies and platform internal traffic distribution strategies), resource efficiency can be improved, and the performance of various heterogeneous computing platforms can be improved.

[0243] Alternatively, as an optional embodiment, the method may further include: before obtaining N service images generated based on the operator service, performing the following operations.

[0244] Get at least one AI model file.

[0245] Based on at least one AI model file, an operator service including at least one sub-operator service is generated.

[0246] Generate N service images based on the operator service.

[0247] In one embodiment, the inference service platform can generate an operator service based on an AI model file, and then generate multiple service images of the operator service. In another embodiment, the inference service platform can first generate multiple small sub-operator services based on multiple AI model files, and then assemble the multiple small sub-operator services into a large operator service, and then generate multiple service images of the operator service.

[0248] It should be noted that the above-mentioned reasoning service platform (inference service framework) can directly connect to the model warehouse and read the AI ​​model file from it. In addition, the model warehouse can support the addition, deletion, modification and query operations on AI model files. In addition, each AI model can include at least one model version, so the model warehouse can also support multi-version management and control of AI models. In addition, different AI model files may be provided (shared) by different manufacturers, and AI model files produced by different manufacturers may have different model formats. Therefore, the above-mentioned reasoning service platform can also provide an AI model conversion function to convert the AI ​​model into a model format supported by the reasoning service platform.

[0249] It should be understood that in the embodiments of the present application, the AI ​​models that can be registered by the AI ​​system include but are not limited to: machine learning models, deep learning models produced by various training frameworks. In addition, the above-mentioned AI models may include but are not limited to image, video, NLP, advertising recommendation and other models.

[0250] Through the embodiments of the present application, the whole process management from AI model to operator service and then to service image is supported, and the process can be connected with the training platform to ensure the effect experience of resource application and deployment process.

[0251] In addition, through the embodiments of the present application, AI models can be registered to achieve independent deployment of AI models, or multiple AI models can be combined for mixed deployment, thereby providing flexible and diverse deployment methods.

[0252] Further, as an optional embodiment, generating N service images based on the operator service may include the following operations.

[0253] Get at least one pre-processing component (pre-processing component) and at least one post-processing component that matches the operator service.

[0254] Based on the operator service, at least one pre-processing component and at least one post-processing component, N service images are generated.

[0255] It should be noted that in the embodiment of the present application, the inference service framework can provide a pre-processing component library and a post-processing component library, and users can independently select the corresponding pre-processing components and post-processing components according to their needs.

[0256] In one embodiment, the inference logic provided by the inference service framework can be used to generate each service image of the operator service. In another embodiment, the inference service framework can also receive the inference code uploaded by the user, and thus can also use the inference code uploaded by the user to generate each service image of the operator service.

[0257] For example, Figure 5C As shown in the figure, model-A and pre-processor-0, pre-processor-1, pre-processor-2, post-processor-0 and post-processor-1 are combined to generate a service image A of model-A. Further adding different tags to service image A can generate multiple service images such as service image A1, service image A2, service image A3, etc. Among them, model-A represents operator service A; pre-processor-0, pre-processor-1 and pre-processor-2 represent the pre-processing components of operator service A; post-processor-0 and post-processor-1 represent the post-processing components of operator service A. It should be noted that the service image can match the computing resources used to deploy the service image through the tag information it carries.

[0258] Further, as an optional embodiment, each of the N service images may include: a first image generated based on an operator service, wherein the first image includes at least one first sub-image; a second image generated based on at least one pre-processing component, wherein the first image includes at least one second sub-image; and a third image generated based on at least one post-processing component, wherein the first image includes at least one third sub-image.

[0259] Therefore, deploying N service images respectively into containers set for operator services in N types of computing resources may include: executing any one of operations 4 to 6 for each type of computing resources.

[0260] Operation 4: deploy the corresponding first image, second image, and third image in different containers set for the operator service.

[0261] Operation 5: deploy at least two of the corresponding first image, second image, and third image in the same container set for the operator service.

[0262] Operation 6: deploy each of the corresponding at least one first sub-image, at least one second sub-image, and at least one third sub-image in different containers set for the operator service.

[0263] In one embodiment, the reasoning service framework can use an operator service to build an independent service. In another embodiment, the reasoning service framework can also use multiple operator services to build a combined service (DAG service). It should be noted that in an embodiment of the present application, the reasoning service framework can generate an operator service based on an AI model submitted by an AI system. Alternatively, the AI ​​system can also receive operator services that meet system standards directly submitted by users. In an embodiment of the present application, the operator service and the AI ​​model can be a one-to-one relationship or a one-to-many relationship, that is, it supports multiple AI models to form an operator service DAG.

[0264] In the embodiment of the present application, in addition to using multiple AI models to form a DAG operator service, the operator service can also be split. The premise of operator service splitting is to ensure the user's latency index, and on this basis, optimize utilization and performance. By splitting the operator service, insufficient CPU resources and idle GPUs can be avoided. In addition, by splitting the operator service, high-frequency logic can also be operatorized to improve service quality.

[0265] It should be noted that the three combinations of operations, operator services, and single-container DAG are as follows: Figure 5D to Figure 5F The dashed box in the figure represents the container, which also corresponds to the operator service of the reasoning service framework; the implementation box corresponds to the operation of the operator service; the connecting line represents the data flow relationship between the operations.

[0266] like Figure 5D As shown in the figure, this combination relationship represents a single-container DAG, that is, all operations of an operator service are deployed in the same container. The advantage of this combination relationship is that the service form is simple, which is convenient for cluster management, and the data stream transmission does not occupy network bandwidth and has a fast response speed. The disadvantage of this combination relationship is that it cannot be used for operator splitting.

[0267] like Figure 5E As shown in the figure, this combination relationship represents a multi-container DAG, that is, each operation of an operator service is deployed separately in a separate container. The advantage of this combination relationship is that it is flexible and can be used for operator splitting. The disadvantage of this combination relationship is that data stream transmission between multiple containers requires network bandwidth and has a slow response speed, that is, data stream transmission of multiple containers has potential performance issues.

[0268] like Fig. 5F As shown, this combination relationship represents another multi-container DAG, and each container can deploy multiple operations. For example, model-A, model-B, and model-C are deployed in one container; pre-processor-0, pre-processor-1, and pre-processor-2 are deployed in another container; post-processor-0 and post-processor-1 are deployed in another container. The disadvantage of this combination relationship is that data stream transmission between multiple containers requires network bandwidth, but data stream transmission within a single container does not require network bandwidth, and the response speed is relatively fast. Figure 5E The combination shown is faster than Figure 5D The combination relationship shown is slow, that is, the performance problem of data flow transmission can be solved by multiple operation DAGs in the container; at the same time, multi-container DAG can achieve good flexibility (for example, high-frequency logic model-A, model-B, model-C can be operatorized) and can perform operator splitting.

[0269] It should be noted that in the embodiment of the present application, in the process of generating an operator service based on the AI ​​model file, the integration method of each pre-processing component, each post-processing component, and the operator service itself can be considered to provide a basis for realizing operator splitting.

[0270] In addition, it should be noted that the inference service framework can also directly connect to the image warehouse and write service image files to it. In addition, the image warehouse can support the addition, deletion, modification, and query operations on the service image files.

[0271] Through the embodiments of the present application, multiple combinations of single container, multi-container DAG, multi-container DAG and intra-container operation DAG are supported. Among them, the combination of multi-container DAG and intra-container operation DAG can not only solve the data transmission performance, but also facilitate cluster management of operator services, and has good flexibility.

[0272] Furthermore, in the embodiment of the present application, the monitoring data of the GPU can also be used to classify the business, so as to provide a reasonable mixed model combination solution.

[0273] For example, Figure 5G As shown, models with lower resource usage, such as model-A, model-B, and model-C, can be deployed in a container such as container 1 (i.e., multiple models can be deployed in a single container), sharing GPU resources such as GPU0; models with higher resource usage, such as model-E and model-F, can be deployed in two containers such as container 2 and container 3 respectively (i.e., multiple containers are mounted on the same computing card (computing node), and model deployment is achieved through MPS at the bottom layer). Among them, model-E and model-F can achieve resource isolation (occupy different containers) and share GPU resources such as GPU1.

[0274] According to an embodiment of the present application, the present application provides another processing method for operator services.

[0275] Fig. 6A The following is a flowchart of a processing method for operator services according to another embodiment of the present application.

[0276] like Fig. 6A As shown, the processing method 600A for operator services may include operation S610 (ie, receiving at least one request for invoking a target operator service) and, in response to receiving at least one request for invoking a target operator service, performing the following operations S620 to S640.

[0277] In operation S620 , a plurality of service images generated based on the target operator service are determined.

[0278] In operation S630, a plurality of heterogeneous computing resource platforms for deploying the plurality of service images are determined.

[0279] In operation S640, based on a pre-set heterogeneous platform traffic distribution strategy, at least one request is distributed to a corresponding computing power resource platform among the plurality of heterogeneous computing power resource platforms for processing.

[0280] Among them, the heterogeneous platform traffic distribution strategy includes at least one of the following: a heterogeneous polling strategy, a heterogeneous random strategy, a heterogeneous priority strategy and a heterogeneous weight strategy.

[0281] In one embodiment, all service images registered under each operator service can be determined based on the registration information of each operator service, and then all heterogeneous computing power resource platforms (computing platforms) on which these service images are deployed can be matched based on the label information carried by each of these service images. Then, according to the pre-set heterogeneous platform traffic distribution strategy, the received requests are first distributed to the corresponding computing power resource platform (computing platform), and then according to the internal traffic distribution strategy of the platform, the requests distributed to each computing power resource (computing platform) are further distributed to the corresponding nodes within each platform.

[0282] In another embodiment, after the operator service is deployed, the corresponding deployment information can be recorded. Then, when performing traffic scheduling (distributing requests), all heterogeneous computing power resource platforms where the service image of the operator service is deployed can be determined according to the deployment information. Then, according to the pre-set heterogeneous platform traffic distribution strategy, the received requests are first distributed to the corresponding computing power resource platform (computing platform), and then according to the internal traffic distribution strategy of the platform, the requests distributed to each computing power resource (computing platform) are further distributed to the corresponding nodes within each platform.

[0283] It should be noted that in the embodiments of the present application, the heterogeneous polling strategy: requests for the same operator service are distributed to the internal load balancing agent of a specific computing platform in sequence according to a set specific order. Heterogeneous random strategy: requests for the same operator service are randomly distributed to the internal load balancing agent of a specific computing platform. Heterogeneous priority strategy: requests for the same operator service are distributed to the internal load balancing agent of a specific computing platform according to a set priority order. When the number of QPS or GPU utilization or CPU utilization of a specific platform service reaches the monitoring index, the number of QPS exceeding the index will be distributed to the internal load balancing agent of the computing platform of the next priority. Heterogeneous weight strategy: requests for the same operator service are randomly distributed to the internal load balancing agent of a specific computing platform in proportion according to the specified platform weight.

[0284] Compared with the related art in which operator services can only be deployed on separate fixed hardware devices, and therefore heterogeneous resource scheduling cannot be achieved across platforms for the same operator service, through the embodiments of the present application, different service images of the same operator service are simultaneously deployed in multiple different heterogeneous computing resource platforms, and thus heterogeneous resource scheduling can be achieved for the same operator service.

[0285] As an optional embodiment, the method may further include: after distributing at least one request to a corresponding computing power resource platform among multiple heterogeneous computing power resource platforms, when the corresponding computing power resource platform includes multiple execution nodes, based on a pre-set platform internal traffic distribution strategy, distributing the request distributed to the corresponding computing power resource platform to a corresponding execution node among multiple execution nodes for processing. The platform internal traffic distribution strategy includes at least one of the following: an internal polling strategy, an internal random strategy, an internal priority strategy, and an internal weight strategy.

[0286] In an embodiment of the present application, for the traffic (one or more operator service requests) that has been distributed to the computing resource platform, the traffic can be further distributed to the final execution node for processing and response within the single platform according to the pre-set platform internal traffic distribution strategy.

[0287] It should be noted that in the embodiments of the present application, the internal polling strategy: the operator service requests that have been distributed to the computing platform are distributed to the execution nodes within the platform in sequence according to a set specific order. Heterogeneous random strategy: the operator service requests that have been distributed to the computing platform are randomly distributed to the execution nodes within the platform. Heterogeneous priority strategy: the operator service requests that have been distributed to the computing platform are distributed to specific execution nodes within the platform according to the set priority order. When the QPS number or GPU utilization or CPU utilization of the service of a specific execution node reaches the monitoring index, the QPS number that exceeds the index will be distributed to the execution node of the next priority. Heterogeneous weight strategy: the operator service requests that have been distributed to the computing platform are randomly distributed to specific execution nodes in proportion according to the specified node weight.

[0288] For example, Figure 6B As shown, the traffic (at least one request) from the user for the same operator service is first distributed to the computing platform through the first-level proxy Proxy according to the heterogeneous platform traffic distribution strategy, and then distributed to the execution nodes within the platform (such as GPUType1~GPU Type5) through the second-level proxy (such as Proxy1~Proxy5) according to the platform's internal traffic distribution strategy (such as distributed to Node T1-1~Node T1-2 within GPU Type1).

[0289] Through the embodiments of the present application, resources can be flexibly scheduled within the computing resource platform.

[0290] Further, as an optional embodiment, the method may also include: in the process of distributing at least one request, in response to at least one heterogeneous computing resource platform whose actual resource occupancy reaches a preset resource quota upper limit, for the target operator service, performing capacity expansion processing on the target operator service so as to continue to distribute the at least one request that has not yet been distributed.

[0291] Illustratively, in one embodiment, after service image A1, service image A2, service image A3, and service image A4 of operator service A are deployed in container 1, container 2, container 3, and container 4 respectively, in response to the number of instances of operator service A in container 1 exceeding the upper limit of the number of instances of container 1, the parameters of container 1 can be reconfigured, such as increasing the upper limit of its number of instances.

[0292] It should be understood that in the embodiment of the present application, the capacity expansion processing of the overloaded container (the actual resource usage reaches the preset resource quota upper limit) also includes but is not limited to modifying the upper limit values ​​of the container's QPS, CpU ratio, GPU ratio, video memory ratio, etc.

[0293] Exemplarily, in another embodiment, when the actual resource usage of at least one heterogeneous computing resource platform reaches the upper limit of the preset resource quota, in addition to modifying the relevant parameters of the overloaded container, one or more containers can be added to deploy the service image of the current operator service.

[0294] In the embodiment of the present application, through dynamic expansion processing, the business needs of high-frequency operator services can be met and resource efficiency can be improved.

[0295] Further, as an optional embodiment, the capacity expansion process for the target operator service may include the following operations.

[0296] Based on at least one heterogeneous computing resource platform whose actual resource occupancy reaches the preset resource quota upper limit, at least one service image generated based on the target operator service is obtained.

[0297] Deploy at least one service image into a container set for a target operator service in at least one heterogeneous computing resource platform.

[0298] It should be understood that the method of deploying service images for operator services in the expansion phase is similar to the method of deploying service images for operator services in the initial construction phase, and the embodiments of the present application will not be repeated here.

[0299] In addition, in an embodiment of the present application, during the process of capacity expansion on a specific computing platform, a label check can be performed on the specific computing platform, and based on the label check result, an application can be made to the operator management service for a service image of the operator service corresponding to the specific computing platform, and then the deployment library of the specific computing platform can be referenced for capacity expansion deployment.

[0300] It should be noted that in an embodiment of the present application, the resource quota registration of the operator service can be completed when registering the operator service, including registering the maximum QPS, GPU occupancy, memory occupancy, number of instances of a single container used to deploy each service image, and the corresponding QPS, GPU occupancy, and memory occupancy under each number of threads, so as to be used to configure resources for each service image in the initial construction stage and expansion stage.

[0301] Through the embodiments of the present application, it is possible to support automatic execution of expansion operations based on the ratio between the actual resource occupancy of the operator service (such as QPS quota or GPU quota, etc.) and the resource upper limit value configured on a specific computing platform for deploying the operator service; intelligent allocation of hardware resources can be supported during the expansion stage.

[0302] Furthermore, as an optional embodiment, the above-mentioned at least one service image is respectively deployed into a container set up for the target operator service in at least one computing power resource platform, including: performing the following operations for each computing power resource platform in at least one heterogeneous computing power resource platform.

[0303] A resource group for deploying a corresponding service image in the at least one service image is determined.

[0304] Create a container within a resource group.

[0305] Deploy the corresponding service image in the newly created container.

[0306] Furthermore, as an optional embodiment, the method may further include: before creating the container in the resource group, in response to the actual resource occupancy of the resource group reaching the resource quota upper limit of the resource group, performing an alarm operation.

[0307] It should be noted that in the embodiment of the present application, since the AI ​​system can provide services to multiple business parties (such as between multiple enterprises, or between multiple departments within an enterprise) in a shared mode at the same time, a resource group can be allocated to each business party (a business party can be used as a tenant) in the computing power resources of the AI ​​system as the dedicated computing power resources of the business party.

[0308] Therefore, in the embodiment of the present application, during the capacity expansion phase, if one or several containers of a business party currently have insufficient resources, capacity expansion can be performed preferentially in the resource group allocated to the business party. If the current limit of the resource group of the business party is insufficient to continue capacity expansion, an alarm is issued.

[0309] It should be understood that in the embodiments of the present application, the AI ​​system can support the registration of the total amount of GPU, video memory and CPU resources for server nodes and computing card units; support the combination of server nodes and computing card units into resource groups, wherein the resources that the resource group can provide are the sum of the total amount of resources that the server nodes and computing card units contained therein can provide.

[0310] In the embodiment of the present application, a dedicated resource group (private resource group) can be configured for only a part of the business parties, and the remaining part of the business parties can use shared resources (shared resource group). Therefore, when deploying an operator service, the user can specify the resource group that the operator service plans to deploy and the number of instances or required resources (such as QPS, GPU occupancy, etc.) planned to be deployed for each resource group. The AI ​​system will randomly deploy in the corresponding resource group according to the number of instances or required resources specified by the user.

[0311] In addition, in an embodiment of the present application, the AI ​​system can also support configuring the resource quota of the operator service, that is, configuring the maximum and minimum resource quotas allowed to be occupied by the current operator service in the current resource group to ensure effective resource planning.

[0312] Through the embodiments of the present application, while providing computing resource sharing services, computing resources can be isolated between multiple business parties, that is, different resource groups can be divided to ensure the data security of each business party. At the same time, when the current resources are insufficient to support continued capacity expansion, an alarm can be issued so that manual intervention can be intervened to solve the problem.

[0313] Alternatively, as an optional embodiment, the method may further include: before obtaining at least one service image generated based on the target operator service, performing the following operations.

[0314] Get at least one AI model file.

[0315] Based on at least one AI model file, a target operator service including at least one sub-operator service is generated.

[0316] Based on the target operator service, generate at least one service image.

[0317] It should be noted that the method for generating the service image provided in the embodiment of the present application is the same as the method for generating the service image provided in the aforementioned embodiment of the present application, and will not be repeated here.

[0318] Through the embodiments of the present application, the AI ​​system supports externally submitted AI models, and supports deploying an AI model separately as an operator service. It also supports combining multiple AI models through the operator service DAG for mixed deployment of an operator service, thereby providing flexible and diverse deployment methods.

[0319] According to an embodiment of the present application, the present application provides a processing device for a workflow.

[0320] Fig. 7A A block diagram of a device for processing a workflow according to an embodiment of the present application is exemplarily shown.

[0321] like Fig. 7A As shown, the processing device 700A for workflow may include an acquisition module 701 , a generation module 702 , a verification module 703 and a storage module 704 .

[0322] The acquisition module 701 (first acquisition module) is used to acquire a business application defined by a user, wherein a plurality of application components and connection relationships between the plurality of application components are defined in the business application, and the plurality of application components include at least one operator component.

[0323] Generation module 702 (first generation module) is used to pre-generate a corresponding workflow based on a business application, wherein each of the multiple application components corresponds to a task node in the workflow, and the connection relationship between the multiple application components corresponds to the data flow between the multiple task nodes in the workflow.

[0324] The verification module 703 is used to perform target node verification for each task node in the workflow, where the target node includes at least one of the following: an upstream node and a downstream node.

[0325] The saving module 704 is used to save the workflow in response to the target node passing the verification.

[0326] According to an embodiment of the present application, the processing device 700A for workflow may further include, for example, an input data acquisition module, an instance generation module, and an instance graph generation module. The input data acquisition module is used to acquire input data of the workflow. The instance generation module is used to generate a corresponding workflow instance based on the acquired input data and the workflow. The instance graph generation module is used to generate a corresponding workflow instance graph based on the workflow instance.

[0327] As an optional embodiment, the processing device for workflow may also include, for example, a task distribution module, which is used to distribute tasks corresponding to each task node in the workflow instance to a queue through a distribution terminal; and a task execution module, which is used to obtain tasks from the queue and process them through at least one execution terminal. The execution terminal stores the execution results of each task in a preset memory, and the distribution terminal reads the execution results of each task from the preset memory and distributes subsequent tasks to the queue based on the read execution results.

[0328] As an optional embodiment, the processing device for workflow may further include, for example: a task volume control module, which is used to control the task volume obtained by each execution end of at least one execution end per unit time.

[0329] As an optional embodiment, the processing device for workflow may further include: a processing control module, which controls tasks corresponding to multiple task nodes that meet affinity routing in the workflow instance to be processed on the same execution end.

[0330] As an optional embodiment, the processing device for workflow may further include: a task execution module and a parameter recording module. The task execution module is used to execute the tasks corresponding to each task node in the workflow instance. The parameter recording module is used to record the input parameters and / or output parameters of each task node according to the task execution result.

[0331] As an optional embodiment, the processing device for a workflow may further include, for example: an alarm module, configured to generate an alarm for the workflow in response to a target node verification failure.

[0332] It should be noted that the embodiments of the device part of the present application are the same or similar to the embodiments of the corresponding method part of the present application, and the technical effects achieved and the technical problems solved are also the same or similar. The embodiments of the present application will not be repeated here.

[0333] According to an embodiment of the present application, the present application provides a processing device for business applications.

[0334] Figure 7B A block diagram of a processing device for business applications according to an embodiment of the present application is exemplarily shown.

[0335] like Figure 7B As shown, the processing device 700B for business applications may include an application determination module 705 , a task generation module 706 and a batch control module 707 .

[0336] The application determination module 705 is used to determine a plurality of predefined business applications.

[0337] The task generation module 706 is used to generate at least one business task based on multiple business applications, wherein each business task includes multiple business applications with the same data sources and execution plans in multiple business applications.

[0338] The batch control module 707 is used to perform batch control on the business applications included in each business task.

[0339] As an optional embodiment, the device may further include: a multiplexing control module, which is used to control at least two business applications to multiplex the operator service when at least two business applications among multiple business applications need to call the same operator service at the bottom layer.

[0340] As an optional embodiment, the multiplexing control module is further used to control at least two business applications to reuse the same service image of the operator service.

[0341] As an optional embodiment, the multiplexing control module is also used to control the service image to execute once and return the execution result to each of the at least two business applications when the input data of the service image is the same for each of the at least two business applications.

[0342] As an optional embodiment, the device may further include: an application merging module, which is used to merge at least two identical business applications in the current business task for each business task when there are at least two identical business applications for different business parties in the current business task.

[0343] As an optional embodiment, the application merging module is used to control at least two identical business applications to share the same application instance at the bottom layer.

[0344] As an optional embodiment, the application merging module includes: a result acquisition unit, used to obtain the execution result of the application instance for one business application of at least two identical business applications; and a result sending unit, used to send the acquired execution result to all business parties associated with at least two identical business applications.

[0345] It should be noted that the embodiments of the device part of the present application are the same or similar to the embodiments of the corresponding method part of the present application, and the technical effects achieved and the technical problems solved are also the same or similar. The embodiments of the present application will not be repeated here.

[0346] According to an embodiment of the present application, the present application provides a processing device for operator services.

[0347] Figure 7C A block diagram of a processing device for an operator service according to an embodiment of the present application is exemplified.

[0348] like Figure 7C As shown, the processing device 700C for operator services may include a first determination module 708 , a second determination module 709 , an acquisition module 710 and a conversion module 711 .

[0349] The first determination module 708 is used to determine at least one original field configured for the target operator service, wherein each original field is used to describe a characteristic attribute of a processing object of the target operator service.

[0350] The second determination module 709 is used to determine the operator category to which the target operator service belongs.

[0351] The acquisition module 710 (second acquisition module) is used to acquire a mapping relationship between at least one original field and at least one standard field based on the determined operator category.

[0352] The conversion module 711 is used to convert the characteristic attribute information of the characteristic attribute described by each original field into the characteristic attribute information described by the corresponding standard field based on the acquired mapping relationship.

[0353] As an optional embodiment, the device may further include: an information storage module, which is used to store the converted characteristic attribute information in a target database. The target database is obtained by performing relevant operations through a database configuration module. The database configuration module includes: a field determination unit, which is used to determine each standard field, wherein each standard field is used to describe a characteristic attribute of a processing object of an operator service belonging to an operator category; a template acquisition unit, which is used to acquire a database template; and a template configuration unit, which is used to configure the database template based on each standard field to obtain a target database.

[0354] As an optional embodiment, the device may further include: an index field generating module, configured to generate an index field of the target database.

[0355] As an optional embodiment, the index field generation module is further used to generate index fields of the target database based on high-frequency search terms currently used for the target database.

[0356] As an optional embodiment, the device may also include at least one of the following: a first configuration module, used to configure all standard fields used to configure the target database as search items for information stored in the target database; a second configuration module, used to configure at least one standard field among all standard fields whose current search frequency is higher than a preset value as a search item for information stored in the target database; a third configuration module, used to configure at least one designated standard field among all standard fields as a search item for information stored in the target database.

[0357] As an optional embodiment, the device may also include: an information conversion module, which is used to respond to receiving an external request for obtaining characteristic attribute information stored in a target database, and convert the requested characteristic attribute information into characteristic attribute information described by external universal standard fields; an information output module, which is used to output information based on the processing result of the information conversion module.

[0358] As an optional embodiment, the device may further include: a data life cycle generation module, used to generate a data life cycle for the target database; and a data elimination processing module, used to eliminate historical data stored in the target database based on the data life cycle.

[0359] As an optional embodiment, the device may further include: a library and table sharding processing module, configured to perform library and table sharding processing on the target database in response to the data volume of information stored in the target database reaching a preset value.

[0360] As an optional embodiment, the device may further include: a verification module, which is used to verify whether there is a field matching the converted characteristic attribute information in the target database before storing the converted characteristic attribute information in the target database.

[0361] It should be noted that the embodiments of the device part of the present application are the same or similar to the embodiments of the corresponding method part of the present application, and the technical effects achieved and the technical problems solved are also the same or similar. The embodiments of the present application will not be repeated here.

[0362] According to an embodiment of the present application, the present application provides another processing device for operator services.

[0363] Fig.7D A block diagram of a processing device for an operator service according to another embodiment of the present application is exemplarily shown.

[0364] like Fig.7D As shown, the processing device 700D for operator services may include a determination module 712 , an acquisition module 713 , and a deployment module 714 .

[0365] The determination module 712 (the fourth determination module) is used to determine N types of computing resources for deploying the operator service, wherein in each type of computing resources in the N types of computing resources, at least one container is set for the operator service.

[0366] The acquisition module 713 (third acquisition module) is used to acquire N service images generated based on the operator service.

[0367] The deployment module 714 is used to deploy N service images into containers set for operator services in N types of computing resources.

[0368] As an optional embodiment, the device may also include: a prediction module, used to predict the resource quota required to support the operation of the operator service; and a setting module, used to set at least one container for the operator service in each type of computing power resources among N types of computing power resources based on the predicted resource quota.

[0369] As an optional embodiment, the setting module includes: a matching unit, which is used to convert the predicted resource quota into a resource quota that matches the current category of computing power resources for each category of computing power resources; and a setting unit, which is used to set at least one container for the operator service in the current category of computing power resources based on the converted resource quota.

[0370] As an optional embodiment, the device may further include: an expansion module, configured to expand the capacity of the container whose load exceeds the preset value in response to the load of any container set for the operator service exceeding the preset value.

[0371] As an optional embodiment, the device may also include: a second acquisition module, used to obtain M newly generated service images based on the operator service in response to the addition of M types of computing power resources, wherein in each type of computing power resources in the M types of computing power resources, at least one container is set for the operator service; and a first deployment module, used to deploy the M service images into containers in the M types of computing power resources respectively.

[0372] As an optional embodiment, the device may also include: a scheduling module, which is used to schedule computing resources used to respond to the request based on the computing load balance between N types of computing resources in response to receiving a request for an operator service.

[0373] As an optional embodiment, the device may also include: a third acquisition module, used to acquire at least one AI model file before acquiring N service images generated based on the operator service; a second generation module, used to generate an operator service including at least one sub-operator service based on at least one AI model file; and a third generation module, used to generate N service images based on the operator service.

[0374] As an optional embodiment, the device may further include: based on the third generation module including:

[0375] an acquisition unit, for at least one pre-processing component and at least one post-processing component matching the operator service; and

[0376] The generation unit is used to generate N service images based on the operator service, at least one pre-processing component and at least one post-processing component.

[0377] As an optional embodiment, each of the N service images includes: a first image generated based on an operator service, wherein the first image includes at least one first sub-image.

[0378] The device may also include: a fourth generation module, used to generate a second image based on at least one pre-processing component, wherein the first image includes at least one second sub-image; and a fifth generation module, used to generate a third image based on at least one post-processing component, wherein the first image includes at least one third sub-image; a first deployment module, including: a first deployment unit, used to deploy the corresponding first image, second image and third image in different containers set for the operator service for each type of computing resources; or, a second deployment unit, used to deploy at least two of the corresponding first image, second image and third image in the same container set for the operator service; or, a third deployment unit, used to deploy each of the corresponding at least one first sub-image, at least one second sub-image and at least one third sub-image in different containers set for the operator service.

[0379] It should be noted that the embodiments of the device part of the present application are the same or similar to the embodiments of the corresponding method part of the present application, and the technical effects achieved and the technical problems solved are also the same or similar. The embodiments of the present application will not be repeated here.

[0380] According to an embodiment of the present application, the present application provides yet another processing device for operator services.

[0381] Fig. 7E A block diagram of a processing device for operator services according to yet another embodiment of the present application is exemplarily shown.

[0382] like Fig. 7E As shown, the processing device 700E for operator services may include a receiving end 715 and a processor 716 .

[0383] The receiving end 715 is used to call the request of each operator service.

[0384] Processor 716 is used to perform the following operations in response to receiving at least one request to call a target operator service: (a first determination module is used to) determine multiple service images generated based on the target operator service; (a second determination module is used to) determine multiple heterogeneous computing power resource platforms for deploying multiple service images; (a first traffic distribution module is used to) distribute at least one request to a corresponding computing power resource platform among multiple heterogeneous computing power resource platforms for processing based on a pre-set heterogeneous platform traffic distribution strategy; wherein the heterogeneous platform traffic distribution strategy includes at least one of the following: a heterogeneous polling strategy, a heterogeneous random strategy, a heterogeneous priority strategy, and a heterogeneous weight strategy.

[0385] As an optional embodiment, the processor may also include: a second traffic distribution module, which is used to distribute at least one request to a corresponding computing power resource platform among multiple heterogeneous computing power resource platforms, and when the corresponding computing power resource platform includes multiple execution nodes, distribute the request distributed to the corresponding computing power resource platform to the corresponding execution node among the multiple execution nodes for processing based on a pre-set platform internal traffic distribution strategy; wherein the platform internal traffic distribution strategy includes at least one of the following: an internal polling strategy, an internal random strategy, an internal priority strategy, and an internal weight strategy.

[0386] As an optional embodiment, the processor may also include: an expansion module, which is used to, in the process of distributing at least one request, expand the capacity of the target operator service in response to at least one heterogeneous computing resource platform whose actual resource occupancy reaches a preset resource quota upper limit, so as to continue to distribute the at least one request that has not yet been distributed.

[0387] As an optional embodiment, the processor may also include: the expansion module includes: an acquisition unit, used to acquire at least one service image generated based on the target operator service based on at least one heterogeneous computing power resource platform; a deployment unit, used to deploy at least one service image into a container set for the target operator service in at least one heterogeneous computing power resource platform.

[0388] As an optional embodiment, the processor may also include: the deployment unit is also used to: determine, for each computing power resource platform in at least one heterogeneous computing power resource platform, a resource group for deploying a corresponding service image in at least one service image; create a container in the resource group; and deploy the corresponding service image in the container.

[0389] As an optional embodiment, the deployment unit is further used to: before creating a container in the resource group, in response to the actual resource occupancy of the resource group reaching the resource quota upper limit of the resource group, perform an alarm operation.

[0390] As an optional embodiment, the processor may also include: an acquisition module, used to acquire at least one AI model file before acquiring at least one service image generated based on the target operator service; a first generation module, used to generate a target operator service including at least one sub-operator service based on at least one AI model file; and a second generation module, used to generate at least one service image based on the target operator service.

[0391] It should be noted that the embodiments of the device part of the present application are the same or similar to the embodiments of the corresponding method part of the present application, and the technical effects achieved and the technical problems solved are also the same or similar. The embodiments of the present application will not be repeated here.

[0392] According to an embodiment of the present application, the present application further provides an electronic device, a readable storage medium and a computer program product. The computer program product includes a computer program, and the computer program can implement the method of any of the above embodiments when executed by a processor.

[0393] like Figure 8 , is a block diagram of an electronic device according to a method (such as a processing method for a workflow, etc.) according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present application described herein and / or required.

[0394] like Figure 8 As shown, the electronic device includes: one or more processors 801, memory 802, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 801 is taken as an example.

[0395] The memory 802 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the method provided in the present application (such as a processing method for a workflow, etc.). The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the method provided in the present application (such as a processing method for a workflow, etc.).

[0396] The memory 802 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method (such as a method for processing a workflow, etc.) in the embodiments of the present application (for example, the attached Fig. 7A The processor 801 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 802, that is, implements the method in the above method embodiment (such as the processing method for workflow, etc.).

[0397] The memory 802 may 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; the data storage area may store data created by the use of an electronic device according to a method (such as a processing method for a workflow, etc.). In addition, the memory 802 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 802 may optionally include a memory remotely arranged relative to the processor 801, and these remote memories may be connected to an electronic device such as a processing method for a workflow, etc., via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0398] The electronic device for implementing the method of the present application (such as the method for processing a workflow, etc.) may further include: an input device 803 and an output device 804. The processor 801, the memory 802, the input device 803 and the output device 804 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0399] The input device 803 can receive input digital or character information, and generate key signal input related to user settings and function control of electronic devices such as processing methods for workflows, such as touch screens, keypads, mice, track pads, touch pads, indicator rods, one or more mouse buttons, trackballs, joysticks and other input devices. The output device 804 may include a display device, an auxiliary lighting device (e.g., LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0400] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0401] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0402] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0403] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0404] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the respective computers and having a client-server relationship with each other; the server may be a server of a distributed system, or a server combined with a blockchain. The server may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0405] According to the technical solution of the embodiment of the present application, for newly emerging application scenarios, users no longer need to carry out new development and adaptation from the upper layer to the lower layer. Instead, they can share a variety of existing application components provided by the smart workstation and quickly define business applications that can be used for the newly emerging application scenarios, thereby improving work efficiency and increasing the reuse rate of each application component (including AI operator components, referred to as operator components); at the same time, based on user-defined business applications, workflows can be automatically pre-generated, and upstream and downstream node verification can be performed on each task node in the workflow to ensure the correctness of the workflow.

[0406] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0407] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A processing method for an operator service, comprising: Determine at least one primitive field configured for the target operator service, wherein each primitive field is used to describe a characteristic attribute of a processing object of the target operator service; Determine the operator category to which the target operator service belongs; Based on the determined operator category, obtaining a mapping relationship between the at least one original field and the at least one standard field; Based on the acquired mapping relationship, the characteristic attribute information of the characteristic attribute described by each original field is converted into the characteristic attribute information described by the corresponding standard field; Check whether there is a field in the target database that matches the converted feature attribute information; In response to the verification result indicating that there is no field matching the converted characteristic attribute information in the target database, verifying whether the converted characteristic attribute information is characteristic attribute information described by a newly added standard field; In response to the verification result indicating that the converted characteristic attribute information is characteristic attribute information described by the newly added standard field, the field of the target database is expanded by using the newly added standard field; In response to receiving at least one request to invoke the target operator service, determining a plurality of service images generated based on the target operator service; Determining a plurality of heterogeneous computing resource platforms for deploying a plurality of the service images; Based on a pre-set heterogeneous platform traffic distribution strategy, at least one of the requests is distributed to a corresponding computing power resource platform among the multiple heterogeneous computing power resource platforms for processing.

2. The method according to claim 1, further comprising: The converted feature attribute information is stored in the target database; The target database is obtained by the following operations: Determine each standard field, wherein each standard field is used to describe a characteristic attribute of a processing object of an operator service belonging to the operator category; Get the database template; The database template is configured based on each standard field to obtain the target database.

3. The method according to claim 2, further comprising: Generate index fields of the target database.

4. The method according to claim 3, wherein: Based on the high-frequency search terms currently used for the target database, index fields of the target database are generated.

5. The method according to claim 2, further comprising at least one of the following: configuring all standard fields used to configure the target database as search items for information stored in the target database; configuring at least one standard field among all the standard fields whose current search frequency is higher than a preset value as a search item for information stored in the target database; At least one designated standard field among all the standard fields is configured as a search item for information stored in the target database.

6. The method according to claim 2, further comprising: In response to receiving an external request for acquiring characteristic attribute information stored in the target database, the requested characteristic attribute information is first converted into characteristic attribute information described by external universal standard fields and then output.

7. The method according to claim 1, further comprising: Generating a data life cycle for the target database; Based on the data life cycle, the historical data stored in the target database is eliminated.

8. The method according to claim 1, further comprising: In response to the data volume of the information stored in the target database reaching a preset value, database and table sharding processing is performed on the target database.

9. The method according to claim 1, further comprising: Before storing the converted feature attribute information in the target database, Check whether there is a field in the target database that matches the converted feature attribute information.

10. A processing device for an operator service, comprising: A first determination module, configured to determine at least one original field configured for a target operator service, wherein each original field is used to describe a characteristic attribute of a processing object of the target operator service; A second determination module is used to determine the operator category to which the target operator service belongs; An acquisition module, configured to acquire a mapping relationship between the at least one original field and the at least one standard field based on the determined operator category; A conversion module, configured to convert the characteristic attribute information of the characteristic attribute described by each original field into the characteristic attribute information described by the corresponding standard field based on the acquired mapping relationship; An information storage module is used to check whether there is a field matching the converted characteristic attribute information in the target database; in response to the check result indicating that there is no field matching the converted characteristic attribute information in the target database, check whether the converted characteristic attribute information is characteristic attribute information described by a newly added standard field; in response to the check result indicating that the converted characteristic attribute information is characteristic attribute information described by a newly added standard field, expand the fields of the database using the newly added standard field; The apparatus is further configured to perform the following operations: in response to receiving at least one request to invoke the target operator service, determine a plurality of service images generated based on the target operator service; Determining a plurality of heterogeneous computing resource platforms for deploying a plurality of the service images; Based on a pre-set heterogeneous platform traffic distribution strategy, at least one of the requests is distributed to a corresponding computing power resource platform among the multiple heterogeneous computing power resource platforms for processing.

11. The device according to claim 10, wherein: The information storage module is also used to store the converted feature attribute information in a target database; The target database is obtained by performing relevant operations through a database configuration module, and the database configuration module includes: a field determination unit, configured to determine each standard field, wherein each standard field is used to describe a characteristic attribute of a processing object of an operator service belonging to the operator category; A template acquisition unit, used for acquiring a database template; The template configuration unit is used to configure the database template based on each standard field to obtain the target database.

12. The apparatus according to claim 11, further comprising: The index field generation module is used to generate the index fields of the target database.

13. The device according to claim 12, wherein: The index field generation module is also used to generate index fields of the target database based on high-frequency search terms currently used for the target database.

14. The apparatus according to claim 11, further comprising at least one of the following: A first configuration module, configured to configure all standard fields used to configure the target database as search items for information stored in the target database; A second configuration module, configured to configure at least one standard field of all the standard fields, the current search frequency of which is higher than a preset value, as a search item for the information stored in the target database; The third configuration module is used to configure at least one specified standard field among all the standard fields as a search item for the information stored in the target database.

15. The apparatus according to claim 11, further comprising: The information conversion module is used to respond to receiving an external acquisition request for characteristic attribute information stored in the target database, first convert the requested characteristic attribute information into characteristic attribute information described by external universal standard fields, and then output it.

16. The apparatus according to claim 10, further comprising: A data life cycle generation module, used to generate a data life cycle for the target database; The data elimination processing module is used to eliminate the historical data stored in the target database based on the data life cycle.

17. The apparatus according to claim 11, further comprising: The library and table sharding processing module is used to perform library and table sharding processing on the target database in response to the data volume of the information stored in the target database reaching a preset value.

18. The apparatus according to claim 11, further comprising: The verification module is used to store the converted feature attribute information in the target database before Check whether there is a field in the target database that matches the converted feature attribute information.

19. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.

20. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 9.

21. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Data standardization processing method and device based on data resources, computer apparatus and storage medium

    CN109189769A

  • Field matching method and device, computer storage medium and terminal

    CN109783611A

  • Data processing method and device and electronic equipment

    CN110232137A

  • Dynamic creation and maintenance of multi-column custom indexes for efficient data management in an on-demand services environment

    US20180129691A1

  • Method and device for selecting processor

    WO2020062086A1