CN108089823A - For the information output method and device of storage system - Google Patents
For the information output method and device of storage system Download PDFInfo
- Publication number
- CN108089823A CN108089823A CN201711477753.1A CN201711477753A CN108089823A CN 108089823 A CN108089823 A CN 108089823A CN 201711477753 A CN201711477753 A CN 201711477753A CN 108089823 A CN108089823 A CN 108089823A
- Authority
- CN
- China
- Prior art keywords
- memory capacity
- capacity
- server
- scanning
- user
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0653—Monitoring storage devices or systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0643—Management of files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present application discloses the information output method and device for storage system.The storage system includes multiple database servers, monitoring server, scanning server and database server communication connection, for monitoring server for monitoring operation of the user to the object stored in database server, scanning server is used for scan database server.One specific embodiment of this method includes:The scan request that scanning server is sent is received, scan request includes user identifier;Echo message is sent to scanning server;The operation of the object stored during the user of the above-mentioned user identifier instruction from the delivery time of above-mentioned echo message is monitored to database server;In response to receiving the first memory capacity of scanning server transmission, stop monitoring, export the information of the operation monitored.This embodiment improves the accuracy of the memory capacity of user.
Description
Technical field
The invention relates to technical field of memory, and in particular to technical field of distributed memory, more particularly, to
The information output method and device of storage system.
Background technology
The file of multiple users is typically stored in distributed memory system, in order to accurately determine that each user is being distributed
Occupied memory capacity in formula storage system, it usually needs the fileinfo stored to each user is updated.
Existing update scheme includes two methods of synchronized write data storehouse and asynchronous write message queue.
The content of the invention
The embodiment of the present application proposes the information output method and device for storage system.
In a first aspect, the embodiment of the present application provides a kind of information output method for storage system, above-mentioned storage system
System includes multiple database servers, and monitoring server, scanning server and the communication connection of above-mentioned database server are above-mentioned
Monitoring server for monitoring operation of the user to the object stored in above-mentioned database server, use by above-mentioned scanning server
In scanning above-mentioned database server, the above method includes:Receive the scan request that above-mentioned scanning server is sent, above-mentioned scanning
Request includes user identifier;Echo message is sent to above-mentioned scanning server;Monitoring is from the delivery time of above-mentioned echo message
Operation of the user of above-mentioned user identifier instruction to the object stored in above-mentioned database server;It is above-mentioned in response to receiving
The first memory capacity that scanning server is sent stops monitoring, exports the information of the operation monitored.
In some embodiments, the above-mentioned user identifier instruction from the delivery time of above-mentioned echo message in above-mentioned monitoring
Before user is to the operation of the object stored in above-mentioned database server, the above method further includes:Obtain above-mentioned user's mark
Know the second memory capacity of the object that the user indicated is stored in above-mentioned database server.
In some embodiments, the above method further includes:According to above-mentioned first memory capacity, the information of the operation monitored
And above-mentioned second memory capacity, determine that the user of above-mentioned user identifier instruction is stored in the object in above-mentioned database server
Actual storage capacity.
In some embodiments, the information of aforesaid operations includes user's increased object into above-mentioned database server
3rd memory capacity and user delete the 4th memory capacity of the object stored in above-mentioned database server;It is and above-mentioned
According to above-mentioned first memory capacity, the information of the operation monitored and above-mentioned second memory capacity, above-mentioned user identifier is determined
The user of instruction is stored in the actual storage capacity of the object in above-mentioned database server, including:According to the above-mentioned first storage
Capacity, above-mentioned second memory capacity, above-mentioned 3rd memory capacity and above-mentioned 4th memory capacity determine that above-mentioned actual storage is held
Amount.
In some embodiments, it is above-mentioned according to above-mentioned first memory capacity, above-mentioned second memory capacity, above-mentioned 3rd storage
Capacity and above-mentioned 4th memory capacity, determine above-mentioned actual storage capacity, including:Whether detection the following conditions meet:It is above-mentioned
First memory capacity is more than the first capacity threshold and less than the second capacity threshold, wherein, above-mentioned first capacity threshold is above-mentioned the
Two memory capacity are deposited with the difference of above-mentioned 3rd memory capacity and the product of predetermined coefficient, above-mentioned second capacity threshold for above-mentioned second
Store up the product of capacity and the poor and above-mentioned predetermined coefficient of above-mentioned 4th memory capacity;Meet in response to above-mentioned condition, according to above-mentioned
Second memory capacity, above-mentioned 3rd memory capacity and above-mentioned 4th memory capacity determine above-mentioned actual storage capacity.
In some embodiments, it is above-mentioned according to above-mentioned first memory capacity, above-mentioned second memory capacity, above-mentioned 3rd storage
Capacity and above-mentioned 4th memory capacity, determine above-mentioned actual storage capacity, including:It is unsatisfactory in response to above-mentioned condition, upwards
It states scanning server and sends above-mentioned second memory capacity, above-mentioned 3rd memory capacity and above-mentioned 4th memory capacity, so that on
State the above-mentioned database server of scanning server multiple scanning;The default quantity the 5th that above-mentioned scanning server is sent is received to deposit
Store up capacity;It is deposited according to above-mentioned second memory capacity, above-mentioned 3rd memory capacity, above-mentioned 4th memory capacity and each above-mentioned 5th
Capacity is stored up, determines above-mentioned actual storage capacity.
In some embodiments, it is above-mentioned according to above-mentioned second memory capacity, above-mentioned 3rd memory capacity, above-mentioned 4th storage
Capacity and each above-mentioned 5th memory capacity, determine above-mentioned actual storage capacity, including:It is each to obtain above-mentioned scanning server
Duration spent by scan database server;According to each consuming duration, weight corresponding with each above-mentioned 5th memory capacity is determined;
According to each above-mentioned 5th memory capacity and corresponding each weight, each above-mentioned 5th memory capacity is weighted, obtains the 6th storage
Capacity;Held according to above-mentioned second memory capacity, above-mentioned 3rd memory capacity, above-mentioned 4th memory capacity and above-mentioned 6th storage
Amount, determines above-mentioned actual storage capacity.
In some embodiments, the above method further includes:By above-mentioned second memory capacity and the letter of the operation monitored
Breath is sent to above-mentioned scanning server, so that above-mentioned scanning server is according to above-mentioned second memory capacity, the operation that monitors
Information and above-mentioned first memory capacity, determine above-mentioned actual storage capacity.
Second aspect, the embodiment of the present application provide a kind of information output apparatus for storage system, above-mentioned storage system
System includes multiple database servers, and monitoring server, scanning server and the communication connection of above-mentioned database server are above-mentioned
Monitoring server for monitoring operation of the user to the object stored in above-mentioned database server, use by above-mentioned scanning server
In scanning above-mentioned database server, above device includes:Scan request receiving unit, for receiving above-mentioned scanning server hair
The scan request sent, above-mentioned scan request include user identifier;Echo message transmitting element, for being sent out to above-mentioned scanning server
Send echo message;Monitoring unit is operated, for monitoring the above-mentioned user identifier instruction from the delivery time of above-mentioned echo message
Operation of the user to the object stored in above-mentioned database server;Information output unit, for above-mentioned in response to receiving
The first memory capacity that scanning server is sent stops monitoring, exports the information of the operation monitored.
In some embodiments, above device further includes:Second memory capacity acquiring unit, for being monitored in aforesaid operations
The user of unit monitoring above-mentioned user identifier instruction from the delivery time of above-mentioned echo message is in above-mentioned database server
Before the operation of the object stored, obtain what the user that above-mentioned user identifier indicates was stored in above-mentioned database server
Second memory capacity of object.
In some embodiments, above device further includes:First actual storage capacity determination unit, for according to above-mentioned
One memory capacity, the information of the operation monitored and above-mentioned second memory capacity determine the user of above-mentioned user identifier instruction
It is stored in the actual storage capacity of the object in above-mentioned database server.
In some embodiments, the information of aforesaid operations includes user's increased object into above-mentioned database server
3rd memory capacity and user delete the 4th memory capacity of the object stored in above-mentioned database server;It is and above-mentioned
First actual storage capacity determination unit is further used for:According to above-mentioned first memory capacity, above-mentioned second memory capacity, above-mentioned
3rd memory capacity and above-mentioned 4th memory capacity determine above-mentioned actual storage capacity.
In some embodiments, above-mentioned first actual storage capacity determination unit is further used for:Detecting the following conditions is
No satisfaction:Above-mentioned first memory capacity is more than the first capacity threshold and less than the second capacity threshold, wherein, above-mentioned first capacity threshold
It is worth the difference for above-mentioned second memory capacity and above-mentioned 3rd memory capacity and the product of predetermined coefficient, above-mentioned second capacity threshold is
Above-mentioned second memory capacity and the product of the poor and above-mentioned predetermined coefficient of above-mentioned 4th memory capacity;Expire in response to above-mentioned condition
Foot, above-mentioned actual storage is determined according to above-mentioned second memory capacity, above-mentioned 3rd memory capacity and above-mentioned 4th memory capacity
Capacity.
In some embodiments, above-mentioned first actual storage capacity determination unit is further used for:In response to above-mentioned condition
It is unsatisfactory for, above-mentioned second memory capacity, above-mentioned 3rd memory capacity and above-mentioned 4th storage is sent to above-mentioned scanning server
Capacity, so that the above-mentioned above-mentioned database server of scanning server multiple scanning;Receive the default of above-mentioned scanning server transmission
The 5th memory capacity of quantity;According to above-mentioned second memory capacity, above-mentioned 3rd memory capacity, above-mentioned 4th memory capacity and
Each above-mentioned 5th memory capacity, determines above-mentioned actual storage capacity.
In some embodiments, above-mentioned first actual storage capacity determination unit is further used for:Obtain above-mentioned scanning clothes
Duration spent by the business each scan database server of device;According to each consuming duration, determine and each above-mentioned 5th memory capacity pair
The weight answered;According to each above-mentioned 5th memory capacity and corresponding each weight, each above-mentioned 5th memory capacity is weighted, is obtained
6th memory capacity;According to above-mentioned second memory capacity, above-mentioned 3rd memory capacity, above-mentioned 4th memory capacity and above-mentioned
Six memory capacity determine above-mentioned actual storage capacity.
In some embodiments, above device further includes:Second actual storage capacity determination unit, for by above-mentioned second
Memory capacity and the information of the operation monitored are sent to above-mentioned scanning server, so that above-mentioned scanning server is according to above-mentioned
Second memory capacity, the information of the operation monitored and above-mentioned first memory capacity, determine above-mentioned actual storage capacity.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, and above-mentioned electronic equipment includes:At one or more
Manage device;Storage device, for storing one or more programs, when said one or multiple programs are by said one or multiple processing
When device performs so that said one or multiple processors realize any of the above-described described method of embodiment.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence, the program realize any of the above-described embodiment described method when being executed by processor.
Information output method and device provided by the embodiments of the present application for storage system, scanning server is in scanning number
Scan request is sent according to the forward direction monitoring server of storehouse server, monitoring server is after scan request is received to scan service
Device sends echo message, so that scanning server starts scan database server, monitoring server starts simultaneously at monitoring user
Operation to the object stored in database server after the first memory capacity of scanning server transmission is received, stops
It only monitors, and the information monitored is exported.This ensure that monitor user simultaneously during scan database server
Operation to each object in database server, so as to improve the accuracy of the memory capacity of user.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow diagram according to one embodiment of the information output method for storage system of the application;
Fig. 3 is to determine that the flow of actual storage capacity is shown in the information output method for storage system according to the application
It is intended to;
Fig. 4 is the structure diagram according to one embodiment of the information output apparatus for storage system of the application;
Fig. 5 is adapted for the structure diagram of the computer system of the electronic equipment for realizing the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, illustrated only in attached drawing and invent relevant part with related.
It should be noted that in the case where there is no conflict, the feature in embodiment and embodiment in the application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the information output method for storage system that can apply the application or the letter for storage system
Cease the exemplary system architecture 100 of the embodiment of output device.
As shown in Figure 1, system architecture 100 can include storage system 101, monitoring server 102, scanning server 103
And network 104,105.Network 104 between storage system 101 and monitoring server 102, scanning server 103 providing
The medium of communication link, network 105 between monitoring server 102 and scanning server 103 provide communication link Jie
Matter.Network 104,105 can include various connection types, such as wired, wireless communication link or fiber optic cables etc..
Wherein, storage system 101 can include multiple database servers, and user can deposit in each database server
Store up object.Above-mentioned object can include various types of files, such as audio, video, document etc., and the present embodiment does not limit this
It is fixed.
Monitoring server 102 can be used for monitoring user to being stored in each database server in storage system 101
Object operation, the operation for example can be into database server increase object, from database server delete pair
As, access object etc. in database server.
Scanning server 103 can be used for scan database server, to determine each user in each database server
The occupied memory capacity of object of middle storage.It is understood that scanning server 103 is in scan database server,
Any number of database server can be scanned.
It should be noted that the information output method for storage system that the embodiment of the present application is provided is generally by monitoring
Server 102 performs, and correspondingly, is generally positioned at for 104,105 devices in monitoring server 102.
It should be understood that the number of the database server, monitoring server and scanning server in Fig. 1 is only schematic
's.According to needs are realized, can have any number of database server, monitoring server and scanning server.
With continued reference to Fig. 2, it illustrates an implementations of the information output method for storage system according to the application
The flow 200 of example.The multiple database servers of storage system of the present embodiment, each database server can the company of being in communication with each other
It connects.The information output method for storage system of the present embodiment, may comprise steps of:
Step 201, the scan request that scanning server is sent is received.
In the present embodiment, for information output method operation electronic equipment (such as Fig. 1 institutes thereon of storage system
The monitoring server shown) scan request that scanning server is sent can be received.The scan request is used to indicate scan database
Server, wherein user identifier can be included.Monitoring server can be identified according to the user, determine that user takes in each database
The information of the object stored in business device.Above- mentioned information can include type, storage time, size of object etc..
Step 202, echo message is sent to scanning server.
In the present embodiment, monitoring server is sent out after the scan request of scanning server is received to scanning server
Echo message is sent, scanning server to be notified to be properly received scan request.Meanwhile scanning server is receiving response letter
Start to scan each database server after breath.
Step 203, the user of the above-mentioned user identifier instruction from the delivery time of above-mentioned echo message is monitored to database
The operation of the object stored in server.
In the present embodiment, monitoring server can monitor at once after echo message is sent completely to scanning server
State operation of the user of user identifier instruction to the object stored in database server.It is understood that monitoring service
Device can also record the information monitored, which can include time, the type operated of operation etc..Meanwhile monitor service
Device can also record the delivery time of echo message.
Step 204, the first memory capacity sent in response to receiving scanning server, stops monitoring, and output monitors
Operation information.
In the present embodiment, scanning server sends first to monitoring server after database server is completed in scanning and deposits
Store up capacity.Above-mentioned first memory capacity refers to the object that the user that scanning server obtains stores in each database server
Memory capacity.Monitoring server stops monitoring user to being deposited in database server after first memory capacity is received
The operation of the object of storage.The information monitored is exported simultaneously.
The information output method for storage system that above-described embodiment of the application provides, scanning server is in scanning number
Scan request is sent according to the forward direction monitoring server of storehouse server, monitoring server is after scan request is received to scan service
Device sends echo message, so that scanning server starts scan database server, monitoring server starts simultaneously at monitoring user
Operation to the object stored in database server after the first memory capacity of scanning server transmission is received, stops
It only monitors, and the information monitored is exported.This ensure that monitor user simultaneously during scan database server
Operation to each object in database server, so as to improve the accuracy of the memory capacity of user.
In some optional realization methods of the present embodiment, the above method can also include in Fig. 2 before step 203
Unshowned following steps:Obtain the second of the object that the user that above-mentioned user identifier indicates is stored in database server
Memory capacity.
In this realization method, monitoring server can obtain the user of above-mentioned user identifier instruction in number by various modes
According to the second memory capacity of the object stored in the server of storehouse.It is understood that it is taken in scanning server scan database
It is engaged in during device, if user adds object into database server or deletes pair in database server
As may result in the first memory capacity and differed with the second memory capacity.
In some optional realization methods of the present embodiment, the above method can also include following not shown in Fig. 2
Step:According to the first memory capacity, the information of the operation monitored and the second memory capacity, above-mentioned user identifier instruction is determined
User be stored in the actual storage capacity of the object in database server.
In this realization method, monitoring server can according to the first memory capacity, the second memory capacity got with
And the information of the operation monitored in the scanning process of scanning server, determine that user is stored in database server
The actual storage capacity of object.
In some optional realization methods of the present embodiment, the above method can also include following not shown in Fig. 2
Step:The information of second memory capacity and the operation monitored is sent to scanning server so that scanning server according to
Second memory capacity, the information of the operation monitored and the first memory capacity, determine actual storage capacity.
In this realization method, monitoring server can also be by the information of the operation monitored and what is got second deposit
Storage capacity is sent to scanning server, so that scanning server determines that user is stored in database clothes with reference to the first memory capacity
The actual storage capacity for the object being engaged in device.
In specific application scenarios, since monitoring server needs interact in real time with each database server, with
Determine operation of each user to database server, workload is larger.When the calculating task of above-mentioned actual storage capacity is by scanning
When server calculates, the work efficiency of monitoring server can be effectively improved.
It is actual it illustrates being determined in the information output method for storage system according to the application with continued reference to Fig. 3
The flow 300 of memory capacity.In the present embodiment, the information for the operation that monitoring server monitors can include user to data
The 3rd memory capacity of increased object and user delete the of the object that is stored in database server in the server of storehouse
Four memory capacity, then monitoring server can be according to the first memory capacity, the second memory capacity, the 3rd memory capacity and the 4th
Memory capacity determines actual storage capacity.Specifically, the present embodiment can determine actual storage capacity by following steps:
Step 301, whether detection the following conditions meet:First memory capacity is more than the first capacity threshold and holds less than second
Measure threshold value.
Wherein, above-mentioned first capacity threshold is the second memory capacity and the difference of the 3rd memory capacity and multiplying for predetermined coefficient
Product, above-mentioned second capacity threshold are the second memory capacity and the product of the poor and above-mentioned predetermined coefficient of the 4th memory capacity.
Above-mentioned condition can be represented by following formula:
(VO- D) * f < VC< (VO+A)*f
Wherein, VOFor the second memory capacity, D is the 3rd memory capacity, and A is the 4th memory capacity, VCHold for the first storage
Amount, f is predetermined coefficient.
Step 3021, meet in response to above-mentioned condition, according to the second memory capacity, the 3rd memory capacity and the 4th storage
Capacity determines actual storage capacity.
When above-mentioned condition meets, it is believed that the first memory capacity and monitoring server that scanning server scans
The memory capacity being calculated is essentially identical, can be using the result of calculation of monitoring server as actual storage capacity.Monitoring clothes
Business device can determine actual storage capacity according to following calculation formula:
VF=VO-D+A
Wherein, VFFor actual storage capacity.
Step 3022, it is unsatisfactory in response to above-mentioned condition, to scanning server sends the second memory capacity, the 3rd storage is held
Amount and the 4th memory capacity, so that scanning server multiple scanning database server.
When above-mentioned condition is unsatisfactory for, it is believed that the first memory capacity that scanning server scans is serviced with monitoring
The memory capacity that device is calculated, can be by the second memory capacity, the 3rd memory capacity and the 4th memory capacity there are error
Be sent to scanning server, scanning server when receiving above three numerical value, can with multiple scanning database server, with
First memory capacity and the second memory capacity are calibrated.
Step 3023, the 5th memory capacity of default quantity that scanning server is sent is received.
It is understood that scanning server can all obtain a storage capacity value in each scan database server.
Number of the scanning server in multiple scanning database server can be pre-set herein, then scanning server can obtain
The 5th memory capacity of default quantity.
Step 3024, held according to the second memory capacity, the 3rd memory capacity, the 4th memory capacity and each 5th storage
Amount, determines actual storage capacity.
Monitoring server can be deposited according to the second memory capacity, the 3rd memory capacity, the 4th memory capacity and each 5th
Capacity is stored up, determines actual storage capacity.
In some optional realization methods of the present embodiment, above-mentioned steps 3024 specifically can be not shown in Fig. 3
Following steps are realized:Obtain duration spent by each scan database server of scanning server;According to each consuming duration, really
Fixed weight corresponding with each 5th memory capacity;According to each 5th memory capacity and corresponding each weight, stored to each 5th
Capacity weights, and obtains the 6th memory capacity;According to the second memory capacity, the 3rd memory capacity, the 4th memory capacity and the 6th
Memory capacity determines actual storage capacity.
In this realization method, scanning server scans obtained each 5th memory capacity every time can correspond to different power
Weight, the weight can be determined by scanning server in duration spent by scan database server.It is smaller to expend duration, then uses
Family in this scanning process to the probability of the operation of database server with regard to smaller, then the 5th storage that this scanning obtains is held
The accuracy of amount is higher, then the corresponding weight of the 5th memory capacity is bigger.If correspondingly, expend duration it is bigger,
User is bigger to the probability of the operation of database server in this scanning process, then the 5th storage that this scanning obtains
The accuracy of capacity is lower, then the corresponding weight of the 5th memory capacity is with regard to smaller.
In this realization method, the correspondence for expending duration and weight can be pre-set, by inquiring about the correspondence
It is assured that weight corresponding with each consuming duration, may thereby determine that weight corresponding with each 5th memory capacity.
After each weight is obtained, each 5th memory capacity can be weighted, obtain the 6th memory capacity.Then monitor
Server can determine actual according to the second memory capacity, the 3rd memory capacity, the 4th memory capacity and the 6th memory capacity
Memory capacity.For example, if scanning server is during Multiple-Scan, user is not to pair in database server
As being operated, then the 3rd memory capacity and the 4th memory capacity are 0, then it can be assumed that the second memory capacity and the 6th storage
Difference between capacity as needs the value calibrated, it may be determined that actual storage capacity.
It is understood that scanning server can also determine user in database service by embodiment illustrated in fig. 3
The occupied actual storage capacity of object stored in device.
With further reference to Fig. 4, as the realization to method shown in above-mentioned each figure, this application provides one kind for storing system
One embodiment of the information output apparatus 400 of system, the device embodiment is corresponding with embodiment of the method shown in Fig. 2, the dress
It puts and specifically can be applied in various electronic equipments.
As shown in figure 4, the present embodiment includes for the information output apparatus 400 of storage system:Scan request receives single
Member 401, echo message transmitting element 402, operation monitoring unit 403 and information output unit 404.
Wherein, scan request receiving unit 401, for receiving the scan request of scanning server transmission.Above-mentioned scanning please
It asks including user identifier.
Echo message transmitting element 402, for sending echo message to scanning server.
Monitoring unit 403 is operated, for monitoring the user of the above-mentioned user identifier instruction from the delivery time of echo message
Operation to the object stored in database server.
Information output unit 404 for the first memory capacity in response to receiving scanning server transmission, stops prison
It surveys, exports the information of the operation monitored.
In some optional realization methods of the present embodiment, above device 400, which can further include in Fig. 4, not to be shown
The the second memory capacity acquiring unit gone out, it is above-mentioned from the delivery time of echo message for being monitored in operation monitoring unit 403
Before the user of user identifier instruction is to the operation of the object stored in database server, above-mentioned user identifier instruction is obtained
The second memory capacity of object for being stored in database server of user.
In some optional realization methods of the present embodiment, above device 400, which can further include in Fig. 4, not to be shown
The the first actual storage capacity determination unit gone out, for according to the first memory capacity, the information of the operation monitored and second
Memory capacity determines that the user of above-mentioned user identifier instruction is stored in the actual storage capacity of the object in database server.
In some optional realization methods of the present embodiment, the information of operation increases including user into database server
3rd memory capacity of the object added and user delete the 4th memory capacity of the object stored in database server.Then
Above-mentioned first actual storage capacity determination unit can be further used for:According to the first memory capacity, the second memory capacity, the 3rd
Memory capacity and the 4th memory capacity, determine actual storage capacity.
In some optional realization methods of the present embodiment, above-mentioned first actual storage capacity determination unit can be into one
Step is used for:Whether detection the following conditions meet:First memory capacity is more than the first capacity threshold and less than the second capacity threshold;It rings
It should meet in above-mentioned condition, determine that actual storage is held according to the second memory capacity, the 3rd memory capacity and the 4th memory capacity
Amount.
Wherein, the first capacity threshold is the poor product with predetermined coefficient of the second memory capacity and the 3rd memory capacity, the
Two capacity thresholds are the second memory capacity and the difference of the 4th memory capacity and the product of predetermined coefficient.
In some optional realization methods of the present embodiment, above-mentioned first actual storage capacity determination unit can be into one
Step is used for:It is unsatisfactory in response to above-mentioned condition, the second memory capacity, the 3rd memory capacity and the 4th is sent to scanning server
Memory capacity, so that scanning server multiple scanning database server;Receive default quantity that scanning server sends the
Five memory capacity;According to the second memory capacity, the 3rd memory capacity, the 4th memory capacity and each 5th memory capacity, determine
Actual storage capacity.
In some optional realization methods of the present embodiment, above-mentioned first actual storage capacity determination unit can be into one
Step is used for:Obtain duration spent by each scan database server of scanning server;According to each consuming duration, determine and each the
The corresponding weight of five memory capacity;According to each 5th memory capacity and corresponding each weight, each 5th memory capacity is weighted,
Obtain the 6th memory capacity;According to the second memory capacity, the 3rd memory capacity, the 4th memory capacity and the 6th memory capacity,
Determine actual storage capacity.
In some optional realization methods of the present embodiment, above device 400, which can further include in Fig. 4, not to be shown
The the second actual storage capacity determination unit gone out, sweeps for the information of the second memory capacity and the operation monitored to be sent to
Server is retouched, so that scanning server is according to the second memory capacity, the information of the operation monitored and the first memory capacity, really
Determine actual storage capacity.
The information output system for storage system that above-described embodiment of the application provides, scanning server is in scanning number
Scan request is sent according to the forward direction monitoring server of storehouse server, monitoring server is after scan request is received to scan service
Device sends echo message, so that scanning server starts scan database server, monitoring server starts simultaneously at monitoring user
Operation to the object stored in database server after the first memory capacity of scanning server transmission is received, stops
It only monitors, and the information monitored is exported.This ensure that monitor user simultaneously during scan database server
Operation to each object in database server, so as to improve the accuracy of the memory capacity of user.
Below with reference to Fig. 5, it illustrates suitable for being used for realizing the computer system 500 of the electronic equipment of the embodiment of the present application
Structure diagram.Electronic equipment shown in Fig. 5 is only an example, to the function of the embodiment of the present application and should not use model
Shroud carrys out any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in
Program in memory (ROM) 502 or be loaded into program in random access storage device (RAM) 503 from storage part 508 and
Perform various appropriate actions and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data.
CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always
Line 504.
I/O interfaces 505 are connected to lower component:Importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage part 508 including hard disk etc.;
And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because
The network of spy's net performs communication process.Driver 510 is also according to needing to be connected to I/O interfaces 505.Detachable media 511, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 510, as needed in order to read from it
Computer program be mounted into as needed storage part 508.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product, including being carried on computer-readable medium
On computer program, which includes for the program code of the method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 509 and/or from detachable media
511 are mounted.When the computer program is performed by central processing unit (CPU) 501, perform what is limited in the present processes
Above-mentioned function.
It should be noted that the above-mentioned computer-readable medium of the application can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
It is limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor or arbitrary above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more conducting wires, just
It takes formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type and may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In this application, computer readable storage medium can any include or store journey
The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.And at this
In application, computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal,
Wherein carry computer-readable program code.Diversified forms may be employed in the data-signal of this propagation, including but it is unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium beyond storage medium is read, which can send, propagates or transmit and be used for
By instruction execution system, device either device use or program in connection.It is included on computer-readable medium
Program code can be transmitted with any appropriate medium, be included but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey
Architectural framework in the cards, function and the operation of sequence product.In this regard, each box in flow chart or block diagram can generation
The part of one module of table, program segment or code, the part of the module, program segment or code include one or more use
In the executable instruction of logic function as defined in realization.It should also be noted that it is marked at some as in the realization replaced in box
The function of note can also be occurred with being different from the order marked in attached drawing.For example, two boxes succeedingly represented are actually
It can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depending on involved function.Also to note
Meaning, the combination of each box in block diagram and/or flow chart and the box in block diagram and/or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit can also be set in the processor, for example, can be described as:A kind of processor bag
Include scan request receiving unit, echo message transmitting element, operation monitoring unit and information output unit.Wherein, these units
Title do not form restriction to the unit in itself under certain conditions, for example, scan request receiving unit can also be retouched
It states as " unit for receiving the scan request that scanning server is sent ".
As on the other hand, present invention also provides a kind of computer-readable medium, which can be
Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are performed by the device so that should
Device:The scan request that scanning server is sent is received, above-mentioned scan request includes user identifier;It is sent back to scanning server
Answer information;The user of the above-mentioned user identifier instruction from the delivery time of echo message is monitored to being stored in database server
Object operation;In response to receiving the first memory capacity of scanning server transmission, stop monitoring, export the behaviour monitored
The information of work.
The preferred embodiment and the explanation to institute's application technology principle that above description is only the application.People in the art
Member should be appreciated that invention scope involved in the application, however it is not limited to the technology that the particular combination of above-mentioned technical characteristic forms
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
The other technical solutions for being combined and being formed.Such as features described above has similar work(with (but not limited to) disclosed herein
The technical solution that the technical characteristic of energy is replaced mutually and formed.
Claims (18)
1. a kind of information output method for storage system, the storage system includes multiple database servers, monitoring clothes
Business device, scanning server and database server communication connection, the monitoring server are used to monitor user to described
The operation of the object stored in database server, the scanning server are described for scanning the database server
Method includes:
The scan request that the scanning server is sent is received, the scan request includes user identifier;
Echo message is sent to the scanning server;
The user of the user identifier instruction from the delivery time of the echo message is monitored in the database server
The operation of the object stored;
The first memory capacity sent in response to receiving the scanning server, stops monitoring, exports the operation that monitors
Information.
2. according to the method described in claim 1, wherein, the use from the delivery time of the echo message is monitored described
Before the user of family mark instruction is to the operation of the object stored in the database server, the method further includes:
Obtain the second memory capacity of the object that the user that the user identifier indicates is stored in the database server.
3. according to the method described in claim 2, wherein, the method further includes:
According to first memory capacity, the information of the operation monitored and second memory capacity, the user is determined
The user of mark instruction is stored in the actual storage capacity of the object in the database server.
4. according to the method described in claim 3, wherein, the information of the operation includes user into the database server
3rd memory capacity of increased object and user delete the 4th storage of the object stored in the database server
Capacity;And
It is described according to first memory capacity, the information of the operation monitored and second memory capacity, determine described
The user of user identifier instruction is stored in the actual storage capacity of the object in the database server, including:
Held according to first memory capacity, second memory capacity, the 3rd memory capacity and the 4th storage
Amount, determines the actual storage capacity.
5. according to the method described in claim 4, wherein, it is described according to first memory capacity, second memory capacity,
3rd memory capacity and the 4th memory capacity determine the actual storage capacity, including:
Whether detection the following conditions meet:First memory capacity is more than the first capacity threshold and is less than the second capacity threshold,
Wherein, first capacity threshold is second memory capacity and the difference of the 3rd memory capacity and multiplying for predetermined coefficient
Product, second capacity threshold multiply for second memory capacity and the poor and predetermined coefficient of the 4th memory capacity
Product;
Meet in response to the condition, according to second memory capacity, the 3rd memory capacity and the 4th storage
Capacity determines the actual storage capacity.
6. according to the method described in claim 5, wherein, it is described according to first memory capacity, second memory capacity,
3rd memory capacity and the 4th memory capacity determine the actual storage capacity, including:
It is unsatisfactory in response to the condition, to the scanning server sends second memory capacity, the 3rd storage is held
Amount and the 4th memory capacity, so that database server described in the scanning server multiple scanning;
Receive the 5th memory capacity of default quantity that the scanning server is sent;
According to second memory capacity, the 3rd memory capacity, the 4th memory capacity and each 5th storage
Capacity determines the actual storage capacity.
7. according to the method described in claim 6, wherein, it is described according to second memory capacity, the 3rd memory capacity,
4th memory capacity and each 5th memory capacity, determine the actual storage capacity, including:
It obtains the scanning server and scans duration spent by the database server every time;
According to each consuming duration, weight corresponding with each 5th memory capacity is determined;
According to each 5th memory capacity and corresponding each weight, each 5th memory capacity is weighted, obtains the 6th
Memory capacity;
Held according to second memory capacity, the 3rd memory capacity, the 4th memory capacity and the 6th storage
Amount, determines the actual storage capacity.
8. according to the method described in claim 2, wherein, the method further includes:
The information of second memory capacity and the operation monitored is sent to the scanning server, so that the scanning
Server determines the reality according to second memory capacity, the information of the operation monitored and first memory capacity
Border memory capacity.
9. a kind of information output apparatus for storage system, the storage system includes multiple database servers, monitoring clothes
Business device, scanning server and database server communication connection, the monitoring server are used to monitor user to described
The operation of the object stored in database server, the scanning server are described for scanning the database server
Device includes:
Scan request receiving unit, for receiving the scan request that the scanning server is sent, the scan request includes using
Family identifies;
Echo message transmitting element, for sending echo message to the scanning server;
Monitoring unit is operated, for monitoring the user of the user identifier instruction from the delivery time of the echo message to institute
State the operation of the object stored in database server;
Information output unit for the first memory capacity sent in response to receiving the scanning server, stops monitoring, defeated
Go out the information of the operation monitored.
10. device according to claim 9, wherein, described device further includes:
Second memory capacity acquiring unit, for being monitored in the operation monitoring unit from the delivery time of the echo message
Before the user of the user identifier instruction is to the operation of the object stored in the database server, the user is obtained
Second memory capacity of the object that the user of mark instruction is stored in the database server.
11. device according to claim 10, wherein, described device further includes:
First actual storage capacity determination unit, for the information according to first memory capacity, the operation monitored and
Second memory capacity determines that the user of the user identifier instruction is stored in the reality of the object in the database server
Border memory capacity.
12. according to the devices described in claim 11, wherein, the information of the operation includes user to the database server
In increased object the 3rd memory capacity and user delete the 4th of the object stored in the database server and deposit
Store up capacity;And
The first actual storage capacity determination unit is further used for:
Held according to first memory capacity, second memory capacity, the 3rd memory capacity and the 4th storage
Amount, determines the actual storage capacity.
13. according to the devices described in claim 11, wherein, the first actual storage capacity determination unit is further used for:
Whether detection the following conditions meet:First memory capacity is more than the first capacity threshold and is less than the second capacity threshold,
Wherein, first capacity threshold is second memory capacity and the difference of the 3rd memory capacity and multiplying for predetermined coefficient
Product, second capacity threshold multiply for second memory capacity and the poor and predetermined coefficient of the 4th memory capacity
Product;
Meet in response to the condition, according to second memory capacity, the 3rd memory capacity and the 4th storage
Capacity determines the actual storage capacity.
14. device according to claim 13, wherein, the first actual storage capacity determination unit is further used for:
It is unsatisfactory in response to the condition, to the scanning server sends second memory capacity, the 3rd storage is held
Amount and the 4th memory capacity, so that database server described in the scanning server multiple scanning;
Receive the 5th memory capacity of default quantity that the scanning server is sent;
According to second memory capacity, the 3rd memory capacity, the 4th memory capacity and each 5th storage
Capacity determines the actual storage capacity.
15. device according to claim 14, wherein, the first actual storage capacity determination unit is further used for:
It obtains the scanning server and scans duration spent by the database server every time;
According to each consuming duration, weight corresponding with each 5th memory capacity is determined;
According to each 5th memory capacity and corresponding each weight, each 5th memory capacity is weighted, obtains the 6th
Memory capacity;
Held according to second memory capacity, the 3rd memory capacity, the 4th memory capacity and the 6th storage
Amount, determines the actual storage capacity.
16. device according to claim 10, wherein, described device further includes:
Second actual storage capacity determination unit, for the information of second memory capacity and the operation monitored to be sent
To the scanning server so that the scanning server according to second memory capacity, the information of the operation monitored with
And first memory capacity, determine the actual storage capacity.
17. a kind of electronic equipment, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of processors
Realize the method as described in any in claim 1-8.
18. a kind of computer readable storage medium, is stored thereon with computer program, wherein, when which is executed by processor
Realize the method as described in any in claim 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711477753.1A CN108089823B (en) | 2017-12-29 | 2017-12-29 | Information output method and device for storage system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711477753.1A CN108089823B (en) | 2017-12-29 | 2017-12-29 | Information output method and device for storage system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108089823A true CN108089823A (en) | 2018-05-29 |
CN108089823B CN108089823B (en) | 2020-12-25 |
Family
ID=62180772
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711477753.1A Active CN108089823B (en) | 2017-12-29 | 2017-12-29 | Information output method and device for storage system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108089823B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170177275A1 (en) * | 2014-08-11 | 2017-06-22 | International Business Machines Corporation | Tracking pipelined activity during off-core memory accesses to evaluate the impact of processor core frequency changes |
CN106991130A (en) * | 2017-03-07 | 2017-07-28 | 广东欧珀移动通信有限公司 | A kind of document handling method, device and intelligent terminal |
CN107025269A (en) * | 2017-03-07 | 2017-08-08 | 广东欧珀移动通信有限公司 | A kind of document handling method, device and intelligent terminal |
-
2017
- 2017-12-29 CN CN201711477753.1A patent/CN108089823B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170177275A1 (en) * | 2014-08-11 | 2017-06-22 | International Business Machines Corporation | Tracking pipelined activity during off-core memory accesses to evaluate the impact of processor core frequency changes |
CN106991130A (en) * | 2017-03-07 | 2017-07-28 | 广东欧珀移动通信有限公司 | A kind of document handling method, device and intelligent terminal |
CN107025269A (en) * | 2017-03-07 | 2017-08-08 | 广东欧珀移动通信有限公司 | A kind of document handling method, device and intelligent terminal |
Also Published As
Publication number | Publication date |
---|---|
CN108089823B (en) | 2020-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109324977A (en) | Detection method, device and the electronic equipment of application program Caton | |
CN110096344A (en) | Task management method, system, server cluster and computer-readable medium | |
CN109255337A (en) | Face critical point detection method and apparatus | |
CN109995877A (en) | Information-pushing method and device | |
CN109525855A (en) | Method and apparatus for handling information | |
CN107426328A (en) | Information-pushing method and device | |
CN109684188A (en) | Test method and device | |
CN109710507A (en) | A kind of method and apparatus of automatic test | |
CN107608795A (en) | cloud computing method and device | |
CN110232091A (en) | Mthods, systems and devices for synchrodata | |
CN108595448A (en) | Information-pushing method and device | |
CN109656799A (en) | Test method and device | |
CN110084317A (en) | The method and apparatus of image for identification | |
CN108933695A (en) | Method and apparatus for handling information | |
CN110007936A (en) | Data processing method and device | |
CN109240802A (en) | request processing method and device | |
CN109618216A (en) | Show method, apparatus, equipment and the storage medium of video stress state mark | |
CN109688086A (en) | Authority control method and device for terminal device | |
CN109818994A (en) | Information processing method and device for agent side | |
CN109873732A (en) | Test method and device for proxy server | |
CN109885564A (en) | Method and apparatus for sending information | |
CN108959102A (en) | Method and apparatus for generating test data, test application to be tested | |
CN109446379A (en) | Method and apparatus for handling information | |
CN109492687A (en) | Method and apparatus for handling information | |
CN109684547A (en) | Method and apparatus for handling information |
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 |