Task scheduling method and system for multi-tenant mode SaaS service cluster environment

A technology for service clustering and task scheduling, applied in the field of SaaS services, it can solve the problems of chaotic task scheduling, inability to meet high concurrency and scalability, and repeated task scheduling, and achieve the effect of improving efficiency.

Active Publication Date: 2019-12-03
北明云智(武汉)网软有限公司
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] When the system needs to meet the cluster environment and multi-tenant environment, the task scheduling of the single architecture is far from meeting the needs of high concurrency and scalability; for the cluster environment, the scheduling of static tasks and dynamic tasks must consider the deployment of multiple

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Task scheduling method and system for multi-tenant mode SaaS service cluster environment
  • Task scheduling method and system for multi-tenant mode SaaS service cluster environment
  • Task scheduling method and system for multi-tenant mode SaaS service cluster environment

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0027] Example 1

[0028] The embodiment of the present invention provides a task scheduling method in a multi-tenant mode SaaS service cluster environment. The schematic flowchart of the method is as follows: figure 1 As shown, the method includes the following steps:

[0029] In the multi-tenant SaaS service cluster environment, deploy multiple application instances, deploy a separate Quartz in each application instance, and concentrate the tasks in the application instances in the task database;

[0030] According to the mapping relationship between tasks and tenants, the tenant ID is obtained to complete the encapsulation of dynamic task information; the tenant ID is obtained according to the mapping relationship between tasks and tenants, and the application instance is obtained from the application instance cluster list, with the tenant ID as the The entry parameter calls the static task creation API, and the API performs the encapsulation of the static task;

[0031] ...

Example Embodiment

[0099] Example 2

[0100] The embodiment of the present invention provides a task scheduling system in a multi-tenant mode SaaS service cluster environment, including an application instance deployment module, a task encapsulation module and a task scheduling execution module;

[0101] The application instance deployment module is used to deploy multiple application instances in a multi-tenant SaaS service cluster environment, deploy a separate Quartz in each application instance, and concentrate the tasks in the application instances in the task database;

[0102] The task encapsulation module is used to obtain the tenant ID according to the mapping relationship between tasks and tenants to complete the encapsulation of dynamic task information; it is also used to obtain the tenant ID according to the mapping relationship between tasks and tenants, and from the application instance cluster list Obtain the application instance from the , call the static task creation API with ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a task scheduling method and system for a multi-tenant mode SaaS service cluster environment, belongs to the technical field of SaaS services, and solves the problem that taskscheduling in the prior art cannot meet the requirements of high concurrency and expandability in the multi-tenant mode SaaS service cluster environment. The task scheduling method for a multi-tenantmode SaaS service cluster environment comprises the following steps: centralizing tasks in used application examples in a task database; obtaining tenant IDs to complete packaging of the dynamic taskinformation; obtaining tenant IDs, obtaining application instances from the application instance cluster list, calling static tasks by taking the tenant IDs as entry parameters to create APIs, and packaging the static tasks by the APIs; performing clock synchronization of cluster node task scheduling through a database, and in a multi-tenant cluster environment, using a Quartz assembly for task scheduling execution. High-concurrency and extensible task scheduling is realized in a multi-tenant mode SaaS service cluster environment, and the efficiency of task scheduling and task processing is improved.

Description

technical field [0001] The present invention relates to the field of SaaS service technology, in particular to a task scheduling method and system for a multi-tenant mode SaaS service cluster environment. Background technique [0002] In large-scale platform systems, task scheduling is a basic requirement. Some tasks that need to be repeated, scheduled to be executed, or take a long time are often separated and processed separately. As the scale and complexity of tasks increase, The task scheduling service framework needs to be reliable and scalable, be able to manage and monitor the execution status of tasks, and provide a stable and reliable scheduling mode to schedule tasks to ensure the correct execution of tasks. The types of tasks include static tasks and dynamic tasks. Static tasks refer to some periodic tasks of the platform itself, which are part of the platform architecture and have nothing to do with user business. These tasks are related to the realization of spe...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/48G06F9/448
CPCG06F9/4806G06F9/4482
Inventor 王子鸿刘映娟
Owner 北明云智(武汉)网软有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products