Method and device for realizing persistence in flow calculation application

A persistent and flow computing technology, applied in the field of flow computing, can solve problems such as non-persistence of calculation results, low execution efficiency, and irreversibility

Active Publication Date: 2015-03-18
阿里巴巴华南技术有限公司
View PDF3 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, since the caching method has no physical disk input / output (I / O), the caching method has excellent message throughput; however, since the calculation results are not persisted, the caching method has almost no fault tolerance, that is, once In the event of application interruption, server downtime, cache emptying, etc., the calculation results stored in the cache will not be restored
The method of persisting to disk can achieve the highest level of fault tolerance. However, persisting to disk involves a large number of disk writes, which reduces the calculation speed of stream computing, and the execution efficiency is about lower than that of caching. One order of magnitude

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
  • Method and device for realizing persistence in flow calculation application
  • Method and device for realizing persistence in flow calculation application
  • Method and device for realizing persistence in flow calculation application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, the embodiments in the present application and the features in the embodiments may be arbitrarily combined with each other if there is no conflict.

[0035] In a typical configuration of the present application, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0036] Memory may include forms of non-persistent memory in computer readable media, random access memory (RAM) and / or non-volatile memory, such as read only memory (ROM) or flash memory (flashRAM). Memory is an example of a computer-readable medium.

[0037]Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implem...

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 method and a device for realizing persistence in flow calculation application. The method comprises the following steps that: when the current batch message is successfully consumed, whether the persistence operation needs to be performed or not is judged according to the first initial offset and the preset persistence interval; when the persistence operation needs to be performed, the persistence processing is carried out according to the message position indicated by the second initial offset; and after the persistence succeeds, the first initial offset and the second initial offset are updated into the initial offset of a next batch message. The persistence operation is performed after the persistence interval, and the disk persistence time interval is prolonged, so that the real-time calculation efficiency is greatly improved. During fault recovery, at most the batch message in the persistence interval needs to be consumed again; the performance bottleneck caused by frequent disk writing in the existing synchronous persistence process is avoided; the real-time calculation message throughput performance is improved by an order of magnitude; and meanwhile, the delay caused by the fault recovery is reduced to the second stage, and the real-time performance cannot be influenced.

Description

technical field [0001] The present application relates to stream computing technology, and more particularly, to a method and apparatus for realizing persistence in stream computing applications. Background technique [0002] Usually, in stream computing, a data stream is called a message, and a series of computations and processing on a data stream is called a consumption. [0003] Stream computing products are mainly used for real-time computing. Real-time calculations are usually performed in memory, and the results of calculations must be saved and displayed in some way. At present, the calculation results are mainly stored in two ways: caching or persisting to a disk such as a database (non-memory database). Among them, since the cache mode has no physical disk input / output (I / O), the cache mode has excellent message throughput; however, since the calculation results are not persistent, the cache mode has almost no fault tolerance, that is, once In the event of appli...

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): G06F17/30
CPCG06F16/24568
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