Task deployment method and device, storage medium and electronic device

By creating an independent resource instance cluster for each target account in the SaaS platform, the problem of poor service resource isolation in the existing technology is solved, and more efficient resource isolation and scalability is achieved.

CN118897725APending Publication Date: 2024-11-05MULTIPOINT LIFE (WUHAN) TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411194206.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

The existing SaaS service resource isolation technology is prone to resource exhaustion when the number of tenants increases and business growth, resulting in server performance being affected and losing flexibility and scalability.

Method used

By determining the association relationship between the target account and the target container when receiving a deployment request, creating or using a target resource instance cluster that is only associated with the target account, ensuring that the integration task is deployed into an independent resource instance cluster and avoiding resource competition.

Benefits of technology

Improve the isolation effect of service resources, ensure that each tenant operates in an independent environment, avoid resource exhaustion, and improve service stability and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897725A_ABST
    Figure CN118897725A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a task deployment method and device, a storage medium and an electronic device.The method comprises the steps that under the condition that a deployment request which is sent by a target account and used for requesting deployment of an integrated task is received, the incidence relation between the target account and a target container is determined; under the condition that the association relationship indicates that a target resource instance cluster only associated with the target account exists in the target container, the integration task is deployed to the target resource instance cluster, and the target resource instance cluster is used for deploying a task associated with the target account; and under the condition that the association relationship indicates that the resource instance cluster associated with the target account does not exist in the target container, creating a target resource instance cluster only associated with the target account in the target container, and deploying the integration task into the target resource instance cluster. According to the invention, the problem of poor service resource isolation is solved, and the effect of improving service resource isolation is further achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a task deployment method, device, storage medium and electronic device. Background Art

[0002] In related technologies, service resource isolation is a very important technical architecture strategy for SaaS integration platforms. When the isolation strategy does not match the business, it often causes some online accidents or problems, and then a service avalanche occurs, resulting in the inability of users to use various functions. The significance of service resource isolation is to create an independent and secure operating environment to ensure the stability of the service and prevent resource competition and abuse, so as to provide high-quality and reliable services to each tenant. The essence of service resource isolation is to achieve independence and security: isolation ensures that each user has its own resources (such as CPU time, memory space, disk space), operating environment and network communication without interfering with each other. This protects each user's service resources, runs in its independent environment, and safely uses shared resource environments.

[0003] In related technologies, SaaS service isolation technology uses business logic isolation technology. Multiple tenants share the entire server resources, and each tenant is allocated an independent resource thread pool. Each business runs in an independent thread pool resource to achieve small-scale independence and no impact on each other. Although this technical solution can achieve multi-tenant resource isolation, it shares the entire server resources. With the increase in the number of tenants and the growth of tenant businesses, the small-scale independent thread pool resources will have bottlenecks and risks of exhaustion. If the resources are exhausted, the performance of the entire server will be affected. At this time, all tenants running on the server will have problems, and even expansion or adding clusters will lose flexibility and scalability.

[0004] It can be seen from this that the related technology has the problem of poor isolation of service resources.

[0005] With respect to the above-mentioned problems existing in the related technologies, no effective solution has been proposed yet. Summary of the invention

[0006] The embodiments of the present invention provide a task deployment method, device, storage medium and electronic device to at least solve the problem of poor service resource isolation existing in the related art.

[0007] According to one embodiment of the present invention, a task deployment method is provided, which is applied to an integration platform, wherein the integration platform includes a microservice architecture, and the microservice architecture includes a target container, comprising: upon receiving a deployment request sent by a target account for requesting deployment of an integration task, determining an association relationship between the target account and the target container; when the association relationship indicates that there exists a target resource instance cluster associated only with the target account in the target container, deploying the integration task to the target resource instance cluster, wherein the target resource instance cluster is used to deploy tasks associated with the target account; when the association relationship indicates that there does not exist a resource instance cluster associated with the target account in the target container, creating a target resource instance cluster associated only with the target account in the target container, and deploying the integration task to the target resource instance cluster.

[0008] According to another embodiment of the present invention, there is provided a task deployment device, which is applied to an integration platform, wherein the integration platform includes a microservice architecture, and the microservice architecture includes a target container, including: a determination module, which is used to determine the association relationship between the target account and the target container when a deployment request for requesting deployment of an integration task is received from a target account; a first deployment module, which is used to deploy the integration task to the target resource instance cluster when the association relationship indicates that there is a target resource instance cluster associated only with the target account in the target container, wherein the target resource instance cluster is used to deploy tasks associated with the target account; and a second deployment module, which is used to create a target resource instance cluster associated only with the target account in the target container when the association relationship indicates that there is no resource instance cluster associated with the target account in the target container, and deploy the integration task to the target resource instance cluster.

[0009] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.

[0010] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0011] Through the present invention, the association relationship between the target account and the target container is determined, a target resource instance cluster associated only with the target account is created in the target container, and the integration task is deployed to the target resource instance cluster. Therefore, the problem of poor service resource isolation existing in the related art can be solved, and the effect of improving service resource isolation can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a hardware structure diagram of a mobile terminal according to a method for deploying tasks in an embodiment of the present invention;

[0013] Figure 2 is a flowchart of a method for deploying tasks according to an embodiment of the present invention;

[0014] Figure 3 is a schematic diagram of the architecture of an integrated platform according to an embodiment of the present invention;

[0015] Figure 4 is a schematic diagram of an execution flow according to an embodiment of the present invention;

[0016] Figure 5 is a schematic diagram of an integrated platform interaction according to an embodiment of the present invention;

[0017] Figure 6 is a flow chart of integrated function deployment according to an embodiment of the present invention;

[0018] Figure 7 is a diagram of container configuration details according to an embodiment of the present invention;

[0019] Figure 8 It is a structural block diagram of a task deployment device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0020] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0022] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure diagram of a mobile terminal of a method for deploying a task according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0023] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for deploying tasks in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0024] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0025] In this embodiment, a method for deploying a task is provided. Figure 2 is a flowchart of a method for deploying tasks according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0026] Step S202, upon receiving a deployment request sent by a target account for requesting deployment of an integration task, determining an association relationship between the target account and the target container;

[0027] Step S204, deploying the integration task to the target resource instance cluster associated only with the target account in the target container, when the association relationship indicates that the integration task exists in the target container, wherein the target resource instance cluster is used to deploy tasks associated with the target account;

[0028] Step S206, when the association relationship indicates that there is no resource instance cluster associated with the target account in the target container, create a target resource instance cluster associated only with the target account in the target container, and deploy the integration task to the target resource instance cluster.

[0029] In the above embodiment, the above method can be applied in the integration platform SaaS, which is a software delivery model based on cloud computing. In the SaaS model, software developers deploy applications on cloud servers and provide services to customers through the Internet. Customers can access these services through browsers or other network applications. Among them, the software developer can be a tenant using the target account. The integration task can be an application or a task integrating one or more functions. The present invention does not limit the type of application and the specific type of function.

[0030] In the above embodiment, the integration platform operation architecture can be a microservice architecture. After the integrated client initiates a business operation, it flows into the integration platform gateway. The gateway forwards the request to different tenant instances for processing according to the tenant's published routing information. The architecture diagram of the integration platform can be found in the attached Figure 3 ,like Figure 3 As shown, the integration platform may include: platform front-end, platform back-end, integrated management end, integrated gateway, deployment service, integrated offline task K8S cluster, open platform, and business system. The integrated offline task K8S cluster can be used to deploy integration tasks, and different integration tasks can be deployed to different instances included in the integrated offline task K8S cluster.

[0031] In the above embodiment, the user of the target account can be a tenant, such as a software developer, who can log in to the target account at the platform front end and send a deployment request through the platform front end. The deployment request can be a request for requesting the deployment of an integrated task, which can include multiple functions, each of which can be implemented with different configuration files. Multiple configuration files can be displayed at the platform front end, and the user of the target account can select the configuration file by dragging and dropping to obtain the integrated task. When the function that the user of the target account wants does not exist in the platform front end, the user of the target account can write a script to implement the function to be implemented by customizing the function. After completing the configuration file selection of the integrated task, the user of the target account can send the deployment request to the platform back end by clicking the target send request button, and the platform back end sends the deployment request to the gateway for subsequent deployment operations. Among them, after resource isolation, the platform tenant request (corresponding to the above deployment request) can be routed and discovered in the following way: the tenant (corresponding to the user of the above target account) initiates a deployment request, and the request is sent to the gateway center of the platform. The gateway center matches the application domain name information bound to the user according to the context tenant identification information (tenant ID) carried in the business request. According to the access rules of the tenant domain name and business method, the gateway center initiates an interface call, and the domain name gateway forwards the interface request to the tenant's cluster instance through the container domain name SLB. After receiving the request, the tenant cluster instance distributes it to different execution methods and performs subsequent processing in their own independent service resources. The resources between tenants are independent and do not interfere with each other. The execution process can be found in the attached Figure 4 .

[0032] In the above embodiment, after the cloud platform container is released and deployed, the k8s container platform will create separate resource instance clusters for the integration tasks corresponding to different target accounts and assign the domain name information of each application. After the integration platform receives the domain name of the tenant resource service returned by the container deployment platform, it binds the tenant and domain name information, stores the tenant identifier and resource domain name one-to-one, and persists them in the database. For example: Tenant A-domain name A.com Tenant B-domain name B.com, and so on. At this point, the application deployment information of the tenant and the container platform has been associated, different tenants have different service domain names, and different resource instance clusters. For the integration platform interaction diagram, please refer to the attached Figure 5 .

[0033] In the above embodiment, a flexible and scalable architecture design is provided for the multi-tenant resource isolation of the SaaS integration platform, thereby avoiding the mutual performance impact caused by the sharing of server resources by SaaS multi-tenants and ensuring the provision of high-quality and reliable services to multiple tenants.

[0034] Through the present invention, the association relationship between the target account and the target container is determined, a target resource instance cluster associated only with the target account is created in the target container, and the integration task is deployed to the target resource instance cluster. Therefore, the problem of poor service resource isolation existing in the related art can be solved, and the service resource isolation effect is improved.

[0035] Optionally, the execution subject of the above steps can be an integrated platform, or other devices with similar processing capabilities, or a machine that at least integrates a data processing device, wherein the data processing device may include terminals such as computers and mobile phones, but is not limited to this.

[0036] In an exemplary embodiment, deploying the integration task to the target resource instance cluster includes: obtaining a configuration file of the integration task, wherein the configuration file is used to generate a first function included in the integration task; in the case where the integration task includes a custom function, packaging the custom function to obtain a function data packet, wherein the custom function is used to generate a second function included in the integration task; and deploying the configuration file and the function data packet to the target resource instance cluster. In this embodiment, the integration task may include multiple functions, and each function may be implemented with a different configuration file. Multiple configuration files may be displayed on the platform front end, and the user of the target account may select a configuration file by dragging and dropping to obtain the integration task. When the function that the user of the target account wants does not have a configuration file on the platform front end, the user of the target account may write a script to implement the function to be implemented by means of a custom function.

[0037] In the above embodiment, the integration platform web service, after the user confirms that the integrated development is complete, the corresponding integrated function can be released by one-click release. The gateway service can be called to bind the application domain name information. If the application already exists, it will be used directly. If it does not exist, a new application domain name binding relationship will be created. Pull the git custom function packaging project and move the custom function jar package to the specified directory. Pull the git integrated flow engine project (the user's integrated operation service) and write the integrated flow configuration file to the specified directory. Among them, the custom function jar package is the function data package, and the integrated flow configuration file is the above configuration file.

[0038] In an exemplary embodiment, deploying the configuration file and the function data packet to the target resource instance cluster includes: uploading the configuration file and the function data packet to the target address of the cloud service; calling the image generation interface of the target container, compiling the configuration file and the function data packet in the target container based on the target address to obtain a compiled file; deploying the compiled file to the target resource instance cluster. In this embodiment, after the configuration file and the function data packet are packaged, the configuration file and the function data packet can be uploaded to the target address of the cloud service. Among them, the target address can be a user-defined address of the target account, or an address assigned to it by the deployment service, and the present invention is not limited to this. For example, the packaged custom function, that is, the function data packet and the execution engine file, that is, the configuration file can be uploaded to the cloud service object storage, and the object storage address can be returned for subsequent container deployment. The cloud container k8s compilation and construction packaging interface can be called, such as the image generation interface, to obtain the configuration file and the function data packet from the target address, and compile the configuration file and the function data packet. In the case where the compilation is time-consuming, the compilation and packaging results can be polled, and after the compilation is completed, the cloud container k8s deployment interface can be called to deploy the compiled file to the target resource instance cluster. If the deployment operation is time-consuming, you can poll and query the published deployment results, and push the application deployment results to the web server through MQ asynchronous information, and the deployment process ends.

[0039] In the above embodiment, tenants use the same integration platform web backend for business integration configuration and development. The web side provides tenants with a one-click publishing function. After the tenant confirms that the development is completed, the one-click publishing is triggered. At this time, the application will call the deployment service to package the tenant's integration configuration and deploy it to the corresponding container platform environment (test environment, production environment). After the deployment service is successfully deployed, the deployment information will be notified to the web side through asynchronous callback. The web side will persist the deployment information and tenant association to realize subsequent entry gateway routing.

[0040] In the above embodiment, a task deployment flow chart is provided. Figure 6 is a task deployment flow chart of an embodiment of the present invention, such as Figure 6 As shown, the flow chart includes the following steps:

[0041] Step S601, after receiving the target account's integrated development, the integrated web platform calls the deployment service through one-click publishing;

[0042] Step S602, after receiving the service publishing request of the target account, generating a deployment task and publishing and deploying subsequent tasks through an asynchronous responsibility chain;

[0043] Step S603, call the gateway service to bind the application domain name information. If the application already exists, it is used directly. If it does not exist, a new application domain name binding relationship is created. The creation of the APP can be performed by the container platform. The application domain name binding can be performed by the gateway service.

[0044] Step S604, the deployment service pulls the git custom function packaging project and moves the custom function jar package to the specified directory;

[0045] Step S605, pull the git integration flow engine project (the user's integration operation service) and write the integration flow configuration file to the specified directory;

[0046] Step S606, uploading the packaged custom function and execution engine file to the cloud service object storage, and returning the object storage address for subsequent container deployment;

[0047] Step S607, call the cloud container k8s to compile and build a packaging interface, poll and query the compilation and packaging results and generate an image interface. The container platform can generate an image file by generating an image interface.

[0048] Step S608, query the mirror generation status.

[0049] Step S609, calling the cloud container k8s deployment interface.

[0050] Step S610: poll and query the deployment results.

[0051] Step S611, push the application deployment result to the web server through MQ asynchronous information. After receiving the deployment service asynchronous message, the web server displays the deployment result in the deployment record list and persists the deployed application binding information as subsequent routing forwarding.

[0052] Among them, steps S602-S611 can be executed by the deployment service.

[0053] In an exemplary embodiment, deploying the integration task to the target resource instance cluster includes: determining a container publishing configuration sent by the target account, wherein the container publishing configuration includes at least one of the following: number of instances, maximum number of processors, maximum memory, and off-heap memory; and deploying the integration task to the target resource instance cluster according to the container publishing configuration.

[0054] In the above embodiment, the tenant can also evaluate and select the instance container publishing configuration according to its own business usage. For details of the container configuration, see Figure 7 ,like Figure 7 As shown, the container release configuration can include CPU, number of instances, maximum memory, and off-heap memory.

[0055] In an exemplary embodiment, determining the association relationship between the target account and the target container includes: verifying the integration task to obtain a verification result; and determining the association relationship between the target account and the target container when the verification result indicates that the integration task verification is successful.

[0056] In the above embodiment, after the user of the target account sends a deployment request, the integration platform can verify the configuration file or function data package of the integration task corresponding to the deployment request, and execute subsequent deployment operations if the verification passes.

[0057] In an exemplary embodiment, a rollback instruction for adjusting the task version of a deployed integration task sent by the target account is received; the target version included in the rollback instruction is determined; and the version of the deployed integration task is adjusted to the target version in the target container. In this embodiment, after receiving the deployment request sent by the target account, the integration task corresponding to the deployment request can be verified. In the case of a verification failure, an instruction indicating the verification failure can be returned to the front end. After receiving the prompt of the verification failure, the user of the target account can send a rollback instruction and enter the target version to be rolled back to in the rollback instruction. After receiving the rollback instruction, the deployment service can determine the target version according to the rollback instruction and adjust the version of the deployed integration task to the target version. Among them, the target version can be determined according to the version identifier included in the rollback instruction.

[0058] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0059] In this embodiment, a task deployment device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0060] Figure 8 is a structural block diagram of a task deployment device according to an embodiment of the present invention, such as Figure 8 As shown, the device comprises:

[0061] A determination module 82, configured to determine an association relationship between the target account and the target container when receiving a deployment request sent by the target account for requesting deployment of an integration task;

[0062] A first deployment module 84 is configured to deploy the integration task to the target resource instance cluster when the association relationship indicates that there is a target resource instance cluster associated only with the target account in the target container, wherein the target resource instance cluster is used to deploy tasks associated with the target account;

[0063] The second deployment module 86 is used to create a target resource instance cluster associated only with the target account in the target container when the association relationship indicates that there is no resource instance cluster associated with the target account in the target container, and deploy the integration task to the target resource instance cluster.

[0064] In an exemplary embodiment, the first deployment module 84 or the second deployment module 86 can implement the deployment of the integration task to the target resource instance cluster in the following manner: obtaining a configuration file of the integration task, wherein the configuration file is used to generate a first function included in the integration task; when the integration task includes a custom function, packaging the custom function to obtain a function data packet, wherein the custom function is used to generate a second function included in the integration task; and deploying the configuration file and the function data packet to the target resource instance cluster.

[0065] In an exemplary embodiment, the first deployment module 84 or the second deployment module 86 can deploy the configuration file and the function data package to the target resource instance cluster in the following manner: upload the configuration file and the function data package to the target address of the cloud service; call the image generation interface of the target container, compile the configuration file and the function data package in the target container based on the target address to obtain a compiled file; and deploy the compiled file to the target resource instance cluster.

[0066] In an exemplary embodiment, the first deployment module 84 or the second deployment module 86 may deploy the integration task to the target resource instance cluster in the following manner: deploy the integration task to the target resource instance cluster according to the container publishing configuration.

[0067] In an exemplary embodiment, the determination module 82 can determine the association relationship between the target account and the target container in the following manner: verify the integration task to obtain a verification result; if the verification result indicates that the integration task verification is successful, determine the association relationship between the target account and the target container.

[0068] In an exemplary embodiment, the device can also be used to receive a rollback instruction sent by the target account for adjusting the task version of the deployed integration task; determine the target version included in the rollback instruction; and adjust the version of the deployed integration task to the target version in the target container.

[0069] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0070] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0071] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0072] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0073] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0074] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0075] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for deploying a task, characterized in that: Applied to an integration platform, the integration platform includes a microservice architecture, the microservice architecture includes a target container, including: Upon receiving a deployment request sent by a target account for requesting deployment of an integration task, determining an association relationship between the target account and the target container; In a case where the association relationship indicates that there is a target resource instance cluster associated only with the target account in the target container, deploying the integration task to the target resource instance cluster, wherein the target resource instance cluster is used to deploy tasks associated with the target account; When the association relationship indicates that there is no resource instance cluster associated with the target account in the target container, a target resource instance cluster associated only with the target account is created in the target container, and the integration task is deployed to the target resource instance cluster.

2. The method according to claim 1, characterized in that Deploying the integration task to the target resource instance cluster includes: Acquire a configuration file of the integration task, wherein the configuration file is used to generate a first function included in the integration task; In the case where the integration task includes a user-defined function, packaging the user-defined function to obtain a function data packet, wherein the user-defined function is used to generate a second function included in the integration task; Deploy the configuration file and the function data package to the target resource instance cluster.

3. The method according to claim 2, characterized in that Deploying the configuration file and the function data package to the target resource instance cluster includes: Upload the configuration file and the function data package to the target address of the cloud service; Calling the image generation interface of the target container, compiling the configuration file and the function data packet in the target container based on the target address to obtain a compiled file; Deploy the compiled file to the target resource instance cluster.

4. The method according to claim 1, characterized in that: Deploying the integration task to the target resource instance cluster includes: Determine the container publishing configuration sent by the target account, wherein the container publishing configuration includes at least one of the following: number of instances, maximum number of processors, maximum memory, and off-heap memory; The integration task is deployed to the target resource instance cluster according to the container publishing configuration.

5. The method according to claim 1, characterized in that Determining the association relationship between the target account and the target container includes: Verifying the integration task and obtaining a verification result; When the verification result indicates that the integration task verification is passed, the association relationship between the target account and the target container is determined.

6. The method according to claim 1, characterized in that The method further comprises: receiving a rollback instruction sent by the target account for adjusting a task version of a deployed integration task; Determining a target version included in the rollback instruction; The version of the deployed integration task is adjusted to the target version in the target container.

7. A task deployment device, characterized in that: Applied to an integration platform, the integration platform includes a microservice architecture, the microservice architecture includes a target container, including: a determination module, configured to determine an association relationship between the target account and the target container upon receiving a deployment request sent by the target account for requesting deployment of an integration task; A first deployment module, configured to deploy the integration task to the target resource instance cluster when the association relationship indicates that there is a target resource instance cluster associated only with the target account in the target container, wherein the target resource instance cluster is used to deploy tasks associated with the target account; The second deployment module is used to create a target resource instance cluster associated only with the target account in the target container when the association relationship indicates that there is no resource instance cluster associated with the target account in the target container, and deploy the integration task to the target resource instance cluster.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 6 when executed.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Cloud data warehouse automatic deployment method and device, terminal and storage medium

    CN119179499A