Business processing method and device, equipment, medium and product
By obtaining and matching the deployment instructions of the target device and sending corresponding business program information and associated program information, the problem of low deployment efficiency of distributed cloud devices is solved and more efficient business deployment is achieved.
Patent Information
- Application Number
- CN202310743360.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-21
- Publication Date
- 2024-12-24
AI Technical Summary
The existing distributed cloud device deployment methods are inefficient, mainly because the general process model of central cloud devices contains a large amount of redundant program information, which leads to inefficient deployment on distributed cloud devices.
By obtaining the deployment instructions of the target device for the target service, matching and sending corresponding business program information and associated program information, the target device enables the target device to execute the target service based on the received program information, and avoiding the deployment of unnecessary redundant programs.
It simplifies the program information deployment process, improves business deployment efficiency, reduces redundant program deployment on target devices, and improves the deployment efficiency of distributed cloud devices.
Smart Images

Figure CN119182658A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud technology, and in particular to a business processing method, device, equipment, medium and product. Background Art
[0002] Distributed cloud is an extension of the central cloud capabilities, aiming to provide ubiquitous cloud computing services to meet the needs of edge data processing, real-time computing and other nearby access needs. Compared with the central cloud, the use of any location and flexible application scenarios determine the characteristics of distributed cloud on-demand customization, compactness and regular deployment. How to quickly deploy distributed cloud devices and meet the needs of distributed cloud devices is one of the core competitiveness of distributed cloud.
[0003] The current distributed cloud device deployment method generally deploys the general process model of the central cloud device to the distributed cloud device, which can meet the needs of distributed cloud devices. However, the general process model of the central cloud device contains a lot of program information, among which there is a lot of redundant program information, which leads to low efficiency in deploying the entire general process model to the distributed cloud device. Summary of the invention
[0004] The embodiments of the present application provide a service processing method, apparatus, device, medium and product, which can improve the efficiency of service deployment in a target device.
[0005] In a first aspect, the present application provides a business processing method, including:
[0006] Acquire deployment instruction information of a target device for a target service; the deployment instruction information includes information configured to indicate execution of the target service;
[0007] Acquire N business program information matching the deployment indication information; N is a positive integer, and the N business program information is used to execute the target business;
[0008] Obtaining the associated program information of the N business program information; the associated program information of a business program information refers to the program information that needs to be associated with the execution of the business program information;
[0009] The N pieces of service program information and associated program information of the N pieces of service program information are sent to the target device, so that the target device executes the target service based on the received program information.
[0010] In a second aspect, the present application provides a service processing device, including:
[0011] An information acquisition unit, used to acquire deployment instruction information of a target device for a target service; the deployment instruction information includes information configured to indicate execution of the target service;
[0012] An information matching unit, used to obtain N business program information matching the deployment indication information; N is a positive integer, and the N business program information is used to execute the target business;
[0013] An information association unit, used to obtain the associated program information of the N business program information; the associated program information of a business program information refers to the program information that needs to be associated with the execution of the business program information;
[0014] The information sending unit is used to send the N business program information and the associated program information of the N business program information to the target device, so that the target device executes the target business based on the received program information.
[0015] In a third aspect, the present application provides a computer device, including a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the above-mentioned business processing method.
[0016] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the above-mentioned business processing method.
[0017] In a fifth aspect, the present application provides a computer program product or a computer program, which includes computer instructions, and when the computer instructions are executed by a processor, the above-mentioned business processing method can be implemented.
[0018] In the embodiment of the present application, by acquiring the deployment instruction information of the target device for the target business, N business program information matching the deployment instruction information is acquired, and the associated program information of the N business program information is acquired; the associated program information of a business program information refers to the program information that needs to be associated with the execution of the business program information; the N business program information and the associated program information of the N business program information are sent to the target device, so that the target device executes the target business based on the received program information. Since the business program information and the associated program information are matched by the deployment instruction information of the target device, it is possible to acquire the corresponding business program information and the associated program information according to the needs of the target device, so that the business program information and the associated program information corresponding to the needs of the target device can be deployed on the target device, which can avoid deploying a large amount of business program information that is not needed for the execution of the target business on the target device to affect the business deployment efficiency, and can simplify the process of program information deployment, improve the efficiency of program information deployment, and thus improve the efficiency of business deployment in the target device. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 It is a schematic diagram of a network architecture of a business processing system provided in an embodiment of the present application;
[0021] Figure 2 This is a schematic diagram of an application scenario of a business processing method provided by an embodiment of the present application;
[0022] Figure 3 It is a flowchart of a business processing method provided by an embodiment of the present application;
[0023] Figure 4 It is a structural diagram of a business processing system provided in an embodiment of the present application;
[0024] Figure 5 It is a flowchart of another business processing method provided by an embodiment of the present application;
[0025] Figure 6 This is a flowchart of another service processing method provided by an embodiment of the present application;
[0026] Figure 7 It is a schematic diagram of the structure of a service processing device provided in an embodiment of the present application;
[0027] Figure 8 It is a schematic diagram of the composition structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] Cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to realize the calculation, storage, processing and sharing of data. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application. It can form a resource pool, which is used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of the Internet industry, each item may have its own identification mark in the future, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately, and all kinds of industry data require strong system backing support, which can only be achieved through cloud computing. The solution provided in the embodiment of the present application belongs to cloud computing and public cloud under the field of cloud technology.
[0030] Cloud computing refers to the delivery and use mode of IT infrastructure, which means obtaining required resources through the network in an on-demand and easily scalable manner; in a broad sense, cloud computing refers to the delivery and use mode of services, which means obtaining required services through the network in an on-demand and easily scalable manner. This service can be related to IT and software, the Internet, or other services. Cloud computing is the product of the development and integration of traditional computer and network technologies such as grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing. With the development of the Internet, real-time data streams, and the diversification of connected devices, as well as the promotion of search services, social networks, mobile commerce, and open collaboration, cloud computing has developed rapidly. Different from previous parallel distributed computing, the emergence of cloud computing will promote revolutionary changes in the entire Internet model and enterprise management model in terms of concept. For example, in this application, cloud computing technology can be used to calculate the deployment indication information of the target business, so as to determine the business program information that matches the deployment indication information, and so on.
[0031] Public Cloud usually refers to a cloud that is provided by a third-party provider for users to use. Public Cloud is generally available through the Internet and may be free or low-cost. The core attribute of Public Cloud is shared resource services. There are many instances of this cloud, which can provide services in the entire open public network today. For example, the central cloud device in this application can be a device corresponding to the public cloud.
[0032] The technical solution of this application can be applied to scenarios where customized program information is implemented according to the needs of the target device. For example, it can be applied to various scenarios where customized program information is customized on demand to implement corresponding functions, such as but not limited to video data acquisition, sensor operation status detection in industrial scenarios, or other distributed cloud devices that need to perform business and other scenarios. The technical solution of this application can also be applied to various scenarios, including but not limited to artificial intelligence, smart transportation, assisted driving, etc.
[0033] It should be noted that the data related to the object information (such as deployment instruction information, associated program information, etc.) involved in the embodiments of the present application, when the embodiments of the present application are applied to specific products or technologies, the object's permission or consent needs to be obtained, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the object can refer to the user of a terminal device or a computer device.
[0034] See also Figure 1 , Figure 1 is a schematic diagram of a network architecture of a business processing system provided in an embodiment of the present application, such as Figure 1 As shown, the computer device can exchange data with the target device, and the number of the target devices can be one or at least two. For example, when the number of the target devices is multiple, the target devices may include Figure 1 The target device 101a, the target device 101b and the target device 101c, etc. Among them, taking the target device 101a as an example, the computer device 102 can obtain the deployment indication information of the target device for the target business. Further, the computer device 102 can obtain N business program information matching the deployment indication information, and obtain the associated program information of the N business program information, where N is a positive integer. The computer device 102 can also send the N business program information and the associated program information of the N business program information to the target device 101a, so that the target device 101a executes the target business based on the received program information. Optionally, the target device 101a can display the data generated by the execution of the target business through an associated display screen. For example, if the target business is a business in which a video acquisition device acquires a video, the acquired video can be displayed through an associated display screen.
[0035] It is understandable that the computer device mentioned in the embodiments of the present application may include but is not limited to a terminal device or a server, for example, the computer device may refer to a central cloud device in a distributed cloud system, and the target device may include but is not limited to a server or a terminal device, for example, the target device may refer to a distributed cloud device in a distributed cloud system. Optionally, the computer device may be a server or a terminal device, or a system consisting of a server and a terminal device. Among them, the terminal device mentioned above may be an electronic device, including but not limited to a mobile phone, a tablet computer, a desktop computer, a laptop computer, a PDA, a vehicle-mounted device, an intelligent voice interaction device, an augmented reality / virtual reality (AR / VR) device, a helmet display, a wearable device, a smart speaker, a smart home appliance, an aircraft, a digital camera, a camera and other mobile Internet devices (mobile internet device, MID) with network access capability, etc. Among them, the servers mentioned above can be independent physical servers, or they can be server clusters or distributed systems composed of multiple physical servers. They can also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, vehicle-road collaboration, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0036] See also Figure 2 , Figure 2 is a schematic diagram of an application scenario of a business processing method provided in an embodiment of the present application; Figure 2 As shown, the central cloud device 201 can obtain the deployment instruction information of the target device 202 for the target business, and the deployment instruction information can include the information configured to indicate the execution of the target business, for example, it can include the requirements of the target business. Further, the central cloud device 201 can obtain multiple business program information and associated program information of multiple business program information that match the deployment instruction information. For example, N business program information and associated program information of N business program information that match the deployment instruction information can be obtained from the program pool 203. For example, the program pool 203 may include Y business program information and associated program information of Y business program information, where Y is a positive integer greater than or equal to N. Then, a program information set 204 can be obtained, and the program information set 204 includes N business program information and associated program information of N business program information that match the deployment instruction information. Further, the central cloud device 201 can send the N business program information and the associated program information of N business program information to the target device 202 for deployment, so that the target device 202 executes the target business based on the received program information.
[0037] For further information, see Figure 3 , Figure 3 is a flowchart of a business processing method provided by an embodiment of the present application; Figure 3 As shown, the service processing method can be applied to a central cloud device in a distributed cloud system, or to a deployment device deployed on the central cloud device. The service processing method includes but is not limited to the following steps:
[0038] S101, obtaining deployment instruction information of a target device for a target service.
[0039] In an embodiment of the present application, the central cloud device may contain a large amount of resource information, for example, a total set of all resource information, and the central cloud device is centrally distributed. If each target device needs to access the central cloud device to process data, it will result in a long access link, low access efficiency, and thus low data processing efficiency. As for the target device, the target device only needs to execute the target business associated with it, and does not need to obtain all resource information from the large amount of resource information stored in the central cloud device. It only needs to obtain part of the resource information related to the target business to execute the target business. Therefore, the resource information related to the demand information can be obtained from the central cloud device according to the demand information of the target device, and the resource information related to the demand information can be deployed on the target device. Then, the target business can be independently executed on the target device, and it is no longer dependent on the central cloud device, which can improve the efficiency of the execution of the target business. In addition, since it is not necessary to access the central cloud device when executing the target business, the local database of the target device can be accessed to execute the target business, which can ensure data security.
[0040] In an embodiment of the present application, when the target device needs to execute the target business, it can first send deployment instruction information to the central cloud device. The deployment instruction information can include information configured to indicate the execution of the target business. The deployment instruction information can be used to indicate the business deployment requirements of the target device. For example, the deployment instruction information may include the program identifier of the business program required to execute the target business, such as the program name, the component identifier of the business component, such as the component name, the step identifier of the business step, such as the step name, and so on. The target device may refer to a device that needs to execute the target business. By obtaining the deployment instruction information of the target device for the target business, the deployment instruction information including the information configured to indicate the execution of the target business can be configured on the target device so that the target device executes the target business. The target business refers to the business that the target device needs to execute. For example, the target business may include, but is not limited to, data acquisition tasks and other businesses. For example, data acquisition tasks may include, but are not limited to, video acquisition business and image acquisition business.
[0041] S102: Acquire N pieces of business program information matching the deployment instruction information.
[0042] In an embodiment of the present application, since the deployment instruction information of the target device for the target business is obtained, N business program information matching the deployment instruction information can be obtained from the background database of the central cloud device. The N business program information is used to execute the target business. The business program information can be, for example, the business components required to execute the target business or the running program information of the business program. For example, the business program information can refer to the information of a step required to execute the target business. Executing the step can realize the function corresponding to the step. By deploying the functions corresponding to the N business program information on the target device, the target device can normally execute the target business. Among them, the business program information can include but is not limited to the name of the business program, the automated deployment program code corresponding to the business program, the metadata of the business program operation, and so on.
[0043] In an optional implementation method, the name of the business program, the automated deployment program code corresponding to the business program, and the metadata of the business program operation can be obtained in advance and assembled to obtain the business program information. The assembled business program information can then be directly sent to the target device. The target device executes the automated deployment program code and metadata corresponding to the business program, thereby deploying the business program on the target device.
[0044] In one embodiment, the target device is any distributed cloud device in a distributed cloud system, and the distributed cloud system includes a central cloud device other than the distributed cloud device; the method for obtaining N business program information matching the deployment indication information may be: pulling a program pool from the central cloud device; the program pool includes program information required to execute multiple businesses, and the multiple businesses include the target business; in the program pool, obtaining N business program information matching the deployment indication information.
[0045] Among them, the N business program information that matches the deployment indication information may refer to business program information that has the same identifier as the identifier of the information configured in the deployment indication information for indicating the execution of the target business. For example, the deployment indication information may include the identifier of a database, the identifier of an operating system, the identifier of a driver, etc., then the N business program information that matches the deployment indication information may include database information that is the same as the identifier of the database, operating system information that is the same as the identifier of the operating system, and driver information that is the same as the identifier of the driver.
[0046] In the embodiment of the present application, the distributed cloud system may include multiple distributed cloud devices, that is, multiple target devices, each target device may deploy different services, so that different services can be executed on different target devices. For other target devices in the distributed cloud system, this method can also be referred to for processing, so as to realize the execution of their corresponding services. The distributed cloud device may also include a central cloud device, which can store all business program information, and all services associated with the business program information can be executed on the central cloud device, and the target device can directly obtain the execution result for the service. However, since the central cloud device can execute a large number of services, and the business requirements of each target device are different, and the business execution time may also conflict, if all the services that all target devices need to execute are executed on the central cloud device, the load of the central cloud device will be increased, and business execution failures are prone to occur. Therefore, in order to reduce the pressure of the central cloud device, the business program information corresponding to the needs of the target device can be obtained from the central cloud device according to the needs of each target device, so that the business program information can be deployed on the corresponding target device according to the needs of the target device, so that the respective services can be executed on the target device, reducing the load of the central cloud device.
[0047] Furthermore, the central cloud device can pull a program pool from its own database, and the program pool can contain a large amount of program information, for example, a collection of all program information, and the central cloud device can also obtain N business program information matching the deployment instruction information from the program pool. By pulling the program pool and obtaining N business program information matching the deployment instruction information, subsequent business program deployment can be facilitated, so that the target business can be executed on the target device.
[0048] Optionally, in order to reduce the server pressure of the central cloud device, the program pool can be pulled from the central cloud device by the deployment device, and N business program information matching the deployment instruction information can be obtained from the program pool. The deployment device can be a component, plug-in or application deployed on the central cloud device. By using the deployment device to pull the program pool from the central cloud device and matching the business program information from the pulled program pool, the business program information deployment can be performed without the central cloud device, and the business program information deployment pressure can be transferred to the deployment device, reducing the load of the central cloud device for business program deployment, thereby reducing the pressure on the central cloud device.
[0049] In one embodiment, N business program information matching the deployment indication information can be obtained in the following manner: sending a program acquisition request to the central cloud device; the program acquisition request includes the deployment indication information; receiving N business program information returned by the central cloud device; wherein the central cloud device has a program pool, the program pool includes the program information required to execute multiple businesses, the multiple businesses include the target business, and the N business program information can be matched by the central cloud device in the program pool based on the deployment indication information.
[0050] Among them, the program acquisition request is used to request to obtain the business program information that matches the deployment indication information. The deployment device can send a program acquisition request containing the deployment indication information to the central cloud device, and receive N business program information returned by the central cloud device. In this case, when the deployment device receives the deployment indication information of the target device for the target business, it can generate a program acquisition request containing the deployment indication information, send the program acquisition request to the central cloud device, and the central cloud device can obtain the matching N business program information from the program pool based on the deployment indication information, and return it to the deployment device, and the deployment device can send N business program information to the target device. By configuring the deployment device on the central cloud device, data transfer can be achieved. All target devices among the multiple target devices in the distributed cloud system can directly establish a connection with the deployment device, and the central cloud device can only establish a connection with the deployment device. Compared with directly connecting all target devices in the distributed cloud system to the central cloud device, the connection channel of the central cloud device can be reduced, and the server pressure of the central cloud device can be reduced.
[0051] Optionally, the central cloud device can also directly obtain the deployment instruction information of the target device for the target business, obtain N business program information matching the deployment instruction information from its own program pool, and then send the N business program information to the target device. By directly obtaining the business program information matching the deployment instruction information through the central cloud device, the efficiency of obtaining the business program information can be improved.
[0052] S103, obtaining associated program information of N pieces of business program information.
[0053] In an embodiment of the present application, since N business program information is obtained, and the execution of each business program information needs to be associated with the execution of associated program information, after the N business program information is obtained, the associated program information of the N business program information can be obtained. The associated program information of a business program information refers to the program information that needs to be associated with the execution of the business program information. In other words, when executing business program information, it is necessary to first execute the program information associated with the business program information. Optionally, the associated program information may also refer to a type of business program information, so the associated program information may also include the name of the associated program, the automated deployment program code corresponding to the associated program, and the metadata of the associated program operation. The associated program may refer to the program that the business program depends on, that is, the associated program needs to be executed before the business program can be executed.
[0054] For example, if the business program information is database information, the operating system information needs to be executed before the database information is executed, and the hardware driver information needs to be executed before the operating system information is executed. Therefore, when the business program information is database information, the associated program information may include the operating system information and the hardware driver information.
[0055] In a possible implementation, when N business program information matching the deployment instruction information is obtained, program chains of the N business program information can be obtained respectively, and the program chains can include each business program information and associated program information of each business program information. The program chain can include business program information and program information associated with the business program information. By obtaining the program chain of each business program information, program information other than each business program information on the program chain can be determined as associated program information of each business program information.
[0056] In one embodiment, the program pool may include program information required for executing multiple businesses, and associated program information of each program information, and then associated program information of N business program information may be obtained from the program pool. For example, an association relationship between each business program information and associated program information in multiple business program information may be preset, and the association relationship may be saved in the program pool. When any business program information is subsequently obtained, the associated program information associated with the any business program information may be obtained from the program pool based on the association relationship.
[0057] Optionally, the association relationship between each business program information and the associated program information can be pre-set, and a program chain for each business program information can be constructed based on the association relationship. The program chain of each business program can be saved in a program pool, and then when each business program information is subsequently obtained, the associated program information associated with each business program information can be obtained based on the program chain. For example, in order to reduce the server pressure of the central cloud device, a deployment device can be set on the central cloud device, and the program pool can be pulled from the central cloud device by the deployment device, thereby obtaining the associated program information of N business program information in the program pool. Optionally, the deployment device can send an associated program acquisition request to the central cloud device, and the associated program acquisition request includes the identifier of the associated program information of the N business program information, thereby receiving the associated program information of the N business program information returned by the central cloud device.
[0058] S104, sending the N pieces of business program information and the associated program information of the N pieces of business program information to the target device, so that the target device executes the target business based on the received program information.
[0059] In an embodiment of the present application, by sending N business program information and N associated program information of the business program information to a target device, the target device can deploy N business programs and associated programs of the N business program information on the target device based on the N business program information and the associated program information of the N business program information, so that the target business can be executed on the target device. Wherein, deployment can refer to sending N business program information and associated program information of the N business program information to the target device to run N business programs and associated programs of the N business programs on the target device. Associated programs refer to programs that need to be run before running business programs. For example, if the business program is a database, the associated programs may include an operating system, a hardware driver, and so on. Optionally, the business program information may, for example, refer to the automated deployment program code and metadata required to run the business program, and the associated program information may, for example, refer to the automated deployment program code and metadata required to run the associated program.
[0060] In one embodiment, since multiple business program information and associated program information of multiple business program information are obtained, when the program information is sent to the target device, it can be sent in sequence to improve the efficiency of program information deployment. Specifically, N business program information and associated program information of N business program information can be added to the cache queue in sequence; the associated program information of one business program information is executed before the business program information, and the associated program information of one business program information is arranged in the cache queue before the business program information; the N business program information and associated program information of N business program information in the cache queue are sent to the target device in sequence.
[0061] Among them, the cache queue can be used to store multiple business program information and associated program information of multiple business program information. In the cache queue, the program information arranged in the front position has an earlier execution order, that is, it can be executed first, and the program information arranged in the back position has a later execution order, that is, it can be executed later. For example, each business program information and the associated program information of the business program information can be determined separately, and the associated program information of the business program information is added to the previous arrangement position in the cache queue, and the business program information is added to the next arrangement position in the cache queue. If there are multiple associated program information for the business program information, the arrangement positions of the multiple associated program information of the business program information in the cache queue can all be before the arrangement position of the business program information in the cache queue. By adding N business program information and the associated program information of N business program information to the cache queue respectively, and sending the N business program information and the associated program information of N business program information in the cache queue to the target device in sequence, the target device can deploy the program information in sequence according to the order of the received program information, and after deploying each program information, each deployed program information can be executed, so that the execution of each business program information can be realized, and then the target business is executed.
[0062] In the embodiment of the present application, since there are multiple business program information that match the deployment indication information of the target business, and there are multiple associated program information for each business program information, by adding multiple business program information and associated program information of multiple business program information to the cache queue in the order of execution, multiple business program information and associated program information of multiple business program information can be sent to the target device in the order of execution, and the target device can deploy the received program information in the order of the received program information. By deploying multiple business program information and associated program information of multiple business program information required to execute the target business on the target device, the target business can be executed on the target device. By setting the execution order of each program information, it is possible to avoid blocking of the execution channel and improve processing efficiency.
[0063] In one embodiment, the target device can be used to combine and process each received business program information with the associated program information of each business program information to obtain the program set to which each business program information belongs; the program set to which a business program information belongs includes the business program information and the associated program information of the business program information; the target device is used to execute the program set to which each business program information belongs in parallel.
[0064] Among them, the process of executing a program set may refer to the process of realizing the execution of a target business. The program set to which each business program information belongs includes each business program information and the associated program information of each business program information. The program set to which each business program information belongs is obtained by combining each business program information and the associated program information of each business program information. For N business program information, the program set to which N business program information belongs can be obtained. The target device can execute N program sets in parallel. For example, the associated program information in multiple program sets can be deployed in parallel. By deploying multiple associated program information in parallel, the efficiency of business execution can be improved.
[0065] In one embodiment, before deploying N business program information and associated program information of the N business program information to the target device, a pre-check process can be performed on each business program information and associated program information of each business program information to determine whether each business program information and associated program information of each business program information are incorrect, so as to avoid errors in subsequent target business execution. Specifically, the associated program information of the N business program information obtained can be checked based on the program mapping table; if the associated program information of each business program information obtained is checked to be consistent with the full program information to which the program identifier having a mapping relationship with the program identifier of each business program information is recorded in the program mapping table, then the N business program information and the associated program information of the N business program information are sent to the target device.
[0066] Among them, the associated program information of N business program information is obtained based on the program mapping table, and the program mapping table records other program identifiers that have a mapping relationship with the program identifier of each business program information. The associated program information of any business program information refers to the program information whose program identifier has a mapping relationship with the program identifier of any business program information. The program mapping table may include the program identifier of the business program information, and the program identifier that has a mapping relationship with the program identifier of the business program information. The program mapping table may also include the program information indicated by the program identifier, for example, it may include but is not limited to the name of the program, the automated deployment program code, metadata, the name of the associated program, and so on. The full amount of program information belonging to the program identifier may include but is not limited to all program information corresponding to the program identifier, for example, it may include but is not limited to the names of all programs corresponding to the program identifier, the names of the associated programs of all programs corresponding to the program identifier, the automated deployment program code of all programs corresponding to the program identifier, the metadata of all programs corresponding to the program identifier, and so on.
[0067] Furthermore, checking may refer to comparing two pieces of program information, for example, comparing the consistency of the associated program information with the full amount of program information. For example, if the names of the two pieces of program information are consistent, the automated deployment program codes of the two pieces of program information are consistent, and the metadata of the two pieces of program information are consistent, it can be indicated that the two pieces of program information are consistent. If the names of the two pieces of program information are inconsistent, or the automated deployment program codes of the two pieces of program information are inconsistent, or the metadata of the two pieces of program information are inconsistent, it can be indicated that the two pieces of program information are inconsistent.
[0068] In the embodiment of the present application, since other program identifiers having a mapping relationship with the program identifier of each business program information are recorded in the program mapping table, by checking the associated program information of the N acquired business program information with the program mapping table, it can be checked whether the associated program information of each acquired business program information is consistent with the full amount of program information to which the program identifier having a mapping relationship with the program identifier of each business program information recorded in the program mapping table belongs. If they are consistent, it can be indicated that all associated program information of each business program information is acquired, and all associated program information of each acquired business program information is correct, and the N business program information and the associated program information of the N business program information can be further sent to the target device. If they are inconsistent, it can be indicated that all associated program information of each business program information is not acquired, or all associated program information of each acquired business program information is incorrect. The associated program information of each business program information can then be reacquired, and the associated program information of each business program information can be checked based on the program mapping table to determine whether the associated program information of each business program information is consistent with the full amount of program information belonging to the program identifier that has a mapping relationship with the program identifier of each business program information recorded in the program mapping table, thereby determining whether to send N business program information and the associated program information of the N business program information to the target device.
[0069] In the embodiment of the present application, by checking the associated program information of each business program information before sending N business program information and associated program information of N business program information to the target device, it is equivalent to pre-checking whether the associated program information of each business program information is correct. If the associated program information of each business program information is correct, each business program information and the associated program information of each business program information can be sent to the target device. If the associated program information of each business program information is incorrect, the incorrect program information is sent to the target device, and an abnormality will occur in the subsequent target device during the execution of the target business. Therefore, the associated program information of each business program information can be re-acquired and checked for consistency before being sent to the target device, thereby avoiding abnormal execution of subsequent target business and ensuring the accuracy of the target business execution.
[0070] In one embodiment, after the target device deploys each of the N business program information or the associated program information of each business program information, the target device can perform a post-check process on each of the deployed program information to determine that each of the program information deployed on the target device is correct, and the target business can be run subsequently. For example, after the target device deploys each of the business program information or the associated program information of each of the business program information, it can run each of the deployed business program information or the associated program information of each of the business program information to ensure that each of the deployed business program information or the associated program information of each of the business program information can run normally, and whether the version is correct. If each of the business program information or the associated program information of each of the business program information cannot run normally, or the version is incorrect, the target device fails to execute the target program information. If it can run normally and the version is correct, the target device succeeds in executing the target program information. By performing a post-check process on each of the program information deployed on the target device, it can be determined whether each of the program information is deployed correctly and can run normally, avoiding the subsequent impact on the execution of the target business, and improving the accuracy of the execution of the target business.
[0071] Optionally, abnormal execution status information for target program information sent by the target device can be further obtained; the target program information is any one of N business program information and associated program information of N business program information, and the abnormal execution status information is generated by the target device after the execution of the target program information fails; in response to the abnormal execution status information, the target program information is resent to the target device.
[0072] Among them, the abnormal execution status information can be used to prompt that the execution of the target program information has failed, for example, it can be used to indicate that the target program information is running abnormally, or to indicate at least one of the versions of the target program information is incorrect. When the central cloud device receives the abnormal execution status information, it can resend the target program information to the target device in response to the abnormal execution status information. By resending the target program information to the target device, the target device can deploy the resent target program information, and can further perform pre-check processing and post-check processing on the resent target program information, thereby ensuring the execution of the target business. By further checking the deployed target program information after deploying the target program information on the target device, the accuracy of the operation of the target program information can be guaranteed, thereby ensuring the accuracy of the execution of the target business.
[0073] In a possible application scenario, the target service may be a service for acquiring videos from a video capture device, and the deployment indication information for the target service may include at least one of the following information: the bit rate at which the video capture device transmits the video to the target device, the time period during which the target device receives the video transmitted by the video capture device, or the cache duration of the video transmitted by the video capture device by the target device, or the resolution of the video transmitted by the video capture device by the target device.
[0074] Among them, the bit rate at which the video capture device transmits the video to the target device can be used to reflect the clarity of the video. The higher the bit rate, the clearer the corresponding video, and the lower the bit rate, the blurrier the corresponding video. The time period for receiving the video transmitted by the video capture device may refer to the time periods during which the target device needs to receive the video, for example, it may include but is not limited to 6 am to 10 am, 8 pm to 12 pm, Monday to Friday, and so on. The cache duration of the video may refer to the number of days the video is saved in the target device. The resolution of the video may refer to the size of the video. The higher the resolution of the video, the clearer the video, and the lower the resolution of the video, the blurrier the video. The deployment indication information for the target service may also include other information used to reflect the quality of the video or other information, which is not limited in the embodiments of the present application.
[0075] In the embodiment of the present application, by obtaining one or more of the bit rate at which the video acquisition device transmits the video to the target device, the time period during which the target device receives the video transmitted by the video acquisition device, the cache duration of the video transmitted by the video acquisition device by the target device, or the resolution of the video transmitted by the target device to the video acquisition device, the central cloud device can obtain the corresponding business program information and the associated program information of the business program information from the program pool based on the information, so that the obtained business program information and the associated program information of the business program information can be deployed on the target device, and then the target device can execute the target business.
[0076] For example, the target service may be a service for acquiring video from a video acquisition device, and the deployment instruction information may include the video cache duration, the bit rate at which the video acquisition device transmits the video to the target device, and the resolution of the video transmitted by the target device to the video acquisition device. The central cloud device can calculate the size of the data disk and the bandwidth required for these requirements of the target device. Based on this information, it is possible to determine how large the database performance needs to be, select database information that matches the database performance from the program pool, and associated program information of the database program information, such as operating system information and hardware driver information, etc. The database information, operating system information, and hardware driver information are sent to the target device to deploy the hardware driver, operating system, and database on the target device, so that the service of acquiring video can be executed on the target device.
[0077] In the embodiment of the present application, for different target devices, since the business requirements of each target device are different, the business program information corresponding to the requirements and the associated program information of the business program information can be obtained in combination with the business requirements of each target device, and deployed on the corresponding target device. This can achieve customization of the business program according to the requirements of the target device, avoid deploying too many business programs on the target device, streamline the deployment of business programs, and save the deployment efficiency of business programs.
[0078] In an alternative implementation, see Figure 4 , Figure 4 It is a structural diagram of a business processing system provided by an embodiment of the present application. The central cloud device can obtain the demand information of the target device, that is, obtain the deployment indication information of the target device for the target business, and obtain N business program information and associated program information of N business program information corresponding to the demand information from the program pool through the orchestration module on the central cloud device in combination with the demand information of the target device, and save the N business program information and the associated program information of N business program information to the abstract model in the abstract model pool. The abstract model can be used to store business program information and associated program information of business program information. Further, the abstract model can be scheduled by the execution module on the central cloud device to trigger the execution of the program information in the abstract model. When executing each program information in the abstract model, each program information can be pre-checked and processed first, and each program information can be sent to the target device, that is, to the distributed cloud device after the pre-check is passed, and the target device can automatically deploy each program information. After deploying each program information, the target device can perform a post-check on each program information, thereby improving the stability of the execution of the target business. Among them, target device 1, target device 2 and target device 3 can refer to three different target devices, and the demand information of each target device can be different.
[0079] It is understandable that automatic deployment may refer to sending each program information to the target device, and the target device executes the automated deployment program code to deploy each program information on the target device. Among them, each program information may include automated deployment program code and metadata, the automated deployment program code may include a download installation package command, and the metadata may include the installation package version to be downloaded. After the target device obtains the automated deployment program code corresponding to the program information, the target device executes the download installation package command, and can download the required installation package version from the corresponding website for installation, thereby realizing automatic deployment of program information.
[0080] In an embodiment of the present application, the program information in the program pool may be a piece of scattered program information obtained by disassembling a general process model containing a large amount of program information on a central cloud device. Each program information has a unique corresponding automated deployment program code. By executing the automated deployment program code and metadata on the target device, the program corresponding to the program information can be deployed on the target device. The program pool may be responsible for managing the full amount of program information on the central cloud device, for example, including but not limited to more than 100 types of program information such as channel program information, support machine deployment program information, and computing resource deployment information. At the same time, the program pool may manage the subprogram information of each program information, as well as the association relationship between each program information, such as the dependency relationship between program information. The program pool may store the dependency chain corresponding to each program information (i.e., the program chain mentioned above), and the dependency chain may include a business program information and the associated program information of the business program information. Associated program information for each program information. Subprogram information may refer to multiple program information obtained by dividing a program information. The association relationship between each program information may reflect each business program information and the associated program information of each business program information. In other words, multiple business program information and the associated program information of multiple business program information may be saved in the program pool. Therefore, when it is necessary to obtain a certain business program information in the program pool, the business program information can be indexed by the program identifier of the business program information, such as the program name, and each business program information indexes its associated program information by the name. That is to say, when it is necessary to obtain a certain business program information, the business program information can be indexed by the name of the business program information in the program pool, and the associated program information of the business program information can be determined.
[0081] In the embodiment of the present application, for different requirements of distributed cloud devices, the orchestration module can be responsible for generating customized abstract models. When the orchestration module is running, the demand information of the distributed cloud device can be first converted into the resource requirements of each cloud product, that is, the demand information is converted into matching N business program information. For each business program information, all the associated program information of each business program information can be searched along the pre-associated program information of each business program information until all the associated program information of each business program information is found, and the most streamlined program information list for deploying distributed cloud nodes is obtained. It can be understood that all the associated program information of each business program information can also include the associated program information of the associated program information, for example, program information A needs to execute program information B first, and program information B needs to execute program information C first, then program information B can be the associated program information of program information A, and program information C can be the associated program information of associated program information B. The program information list and each program information in the program information list are encapsulated into an abstract model and saved in the abstract model pool, and multiple program information in the abstract model pool can be deployed on the target device later. For multiple distributed cloud devices, each distributed cloud device has different demand information and obtains different abstract models, so the abstract model pool may include multiple different abstract models.
[0082] In an embodiment of the present application, the execution module is responsible for scheduling the abstract model orchestrated by the orchestration module. A timer may be built into the execution module, so that the abstract model pool can be scanned regularly to detect executable abstract models and actively trigger the execution of program information in the abstract model. After each program information is executed, the next program information will be automatically started for the scheduler to schedule and execute. The scheduler can be used to schedule the execution of each abstract model in the abstract model pool. The execution module is the executor for deploying program information. The execution module can use multi-threaded scheduling to improve concurrency and support the simultaneous deployment of more than 1,000 distributed cloud devices.
[0083] In an embodiment of the present application, by introducing an orchestration module, the demand information and the full amount of program information of distributed cloud devices can be used as inputs, and an abstract model can be screened and assembled to obtain a customized deployment process, which can greatly simplify the deployment of program information. By introducing an execution module, the deployment program information can be executed, and through methods such as pre-checking, post-checking, automated deployment, and parallel execution, the problems caused by manual operations can be reduced, the deployment efficiency of distributed cloud devices can be improved, and the reliability of the equipment can be increased. Automated deployment refers to sending program information to the target device, and the target device can automatically deploy the program information. Pre-checking, post-checking, and other methods can be used to promptly discover problems in the deployment, ensure that the deployment results of each program information meet expectations, and improve the overall reliability of the system. In addition, the deployment time of distributed cloud devices can be further reduced, and the customized and batch deployment requirements of distributed cloud devices can be better supported.
[0084] In the embodiment of the present application, by deploying the orchestration module on the central cloud device, the deployment program information can be greatly simplified and an abstract model customized on demand can be obtained. By deploying the execution module on the central cloud device, the deployment efficiency of a single program information can be improved by using an automated deployment method. The batch deployment efficiency of distributed cloud devices can be improved by using a parallelization method. Some experimental data indicate that the average deployment cycle of 18 standard distributed cloud devices is shortened from 45 days to 15 days using the business processing method in the embodiment of the present application, and the deployment time is shortened by 66%. In addition, the embodiment of the present application can discover problems with the deployed program information in advance through a perfect automatic inspection mechanism, thereby improving the reliability and maintainability of the distributed cloud device. According to the statistics of the number of problems reported in actual use, the number of problems that occurred in the operation within half a year after the construction of each distributed cloud device is reduced from 28 to 5, and the number of operating problems of the distributed cloud device is reduced by about 82%. And with the improvement of the automatic inspection mechanism, the number of operating problems tends to be gradually 0. It can be seen that the business processing method in the embodiment of the present application can improve the reliability of device deployment.
[0085] In the embodiment of the present application, by acquiring the deployment instruction information of the target device for the target business, acquiring N business program information matching the deployment instruction information, and acquiring the associated program information of the N business program information; the associated program information of a business program information refers to the program information that needs to be associated with the execution of the business program information; the N business program information and the associated program information of the N business program information are sent to the target device, so that the target device executes the target business based on the received program information. Since the business program information and the associated program information are matched by the deployment instruction information of the target device, it is possible to acquire the corresponding business program information and the associated program information according to the needs of the target device, so that the business program information and the associated program information corresponding to the needs of the target device can be deployed on the target device, which can avoid deploying a large amount of business program information that is not needed for the execution of the target business on the target device, affecting the efficiency of business deployment, simplifying the process of program information deployment, improving the efficiency of program information deployment, and thus improving the efficiency of business deployment in the target device.
[0086] Optional, see Figure 5 , Figure 5 is a flow chart of another service processing method provided by an embodiment of the present application. The service processing method can be applied to a central cloud device; Figure 5 As shown, the business processing method includes but is not limited to the following steps:
[0087] S201, obtaining deployment instruction information of a target device for a target service.
[0088] In the embodiment of the present application, by installing an orchestration module on the central cloud device, the deployment instruction information of the target device for the target business can be obtained through the orchestration module, and N business program information and associated program information of the N business program information that match the deployment instruction information can be obtained from the program pool. For example, the target device can send order demand information to the central cloud device, and the orchestration module can determine the matching resource requirements, that is, the business program information, according to the order demand information of the target device, and find the associated program information of each business program information according to the dependency chain of each business program information, and recursively search until all the associated program information of the business program information is found, that is, the minimum abstract model is obtained. The minimum abstract model can refer to a model composed of N business program information and associated program information of N business program information.
[0089] S202: Acquire N pieces of business program information matching the deployment instruction information from the program pool.
[0090] Optionally, the orchestration module can decompose the order demand information of the target device into multiple cloud service demands, each of which corresponds to a business program information S in the program pool. Furthermore, after the order demand conversion is completed, the abstract model can be initialized, a program set Sn for storing the program information list can be created, and the business program information S can be added to the program set Sn.
[0091] S203, obtaining associated program information of N pieces of business program information.
[0092] The arrangement module may obtain the associated program information of the N business program information from the program pool. For example, the arrangement module may screen the program information in the program pool to determine the associated program information of the N business program information.
[0093] Optionally, in the calculation of screening program information, the goal can be that all business program information in Sn has no external dependencies, and the dependent program information (i.e., associated program information) of each business program information can be gradually added to the assembly Sn. For example, all program information can be obtained from the program pool into the assembly Sa, and all program information with external dependencies in Sn (assuming it is program information S) can be scanned. Starting from program information S, reverse search for the dependencies of the program information (assuming S depends on S2 and S3), and the found dependent program information (S2, S3) is copied from the assembly Sa to the assembly Sn. After a single scan is completed, the above process is repeated to add the dependent program information of S2 and S3 until the external dependencies of all program information in Sn are empty. After deduplication of the assembly Sn, the minimum deployment program information list required for deploying the corresponding distributed cloud device is obtained. It can be understood that the program information in the program information list that matches the deployment instruction information is the business program information, and the program information that has a dependency relationship with the business program information is the associated program information.
[0094] S204: Determine whether all the associated program information of the N business program information has been acquired.
[0095] In the embodiment of the present application, if yes, that is, all the associated program information of the N business program information has been acquired, then step S205 is executed to add the N business program information and the associated program information of the N business program information to the abstract model in the abstract model pool. If no, that is, all the associated program information of the N business program information has not been acquired, then step S203 is continued to acquire the associated program information of the N business program information until all the associated program information of the N business program information has been acquired.
[0096] S205: Add the N business program information and the associated program information of the N business program information to the abstract model in the abstract model pool.
[0097] Optionally, after obtaining N business program information and associated program information of N business program information, the metadata of the operation of the abstract model can be further determined according to the parameter information such as the type, scale, model, etc. of the cloud service required by the target device, that is, the metadata of the operation of each program information in the abstract model is determined, and the metadata provides operation parameters for each program information in the abstract model. After the metadata of each program information is determined, the abstract model arrangement work is completed, and the abstract model can be further saved to the abstract model pool, which can be used for the execution module to schedule the metadata corresponding to the program information, so as to deploy the corresponding program information on the target device.
[0098] In an embodiment of the present application, by deploying an orchestration module on a central cloud device, corresponding business program information and associated program information corresponding to the business program information can be obtained in combination with the demand information of the target device, which can greatly simplify the program information that needs to be deployed on the target device, and obtain an abstract model customized on demand. Subsequently, the program information in the abstract model can be deployed on the target device, which can simplify the deployment process of the program information and improve the efficiency of business deployment in the target device.
[0099] Optional, see Figure 6 , Figure 6 is a flow chart of another service processing method provided by an embodiment of the present application. The service processing method can be applied to a central cloud device; Figure 6 As shown, the business processing method includes but is not limited to the following steps:
[0100] S301, scanning the abstract model pool to determine the target program information that needs to be executed in the abstract model.
[0101] In an embodiment of the present application, the execution module can implement the deployment task of the target device, and the execution module can have a timing adjustment capability, so that the abstract model pool can be scanned regularly to determine whether there is target program information that needs to be executed in the abstract model in the abstract model pool. The execution module can execute multiple program information in the abstract model concurrently in multiple threads, which can improve the deployment efficiency. For any program information in the abstract model pool, such as the target program information, the execution module can execute the deployment of each business program information in sequence according to the arrangement information of the abstract model in the order of dependency completion (that is, the order in which the associated program information of each business program information in the N business program information is obtained). If there are multiple dependent completed business program information (that is, the associated program information of multiple business program information in the N business program information is obtained at the same time), then multiple business program information can be executed and deployed at the same time.
[0102] Optionally, a timer can be set inside the execution module to achieve timed triggering of task scheduling. When the scheduling task starts, all abstract models that have not been deployed on the target device can be loaded from the abstract model pool. Each task can occupy an execution thread, and task scheduling can be initiated in batches through the thread pool. Within a single task, all dependent business program information that has been completed can be actively executed, and multiple independent related program information can be executed concurrently to maximize the degree of concurrent execution of tasks. Among them, a task can include pre-check, deployment and post-check of a business program information or a related program information.
[0103] S302, pre-checking the target program information.
[0104] Here, since each business program information has its own dependent associated program information, metadata and other information, in order to avoid the interruption of automated program information deployment caused by missing dependencies (i.e. missing associated program information) and metadata errors, each program information can be pre-checked before starting the business program information deployment. Program information that fails the pre-check can end the current task scheduling and wait for the timer to pre-check the program information again when it is scheduled next time. Until the pre-check passes, the task execution will continue, such as sending the target program information to the target device, so that the target device deploys the target program information.
[0105] S303: If the pre-check is passed, the target program information is sent to the target device so that the target device deploys the target program information.
[0106] Optionally, if the pre-check of the target program information fails, the target program information is not sent to the target device. The target program information can be re-acquired and sent to the target device when the pre-check of the target program information passes, so that the target device deploys the target program information.
[0107] In the embodiment of the present application, if the pre-check is passed, the deployment task can be executed, that is, the program information is sent to the target device, and the target device can perform program deployment. The program information may include automated deployment program code and metadata, and the metadata corresponding to each program information is different. Except for a few hardware program information that need to be implemented manually, the software program information deployment stage can support fully automatic deployment, which can reduce the problem of manual operation. Through the automated deployment of a single program information and the parallel deployment of multiple independent program information, the deployment efficiency can be improved.
[0108] S304, performing post-check processing on the target program information on the target device.
[0109] In the embodiment of the present application, in order to ensure that the program information deployed on the target device is accurate, after each program information is deployed on the target device, the deployed program information can be post-checked, and the deployment of the current program information can be automatically accepted to determine whether the deployed program information is correct. After the deployed program information is accepted, it means that the implementation of the deployed program information is completed, and the deployment of the next program information can continue. Optionally, the new data generated by the deployment of a certain program information can also be updated to the metadata corresponding to the program information, and the updated metadata can be directly obtained for deployment later. For example, if a certain program information is database information, the target business needs to rely on the deployment of the operating system before the database can be deployed. When deploying the operating system, it is necessary to obtain the network address of the operating system. After the operating system is deployed, the network address of the operating system can be updated to the metadata of the operating system. The updated metadata can be directly used later, which can improve the efficiency of business deployment in the target device.
[0110] S305: If the post-check passes, it is determined that the deployment of the target program information is completed.
[0111] In the embodiment of the present application, when the deployment of the target program information is completed, the program information other than the target program information in the abstract model can continue to be pre-checked, the target program information is sent, and the post-check is performed to deploy the N business program information and the associated program information of the N business program information in the abstract model on the target device, and then the target business can be executed on the target device. The embodiment of the present application is explained by taking one program information as an example. One program information can correspond to one task. When there are N program information, it can correspond to N tasks, and N tasks can be executed at the same time. The execution method of each task can refer to the execution method of the target program information. The embodiment of the present application does not describe this in detail.
[0112] In an embodiment of the present application, by deploying an execution module on a central cloud device, the level of automation and parallelization of program information deployment can be improved, and automated deployment of program information can be achieved, which can improve the efficiency of program information deployment, ultimately achieving agile deployment of distributed cloud devices and improving the efficiency of business deployment in target devices.
[0113] The method of the embodiment of the present application is introduced above, and the device of the embodiment of the present application is introduced below.
[0114] See also Figure 7 , Figure 7 : is a schematic diagram of the composition structure of a business processing device provided in an embodiment of the present application. The above-mentioned business processing device can be deployed on a central cloud device or a deployment device set in a central cloud device; the business processing device can be used to execute the corresponding steps in the business processing method provided in an embodiment of the present application. The business processing device 70 includes:
[0115] The information acquisition unit 701 is used to acquire the deployment indication information of the target device for the target service; the deployment indication information includes the information configured to indicate the execution of the target service;
[0116] The information matching unit 702 is used to obtain N business program information matching the deployment indication information; N is a positive integer, and the N business program information is used to execute the target business;
[0117] The information association unit 703 is used to obtain the associated program information of the N business program information; the associated program information of a business program information refers to the program information that needs to be associated with the execution of the business program information;
[0118] The information sending unit 704 is used to send the N service program information and the associated program information of the N service program information to the target device, so that the target device executes the target service based on the received program information.
[0119] Optionally, the information sending unit 704 is specifically configured to:
[0120] The N business program information and the associated program information of the N business program information are sequentially added to the cache queue; the associated program information of one business program information is executed before the business program information, and the associated program information of one business program information is arranged before the business program information in the cache queue;
[0121] The N business program information and associated program information of the N business program information in the cache queue are sent to the target device in sequence.
[0122] Optionally, the target device is any distributed cloud device in a distributed cloud system, and the distributed cloud system includes a central cloud device other than the distributed cloud device; the information matching unit 702 is specifically used to:
[0123] Pulling a program pool from the central cloud device; the program pool contains program information required to execute multiple services, and the multiple services include the target service;
[0124] In the program pool, the N business program information matching the deployment instruction information is obtained.
[0125] Optionally, the target device is any distributed cloud device in a distributed cloud system, and the distributed cloud system includes a central cloud device other than the distributed cloud device; the information matching unit 702 is specifically used to:
[0126] Sending a program acquisition request to the central cloud device; the program acquisition request includes the deployment instruction information;
[0127] Receiving the N business program information returned by the central cloud device;
[0128] The central cloud device has a program pool, which contains program information required to execute multiple services, the multiple services include the target service, and the N service program information is matched in the program pool by the central cloud device based on the deployment indication information.
[0129] Optionally, the associated program information of the N business program information is obtained based on a program mapping table, the program mapping table records other program identifiers having a mapping relationship with the program identifier of each business program information, and the associated program information of any business program information refers to program information having a mapping relationship between the program identifier and the program identifier of the any business program information; the information sending unit 704 is specifically used to:
[0130] Based on the program mapping table, checking the associated program information of the N business program information obtained;
[0131] If it is verified that the associated program information of each business program information obtained is consistent with the full program information belonging to the program identifier recorded in the program mapping table that has a mapping relationship with the program identifier of each business program information, then the N business program information and the associated program information of the N business program information are sent to the target device.
[0132] Optionally, the service processing device 70 further includes an abnormality adjustment unit 705, and the abnormality adjustment unit 705 is specifically configured to:
[0133] Acquire abnormal execution status information for target program information sent by the target device; the target program information is any one of the N business program information and associated program information of the N business program information, and the abnormal execution status information is generated by the target device after failure to execute the target program information;
[0134] In response to the abnormal execution state information, the target program information is resent to the target device.
[0135] Optionally, the target device is used to combine each received business program information with the associated program information of each business program information to obtain a program set to which each business program information belongs; a program set to which a business program information belongs includes the business program information and the associated program information of the business program information;
[0136] The target device is used to execute in parallel the program set to which each piece of business program information belongs.
[0137] Optionally, the target service is a service for acquiring a video from a video acquisition device, and the deployment indication information for the target service includes at least one of the following information:
[0138] The bit rate at which the video acquisition device transmits the video to the target device, the time period during which the target device receives the video transmitted by the video acquisition device, or the buffering duration of the video transmitted by the video acquisition device by the target device.
[0139] It should be noted that Figure 7 For the contents not mentioned in the corresponding embodiments, please refer to the description of the method embodiments, which will not be repeated here.
[0140] In the embodiment of the present application, by acquiring the deployment instruction information of the target device for the target business, acquiring N business program information matching the deployment instruction information, and acquiring the associated program information of the N business program information; the associated program information of a business program information refers to the program information that needs to be associated with the execution of the business program information; the N business program information and the associated program information of the N business program information are sent to the target device, so that the target device executes the target business based on the received program information. Since the business program information and the associated program information are matched by the deployment instruction information of the target device, it is possible to acquire the corresponding business program information and the associated program information according to the needs of the target device, so that the business program information and the associated program information corresponding to the needs of the target device can be deployed on the target device, which can avoid deploying a large amount of business program information that is not needed for the execution of the target business on the target device, affecting the efficiency of business deployment, simplifying the process of program information deployment, improving the efficiency of program information deployment, and thus improving the efficiency of business deployment in the target device.
[0141] See also Figure 8 , Figure 8 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 8 As shown, the computer device may include: a processor 801 and a memory 802. Optionally, the computer device may also include a network interface or a power supply module. The processor 801 and the memory 802 may exchange data.
[0142] The processor 801 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0143] The above-mentioned network interface may include an input device and / or an output device. For example, the input device may be a control panel, a microphone, a receiver, etc., and the output device may be a display screen, a transmitter, etc., which are not listed here one by one.
[0144] The memory 802 may include a read-only memory and a random access memory, and provide program instructions and data to the processor 801. A portion of the memory 802 may also include a non-volatile random access memory. When the processor 801 calls the program instruction, it is used to execute:
[0145] Acquire deployment instruction information of a target device for a target service; the deployment instruction information includes information configured to indicate execution of the target service;
[0146] Acquire N business program information matching the deployment indication information; N is a positive integer, and the N business program information is used to execute the target business;
[0147] Obtaining the associated program information of the N business program information; the associated program information of a business program information refers to the program information that needs to be associated with the execution of the business program information;
[0148] The N pieces of service program information and associated program information of the N pieces of service program information are sent to the target device, so that the target device executes the target service based on the received program information.
[0149] In the embodiment of the present application, by acquiring the deployment instruction information of the target device for the target business, acquiring N business program information matching the deployment instruction information, and acquiring the associated program information of the N business program information; the associated program information of a business program information refers to the program information that needs to be associated with the execution of the business program information; the N business program information and the associated program information of the N business program information are sent to the target device, so that the target device executes the target business based on the received program information. Since the business program information and the associated program information are matched by the deployment instruction information of the target device, it is possible to acquire the corresponding business program information and the associated program information according to the needs of the target device, so that the business program information and the associated program information corresponding to the needs of the target device can be deployed on the target device, which can avoid deploying a large amount of business program information that is not needed for the execution of the target business on the target device, affecting the efficiency of business deployment, simplifying the process of program information deployment, improving the efficiency of program information deployment, and thus improving the efficiency of business deployment in the target device.
[0150] Optionally, when the program instructions are executed by the processor, other steps of the method in the above embodiment may also be implemented, which will not be repeated here.
[0151] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, which includes program instructions, which, when executed by a computer, cause the computer to execute the method of the aforementioned embodiment, and the computer may be part of the computer device mentioned above. As an example, the program instructions may be deployed on a computer device for execution, or deployed on multiple computer devices located at one location for execution, or, executed on multiple computer devices distributed at multiple locations and interconnected by a communication network, and multiple computer devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain network.
[0152] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction, and when the computer instruction is executed by a processor, some or all of the steps in the above method can be implemented. For example, the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the steps performed in the embodiments of the above methods.
[0153] Those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0154] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A business processing method, characterized in that: The method comprises: Acquire deployment instruction information of a target device for a target service; the deployment instruction information includes information configured to indicate execution of the target service; Acquire N business program information matching the deployment indication information, where N is a positive integer, and the N business program information is used to execute the target business; Acquire the associated program information of the N business program information; the associated program information of a business program information refers to the program information that needs to be associated with the execution of the business program information; The N pieces of service program information and associated program information of the N pieces of service program information are sent to the target device, so that the target device executes the target service based on the received program information.
2. The method according to claim 1, characterized in that The sending the N pieces of business program information and associated program information of the N pieces of business program information to the target device includes: The N business program information and the associated program information of the N business program information are sequentially added to the cache queue; the associated program information of one business program information is executed before the business program information, and the associated program information of one business program information is arranged before the business program information in the cache queue; The N business program information and associated program information of the N business program information in the cache queue are sent to the target device in sequence.
3. The method according to claim 1, characterized in that The target device is any distributed cloud device in a distributed cloud system, and the distributed cloud system includes a central cloud device other than the distributed cloud device; The obtaining of N pieces of business program information matching the deployment instruction information includes: Pulling a program pool from the central cloud device; the program pool includes program information required to execute multiple services, and the multiple services include the target service; In the program pool, the N business program information matching the deployment instruction information is obtained.
4. The method according to claim 1, characterized in that: The target device is any distributed cloud device in a distributed cloud system, and the distributed cloud system includes a central cloud device other than the distributed cloud device; The obtaining of N pieces of business program information matching the deployment instruction information includes: Sending a program acquisition request to the central cloud device; the program acquisition request includes the deployment instruction information; Receiving the N business program information returned by the central cloud device; The central cloud device has a program pool, which contains program information required to execute multiple services, the multiple services include the target service, and the N service program information is obtained by matching the central cloud device in the program pool based on the deployment indication information.
5. The method according to claim 1, characterized in that The associated program information of the N business program information is obtained based on a program mapping table, wherein the program mapping table records other program identifiers having a mapping relationship with the program identifier of each business program information, and the associated program information of any business program information refers to program information having a mapping relationship between the program identifier and the program identifier of the any business program information; The sending the N pieces of business program information and associated program information of the N pieces of business program information to the target device includes: Based on the program mapping table, checking the associated program information of the N acquired business program information; If it is verified that the associated program information of each business program information obtained is consistent with the full program information belonging to the program identifier recorded in the program mapping table and having a mapping relationship with the program identifier of each business program information, then the N business program information and the associated program information of the N business program information are sent to the target device.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Acquire abnormal execution status information for target program information sent by the target device; the target program information is any one of the N business program information and associated program information of the N business program information, and the abnormal execution status information is generated by the target device after failing to execute the target program information; In response to the abnormal execution state information, the target program information is resent to the target device.
7. The method according to any one of claims 1 to 5, characterized in that: The target device is used to combine each received business program information with the associated program information of each business program information to obtain a program set to which each business program information belongs; a program set to which a business program information belongs includes the business program information and the associated program information of the business program information; The target device is used to execute in parallel the program set to which each piece of business program information belongs.
8. The method according to claim 1, characterized in that The target service is a service for acquiring a video from a video acquisition device, and the deployment indication information for the target service includes at least one of the following information: The bit rate at which the video acquisition device transmits the video to the target device, the time period during which the target device receives the video transmitted by the video acquisition device, or the buffering duration of the video transmitted by the video acquisition device by the target device.
9. A service processing device, characterized in that: The device comprises: An information acquisition unit, configured to acquire deployment instruction information of a target device for a target service; the deployment instruction information includes information configured to indicate execution of the target service; An information matching unit, used to obtain N business program information matching the deployment indication information; N is a positive integer, and the N business program information is used to execute the target business; An information association unit, used to obtain the associated program information of the N business program information; the associated program information of a business program information refers to the program information that needs to be associated with the execution of the business program information; The information sending unit is used to send the N business program information and the associated program information of the N business program information to the target device, so that the target device executes the target business based on the received program information.
10. A computer device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is suitable for being loaded and executed by a processor, so that a computer device having a processor executes the method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The computer program product comprises computer instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 8.
