JVM-based non-blocking distributed scheduled task scheduling method

A technology for planning tasks and scheduling methods, which is applied in the directions of resource allocation, multi-programming device, program synchronization, etc., and can solve the requirements of implementation difficulties, difficult coding, debugging, learning, debugging, code reading, and non-blocking callback writing method. Advanced problems, to achieve the effect of reducing memory usage, reducing the number of threads, and improving efficiency

Active Publication Date: 2022-07-15
浙江保融科技股份有限公司
View PDF18 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, there are only callback writing methods for non-blocking in java, such as Project Reactor and Vert.x. The non-blocking callback writing method has high code requirements and is very difficult to implement. Non-blocking code with slightly complex functions in the java environment cannot be implemented

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
  • JVM-based non-blocking distributed scheduled task scheduling method
  • JVM-based non-blocking distributed scheduled task scheduling method
  • JVM-based non-blocking distributed scheduled task scheduling method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0072] Embodiment 2: Execute a scheduled task with a certain execution duration. The task execution interval is 1 minute. A single task http calls the remote rest service. The execution time of the Rest server interface is 30 seconds, and 10 tasks are executed in parallel. The test result is that the tasks can be executed normally, and the total number of threads is still about 20.

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 provides a non-blocking distributed scheduled task scheduling method based on a JVM (Java Virtual Machine), which solves the problems that the number of threads is too much and nodes are in a distributed state to run threads on the basis of completely realizing original functions. In order to achieve the purpose, the technical scheme adopted by the invention is as follows: the method is applied to a JVM (Java Virtual Machine) configured with a kotlin language library and a coroutines coroutine library, and comprises a distributed plan task framework and a distributed coordination component, a universal non-blocking addition, deletion, modification and check interface is arranged in the distributed coordination component to serve as a non-blocking asynchronous callback interface of a client where the distributed coordination component is located; packaging a non-blocking asynchronous callback interface of the distributed coordination component through a coroutine, and setting a non-blocking circulating monitor to realize continuous monitoring; and finally, a local node cache is realized again based on the packaged coroutine non-blocking api. Through non-blocking transformation, the performance of task execution is remarkably improved.

Description

technical field [0001] The invention belongs to the technical field of distributed task scheduling, in particular to a non-blocking distributed planning task scheduling method based on JVM. Background technique [0002] Scheduled tasks refer to programs that are scheduled to run regularly or periodically. The most common scheduled tasks include Linux-based "crontab" and Windows-based "task scheduler". However, as the new projects become larger and the systems become more complex, many problems are exposed in the existing planning tasks. The first is the high availability HA requirement. When the server running the scheduled tasks fails, all the scheduled tasks will stop working. The second is the performance problem. More and more large-scale task schedulers appear. For CPU / IO-intensive operations, a single node can no longer meet the demand. Therefore, it is necessary to design distributed scheduling tasks to perform a large number of tasks by coordinating multiple hosts ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48G06F9/455G06F9/50G06F9/52
CPCG06F9/4881G06F9/45504G06F9/5027G06F9/5061G06F9/526G06F2209/482G06F2209/483G06F2209/5011G06F2209/5018Y02D10/00
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