Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

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 application instances In a cluster environment where multiple application instances are deployed, if each application instance is independently scheduled for scheduled tasks, repeated task scheduling will occur, resulting in chaotic task scheduling. Therefore, dynamic task scheduling in cluster mode must be considered Way

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

Embodiment 1

[0028] Embodiments of the present invention provide a task scheduling method for a multi-tenant mode SaaS service cluster environment, the schematic flow diagram of the method is as follows figure 1 As shown, the method includes the following steps:

[0029] In the multi-tenant mode SaaS service cluster environment, deploy multiple application instances, deploy a separate Quartz in each application instance, and concentrate the tasks in all 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; according to the mapping relationship between tasks and tenants, the tenant ID is obtained, and the application instance is obtained from the application instance cluster list, with the tenant ID as The entry parameter calls the static task creation API, and the static task is encapsulated by the API;

[0031] The clock synchronization of c...

Embodiment 2

[0100] The embodiment of the present invention provides a multi-tenant mode SaaS service cluster environment task scheduling system, 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 mode SaaS service cluster environment, deploy a separate Quartz in each application instance, and concentrate the tasks in the application instances used in the task database;

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

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
Eureka Blog
Learn More
PatSnap group products