Unlock instant, AI-driven research and patent intelligence for your innovation.

Disk control method, device and related equipment based on cloud monitoring where commitlog files are located

A disk control and cloud monitoring technology, applied in the computer field, can solve problems such as high disk usage, failure to store commitlog logs normally, and affect system operating efficiency, so as to ensure the correctness

Active Publication Date: 2022-04-01
PING AN TECH (SHENZHEN) CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Insufficient disk space will not only affect the speed of writing the commitlog log, but also cause the commitlog log to be unable to be stored normally, resulting in the inaccessibility of the database
In addition, the high disk usage will also affect the operating efficiency of the system.
[0004] If you rely on managers to manually monitor disk usage and perform manual processing, the cost is high, the efficiency is low, and the lack of real-time performance makes it unsuitable for large-scale application systems.

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
  • Disk control method, device and related equipment based on cloud monitoring where commitlog files are located
  • Disk control method, device and related equipment based on cloud monitoring where commitlog files are located
  • Disk control method, device and related equipment based on cloud monitoring where commitlog files are located

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] figure 1 It is a flow chart of the method for controlling the disk where the commitLog file is located based on cloud monitoring provided by Embodiment 1 of the present invention. The method for controlling the disk where the commitLog file is located based on cloud monitoring monitors the disk usage index of the disk where the commitLog is located in the system, and controls the speed of writing the commitLog file according to the disk usage. According to different requirements, the execution sequence in the flow chart can be changed, and some steps can be omitted.

[0052] 101: When a user request is received, obtain the current disk usage rate of the disk where the commitLog file is located.

[0053] In this embodiment, when the user requests to operate the Cassandra database, the request instruction may be sent to the system. Users can call the Real-timeBean class method to send the request to operate the Cassandra database.

[0054] The request for operating the...

Embodiment 2

[0105] figure 2 It is a functional block diagram of a preferred embodiment of the disk control device where the cloud-based monitoring commitLog file is located in the present invention.

[0106] In some embodiments, the disk control device 20 where the cloud-based monitoring commitLog file resides runs on a computer device. The disk control device 20 based on cloud monitoring where the commitLog file is located monitors the disk usage index of the disk where the commitLog is located in the system, and controls the speed of writing the commitLog file according to the disk usage. The disk control device 20 where the cloud-based monitoring commitLog file resides may include a plurality of functional modules composed of program code segments. The program codes of each program segment in the disk control device 20 where the cloud-monitored commitLog file is located may be stored in a memory and executed by at least one processor.

[0107] In this embodiment, the disk control de...

Embodiment 3

[0158] image 3 It is a schematic diagram of a computer device provided by Embodiment 3 of the present invention.

[0159] The computer device 3 includes: a memory 31 , at least one processor 32 , a computer program 33 stored in the memory 31 and executable on the at least one processor 32 , and at least one communication bus 34 .

[0160] When the at least one processor 32 executes the computer program 33, the steps in the above embodiment of the method for controlling the disk where the commitLog file is located based on cloud monitoring are implemented.

[0161] Exemplarily, the computer program 33 may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 31 and executed by the at least one processor 32 . The one or more modules / units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer prog...

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

A method for controlling the disk where the commitLog file is located based on cloud monitoring, comprising: when a user request is received, obtaining the current disk usage rate of the disk where the commitLog file is located; when the current disk usage rate is less than the preset first disk usage threshold, the The user request is encapsulated and written to the commitLog file on the disk; when the disk usage is greater than or equal to the preset first disk usage threshold but less than the preset second disk usage threshold and the failure rate of writing to the commitLog file is less than or equal to the preset When the failure rate threshold is set, the speed of writing the commitLog file is controlled according to the current load of the system. The present invention also provides a disk control device, computer equipment and storage medium based on cloud monitoring where the commitLog file is located. The present invention can determine whether to continue writing the commitLog file according to the disk usage rate and the failure rate of writing the commitLog file, so as to ensure that the disk usage rate will not be too high.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method, device and related equipment for controlling a disk where a commitLog file is located based on cloud monitoring. Background technique [0002] As a database for massive data processing, Cassandra first writes data into the memory table memtable in order to improve performance, and then persists the data in the memory table memtable to the hard disk when the memory table memtable reaches a certain capacity. However, if the system goes down or restarts, the data in the memory table memtable will be lost. Cassandra provides a data recovery mechanism - the way of writing to the log first and then writing the data. The log is called commitLog, through commitLog Restore the data that originally existed in the memory table memtable. [0003] However, when data is read and written very frequently, more and more commitlog logs will be written, resulting in more and more commi...

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): G06F3/06G06F11/34G06F16/25
Inventor 陈东杰
Owner PING AN TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More