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

A mongodb database object replication delay monitoring method and device

An object replication and database technology, applied in the field of database systems, can solve the problems of inconsistent reading and writing, affecting the consistency of reading and writing separation data, and achieve the effect of avoiding data inconsistency

Active Publication Date: 2019-04-23
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 0 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
  • A mongodb database object replication delay monitoring method and device
  • A mongodb database object replication delay monitoring method and device
  • A mongodb database object replication delay monitoring method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the purpose, 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 in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making...

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 MongoDB database object replication delay monitoring method and device. Background technique [0002] As more and more Internet companies begin to use databases as the databases for enterprises to store information, the most classic architecture is the separation of master-slave reading and writing, and in this way, massive business support is realized. Commonly used databases generally include 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 delay occurs, it will greatly affect the consistency of read-write separation data, resulting in inconsistency between read and write. Therefore, it is necessary to propose a solution to monitor the master-slave replication delay of the MongoDB database. Contents of the invention [0003] In view of this, the object of the pr...

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 Patents(China)
IPC IPC(8): G06F16/27
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