CN104866402A - Server testing method and apparatus - Google Patents
Server testing method and apparatus Download PDFInfo
- Publication number
- CN104866402A CN104866402A CN201510239625.8A CN201510239625A CN104866402A CN 104866402 A CN104866402 A CN 104866402A CN 201510239625 A CN201510239625 A CN 201510239625A CN 104866402 A CN104866402 A CN 104866402A
- Authority
- CN
- China
- Prior art keywords
- server
- database
- pressing machine
- measured
- request
- 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
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention provides a server testing method and apparatus. The method comprises: setting a database on a to-be-test server in advance, and storing simulation data in the database; S1: sending a plurality of requests for the simulation data to the database; S2: receiving responses, returned by the database, to the requests; and S3: determining transactions per second (TPS) of the to-be-tested server according to the requests and the responses. The server testing method and apparatus provided by the invention can test the overall performance of a server.
Description
Technical field
The present invention relates to electronic technology field, particularly a kind of method of testing server and device.
Background technology
Along with the development of large data technique, need to process a large amount of data, more and more higher to the requirement of the processing power of server, in order to determine whether server meets the demands, need to carry out performance test to server.
In prior art, in the method for testing of server, generally independent test is carried out to the single hardware performance of server.Such as, the performance such as frequency of operation of the disk size of testing server, the disk running speed of server, the processor of server is tested.
Visible by foregoing description, in prior art, generally just respectively independent test is carried out to the hardware of server to the performance test of server, but, server operationally needs each hardware cooperation to complete, the performance of whole server is not the superposition of the performance of single hardware, and prior art cannot realize the test to server overall performance.
Summary of the invention
In view of this, the invention provides a kind of method and device of testing server, can test the overall performance of server.
On the one hand, the invention provides a kind of method of testing server, comprising: setting data storehouse on server to be measured in advance, stores simulated data, also comprise in described database:
S1: send multiple request to described simulated data to described database;
S2: receive the response to described request that described database returns;
S3: according to described request and described response, determines the issued transaction amount TPS per second of server to be measured.
Further, described setting data storehouse on server to be measured in advance, stores simulated data, comprising in described database:
On server to be measured, oralce database is installed in advance, in described oralce database, stores simulated data.
Further, before described S1, also comprise: pre-set pressing machine, described pressing machine is connected with server to be measured;
Described S1, comprising:
Multiple request to described simulated data is sent to described database by described pressing machine.
Further, described in pre-set pressing machine, comprising: described pressing machine is set to BenchmarkFactory;
And/or,
Before described S1, also comprise:
Described pressing machine is connected with server to be measured with 10,000,000,000 switches by ten thousand Broadcoms;
And/or,
Before described S1, also comprise:
In advance the storage medium of data in described database is set to solid-state hard disk SSD.
Further, described in pre-set pressing machine, comprising: according to described server to be measured, pre-set the first predetermined number pressing machine;
And/or,
Described S1, comprising: simulate the second predetermined number user by described pressing machine and send multiple request to described simulated data respectively to described database.
On the other hand, the invention provides a kind of device of testing server, comprising:
Database Unit, for setting data storehouse on server to be measured, stores simulated data in described database;
Request unit, for sending multiple request to described simulated data to described database;
Response unit, for receiving the response to described request that described database returns;
Determining unit, for according to described request and described response, determines the issued transaction amount TPS per second of server to be measured.
Further, described Database Unit, for installing oralce database on server to be measured, stores simulated data in described oralce database.
Further, also comprising: the first setting unit, for arranging pressing machine, described pressing machine being connected with server to be measured;
Described request unit, for sending multiple request to described simulated data by described pressing machine to described database.
Further, described first setting unit, for being set to BenchmarkFactory by described pressing machine;
And/or,
Also comprise: linkage unit, for described pressing machine being connected with server to be measured with 10,000,000,000 switches by ten thousand Broadcoms;
And/or,
Also comprise: the second setting unit, for the storage medium of data in described database is set to solid-state hard disk SSD.
Further, described first setting unit, for according to described server to be measured, arranges the first predetermined number pressing machine;
And/or,
Described request unit, sends multiple request to described simulated data for being simulated the second predetermined number user by described pressing machine respectively to described database.
The invention provides a kind of method and device of testing server, by setting data storehouse on server to be measured, simulated data in database is asked, by server to be measured, the response that these are asked is carried out to the performance of testing server, the overall performance of server to be measured is reflected by the TPS calculated, in the method, the actual treatment scene of emulating server is carried out by database, reflect that server is from reception request to the overall performance the processing procedure providing response, realizes the test of the overall performance to server by TPS.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the method for a kind of testing server that one embodiment of the invention provides;
Fig. 2 is the process flow diagram of the method for the another kind of testing server that one embodiment of the invention provides
Fig. 3 is the schematic diagram of the device of a kind of testing server that one embodiment of the invention provides;
Fig. 4 is the schematic diagram of the device of the another kind of testing server that one embodiment of the invention provides.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly; below in conjunction with the accompanying drawing in the embodiment of the present invention; technical scheme in the embodiment of the present invention is clearly and completely described; obviously; described embodiment is the present invention's part embodiment, instead of whole embodiments, based on the embodiment in the present invention; the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
As shown in Figure 1, embodiments provide a kind of method of testing server, the method can comprise the following steps:
S0: setting data storehouse on server to be measured in advance, stores simulated data in described database;
S1: send multiple request to described simulated data to described database;
S2: receive the response to described request that described database returns;
S3: according to described request and described response, determines the TPS (Transaction PerSecond, issued transaction amount per second) of server to be measured.
The method of a kind of testing server provided by the embodiment of the present invention, by setting data storehouse on server to be measured, simulated data in database is asked, by server to be measured, the response that these are asked is carried out to the performance of testing server, the overall performance of server to be measured is reflected by the TPS calculated, in the method, the actual treatment scene of emulating server is carried out by database, reflect that server is from reception request to the overall performance the processing procedure providing response, realizes the test of the overall performance to server by TPS.
Oracle database operability is high, can many-sided tuning, to reach optimal performance, reduces the factor of non-serving device performance to the impact of test result as far as possible.In a kind of possible implementation, described setting data storehouse on server to be measured in advance, stores simulated data, comprising in described database:
On server to be measured, oralce database is installed in advance, in described oralce database, stores simulated data.
In a kind of possible implementation, simulated data can be stored by pressing machine in database, and be sent request to database by pressing machine.Before described S1, also comprise: pre-set pressing machine, described pressing machine is connected with server to be measured;
Described S1, comprising:
Multiple request to described simulated data is sent to described database by described pressing machine.
In a kind of possible implementation, described in pre-set pressing machine, comprising: described pressing machine is set to BenchmarkFactory.Choose Benchmark Factory, the height applying this instrument can handling, can realize the application of multiple model Imitating database, the performance of testing server under plurality of application scenes.
In order to reduce the impact of reason on test result of non-serving device, high-performance memory device can be applied to eliminate the performance bottleneck on IO, the impact of data transmission procedure on test result can be reduced by high performance transmission equipment.Before described S1, also comprise: described pressing machine is connected with server to be measured with 10,000,000,000 switches by ten thousand Broadcoms.In addition, before described S1, also comprise: in advance the storage medium of data in described database is set to SSD (Solid State Drives, solid state hard disc).
In a kind of possible implementation, described in pre-set pressing machine, comprising: according to described server to be measured, pre-set the first predetermined number pressing machine.Different according to the performance of server to be measured, the pressing machine that can arrange varying number sends request to tested server, makes server have higher processing pressure, such as, can, by arranging the number of pressing machine, the utilization rate of the processor of server be made to arrive more than 80%.
In a kind of possible implementation, described S1, comprising: simulate the second predetermined number user by described pressing machine and send multiple request to described simulated data respectively to described database.Each pressing machine can simulate multiple user, and the user that can simulate predetermined number as required sends request, and makes server to be measured can obtain larger processing pressure.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
In this embodiment, server to be measured is the server of Itanium platform, the processor of server to be measured is Itanium processor, this server to be measured can be K1-910, in advance K-UNIX operating system is installed on the server of Itanium platform to be measured, pressing machine can be arranged on NF5140M3 server.For the server of Itanium platform, need choose and think adaptive operating system and testing software with Itanium processor, build the practical application scene that test environment carrys out simulated database, reflect and carry the server actual performance of Itanium processor, choosing K-UNIX can adaptive K1-910 better.According to measurement scope reasonable disposition switch, NF5140M3 installed Windows operating system and be linked on the switch that configures as management end, configuration DHCP (Dynamic Host Configuration Protocol, DHCP) service, the network parameters such as the assignable address field of DHCP are set, realize the connection of pressing machine and database.In addition, in order to improve the transmission speed of data, server to be measured can be connected with SSD with optical fiber switch by optical fiber storage card.
Intel Anthem (Itanium) processor aims at and requires that harsh enterprise and technology are applied and design.Based on the platform of Intel Itanium processor with lower cost, provide leading performance.Itanium processor is structured in IA-64 (Intel Architecture 64), be different from x86 server, its installing operating system and application software are all need software developer to customize separately with adaptation, relative to x86 platform, are applied to Itanium platform software relatively less.
As shown in Figure 2, embodiments provide a kind of method of testing the server of Itanium platform, the method can comprise the following steps:
Step 201: install oralce database in advance on the server of Itanium platform to be measured, simulated data is stored in described oralce database, according to the server of Itanium platform to be measured, pre-set the first predetermined number pressing machine, the server of described pressing machine with Itanium platform to be measured is connected, the server of described pressing machine with Itanium platform to be measured is connected with 10,000,000,000 switches by ten thousand Broadcoms, in advance the storage medium of data in described database is set to SSD, described pressing machine is set to BenchmarkFactory.
Particularly, oralce database is oralce 10G database.For Itanium platform, when installing oracle database, oracle is to the detection of operating system in amendment, carries out Autonomous adaptation, for Itanium platform server, carry out the coordination tuning with K-UNIX to operating system.
Step 202: simulate the second predetermined number user by the first predetermined number BenchmarkFactory and send multiple request to described simulated data respectively to oralce database.
When testing, by the test model of BenchmarkFactory choice criteria, and define measurement scope, test duration and Test Strategy etc., simultaneously, real-time test data situation and cpu busy percentage can be seen, the information such as test data, convenient understanding test real-time status by BenchmarkFactory.In addition, Server (server) holds turn-on data storehouse to monitor, and pressing machine is conducted interviews by oracle client and operates.
Step 203: receive the response to described request that oralce database returns.
Step 204: according to described request and described response, determine the TPS of the server of Itanium platform to be measured.
Server to be measured upon receiving a request, these requests are processed, return corresponding response, different according to the performance of server to be measured, the required time of these requests of server process to be measured is different, server to be measured often can being returned a response as affairs, reflecting the overall performance of compensatory server by calculating issued transaction amount per second.
As shown in Figure 3, Figure 4, embodiments provide a kind of device of testing server, device embodiment can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.Say from hardware view; as shown in Figure 3; a kind of hardware structure diagram of the device place equipment of a kind of testing server provided for the embodiment of the present invention; except the processor shown in Fig. 3, internal memory, network interface and nonvolatile memory; in embodiment, the equipment at device place can also comprise other hardware usually, as the forwarding chip etc. of responsible process message.For software simulating, as shown in Figure 4, as the device on a logical meaning, be by the CPU of its place equipment, computer program instructions corresponding in nonvolatile memory is read operation in internal memory to be formed.The device of a kind of testing server that the present embodiment provides, comprising:
Database Unit 401, for setting data storehouse on server to be measured, stores simulated data in described database;
Request unit 402, for sending multiple request to described simulated data to described database;
Response unit 403, for receiving the response to described request that described database returns;
Determining unit 404, for according to described request and described response, determines the TPS of server to be measured.
In a kind of possible implementation, described Database Unit, for installing oralce database on server to be measured, stores simulated data in described oralce database.
In a kind of possible implementation, also comprising: the first setting unit, for arranging pressing machine, described pressing machine being connected with server to be measured.
Described request unit, for sending multiple request to described simulated data by described pressing machine to described database.
In a kind of possible implementation, described first setting unit, for being set to BenchmarkFactory by described pressing machine.
In a kind of possible implementation, also comprise: linkage unit, for described pressing machine being connected with server to be measured with 10,000,000,000 switches by ten thousand Broadcoms.
In a kind of possible implementation, also comprise: the second setting unit, for the storage medium of data in described database is set to SSD.
In a kind of possible implementation, described first setting unit, for according to described server to be measured, arranges the first predetermined number pressing machine.
In a kind of possible implementation, described request unit, sends multiple request to described simulated data for being simulated the second predetermined number user by described pressing machine respectively to described database.
The content such as information interaction, implementation between each unit in said apparatus, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment describe, repeat no more herein.
The method of a kind of testing server that the embodiment of the present invention provides and device, have following beneficial effect:
The method of a kind of testing server that the embodiment of the present invention provides and device, by setting data storehouse on server to be measured, simulated data in database is asked, by server to be measured, the response that these are asked is carried out to the performance of testing server, the overall performance of server to be measured is reflected by the TPS calculated, in the method, the actual treatment scene of emulating server is carried out by database, reflect that server is from reception request to the overall performance the processing procedure providing response, realizes the test of the overall performance to server by TPS.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element " being comprised " limited by statement, and be not precluded within process, method, article or the equipment comprising described key element and also there is other same factor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for illustration of technical scheme of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.
Claims (10)
1. a method for testing server, is characterized in that, comprising: setting data storehouse on server to be measured in advance, stores simulated data, also comprise in described database:
S1: send multiple request to described simulated data to described database;
S2: receive the response to described request that described database returns;
S3: according to described request and described response, determines the issued transaction amount TPS per second of server to be measured.
2. method according to claim 1, is characterized in that, described setting data storehouse on server to be measured in advance, stores simulated data, comprising in described database:
On server to be measured, oralce database is installed in advance, in described oralce database, stores simulated data.
3. method according to claim 1, is characterized in that, before described S1, also comprises: pre-set pressing machine, is connected by described pressing machine with server to be measured;
Described S1, comprising:
Multiple request to described simulated data is sent to described database by described pressing machine.
4. method according to claim 3, is characterized in that, described in pre-set pressing machine, comprising: described pressing machine is set to BenchmarkFactory;
And/or,
Before described S1, also comprise:
Described pressing machine is connected with server to be measured with 10,000,000,000 switches by ten thousand Broadcoms;
And/or,
Before described S1, also comprise:
In advance the storage medium of data in described database is set to solid-state hard disk SSD.
5. method according to claim 3, is characterized in that,
Describedly pre-set pressing machine, comprising: according to described server to be measured, pre-set the first predetermined number pressing machine;
And/or,
Described S1, comprising: simulate the second predetermined number user by described pressing machine and send multiple request to described simulated data respectively to described database.
6. a device for testing server, is characterized in that, comprising:
Database Unit, for setting data storehouse on server to be measured, stores simulated data in described database;
Request unit, for sending multiple request to described simulated data to described database;
Response unit, for receiving the response to described request that described database returns;
Determining unit, for according to described request and described response, determines the issued transaction amount TPS per second of server to be measured.
7. device according to claim 6, is characterized in that, described Database Unit, for installing oralce database on server to be measured, in described oralce database, stores simulated data.
8. device according to claim 6, is characterized in that, also comprises: the first setting unit, for arranging pressing machine, is connected by described pressing machine with server to be measured;
Described request unit, for sending multiple request to described simulated data by described pressing machine to described database.
9. device according to claim 8, is characterized in that, described first setting unit, for described pressing machine is set to BenchmarkFactory;
And/or,
Also comprise: linkage unit, for described pressing machine being connected with server to be measured with 10,000,000,000 switches by ten thousand Broadcoms;
And/or,
Also comprise: the second setting unit, for the storage medium of data in described database is set to solid-state hard disk SSD.
10. device according to claim 8, is characterized in that,
Described first setting unit, for according to described server to be measured, arranges the first predetermined number pressing machine;
And/or,
Described request unit, sends multiple request to described simulated data for being simulated the second predetermined number user by described pressing machine respectively to described database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510239625.8A CN104866402A (en) | 2015-05-12 | 2015-05-12 | Server testing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510239625.8A CN104866402A (en) | 2015-05-12 | 2015-05-12 | Server testing method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104866402A true CN104866402A (en) | 2015-08-26 |
Family
ID=53912248
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510239625.8A Pending CN104866402A (en) | 2015-05-12 | 2015-05-12 | Server testing method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104866402A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106021085A (en) * | 2016-05-24 | 2016-10-12 | 北京金山安全软件有限公司 | Performance test method and device and data server |
CN106339289A (en) * | 2016-09-30 | 2017-01-18 | 郑州云海信息技术有限公司 | Method and system for testing UlltraDIMM performance |
CN106850321A (en) * | 2017-04-05 | 2017-06-13 | 无锡华云数据技术服务有限公司 | A kind of simulated testing system of cluster server |
CN107368405A (en) * | 2016-05-11 | 2017-11-21 | 腾讯科技(北京)有限公司 | Test system, method of testing, mock platforms, blocker and client |
CN108334521A (en) * | 2017-01-19 | 2018-07-27 | 阿里巴巴集团控股有限公司 | A kind of database volume prediction technique and device |
CN113051145A (en) * | 2021-04-08 | 2021-06-29 | 武汉极意网络科技有限公司 | Performance detection method of online verification system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102253874A (en) * | 2011-08-09 | 2011-11-23 | 广东电网公司电力科学研究院 | Server testing method and testing system |
-
2015
- 2015-05-12 CN CN201510239625.8A patent/CN104866402A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102253874A (en) * | 2011-08-09 | 2011-11-23 | 广东电网公司电力科学研究院 | Server testing method and testing system |
Non-Patent Citations (2)
Title |
---|
牛小彬: "基于OLTP的高端容错服务器性能评测TPC-E基准的研究与设计", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
魏理豪等: "TPC-C基准测试体系应用研究", 《广东电力》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107368405A (en) * | 2016-05-11 | 2017-11-21 | 腾讯科技(北京)有限公司 | Test system, method of testing, mock platforms, blocker and client |
CN106021085A (en) * | 2016-05-24 | 2016-10-12 | 北京金山安全软件有限公司 | Performance test method and device and data server |
CN106021085B (en) * | 2016-05-24 | 2018-09-04 | 北京金山安全软件有限公司 | Performance test method and device and data server |
CN106339289A (en) * | 2016-09-30 | 2017-01-18 | 郑州云海信息技术有限公司 | Method and system for testing UlltraDIMM performance |
CN108334521A (en) * | 2017-01-19 | 2018-07-27 | 阿里巴巴集团控股有限公司 | A kind of database volume prediction technique and device |
CN108334521B (en) * | 2017-01-19 | 2022-04-19 | 阿里巴巴集团控股有限公司 | Database capacity prediction method and device |
CN106850321A (en) * | 2017-04-05 | 2017-06-13 | 无锡华云数据技术服务有限公司 | A kind of simulated testing system of cluster server |
CN113051145A (en) * | 2021-04-08 | 2021-06-29 | 武汉极意网络科技有限公司 | Performance detection method of online verification system |
CN113051145B (en) * | 2021-04-08 | 2022-06-28 | 武汉极意网络科技有限公司 | Performance detection method of online verification system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104866402A (en) | Server testing method and apparatus | |
US20170315902A1 (en) | Systems And Methods For Performance Testing Cloud Applications From Multiple Different Geographic Locations | |
US9104572B1 (en) | Automated root cause analysis | |
CN111124850A (en) | MQTT server performance testing method, system, computer equipment and storage medium | |
US20220058104A1 (en) | System and method for database replication benchmark testing using a pipeline-based microservices model | |
CN108768730B (en) | Method and device for operating intelligent network card | |
US10116534B2 (en) | Systems and methods for WebSphere MQ performance metrics analysis | |
US9229838B2 (en) | Modeling and evaluating application performance in a new environment | |
CN104317726A (en) | Testing method for storage IO performance | |
CN108460068B (en) | Method, device, storage medium and terminal for importing and exporting report | |
CN104424347A (en) | System and method to predict elapsed response time for a query during application development stage | |
CN113127356A (en) | Pressure measurement method and device, electronic equipment and storage medium | |
CN113886162A (en) | Computing equipment performance test method, computing equipment and storage medium | |
JP2023554016A (en) | Inline data packet conversion | |
CN111143196A (en) | Database testing method and device | |
CN110033242A (en) | Working time determination method, device, equipment and medium | |
CN114610597A (en) | Pressure testing method, device, equipment and storage medium | |
CN111913861A (en) | Performance test method, device, equipment and medium of Internet of things system | |
CN102986151A (en) | Monitoring system and data transfer device and method thereof | |
CN104504000B (en) | A kind of transmission method of Remote Switched Port Analyzer file, apparatus and system | |
US20180203628A1 (en) | Method, apparatus and computer program product for evaluating data storage systems for energy efficiency | |
CN116319492A (en) | Switch testing method and device, storage medium and electronic equipment | |
CN106055441A (en) | Internet access performance testing method and system of servers under linux system | |
CN109669829A (en) | A kind of diagnosis adjustment method, device and server based on BMC | |
US11068371B2 (en) | Method and apparatus for simulating slow storage disk |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150826 |