Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and apparatus for monitoring MongoDB database object replication delay

A technology of object replication and database, which is applied in the field of database system, can solve the problems of inconsistency between reading and writing, affecting the consistency of reading and writing separation data, and achieve the effect of avoiding data inconsistency

Active Publication Date: 2017-03-22
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As an important indicator to measure the master-slave availability of MongoDB database, it is the delay of master-slave replication. Once the master-slave delay occurs, it will greatly affect the consistency of read-write separation data, resulting in inconsistency in reading and writing.

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 apparatus for monitoring MongoDB database object replication delay
  • Method and apparatus for monitoring MongoDB database object replication delay
  • Method and apparatus for monitoring MongoDB database object replication delay

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, but not all embodiments. The components of the embodiments of the invention generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Thus, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but is merely representative of selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without c...

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 method and apparatus for monitoring MongoDB database object replication delay. The method comprises the following steps: obtaining state information of a MongoDB database in a server providing MongoDB database services; determining whether the MongoDB database is a slave database according to a database role parameter in the state information of the MongoDB database; obtaining slave database replication information of the slave database to replicate a database object from a source database, wherein the slave database replication information comprises a time of the source database to process a client request and a time of the slave database to replicate the database object from the source database; and determining whether the replication time of the database object is delayed according to the time of the source database to process the client request and a time of the slave database to replicate the database object from the source database in the slave database replication information. The invention further discloses a corresponding apparatus for monitoring MongoDB database object replication delay.

Description

technical field [0001] The invention relates to a database system, in particular, to a method and device for monitoring the replication delay of a MongoDB database object. Background technique [0002] As more and more Internet companies begin to use databases as databases for storing information, the most classic architecture is the separation of master-slave read-write, through which massive business support is realized. Commonly used databases are generally MongoDB databases. As an important indicator to measure the master-slave availability of MongoDB database, it is the delay of master-slave replication. Once the master-slave is delayed, it will greatly affect the consistency of read-write separation data, resulting in read-write inconsistency. Therefore, it is necessary to propose a solution for monitoring the master-slave replication delay of MongoDB database. SUMMARY OF THE INVENTION [0003] In view of this, the purpose of the present invention is to provide a m...

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/27
Inventor 赵闪
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products