CN109033328A - A kind of access request processing method, device, equipment and readable storage medium storing program for executing - Google Patents
A kind of access request processing method, device, equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109033328A CN109033328A CN201810797720.3A CN201810797720A CN109033328A CN 109033328 A CN109033328 A CN 109033328A CN 201810797720 A CN201810797720 A CN 201810797720A CN 109033328 A CN109033328 A CN 109033328A
- Authority
- CN
- China
- Prior art keywords
- access request
- rbd
- module
- nbd
- nbdclient
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of access request processing methods, method includes the following steps: acquisition pair/dev/nbdx access request;Access request is sent to reader process by nsock using the nbdkernel thread in nbdkernel module;Reader process calls librbd that access request is issued distributed file system, so that distributed file system handles access request;The response that distributed file system returns is received using librbd process, and will be responded using writer process and nbdclient is sent to by dsock, so that nbdclient processing responds.The performance of rbd is improved, rbd stability is enhanced, promotes user experience.The invention also discloses a kind of access request processing unit, equipment and readable storage medium storing program for executing, have corresponding technical effect.
Description
Technical field
The present invention relates to technical field of memory, more particularly to a kind of access request processing method, device, equipment and readable
Storage medium.
Background technique
Rbd is the tool of manipulation rados block device (RBD) image, QEMU/KVM by Linuxrbd kernel-driven and
Rbd storage driving come using.Wherein, RBD image is simple block device, it is stored in distribution after being striped into small block object
RADOS (Reliable, Autonomic Distributed Object Store) object in formula storage system (ceph) is deposited
Accumulation.
Currently, the rbd access ceph using kernel is stored, when ceph is relatively new, kernel is compared with the old times, might have
Image's (image is the label for storing picture, and form is<image src=" the opposite or absolute path of picture "/>) is interior
Core do not support, cannot map (a kind of collection class of java).Distributed storage needs to realize librbd at kernel (kernel)
(librbd is the block memory interface that ceph is externally provided) is functional, is unable to satisfy user demand.
In conclusion the problems such as how effectively promoting rbd performance, is current those skilled in the art skill urgently to be solved
Art problem.
Summary of the invention
The object of the present invention is to provide a kind of access request processing method, device, equipment and readable storage medium storing program for executing, to improve
The performance of rbd.
In order to solve the above technical problems, the invention provides the following technical scheme:
A kind of access request processing method, comprising:
Acquisition pair/dev/nbdx access request;
The access request is sent to by nsock using the nbdkernel thread in nbdkernel module
Reader process;
The reader process calls librbd that the access request is issued distributed file system, so as to the distribution
The formula file system processing access request;
The response that the distributed file system returns is received using the librbd process, and will using writer process
The response is sent to nbdclient by dsock, so that nbdclient processing responds.
Preferably, before the access request of the acquisition pair/dev/nbdx, further includes:
Kvm virtualized environment is configured, and one empty machine is installed using virt-manager or virt-install;
Default rbd-nbd driver is written, starts libvirtd finger daemon;
The xml document for modifying the empty machine, finds what addition device project was mapped out using distributed file system
Block device.
Preferably, the xml document of the modification empty machine, comprising:
Memory module using libvirt api interface write-in rbd enters virtual xml document, and it is made to come into force;
Default rbd-nbd configuration mode is written and enters xml document.
Preferably, after installing empty machine, before the xml document for modifying the empty machine, further includes:
In the xml document using virsh order line dump void machine.
Preferably, before acquisition pair/dev/nbdx access request, further includes:
In nbdclient starting, a socketpair is created;Wherein, the socketpair includes nsock,
rsock;
The nsock is passed into nbdkernel module using NBD_SET_SOCK ioctl interface;
Nbd kernel thread is created using the nbdkernel module;
Nbdserver is created using the nbdclient;
The nbd server creates reader and writer;Wherein, the reader monitors the rsock, described
Nbdclient calls NBD_DO_IT ioct l interface to enter kernel and monitors the nsock.
A kind of access request processing unit, comprising:
Access request obtains module, for obtaining pair/the access request of dev/nbdx;
First shift module, for being asked the access using the nbdkernel thread in nbdkernel module
It asks and reader process is sent to by nsock;
Second shift module calls librbd that the access request is issued distributed document for the reader process
System, so as to the distributed file system processing access request;
Processing module, for receiving the response that the distributed file system returns, and benefit using the librbd process
The response is sent to nbdclient by dsock with writer process, so that nbdclient processing responds.
Preferably, further includes:
Configuration module, for configuring kvm virtualized environment before the access request of the acquisition pair/dev/nbdx, and
One empty machine is installed using virt-manager or virt-install;Default rbd-nbd driver, starting is written
Libvirtd finger daemon;The xml document for modifying the empty machine is found addition device project and is reflected using distributed file system
The block device shot out.
Preferably, the configuration module enters void specifically for the memory module using libvirt api interface write-in rbd
Quasi- xml document, and it is made to come into force;Default rbd-nbd configuration mode is written and enters xml document.
A kind of access request processing equipment, comprising:
Memory, for storing computer program;
Processor, the step of above-mentioned access request processing method is realized when for executing the computer program.
A kind of readable storage medium storing program for executing is stored with computer program, the computer program quilt on the readable storage medium storing program for executing
The step of processor realizes above-mentioned access request processing method when executing.
Using method provided by the embodiment of the present invention, acquisition pair/dev/nbdx access request;Utilize nbdkernel
Access request is sent to reader process by nsock by the nbdkernel thread in module;Reader process is called
Access request is issued distributed file system by librbd, so that distributed file system handles access request;Utilize librbd
Process receives the response that distributed file system returns, and will be responded using writer process and be sent to by dsock
Nbdclient, so that nbdclient processing responds.
When get pair/access request of dev/nbdx when, access request is sent to distributed file system first, and
The response that distributed file system returns is sent to nbdclient.That is, rbd tool is combined with nbd to point
The access request of cloth storage system is handled, and the function that can cannot achieve the rbd tool of script is realized using nbd.Deng
It is same as RBD image being mapped as NBD (NetworkBlock Device, network control techology) equipment, can thus work as RBD
Make conventional local block device to use.Combined block driver framework can be realized in librdb in kernel to distributed system
Institute it is functional, improve the performance of rbd, enhance rbd stability, promote user experience.
Correspondingly, the embodiment of the invention also provides access request corresponding with above-mentioned access request processing method processing
Device, equipment and readable storage medium storing program for executing, have above-mentioned technique effect, and details are not described herein.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of implementation flow chart of access request processing method in the embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of access request processing unit in the embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of access request processing equipment in the embodiment of the present invention.
Specific embodiment
Core of the invention is to provide a kind of access request processing method, and this method combination rbd-nbd, final realize will
RBD image is mapped as NBD (Network Block Device, network control techology) equipment, i.e., by RBD as this conventional plot
Equipment uses.Specifically, rbd using kernel rbd module accesses distributed memory system (ceph) store, when ceph compared with
Newly, kernel compared with the old times, do not support by the feature kernel that might have some image, cannot map;Nbd is come using librbd
Ceph storage is accessed, the case where support there is no feature substantially.Wherein, nbd exports a block in host
Device is a kind of traditional mode of comparative maturity, is forwarded to user space program to all access requests of the device
Processing, nbd provide a Block Device Driver frame, can support to realize that block device, similar FUSE are supported in user in user's space
Realize file system in space.That is, in conjunction with rbd and nbd, can in kernel (kernel) in distributed memory system,
It realizes that the institute in librdb is functional, improves the performance of rbd, enhance rbd stability, promote user experience.
Another core of the invention is handled by a kind of access request corresponding with above-mentioned access request processing method
Device, equipment and readable storage medium storing program for executing, have above-mentioned technique effect.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Embodiment one:
Referring to FIG. 1, Fig. 1 is a kind of flow chart of access request processing method in the embodiment of the present invention, this method includes
Following steps:
S101, acquisition pair/dev/nbdx access request.
In embodiments of the present invention, can be set an empty machine, the I/O Request of empty machine is pair/and the access of dev/nbdx asks
It asks.
Wherein, the dev in/dev/nbdx is installable file system, and nbd is the NBD (Network in installable file system
Block Device, network control techology) equipment, x is NBD equipment identity.For example, x can be any value in 0 to 32.It can
Using for monitoring process/monitor of/dev/nbdx setting, right/dev/nbdx is monitored, to obtain NBD's in advance
Access request.
S102, access request is sent by nsock using the nbdkernel thread in nbdkernel module
Give reader process.
Wherein, nbdkernel module is nbd kernel, and nbdkernel thread is nbd process.
In embodiments of the present invention, socket nsock can be pre-created, nsock is in nbdkernel module
The socket communicate between nbdkernel thread and reader process.In actual implementation, for ease of operation,
Access request can be put into queue one first with nbdkernel module, be then wake up nbdkernel thread,
Access request is sent to reader process by nsock by nbdkernel thread.
S103, reader process call librbd that access request is issued distributed file system, so as to distributed document
System handles access request.
Wherein, librbd is the block memory interface that ceph is externally provided, and librbd interface is specially c/c++ two kinds of
Interface, header file respectively ceph-master ceph-master src include rbd librbd.hpp and source
Ceph-master ceph-master src include rbd in librbd.h.It can be carried out in ceph using the interface
The operations such as mirror image creation, deletion, clone and read-write.That is, access request can be sent to by librbd interface
Ceph is handled access request in ceph.Specifically, since librbd externally provides a namspace.In this way,
The function that using librbd can use linrbd to provide.In libedb, provide two class, be respectively rbd and
Image, can ceph-master ceph-master src librbd realize corresponding function in librbd.cc.
In practical application, for ease of operation, access request can be put into queue two by Reader process, and be called
Request is issued ceph by librbd.After Ceph receives access request, access request is handled, and response is back to
librbd。
S104, the response that distributed file system returns is received using librbd process, and will be rung using writer process
It should be sent to nbdclient by dsock, so that nbdclient processing responds.
In embodiments of the present invention, writer process can be pre-created, the process by dsock socket with
Nbdclient connection.
After receiving the corresponding response of access request, it can use writer process and sent responses to by dsock
nbdclient.So that nbdclient does respective handling to response.Specifically, the response can be to send to nbdclient
Operation requests, that is to say, that need to be finally completed the processing to access request by nbdclient.
In practical application, for ease of operation, queue three can be placed a response on, wake up writer process, writer process
Response is sent to nbdclient (user's space, i.e. nbd client) by dsock, nbdclient processing response.?
After nbdclient has been handled, final processing result can be back in rbd, it is anti-to carry out information for access request
Feedback, such as output prompt information.
Using method provided by the embodiment of the present invention, acquisition pair/dev/nbdx access request;Utilize nbdkernel
Access request is sent to reader process by nsock by the nbdkernel thread in module;Reader process is called
Access request is issued distributed file system by librbd, so that distributed file system handles access request;Utilize librbd
Process receives the response that distributed file system returns, and will be responded using writer process and be sent to by dsock
Nbdclient, so that nbdclient processing responds.
When get pair/access request of dev/nbdx when, access request is sent to distributed file system first, and
The response that distributed file system returns is sent to nbdclient.That is, rbd tool is combined with nbd to point
The access request of cloth storage system is handled, and the function that can cannot achieve the rbd tool of script is realized using nbd.Deng
It is same as RBD image being mapped as NBD (Network Block Device, network control techology) equipment, can thus work as RBD
Make conventional local block device to use.Combined block driver framework can be realized in librdb in kernel to distributed system
Institute it is functional, improve the performance of rbd, enhance rbd stability, promote user experience.
It should be noted that based on the above embodiment one, the embodiment of the invention also provides be correspondingly improved scheme.Rear
Involved in continuous embodiment with can mutually be referred between same steps or corresponding steps in above-described embodiment one, corresponding beneficial effect
Can also be cross-referenced, it is no longer repeated one by one in improvement embodiment below.
Embodiment two:
In order to those skilled in the art understand that technical solution provided by the embodiment of the present invention, is visited below in conjunction in acquisition
Before asking request, environmental structure configuration is carried out, technical solution is provided for the embodiments of the invention and is described in detail.Environment is taken
Building configuration process includes:
Step 1: configuration kvm virtualized environment, and one void is installed using virt-manager or virt-install
Machine;
Step 2: default rbd-nbd driver is written, start libvirtd finger daemon;
Step 3: modifying the xml document of empty machine, finds addition device project and map out to come using distributed file system
Block device.
It is illustrated for ease of description, below combining above three step.
Firstly, configuration kvm virtualized environment, and installed by modes such as virt-manager or virt-install
One empty machine.For how to configure kvm virtualized environment, and specifically, how to install empty machine can be found in common process flow,
This is not repeated.Preferably, it after installing empty machine, before the xml document to empty machine is just modified, can also use
The xml document of virsh order line dump void machine.That is, xml document is carried out backup preservation, to there is xml document
Modification at that time, does not revert to reset condition.
Rbd-nbd driver can will be written provided by above-described embodiment one the step of write-access request processing method
In, then rbd-nbd driver is written in virtual, then starts libvirtd finger daemon.
Then, it modifies to xml document, to realize access request processing method provided by the embodiment of the present invention.
When modifying the xml document of empty machine, the memory module of rbd can be written in virtual xml document.Specifically, utilizing
The memory module of libvirt api interface write-in rbd enters virtual xml document, and it is made to come into force;Default rbd-nbd is written
Configuration mode enters xml document.The memory module of rbd, specifically, upper layer void machine applies required disk, i.e. institute on linux
The block device for needing rbd to map operates the block device in the osd for obtaining distributed file system by the kernel layer of host.It is logical
The block driving equipment for crossing virtualization qemu-kvm, is requested to pass to the IO queue that qmeu-rbd is converted into host.
Modified xml document includes the memory module and rbd-nbd configuration mode of rbd.For example, modified void machine
Xml document can be with are as follows:
Specifically, when modifying the xml document of empty machine, in order to reduce the workload of modification, addition device can be found
Project maps out the block device come using distributed file system.That is, will need RBD image being mapped as NBD
(Network Block Device, network control techology) equipment is found out in advance, can so applied the RBD image found out
In, it is used as conventional local block device.In practical applications, after the processing module of increased rbd-nbd, the empty machine on upper layer
Io request can be then passed to librbd by nbd resume module, and then feedback distributed file system stores again.Namely
It says, the function in librbd that rbd cannot achieve, can use nbd realization.
Preferably, it in order to preferably realize technical solution provided by the embodiment of the present invention, can also put up virtually
Environment, after having configured xml document, will realize the embodiment of the present invention provided by technical solution needed for each process carry out
Process is established and is communicated to connect by creation, and the corresponding socket of creation.So as to after receiving access request, to the request into
Row processing.Rbd is enabled to realize more multi-functional.Specifically, that is, being executed before acquisition pair/dev/nbdx access request:
Step 1: creating a socketpair in nbdclient starting;Wherein, socketpair includes nsock,
rsock;
Step 2: nsock is passed to nbdkernel module using NBD_SET_SOCK ioctl interface;
Step 3: creating nbd kernel thread using nbdkernel module;
Step 4: creating nbdserver using nbdclient;
Step 5: nbd server creates reader and writer;Wherein, reader monitors rsock, nbdclient tune
Enter kernel with NBD_DO_IT ioct l interface and monitors nsock.
For ease of description, above-mentioned five steps are combined below and is illustrated.
A rbd-nbd program is realized between user's space, i.e. nbdclient creates a socketpair when starting,
Two socket are respectively nsock, rsock.Nsock is passed into nbdkernel using NBD_SET_SOCK ioctl interface
Module, nbdkernel module create nbd kernel thread in queue one, and nbdclient creates nbdserver.
Nbd server creates two threads: reader, writer.Wherein, reader monitors rsock, writer in queue two,
Nbdclient calls NBD_DO_IT ioct l interface to enter kernel and monitors nsock.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of access request processing units, hereafter
The access request processing unit of description can correspond to each other reference with above-described access request processing method.
Shown in Figure 2, which comprises the following modules:
Access request obtains module 101, for obtaining pair/the access request of dev/nbdx;
First shift module 102, for being asked access using the nbdkernel thread in nbdkernel module
It asks and reader process is sent to by nsock;
Second shift module 103 calls librbd that access request is issued distributed file system for reader process,
So that distributed file system handles access request;
Processing module 104 for receiving the response that distributed file system returns using librbd process, and utilizes
Writer process will respond and be sent to nbdclient by dsock, so that nbdclient processing responds.
Wherein, the first shift module and the first shift module are only used for difference access request in different process and/or set
Connect and transmitted between word, do not suggested that in practical application, certainly exist orderliness relationship the first shift module and second turn
Shifting formwork block.That is, in practical applications, movement interchangeable performed by above-mentioned first shift module and the second shift module can also
To only have a module realization.
Using device provided by the embodiment of the present invention, acquisition pair/dev/nbdx access request;Utilize nbdkernel
Access request is sent to reader process by nsock by the nbdkernel thread in module;Reader process is called
Access request is issued distributed file system by librbd, so that distributed file system handles access request;Utilize librbd
Process receives the response that distributed file system returns, and will be responded using writer process and be sent to by dsock
Nbdclient, so that nbdclient processing responds.
When get pair/access request of dev/nbdx when, access request is sent to distributed file system first, and
The response that distributed file system returns is sent to nbdclient.That is, rbd tool is combined with nbd to point
The access request of cloth storage system is handled, and the function that can cannot achieve the rbd tool of script is realized using nbd.Deng
It is same as RBD image being mapped as NBD (NetworkBlock Device, network control techology) equipment, can thus work as RBD
Make conventional local block device to use.Combined block driver framework can be realized in librdb in kernel to distributed system
Institute it is functional, improve the performance of rbd, enhance rbd stability, promote user experience.
In a kind of specific embodiment of the invention, further includes:
Configuration module, for configuring kvm virtualized environment, and utilize before acquisition pair/dev/nbdx access request
Virt-manager or virt-install installs an empty machine;Default rbd-nbd driver is written, starts libvirtd
Finger daemon;The xml document for modifying empty machine is found addition device project and is set using the block that distributed file system maps out
It is standby.
In a kind of specific embodiment of the invention, configuration module is specifically used for being written using libvirt api interface
The memory module of rbd enters virtual xml document, and it is made to come into force;Default rbd-nbd configuration mode is written and enters xml document.
In a kind of specific embodiment of the invention, further includes:
Backup module is applied after installing empty machine, before the xml document for modifying empty machine, is using virsh order
The xml document of row dump void machine.
In a kind of specific embodiment of the invention, further includes:
Process setup module, for executing the operation of following steps before acquisition pair/dev/nbdx access request:
In nbdclient starting, a socketpair is created;Wherein, socketpair includes nsock, rsock;
Nsock is passed into nbdkernel module using NBD_SET_SOCK ioctl interface;
Nbd kernel thread is created using nbdkernel module;
Nbdserver is created using nbdclient;
Nbd server creates reader and writer;Wherein, reader monitors rsock, and nbdclient calls NBD_
DO_IT ioct l interface enters kernel and monitors nsock.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of access request processing equipments, hereafter
A kind of access request processing equipment of description can correspond to each other reference with a kind of above-described access request processing method.
Shown in Figure 3, which includes:
Memory D1, for storing computer program;
Processor D2 realizes the step of the access request processing method of above method embodiment when for executing computer program
Suddenly.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of readable storage medium storing program for executing, are described below
A kind of readable storage medium storing program for executing can correspond to each other reference with a kind of above-described access request processing method.
A kind of readable storage medium storing program for executing is stored with computer program on readable storage medium storing program for executing, and computer program is held by processor
The step of access request processing method of above method embodiment is realized when row.
The readable storage medium storing program for executing be specifically as follows USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), the various program storage generations such as random access memory (Random Access Memory, RAM), magnetic or disk
The readable storage medium storing program for executing of code.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other
The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment
For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part
Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said
It is bright to be merely used to help understand technical solution of the present invention and its core concept.It should be pointed out that for the common of the art
, without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention for technical staff, these
Improvement and modification are also fallen within the protection scope of the claims of the present invention.
Claims (10)
1. a kind of access request processing method characterized by comprising
Acquisition pair/dev/nbdx access request;
The access request is sent to by nsock using the nbdkernel thread in nbdkernel module
Reader process;
The reader process calls librbd that the access request is issued distributed file system, so as to the distributed text
The part system processing access request;
The response that the distributed file system returns is received using the librbd process, and will be described using writer process
Response is sent to nbdclient by dsock, so as to the nbdclient processing response.
2. access request processing method according to claim 1, which is characterized in that the acquisition pair/dev/nbdx's
Before access request, further includes:
Kvm virtualized environment is configured, and one empty machine is installed using virt-manager or virt-install;
Default rbd-nbd driver is written, starts libvirtd finger daemon;
The xml document for modifying the empty machine, is found addition device project and is set using the block that distributed file system maps out
It is standby.
3. access request processing method according to claim 2, which is characterized in that the xml text of the modification empty machine
Part, comprising:
Memory module using libvirt api interface write-in rbd enters virtual xml document, and it is made to come into force;
Default rbd-nbd configuration mode is written and enters xml document.
4. access request processing method according to claim 2, which is characterized in that after installing empty machine, modifying
Before the xml document of the void machine, further includes:
In the xml document using virsh order line dump void machine.
5. access request processing method according to any one of claims 1 to 4, which is characterized in that in acquisition pair/dev/
Before the access request of nbdx, further includes:
In nbdclient starting, a socketpair is created;Wherein, the socketpair includes nsock, rsock;
The nsock is passed into nbdkernel module using NBD_SET_SOCK ioctl interface;
Nbd kernel thread is created using the nbdkernel module;
Nbdserver is created using the nbdclient;
The nbd server creates reader and writer;Wherein, the reader monitors the rsock, described
Nbdclient calls NBD_DO_IT ioctl interface to enter kernel and monitors the nsock.
6. a kind of access request processing unit characterized by comprising
Access request obtains module, for obtaining pair/the access request of dev/nbdx;
First shift module, for being led to the access request using the nbdkernel thread in nbdkernel module
It crosses nsock and is sent to reader process;
Second shift module calls librbd that the access request is issued distributed field system for the reader process
System, so as to the distributed file system processing access request;
Processing module for receiving the response that the distributed file system returns using the librbd process, and utilizes
The response is sent to nbdclient by dsock by writer process, so as to the nbdclient processing response.
7. access request processing unit according to claim 6, which is characterized in that further include:
Configuration module, for configuring kvm virtualized environment, and utilize before the access request of the acquisition pair/dev/nbdx
Virt-manager or virt-install installs an empty machine;Default rbd-nbd driver is written, starts libvirtd
Finger daemon;The xml document for modifying the empty machine, finds what addition device project was mapped out using distributed file system
Block device.
8. access request processing unit according to claim 7, which is characterized in that the configuration module is specifically used for benefit
Enter virtual xml document with the memory module of libvirt api interface write-in rbd, and it is made to come into force;Default rbd- is written
Nbd configuration mode enters xml document.
9. a kind of access request processing equipment characterized by comprising
Memory, for storing computer program;
Processor realizes the access request processing side as described in any one of claim 1 to 5 when for executing the computer program
The step of method.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter on the readable storage medium storing program for executing
It is realized when calculation machine program is executed by processor as described in any one of claim 1 to 5 the step of access request processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810797720.3A CN109033328B (en) | 2018-07-19 | 2018-07-19 | Access request processing method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810797720.3A CN109033328B (en) | 2018-07-19 | 2018-07-19 | Access request processing method, device, equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109033328A true CN109033328A (en) | 2018-12-18 |
CN109033328B CN109033328B (en) | 2022-08-02 |
Family
ID=64643622
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810797720.3A Active CN109033328B (en) | 2018-07-19 | 2018-07-19 | Access request processing method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109033328B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110221902A (en) * | 2019-06-12 | 2019-09-10 | 腾讯科技(深圳)有限公司 | A kind of data transmission method and relevant apparatus based on virtual machine |
CN110321075A (en) * | 2019-05-31 | 2019-10-11 | 平安科技(深圳)有限公司 | Data migration method, device, equipment and storage medium based on nbd equipment |
CN110321251A (en) * | 2019-06-03 | 2019-10-11 | 平安科技(深圳)有限公司 | Data back up method, device, equipment and storage medium based on network control techology |
CN110321321A (en) * | 2019-05-31 | 2019-10-11 | 平安科技(深圳)有限公司 | Network control techology snapshot reading/writing method, device, equipment and storage medium |
CN110336857A (en) * | 2019-06-03 | 2019-10-15 | 平安科技(深圳)有限公司 | Creation method, device, equipment and the storage medium of network control techology |
CN110333823A (en) * | 2019-05-31 | 2019-10-15 | 平安科技(深圳)有限公司 | Data migration method, device, equipment and storage medium based on nbd equipment |
CN113419673A (en) * | 2021-06-05 | 2021-09-21 | 济南浪潮数据技术有限公司 | Method, system, medium and device for RBD access storage cluster |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090182051A1 (en) * | 2003-05-30 | 2009-07-16 | Kopas Patricia Mckane | Cosmeceutical formulation containing palm oils |
CN103200245A (en) * | 2013-03-21 | 2013-07-10 | 杭州电子科技大学 | Distributed type network caching method based on Device Mapper |
CN103561101A (en) * | 2013-11-06 | 2014-02-05 | 中国联合网络通信集团有限公司 | Network file system |
CN105468643A (en) * | 2014-09-09 | 2016-04-06 | 博雅网络游戏开发(深圳)有限公司 | Distributed file system access method and system |
US20160323237A1 (en) * | 2012-07-17 | 2016-11-03 | Coho Data, Inc. | Systems, methods and devices for integrating end-host and network resources in distributed memory |
CN106095528A (en) * | 2016-06-07 | 2016-11-09 | 国云科技股份有限公司 | A kind of method detecting virtual machine drive |
CN106095527A (en) * | 2016-06-07 | 2016-11-09 | 国云科技股份有限公司 | A kind of storage pool implementation method being applicable to cloud platform virtual machine |
CN106527985A (en) * | 2016-11-02 | 2017-03-22 | 郑州云海信息技术有限公司 | Storage interaction device and storage system based on ceph |
CN106699967A (en) * | 2015-11-13 | 2017-05-24 | 中国石油化工股份有限公司 | Method for preparing high-vinyl butadiene-styrene copolymer by adopting molybdenum-series catalytic system |
CN106970821A (en) * | 2016-01-12 | 2017-07-21 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus that I/O requests are handled under KVM virtualization |
CN107729020A (en) * | 2017-10-11 | 2018-02-23 | 北京航空航天大学 | A kind of method for realizing extensive container rapid deployment |
US20180194831A1 (en) * | 2015-07-10 | 2018-07-12 | Ohio State Innovation Foundation | Methods and compositions relating to anti-nucleolin recombinant immunoagents |
-
2018
- 2018-07-19 CN CN201810797720.3A patent/CN109033328B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090182051A1 (en) * | 2003-05-30 | 2009-07-16 | Kopas Patricia Mckane | Cosmeceutical formulation containing palm oils |
US20160323237A1 (en) * | 2012-07-17 | 2016-11-03 | Coho Data, Inc. | Systems, methods and devices for integrating end-host and network resources in distributed memory |
CN103200245A (en) * | 2013-03-21 | 2013-07-10 | 杭州电子科技大学 | Distributed type network caching method based on Device Mapper |
CN103561101A (en) * | 2013-11-06 | 2014-02-05 | 中国联合网络通信集团有限公司 | Network file system |
CN105468643A (en) * | 2014-09-09 | 2016-04-06 | 博雅网络游戏开发(深圳)有限公司 | Distributed file system access method and system |
US20180194831A1 (en) * | 2015-07-10 | 2018-07-12 | Ohio State Innovation Foundation | Methods and compositions relating to anti-nucleolin recombinant immunoagents |
CN106699967A (en) * | 2015-11-13 | 2017-05-24 | 中国石油化工股份有限公司 | Method for preparing high-vinyl butadiene-styrene copolymer by adopting molybdenum-series catalytic system |
CN106970821A (en) * | 2016-01-12 | 2017-07-21 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus that I/O requests are handled under KVM virtualization |
CN106095528A (en) * | 2016-06-07 | 2016-11-09 | 国云科技股份有限公司 | A kind of method detecting virtual machine drive |
CN106095527A (en) * | 2016-06-07 | 2016-11-09 | 国云科技股份有限公司 | A kind of storage pool implementation method being applicable to cloud platform virtual machine |
CN106527985A (en) * | 2016-11-02 | 2017-03-22 | 郑州云海信息技术有限公司 | Storage interaction device and storage system based on ceph |
CN107729020A (en) * | 2017-10-11 | 2018-02-23 | 北京航空航天大学 | A kind of method for realizing extensive container rapid deployment |
Non-Patent Citations (3)
Title |
---|
LI WANG 等: ""Design and Implementation of Ceph Block Device in Userspace for Container Scenarios", 《2016 INTERNATIONAL SYMPOSIUM ON COMPUTER, CONSUMER AND CONTROL》 * |
LU QI 等: "NLOV: An Innovative Object-Oriented Storage System Based on BerkeleyDB", 《2008 10TH IEEE INTERNATIONAL CONFERENCE ON HIGH PERFORMANCE COMPUTING AND COMMUNICATIONS》 * |
沈之强: "云存储系统中的网络缓存关键技术研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 * |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110321075B (en) * | 2019-05-31 | 2023-05-23 | 平安科技(深圳)有限公司 | Data migration method, device, equipment and storage medium based on nbd equipment |
CN110321075A (en) * | 2019-05-31 | 2019-10-11 | 平安科技(深圳)有限公司 | Data migration method, device, equipment and storage medium based on nbd equipment |
CN110333823B (en) * | 2019-05-31 | 2023-07-07 | 平安科技(深圳)有限公司 | Data migration method, device, equipment and storage medium based on nbd equipment |
CN110321321A (en) * | 2019-05-31 | 2019-10-11 | 平安科技(深圳)有限公司 | Network control techology snapshot reading/writing method, device, equipment and storage medium |
CN110321321B (en) * | 2019-05-31 | 2023-06-23 | 平安科技(深圳)有限公司 | Snapshot read-write method, device and equipment for network block equipment and storage medium |
CN110333823A (en) * | 2019-05-31 | 2019-10-15 | 平安科技(深圳)有限公司 | Data migration method, device, equipment and storage medium based on nbd equipment |
WO2020237849A1 (en) * | 2019-05-31 | 2020-12-03 | 平安科技(深圳)有限公司 | Snapshot read-write method for network block device, apparatus, device, and storage medium |
WO2020237859A1 (en) * | 2019-05-31 | 2020-12-03 | 平安科技(深圳)有限公司 | Data migration method employing nbd device, apparatus, device, and storage medium |
WO2020244059A1 (en) * | 2019-06-03 | 2020-12-10 | 平安科技(深圳)有限公司 | Data backup method, apparatus and device based on network block device, and storage medium |
WO2020244058A1 (en) * | 2019-06-03 | 2020-12-10 | 平安科技(深圳)有限公司 | Method, apparatus and device for creating network block device, and storage medium |
CN110336857B (en) * | 2019-06-03 | 2022-04-12 | 平安科技(深圳)有限公司 | Method, device, equipment and storage medium for creating network block equipment |
CN110321251B (en) * | 2019-06-03 | 2023-06-20 | 平安科技(深圳)有限公司 | Data backup method, device, equipment and storage medium based on network block equipment |
CN110336857A (en) * | 2019-06-03 | 2019-10-15 | 平安科技(深圳)有限公司 | Creation method, device, equipment and the storage medium of network control techology |
CN110321251A (en) * | 2019-06-03 | 2019-10-11 | 平安科技(深圳)有限公司 | Data back up method, device, equipment and storage medium based on network control techology |
CN110221902A (en) * | 2019-06-12 | 2019-09-10 | 腾讯科技(深圳)有限公司 | A kind of data transmission method and relevant apparatus based on virtual machine |
CN110221902B (en) * | 2019-06-12 | 2023-09-29 | 腾讯科技(深圳)有限公司 | Data transmission method and related device based on virtual machine |
CN113419673A (en) * | 2021-06-05 | 2021-09-21 | 济南浪潮数据技术有限公司 | Method, system, medium and device for RBD access storage cluster |
CN113419673B (en) * | 2021-06-05 | 2022-05-27 | 济南浪潮数据技术有限公司 | Method, system, medium and device for RBD access storage cluster |
Also Published As
Publication number | Publication date |
---|---|
CN109033328B (en) | 2022-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109033328A (en) | A kind of access request processing method, device, equipment and readable storage medium storing program for executing | |
JP3659062B2 (en) | Computer system | |
US8738883B2 (en) | Snapshot creation from block lists | |
CN101650660B (en) | Booting a computer system from central storage | |
US20140258701A1 (en) | Computing platform performance management with ras services | |
US9223596B1 (en) | Virtual machine fast provisioning based on dynamic criterion | |
EP2851807A1 (en) | Method and system for supporting resource isolation under multi-core architecture | |
CN107209683B (en) | Backup image restore | |
US20150293776A1 (en) | Data processing systems | |
US20100088448A1 (en) | Virtual computing accelerator and program downloading method for server-based virtual computing | |
CN111078147A (en) | Processing method, device and equipment for cache data and storage medium | |
CN111045786B (en) | Container creation system and method based on mirror image layering technology in cloud environment | |
US10728169B1 (en) | Instance upgrade migration | |
CN110928935B (en) | Data access command processing method, device and system | |
US8745629B2 (en) | System and method of controlling power in an electronic device | |
CN110520844A (en) | Cloud management platform, virtual machine management method and its system | |
CN113835887B (en) | Video memory allocation method and device, electronic equipment and readable storage medium | |
US20210365361A1 (en) | Method and apparatus for designing dual-mirror shared conf partition file | |
US20140082275A1 (en) | Server, host and method for reading base image through storage area network | |
CN115526770A (en) | Scaling for virtualized graphics processing | |
CA3129984A1 (en) | Method and system for accessing distributed block storage system in user mode | |
WO2024113819A1 (en) | Configuration method and apparatus for pod, device, and nonvolatile readable storage medium | |
CN114416376A (en) | Load balancing method and system for multiple display cards among different applications | |
US10552318B2 (en) | Working set adjustment in a managed environment | |
US8484642B2 (en) | Processor core selection based at least in part upon at least one inter-dependency |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |