CN106897200A - A kind of distributed file system performance method of testing based on redis - Google Patents
A kind of distributed file system performance method of testing based on redis Download PDFInfo
- Publication number
- CN106897200A CN106897200A CN201710096810.5A CN201710096810A CN106897200A CN 106897200 A CN106897200 A CN 106897200A CN 201710096810 A CN201710096810 A CN 201710096810A CN 106897200 A CN106897200 A CN 106897200A
- Authority
- CN
- China
- Prior art keywords
- test
- redis
- state
- parameter
- redis databases
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a kind of distributed file system performance method of testing based on redis, step has:It is determined that the parameter to be tested;Controller, with the entitled key of the main frame of test client, test parameter is written in redis databases for current test;Test client obtains corresponding test parameter and carries out performance test by redis databases, after the completion of test, specific performance data is written in redis databases;Controller obtains test result, into performance test next time.The test parameter that each client needs is written to redis databases by the program, test client is main to obtain corresponding test parameter, and carry out performance test and specific test result is written to redis databases, after completing a kind of test of read-write ratio every time, test profile need not be changed, controller starts to test next time by directly transmitting new test parameter.
Description
Technical field
The present invention relates to distributed file system test, and in particular to a kind of distributed field system based on redis
System performance test methods.
Background technology
In the prior art, known technology is that distributed file system is a kind of distributed memory system, for distribution
The test of formula system storage needs more client synchronization to operate to be carried out, and different read-write ratios are tested and each client
The information such as operation catalogue cannot dynamically adjust, test every time being required for reconfiguring test file.This is that prior art is deposited
Weak point.
The content of the invention
The purpose of the present invention provides a kind of distribution based on redis aiming at the deficiency existing for prior art
The test parameter that each client needs is written to redis numbers by the technical scheme of file system performance method of testing, the program
According to storehouse, test client is main to obtain corresponding test parameter, and carries out performance test and specific test result is written to
Redis databases, after a kind of test of read-write ratio is completed every time, without changing test profile, controller is directly transmitted
New test parameter can start to test next time.
This programme is achieved by the following technical measures:A kind of distributed file system performance based on redis is surveyed
Method for testing, comprises the following steps:
1) parameter to be tested is determined;
2) controller, with the entitled key of the main frame of test client, is written to different test parameters for current test
In redis databases;
3)Test client obtains corresponding test parameter by redis databases;
4)Test client carries out performance test according to corresponding test parameter, after the completion of test, specific performance data is write
Enter in redis databases;
5)Controller obtains test result, into performance test next time.
Described step 2)When be written to test parameter in redis databases by middle controller, redis data are first determined whether
Whether storehouse, if be in that state can be accessed, test parameter is write in that can be accessed state;If being in access
State, then feed back this information to test client, and then controller enters wait state, until next time, test started.
Described step 4)It is middle when specific performance data is written in redis databases, first determine whether redis data
Whether storehouse, if be in that state can be accessed, test parameter is write in that can be accessed state;If being in access
State, then feed back this information and enter wait state to controller, until whether redis databases are in can be accessed state.
After controller enters wait state, interval time t judges whether redis databases are in again can be accessed shape
State, time intervals of the time t less than performance test twice.
The beneficial effect of this programme can be learnt according to the narration to such scheme, main due to there is controller in this scenario
It is responsible for the test parameter that each client needs to be written to redis databases.Redis databases are mainly responsible for carrying each
The test parameter of client.Test client is mainly responsible for obtaining corresponding test parameter, and carries out performance test and a tool
The test result of body is written to redis databases.After completing a kind of test of read-write ratio every time, without changing test configurations text
Part, controller starts to test next time by directly transmitting new test parameter.As can be seen here, the present invention and prior art phase
Than with prominent substantive distinguishing features and significant progress, its beneficial effect implemented is also obvious.
Brief description of the drawings
Fig. 1 is the structural representation of the specific embodiment of the invention.
Specific embodiment
For the technical characterstic for illustrating this programme can be understood, below by a specific embodiment, and its accompanying drawing is combined, it is right
This programme is illustrated.
By accompanying drawing as can be seen that a kind of distributed file system performance method of testing based on redis of this programme, its
It is characterised by comprising the following steps:
1) parameter to be tested is determined;
2) controller, with the entitled key of the main frame of test client, is written to different test parameters for current test
In redis databases;
3)Test client obtains corresponding test parameter by redis databases;
4)Test client carries out performance test according to corresponding test parameter, after the completion of test, specific performance data is write
Enter in redis databases;
5)Controller obtains test result, into performance test next time.
Described step 2)When be written to test parameter in redis databases by middle controller, redis data are first determined whether
Whether storehouse, if be in that state can be accessed, test parameter is write in that can be accessed state;If being in access
State, then feed back this information to test client, and then controller enters wait state, until next time, test started.
Described step 4)It is middle when specific performance data is written in redis databases, first determine whether redis data
Whether storehouse, if be in that state can be accessed, test parameter is write in that can be accessed state;If being in access
State, then feed back this information and enter wait state to controller, until whether redis databases are in can be accessed state.
After controller enters wait state, interval time t judges whether redis databases are in again can be accessed shape
State, time intervals of the time t less than performance test twice.
The present invention is not limited in above-mentioned specific embodiment, and those of ordinary skill in the art are in essential scope of the invention
Change, remodeling, addition or the replacement inside made, should also belong to protection scope of the present invention.
Claims (4)
1. a kind of distributed file system performance method of testing based on redis, it is characterised in that comprise the following steps:
1) parameter to be tested is determined;
2) controller, with the entitled key of the main frame of test client, is written to different test parameters for current test
In redis databases;
3)Test client obtains corresponding test parameter by redis databases;
4)Test client carries out performance test according to corresponding test parameter, after the completion of test, specific performance data is write
Enter in redis databases;
5)Controller obtains test result, into performance test next time.
2. the distributed file system performance method of testing based on redis according to claim 1, it is characterized in that:It is described
The step of 2)When be written to test parameter in redis databases by middle controller, first determine whether redis databases whether in can
Accessed state, if in state can be accessed, test parameter write;If in access state is unable to, fed back
This information enters wait state to test client, then controller, until next time, test started.
3. the distributed file system performance method of testing based on redis according to claim 1 and 2, it is characterized in that:Institute
The step of stating 4)It is middle when specific performance data is written in redis databases, first determine whether whether redis databases are in
State can be accessed, if in state can be accessed, test parameter write;If in access state is unable to, instead
Present this information and enter wait state to controller, until whether redis databases are in can be accessed state.
4. the distributed file system performance method of testing based on redis according to claim 3, it is characterized in that:Control
After device enters wait state, whether interval time t judges redis databases in that can be accessed state again, and time t is less than two
The time interval of secondary performance test.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710096810.5A CN106897200A (en) | 2017-02-22 | 2017-02-22 | A kind of distributed file system performance method of testing based on redis |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710096810.5A CN106897200A (en) | 2017-02-22 | 2017-02-22 | A kind of distributed file system performance method of testing based on redis |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106897200A true CN106897200A (en) | 2017-06-27 |
Family
ID=59184822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710096810.5A Pending CN106897200A (en) | 2017-02-22 | 2017-02-22 | A kind of distributed file system performance method of testing based on redis |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106897200A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110413594A (en) * | 2019-06-25 | 2019-11-05 | 苏州浪潮智能科技有限公司 | A kind of more example method for testing pressure of Redis and device |
CN111273915A (en) * | 2018-11-16 | 2020-06-12 | 中移(杭州)信息技术有限公司 | Middleware configuration optimization method and device, terminal equipment and medium |
CN113538725A (en) * | 2021-07-09 | 2021-10-22 | 深圳市湘凡科技有限公司 | Hardware product testing method and related equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102647308A (en) * | 2012-03-30 | 2012-08-22 | Ut斯达康通讯有限公司 | Automatic testing method of distributed type file system |
CN103617004A (en) * | 2013-11-20 | 2014-03-05 | 浪潮电子信息产业股份有限公司 | Tool and method for performing read-write tests on distributed file system |
CN105224442A (en) * | 2015-09-24 | 2016-01-06 | 浪潮电子信息产业股份有限公司 | Performance test method for multi-client shared file system |
CN105786667A (en) * | 2016-02-29 | 2016-07-20 | 惠州Tcl移动通信有限公司 | Distributed automated testing method and system |
CN105808428A (en) * | 2016-03-03 | 2016-07-27 | 南京大学 | Method for performing unified performance test on distributed file system |
-
2017
- 2017-02-22 CN CN201710096810.5A patent/CN106897200A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102647308A (en) * | 2012-03-30 | 2012-08-22 | Ut斯达康通讯有限公司 | Automatic testing method of distributed type file system |
CN103617004A (en) * | 2013-11-20 | 2014-03-05 | 浪潮电子信息产业股份有限公司 | Tool and method for performing read-write tests on distributed file system |
CN105224442A (en) * | 2015-09-24 | 2016-01-06 | 浪潮电子信息产业股份有限公司 | Performance test method for multi-client shared file system |
CN105786667A (en) * | 2016-02-29 | 2016-07-20 | 惠州Tcl移动通信有限公司 | Distributed automated testing method and system |
CN105808428A (en) * | 2016-03-03 | 2016-07-27 | 南京大学 | Method for performing unified performance test on distributed file system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111273915A (en) * | 2018-11-16 | 2020-06-12 | 中移(杭州)信息技术有限公司 | Middleware configuration optimization method and device, terminal equipment and medium |
CN111273915B (en) * | 2018-11-16 | 2023-04-28 | 中移(杭州)信息技术有限公司 | Middleware configuration optimization method and device, terminal equipment and medium |
CN110413594A (en) * | 2019-06-25 | 2019-11-05 | 苏州浪潮智能科技有限公司 | A kind of more example method for testing pressure of Redis and device |
CN113538725A (en) * | 2021-07-09 | 2021-10-22 | 深圳市湘凡科技有限公司 | Hardware product testing method and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102394797B (en) | Embedded automatic network communication device test method and system | |
CN106897200A (en) | A kind of distributed file system performance method of testing based on redis | |
US20160299482A1 (en) | Automatic inspection and monitoring method based on time domain slotting control | |
CN102567203A (en) | Method and system for testing performance of distributed file system (DFS) | |
CN104317617A (en) | Method for refreshing BMC Firmware in batch | |
CN106033393A (en) | Method and system for testing application program, and mobile terminal | |
CN103106138A (en) | Method and device for synchronization of test case and test script | |
CN103530178B (en) | The screen locking method of Android system intelligent device and device | |
CN102595184A (en) | Intelligent television automation test method and system | |
US20150253378A1 (en) | Distributed power supply architecture in automatic test equipment | |
JP2012510094A5 (en) | ||
CN104915474B (en) | A kind of man-machine interactive system that index bed is established based on flexible combination in housing development | |
CN104158905B (en) | The creation method of web container | |
US20160253219A1 (en) | Data stream processing based on a boundary parameter | |
CN100361079C (en) | Method for testing synchronous automatic installation for system including multiple complete computers | |
CN110750453B (en) | HTML 5-based intelligent mobile terminal testing method, system, server and storage medium | |
CN109062820A (en) | A kind of software performance testing method and device | |
CN103905201B (en) | Interaction method and device for master application and multiple slave applications | |
CN103914219A (en) | Page control method and system | |
CN104070087A (en) | Scheduling method of metal plate bending steps based on work stations | |
CN105653123B (en) | A kind of icon group technology and terminal device | |
CN104376086A (en) | Data processing method and device | |
CN106558019A (en) | Picture arrangement method and device | |
CN103607715B (en) | A kind of method and device of frequency configuration | |
CN106331892A (en) | Module screen debugging method and device of TV and TV |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170627 |