Data writing method and device, server and storage medium
A data writing and server technology, applied in the field of distributed databases, can solve the problem of unbalanced OSD distribution of items, etc., achieve good read and write and access performance, reduce occupation, and improve access effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] figure 1 It is a flow chart of the data writing method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of implementing data writing based on CephRBD. The method can be executed by a data writing device and can be integrated in a Ceph server. Specifically include the following steps:
[0029] S110. Receive a read and write request sent by the KVM client.
[0030] In this embodiment, a virtual machine can be used as a client to receive various requests sent by users. And use KVM Hypervisor as a virtual machine management tool.
[0031] Exemplarily, the hypervisor can be an intermediate software layer running between the basic physical server and the operating system, allowing multiple operating systems and applications to share hardware. It is effectively a "meta" operating system in a virtual environment. They have access to all physical devices on the server including disks and memory. Hypervisors not only coordinat...
Embodiment 2
[0060] figure 2 It is a schematic flowchart of the data writing method provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments. In this embodiment, the specific optimization of judging whether the SSD storage condition is enabled according to the parameters is as follows: judging whether the SSD storage condition is satisfied according to the ssd cache size.
[0061] Correspondingly, the data writing method provided in this embodiment specifically includes:
[0062] S210, receiving a read and write request sent by the KVM client.
[0063] S220, judging according to the ssd cache size whether the condition for enabling SSD storage is met.
[0064] In some business scenarios, such as business scenarios with relatively high business continuity, when KVM data is continuously written to RBD for 7*24 hours, if the requirements for business connectivity exceed the performance of SSD, the SSD needs to be shut d...
Embodiment 3
[0069] image 3 is a schematic structural diagram of the data writing device provided in Embodiment 4 of the present invention, as image 3 As shown, the device includes:
[0070] Receiving module 310, for receiving the read and write request that KVM client sends;
[0071] Judgment module 320, is used for judging whether to meet opening SSD storage condition according to parameter, described parameter comprises: ssdcache size, ssd cache max dirty, ssd cache target dirty and ssd cache device;
[0072] Read-write module 330, for when satisfying to open SSD storage condition, utilize described SSD to realize the data read-write of CephRBD, described read-write module comprises:
[0073] A coexistence judging unit is used to judge whether it is an SSD storage and cache coexistence solution according to ssd cache max dirty and ssd cache size;
[0074] The concurrent read and write unit is used to read and write CephRBD data according to the ssd cache max dirty when the coexiste...
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