Redis slow log storage method and device, Redis slow log display method and device, equipment and medium
A storage device and slow log technology, applied in the storage field of Redis slow log, can solve the problems of inconvenient system tuning and fault investigation, limited memory space of slow log, unable to save Redis slow log completely, etc. The effect of excellent and fault investigation convenience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] figure 1 It is a flow chart of a method for storing Redis slow logs provided by Embodiment 1 of the present invention. This embodiment is applicable to situations where Redis slow logs need to be stored persistently so that operation and maintenance personnel can perform system tuning and fault investigation. The method can be executed by a storage device of the Redis slow log, the device can be implemented by software and / or hardware, and generally can be integrated in the client.
[0038] Correspondingly, such as figure 1 As shown, the embodiment of the present invention specifically includes the following steps:
[0039] Step 110, obtain at least one slow log from the Redis storage device.
[0040] Among them, the Redis storage device can be a database storage system based on key-value key-value pairs, which can store strings, hash tables, lists, sets, and sorted sets. )Wait. Slow logs can help developers and O&M personnel locate slow operations in the system. T...
Embodiment 2
[0051] Figure 2a It is a flowchart of a method for storing Redis slow logs provided by Embodiment 2 of the present invention. On the basis of the above embodiments, this embodiment further specifies the steps of obtaining slow logs and performing format conversion on slow logs .
[0052] Correspondingly, such as Figure 2a As shown, the embodiment of the present invention specifically includes the following steps:
[0053] S210. Obtain all currently stored slow logs from the Redis storage device every preset waiting period.
[0054] Wherein, the preset waiting time may be predetermined. In a specific example, it may be stipulated that a cycle is performed every five minutes. This embodiment does not limit the specific value of the preset waiting time.
[0055] In the embodiment of the present invention, all the slow logs stored in the Redis storage device are obtained every preset waiting period, so as to further filter the slow logs.
[0056] S220. Taking the current sys...
Embodiment 3
[0074] image 3 It is a flow chart of a Redis slow log display method provided by Embodiment 3 of the present invention. This embodiment is applicable to the situation where the Redis slow log needs to be graphically displayed so that the operation and maintenance personnel can perform system tuning and fault investigation. The method can be executed by a Redis slow log display device, which can be implemented by software and / or hardware, and can generally be integrated in a server.
[0075] Correspondingly, such as image 3 As shown, the embodiment of the present invention specifically includes the following steps:
[0076] S310. Obtain the target slow log uploaded by the client through the server interface, the target slow log is obtained by the client after format conversion of the slow log obtained from the Redis storage device, and the target slow log includes at least one key value log data of the form.
[0077] In the embodiment of the present invention, the client o...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com