Master and slave switch method and device of task scheduling example

A task scheduling, master-slave technology, applied in the computer and Internet fields, can solve problems such as task omission and system unavailability, and achieve the effect of ensuring normal operation.

Inactive Publication Date: 2017-09-26
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In systems that require distributed processing of high-concurrency tasks based on time series, if the program instance that performs task scheduling fails, it may result in missing tasks or even unavailability of the entire system

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
  • Master and slave switch method and device of task scheduling example
  • Master and slave switch method and device of task scheduling example
  • Master and slave switch method and device of task scheduling example

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0024] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0025] figure 1An exemplary system architecture 100 of an embodiment of the master-slave switching method of the task scheduling instance or the master-slave switching device of the task scheduling instance of the present application can be applied.

[0026] like figure 1 ...

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 master and slave switch method and device of a task scheduling example. According to one specific implementation mode of the method, at least two examples which are set in advance and used for executing task scheduling work judge whether an election time arrives or not according to a respective election cycle and opening time, wherein attribute information of all the examples comprises an example identification, the election cycle, whether to participate in a main example election or not and master and slave states; if the election time arrives, the attribute information is information recorded in a main example information table which is created in advance in an example renewing database in which the main example election participates; if renewing is successful, the master and slave states of the examples which are renewed successfully are in master states, and the master and slave states of other examples except the examples which are renewed successfully are in slave states; the examples of which the master and slave states are the master states execute task scheduling work. The master and slave switch method and device of the task scheduling example are simple in implementation mode, and efficiently achieve master and slave switch of the task scheduling example.

Description

technical field [0001] The present application relates to the field of computer technology, specifically to the field of Internet technology, and in particular to a master-slave switching method and device for task scheduling instances. Background technique [0002] In systems that require distributed processing of time-series-based high-concurrency tasks, if the program instance performing task scheduling fails, it may result in missing tasks or even the unavailability of the entire system. Therefore, in order to ensure that each task is executed on time without omission, it is necessary to consider using at least two program instances responsible for task scheduling. When the program instance in the working state fails, one of the other program instances can automatically take over its work to make the system run normally. At the same time, in order to ensure that the tasks in the same time period are not executed repeatedly, it needs to be satisfied that only one of the ...

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/48
CPCG06F9/4843
Inventor 杨家梁
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
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