CN110618920B - Communication method applied to TPC-E test and driver equipment - Google Patents

Communication method applied to TPC-E test and driver equipment Download PDF

Info

Publication number
CN110618920B
CN110618920B CN201910572484.XA CN201910572484A CN110618920B CN 110618920 B CN110618920 B CN 110618920B CN 201910572484 A CN201910572484 A CN 201910572484A CN 110618920 B CN110618920 B CN 110618920B
Authority
CN
China
Prior art keywords
component
driver
tpc
transaction
meeserver
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.)
Active
Application number
CN201910572484.XA
Other languages
Chinese (zh)
Other versions
CN110618920A (en
Inventor
梁俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Wind Gather Intelligence Technology Co ltd
Original Assignee
Wuhan Wind Gather Intelligence Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Wind Gather Intelligence Technology Co ltd filed Critical Wuhan Wind Gather Intelligence Technology Co ltd
Priority to CN201910572484.XA priority Critical patent/CN110618920B/en
Publication of CN110618920A publication Critical patent/CN110618920A/en
Application granted granted Critical
Publication of CN110618920B publication Critical patent/CN110618920B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3409Recording 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3452Performance evaluation by statistical analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The application provides a communication method applied to TPC-E test and driver equipment, which are used for saving the computing resource of the driver equipment in the TPC-E test. The method is applied to Driver equipment, the Driver equipment is used for operating a Driver component, the Driver component is included in a TPC-E test platform, the TPC-E test platform further comprises a CESERVER component and an MEEServer component, the Driver component is used for controlling TPC-E test, the CESERVER component is used for simulating client operation type transactions, the MEEServer component is used for simulating market operation type transactions, and the method comprises the following steps: the driver equipment triggers a TPC-E test task corresponding to the target database; the Driver equipment is respectively arranged between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component, and TCP communication is realized based on Web interfaces; when the CESERVER component and the MEEServer component respectively initiate simulation processing transactions to the target database, the driver equipment monitors the processing result of the simulation processing transactions processed by the target database based on the Socket interface; and the driver equipment analyzes and obtains the TPC-E test result of the target database according to the processing result.

Description

Communication method applied to TPC-E test and driver equipment
Technical Field
The present application relates to the field of testing, and in particular, to a communication method and driver device for TPC-E testing.
Background
The TPC-E test reference derived by the Transaction Processing Performance Council (TPC) is used for carrying out TPC-E test on the database and evaluating the Performance of the database.
When the existing TPC-E testing tool simulates interaction between different device entities, a Transmission Control Protocol (TCP) communication manner is adopted, and a corresponding hypertext Transfer Protocol (HTTP) interface is configured on a TCP connection for monitoring service processing related to TPC-E testing of a database.
However, when a transaction is initiated to the database, the TPC-E testing tool establishes a TCP connection and configures the HTTP interface on the basis of the TCP connection, and then recovers the HTTP interface along with the disconnection of the TCP connection after the transaction is completed, which means that in the TPC-E testing process, as opposed to initiating a large number of transactions, an equal number of HTTP interfaces need to be configured, which may occupy a small amount of computing resources.
Disclosure of Invention
The application provides a communication method applied to TPC-E test and driver equipment, which are used for saving the computing resource of the driver equipment in the TPC-E test.
In a first aspect of the present application, a communication method applied to a TPC-E test is provided, where the method is applied to a Driver device, the Driver device is configured to operate a Driver component, the Driver component is included in a TPC-E test platform, the TPC-E test platform further includes a ceerver component and an MEEServer component, the Driver component is configured to control a TPC-E test, the ceerver component is configured to simulate a client operation type transaction, the MEEServer is configured to simulate a market operation type transaction, and the method includes:
the driver equipment triggers a TPC-E test task corresponding to the target database;
the Driver equipment is respectively arranged between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component, and TCP communication is realized based on Web interfaces;
when the CESERVER component and the MEEServer component respectively initiate simulation processing transactions to the target database, the driver equipment monitors the processing result of the simulation processing transactions processed by the target database based on the Socket interface;
and the driver equipment analyzes and obtains the TPC-E test result of the target database according to the processing result.
Optionally, the method further comprises:
the Driver device establishes different Web interfaces corresponding to different transaction type labels between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component respectively;
and the driver equipment triggers a CESERVER component or a MEEServer component to initiate the simulation processing transaction to the target database based on the first Web interface corresponding to the transaction class label of the simulation processing transaction.
Optionally, the method further comprises:
the driver equipment monitors the number of different first simulation processing transactions corresponding to different transaction type labels;
when the fact that the number of the transactions of the target simulation processing transaction reaches the threshold value is monitored, the driver equipment releases the Web interface resources which are used completely, and an additional first Web interface is established for the target transaction type label corresponding to the target simulation processing transaction based on the released Web interface resources.
Optionally, the method further comprises:
the Driver device establishes different Web interfaces corresponding to different simulation object labels between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component respectively;
and the driver equipment triggers the CESERVER component or the MEEServer component to initiate the simulation processing transaction to the target database based on the second Web interface corresponding to the simulation object label of the simulation processing transaction.
Optionally, the method further comprises:
the driver equipment monitors the number of different second simulation processing transactions corresponding to different transaction type labels;
when the number of the transactions of the target simulation processing transaction reaches the threshold value, the driver equipment releases the Web interface resources which are used completely, and establishes an additional second Web interface for the target transaction type label corresponding to the target simulation processing transaction based on the released Web interface resources.
In a second aspect of the present application, a Driver device is provided, where the Driver device is configured to run a Driver component, the Driver component is included in a TPC-E test platform, the TPC-E test platform further includes a ceerver component and a meeserer component, the Driver component is configured to control a TPC-E test, the ceerver component is configured to simulate a customer-operation-type transaction, the meeserer is configured to simulate a market-operation-type transaction, and the device includes:
the trigger unit is used for triggering the TPC-E test task corresponding to the target database;
the communication unit is used for realizing TCP communication between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component based on a Web interface;
the monitoring unit is used for monitoring the processing result of the simulation processing transaction processed by the target database based on the Socket interface when the CESERVER component and the MEEServer component respectively initiate the simulation processing transaction to the target database;
and the analysis unit is used for analyzing and obtaining the TPC-E test result of the target database according to the processing result.
Optionally, the apparatus further comprises:
the establishing unit is used for respectively establishing different Web interfaces corresponding to different transaction type labels between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component;
and the triggering unit is also used for triggering the CESERVER component or the MEEServer component to initiate the simulation processing transaction to the target database based on the first Web interface corresponding to the transaction type label of the simulation processing transaction.
Optionally, the apparatus further comprises:
the monitoring unit is used for monitoring the number of different first simulation processing transactions corresponding to different transaction type labels;
and the establishing unit is further used for releasing the Web interface resources which are used when the number of the transactions of the target simulation processing transaction reaches the number threshold value, and establishing an additional first Web interface for the target transaction type label corresponding to the target simulation processing transaction based on the released Web interface resources.
Optionally, the apparatus further comprises:
the building unit is used for building different Web interfaces corresponding to different simulation object labels between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component respectively;
and the triggering unit is also used for triggering the CESERVER component or the MEEServer component to initiate the simulation processing transaction to the target database based on the second Web interface corresponding to the simulation object label of the simulation processing transaction.
Optionally, the apparatus further comprises:
the monitoring unit is used for monitoring the number of different second simulation processing transactions corresponding to different transaction type labels;
and the establishing unit is further used for releasing the Web interface resources which are used when the number of the transactions of the target simulation processing transaction reaches the number threshold value, and establishing an additional second Web interface for the target transaction type label corresponding to the target simulation processing transaction based on the released Web interface resources.
In a third aspect, the present application provides a driver device comprising a processor for implementing any of the steps of the communication method as described in the first aspect above for TPC-E testing when executing a computer program stored in a memory.
In a fourth aspect, the present application provides a readable storage medium having stored thereon a computer program which, when executed by a processor, performs any of the steps of the communication method as described above in the first aspect as applied to TPC-E testing.
According to the technical scheme, the method has the following advantages:
when a TPC-E test task corresponding to a target database is triggered, different from monitoring by configuring one-to-one corresponding HTTP interfaces for each TCP communication connection in the prior art, Driver equipment realizes TCP communication between a Driver component and a CESERVER component and between the Driver component and an MEESERVER component through a Web interface on one hand, and monitors a processing result of a target database for processing an analog processing transaction through a Socket interface on the other hand, so that the TPC-E test can be completed without configuring one-to-one corresponding monitoring interfaces for each analog processing transaction, and the computing resources and the system overhead of the Driver equipment are saved.
In addition, due to the fact that the start-stop operation of a large number of monitoring interfaces is reduced, abnormal conditions such as failure and unresponsiveness caused by high-frequency start-stop of the monitoring interfaces can be avoided, the stability of the TPC-E test is improved, the time required by start-stop of the monitoring interfaces can be greatly reduced, and therefore the test efficiency of the TPC-E test can be further improved.
Drawings
FIG. 1 is a schematic flow chart illustrating a communication method applied to TPC-E test according to the present application;
FIG. 2 shows a schematic diagram of one configuration of a driver device of the present application;
FIG. 3 shows another schematic construction of the driver device of the present application;
FIG. 4 shows a further schematic of the structure of the driver device of the present application;
fig. 5 shows another schematic structure diagram of the driver device provided in the present application.
Detailed Description
The application provides a communication method applied to TPC-E test and driver equipment, which are used for saving the computing resource of the driver equipment in the TPC-E test.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Moreover, the terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus. The naming or numbering of the steps appearing in the present application does not mean that the steps in the method flow have to be executed in the chronological/logical order indicated by the naming or numbering, and the named or numbered process steps may be executed in a modified order depending on the technical purpose to be achieved, as long as the same or similar technical effects are achieved.
The division of the modules presented in this application is a logical division, and in practical applications, there may be another division, for example, multiple modules may be combined or integrated into another system, or some features may be omitted, or not executed, and in addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, and the indirect coupling or communication connection between the modules may be in an electrical or other similar form, which is not limited in this application. The modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in a plurality of circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present disclosure.
First, before the present application is introduced, a test platform, a driver device, a target database, and a User Equipment (UE) related to the present application will be described.
In the application, the test platform comprises a Driver component, a CESERVER component and a MEEServer component, and a user can log in or access the test platform through UE to trigger a TPC-E test task. The Driver component is used for controlling TPC-E testing, the CESERVER component is used for simulating client operation type transactions, and the MEEServer component is used for simulating market operation type transactions.
The Driver device is a processing device which deploys the Driver component of the application. The driver device has a communication capability and a data processing capability, and the driver device may specifically be an independently operating device, or may also be a device cluster, which is not limited herein. By applying the monitoring method applied to the TPC-E test, the driver equipment can save the computing resource of the driver equipment in the TPC-E test and improve the stability and the test efficiency of the TPC-E test.
The CESERVER component and the MEEServer component can also be deployed on the driver equipment; or may be deployed on other processing devices.
The target database is a processing device with a database system deployed and has database capacity.
The UE may specifically be a terminal device such as a smart phone, a tablet computer, a desktop computer, a notebook computer, a computer all-in-one machine, a Personal Digital Assistant (PDA), an intelligent bracelet or an intelligent watch, and the UE has a human-computer interaction capability.
Next, the present application will be described in detail based on the above description of the simple background.
Referring to fig. 1, fig. 1 shows a schematic flow chart of the communication method applied to the TPC-E test, and in particular, the communication method applied to the TPC-E test may include the following steps:
step S101, a driver device triggers a TPC-E test task corresponding to a target database;
a worker can initiate TPC-E test on a target database on a test platform or through UE, and correspondingly, a driver triggers a TPC-E test task corresponding to the target database to start a working process.
Step S102, the Driver device establishes TCP communication between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component respectively;
similar to the prior art, when the Driver device carries out TPC-E test on the target database, TCP communication is respectively established between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component,
and each time the CESERVER component or the MEEServer component generates a simulation processing transaction, initiating the simulation processing transaction to the target database, enabling the target database to process the simulation processing transaction, and feeding back a result to the CESERVER component or the MEEServer component which initiates the simulation processing transaction.
Step S103, the Driver device respectively realizes TCP communication between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component based on a Web interface;
different from the HTTP interface in the prior art, the Driver device realizes TCP communication between the Driver component and the ceerver component and between the Driver component and the MEEserver component through the Web interface.
In the prior art, an HTTP interface playing a monitoring role exists depending on TCP communication connection; in the application, the Web interface playing a monitoring role is relatively independent from TCP communication connection, and technically, the Web interface does not need to be started along with the starting of each TCP connection and also does not need to be recovered along with the recovery of each TCP connection, so that compared with the situation that a large number of HTTP interfaces are started one by one for initiating a large number of simulation processing transactions, the number of times for starting and stopping the Web interface can be greatly reduced.
Step S104, when the CESERVER component and the MEEServer component respectively initiate the simulation processing transaction to the target database, the driver equipment monitors the processing result of the simulation processing transaction processed by the target database based on the Socket interface;
when the target database processes the simulation processing transactions respectively initiated by the CESERVER component and the MEEServer component, the driver device monitors the processing result of the simulation processing transaction processed by the target database according to the Socket interface between the driver device and the target database.
And step S105, the driver equipment analyzes and obtains a TPC-E test result of the target database according to the processing result.
After the monitoring obtains the processing result of the target database processing simulation processing transaction, similar to the prior art, the driver device performs responsive data analysis processing according to the processing result obtained by the monitoring to obtain a TPC-E test result of the target database, wherein the TPC-E test result is used for evaluating the database performance of the target database under the TPC-E test reference.
The driver device may further output the TPC-E test result, for example, report the TPC-E test result to a test platform, or push the TPC-E test result to a user on the UE side.
It can be seen from the above that, when triggering a TPC-E test task corresponding to a target database, the Driver device, on one hand, implements TCP communication between a Driver component and a cesterver component, and between the Driver component and an meesterver component through a Web interface, and, on the other hand, monitors a processing result of the target database processing the analog processing transaction through a Socket interface, so that a TPC-E test can be completed without configuring a monitoring interface corresponding to each analog processing transaction, and computing resources and system overhead of the Driver device are saved.
In addition, due to the fact that the start-stop operation of a large number of monitoring interfaces is reduced, abnormal conditions such as failure and unresponsiveness caused by high-frequency start-stop of the monitoring interfaces can be avoided, the stability of the TPC-E test is improved, the time required by start-stop of the monitoring interfaces can be greatly reduced, and therefore the test efficiency of the TPC-E test can be further improved.
Further, in practical applications, the start of the Web interface can be realized by different methods, for example:
first, based on transaction category
Referring to fig. 2, fig. 2 shows another flow chart of the communication method applied to the TPC-E test of the present application, and the corresponding embodiment in fig. 1 may further include the following steps:
step S201, the Driver device respectively establishes different Web interfaces corresponding to different transaction type labels between a Driver component and a CESERVER component and between the Driver component and an MEESERVER component;
in the TPC-E testing process, the ceerver component and the MEEServer component may initiate a simulation transaction, which may specifically include a Broker Trade statistical transaction (Broker-Volume), a Customer value statistical transaction (Customer-Position), a Market observation transaction (Market-Watch), a Security-Detail transaction (Security-Detail), a Trade query transaction (Trade-Lookup), a Trade execution transaction (Trade-Order), a Trade state transaction (Trade-Status), a Market tracking transaction (Market-Feed), and a Trade Result update transaction (Trade-Result).
Correspondingly, the driver device may assign corresponding transaction type labels to the simulation processing transactions of the different transaction types one by one, so that the driver device may establish different Web interfaces based on the different transaction type labels.
Step S202, the driver device triggers the CESERVER component or the MEEServer component to initiate the simulation processing transaction to the target database based on the first Web interface corresponding to the transaction type label of the simulation processing transaction.
After the driver establishes different Web interfaces corresponding to different transaction type labels through step S201, when triggering the cesterver component or the meesterver component to initiate a simulation transaction to the target database, the driver may specifically trigger the cesterver component or the meesterver component to initiate a simulation transaction to the target database according to the different Web interfaces corresponding to the different transaction type labels, so as to reasonably allocate the Web interface resources.
And the driver equipment triggers a CESERVER component or a MEEServer component to initiate the simulation processing transaction to the target database based on the first Web interface corresponding to the transaction class label of the simulation processing transaction.
Of course, in a further optimization setting, to avoid that the Web interface corresponding to a transaction class listens for too many processing of the simulation processing transactions, the driver device may also pre-configure a threshold (upper limit) for the number of the simulation processing transactions that can be listened for each class of Web interface, and if the threshold is reached, release the idle Web interface resources and establish an additional Web interface for the transaction class corresponding to the transaction class label, so as to share the load pressure of the listening processing.
Correspondingly, the method shown in fig. 1 may further include the following steps:
the driver equipment monitors the number of different first simulation processing transactions corresponding to different transaction type labels;
when the fact that the number of the transactions of the target simulation processing transaction reaches the threshold value is monitored, the driver equipment releases the Web interface resources which are used completely, and an additional first Web interface is established for the target transaction type label corresponding to the target simulation processing transaction based on the released Web interface resources.
Second, based on simulated objects
Referring to fig. 3, fig. 3 shows another flow chart of the communication method applied to the TPC-E test of the present application, and the corresponding embodiment in fig. 1 may further include the following steps:
step S301, the Driver device respectively establishes different Web interfaces corresponding to different simulation object labels between a Driver component and a CESERVER component and between the Driver component and an MEESERVER component;
in the TPC-E testing process, the ceerver component or the MEEServer component side may simulate batch processing transactions initiated by different customers or exchanges, so that, in addition to the transaction types, the driver device may start from a simulation object simulating the processing transactions, and start the Web interfaces corresponding to different simulation objects to share the load pressure of the monitoring processing.
Correspondingly, the driver device may assign corresponding simulation object tags to the simulation processing transactions of the different simulation objects one by one, so that the driver device may establish different Web interfaces based on the different simulation object tags.
Step S302, the driver device triggers the ceerver component or the MEEServer component to initiate the simulation processing transaction to the target database based on the second Web interface corresponding to the simulation object tag of the simulation processing transaction. After the driver establishes different Web interfaces corresponding to different simulation object labels through step S301, when triggering the cesterver component or the meesterver component to initiate a simulation transaction to the target database, the driver may specifically trigger the cesterver component or the meesterver component to initiate the simulation transaction to the target database according to the different Web interfaces corresponding to the different simulation object labels, so as to reasonably allocate the Web interface resources.
Of course, in a further optimized setting, similar to the above description of the first-initiating the Web interface based on the transaction type, the number of transactions of the simulation processing transactions of different simulation objects may be monitored, and the idle Web interface resources are released and the Web interface is additionally established, so as to continue to share the load pressure of the monitoring processing. That is, the method shown in fig. 1 may further include the following steps:
the driver equipment monitors the number of different second simulation processing transactions corresponding to different transaction type labels;
when the number of the transactions of the target simulation processing transaction reaches the threshold value, the driver equipment releases the Web interface resources which are used completely, and establishes an additional second Web interface for the target transaction type label corresponding to the target simulation processing transaction based on the released Web interface resources.
It should be noted that, the first Web interface and the second Web interface are only for convenience of description in different embodiments of establishing corresponding Web interfaces based on transaction types or simulation objects, and the first Web interface and the second Web interface are only different in purpose (corresponding to transaction types or simulation objects), and there is no technical difference in the establishing process, which should not be limited.
Third, based on transaction class and simulation object
The above lists respectively describe that different Web interfaces are respectively started based on different transaction types or simulation objects, and in practical application, different Web interfaces can be started by combining the two. For example, different Web interfaces may be established for different simulation objects on the basis of the same transaction type, or different Web interfaces may be established for different transaction types on the basis of the same simulation object, and specific contents may refer to the above description and are not described herein again.
The above is an introduction of the communication method of the present application applied to the TPC-E test, and the driver apparatus of the present application is described below.
Referring to fig. 4, fig. 4 shows a schematic structural diagram of a driver apparatus of the present application, and specifically, the driver apparatus may include the following structure:
a triggering unit 401, configured to trigger a TPC-E test task corresponding to the target database;
the communication unit 402 is used for realizing TCP communication between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component based on a Web interface;
a monitoring unit 403, configured to monitor a processing result of the target database for processing the simulation processing transaction based on the Socket interface when the ceerver component and the MEEServer component respectively initiate the simulation processing transaction to the target database;
and the analysis unit 404 is configured to analyze the TPC-E test result of the target database according to the processing result.
Optionally, the apparatus further comprises:
the establishing unit 405 is configured to establish different Web interfaces corresponding to different transaction type labels between the Driver component and the ceerver component, and between the Driver component and the meeserer component, respectively;
the triggering unit 401 is further configured to trigger the ceerver component or the MEEServer component to initiate the simulation processing transaction to the target database based on the first Web interface corresponding to the transaction type label of the simulation processing transaction.
Optionally, the apparatus further comprises:
a monitoring unit 406, configured to monitor the number of different first simulation transactions corresponding to different transaction type labels;
the establishing unit 405 is further configured to release the used Web interface resource when it is monitored that the number of the target simulation processing transactions reaches the number threshold, and establish an additional first Web interface for the target transaction category tag corresponding to the target simulation processing transaction based on the released Web interface resource.
Optionally, the apparatus further comprises:
the establishing unit 405 is configured to establish different Web interfaces corresponding to different simulation object tags between the Driver component and the cesterver component and between the Driver component and the meesterver component, respectively;
the triggering unit 401 is further configured to trigger the ceerver component or the MEEServer component to initiate the simulation processing transaction to the target database based on the second Web interface corresponding to the simulation object tag of the simulation processing transaction.
Optionally, the apparatus further comprises:
a monitoring unit 406, configured to monitor the number of different second simulation transactions corresponding to different transaction type labels;
the establishing unit 405 is further configured to release the used Web interface resource when it is monitored that the number of the target simulation processing transactions reaches the number threshold, and establish an additional second Web interface for the target transaction category tag corresponding to the target simulation processing transaction based on the released Web interface resource.
Referring to fig. 5, fig. 5 shows another schematic structural diagram of the driver apparatus provided in the present application, specifically, the driver apparatus provided in the present application includes a processor 501, and when the processor 501 is used to execute a computer program stored in a memory 502, the steps of the communication method applied to the TPC-E test in the embodiments corresponding to fig. 1 to fig. 3 are implemented; alternatively, the processor 501 is configured to implement the functions of the units in the corresponding embodiment of fig. 4 when executing the computer program stored in the memory 502.
Illustratively, a computer program may be partitioned into one or more modules/units, which are stored in memory 502 and executed by processor 501 to accomplish the present application. One or more modules/units may be a series of computer program instruction segments capable of performing certain functions, the instruction segments being used to describe the execution of a computer program in a computer device.
The driver device may include, but is not limited to, a processor 501, a memory 502. It will be appreciated by a person skilled in the art that the illustration is merely an example of a computer arrangement and does not constitute a limitation of the driver device, which may comprise more or less components than those illustrated, or some components in combination, or different components, e.g. the driver device may further comprise an input output device, a network access device, a bus, etc., via which the processor 501, the memory 502, the input output device, the network access device, etc. are connected.
The Processor 501 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the computer device and the various interfaces and lines connecting the various parts of the overall computer device.
The memory 502 may be used to store computer programs and/or modules, and the processor 501 may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory 502, as well as invoking data stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The present application also provides a readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the communication method applied to the TPC-E test in the corresponding embodiment of fig. 1.
It will be appreciated that the integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is clear to those skilled in the art that, for convenience and brevity of description, the above-described specific working process of the driver device and the units thereof may refer to the communication method applied to the TPC-E test in the embodiments corresponding to fig. 1 to fig. 3, and details thereof are not repeated herein.
In summary, the communication method, the Driver device, and the readable storage medium applied to the TPC-E test provided by the present application are different from the prior art in which HTTP interfaces corresponding to TCP communication connections are configured to monitor when a TPC-E test task corresponding to a target database is triggered, in that the Driver device implements TCP communication between a Driver component and a ceerver component and between the Driver component and the meeserer component through a Web interface on one hand, and monitors the target database through a Socket interface on the other hand to process a processing result of an analog transaction, so that the TPC-E test can be completed without configuring a monitoring interface corresponding to each analog transaction one by one, and thus the computational resources and the system overhead of the Driver device are saved.
In addition, due to the fact that the start-stop operation of a large number of monitoring interfaces is reduced, abnormal conditions such as failure and unresponsiveness caused by high-frequency start-stop of the monitoring interfaces can be avoided, the stability of the TPC-E test is improved, the time required by start-stop of the monitoring interfaces can be greatly reduced, and therefore the test efficiency of the TPC-E test can be further improved.
In the several embodiments provided in the present application, it should be understood that the disclosed driver device and its units may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (6)

1. A communication method applied to TPC-E test is characterized in that the method is applied to Driver equipment, the Driver equipment is used for operating a Driver component, the Driver component is included in a TPC-E test platform, the TPC-E test platform further comprises a CESERVER component and a MEEServer component, the Driver component is used for controlling TPC-E test, the CESERVER component is used for simulating client operation type affairs, and the MEEServer component is used for simulating market operation type affairs, and the method comprises the following steps:
the driver equipment triggers a TPC-E test task corresponding to the target database;
the Driver equipment is respectively arranged between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component, and TCP communication is realized based on a Web interface;
when the CESERVER component and the MEEServer component respectively initiate simulation processing transactions to the target database, the driver device monitors a processing result of the target database for processing the simulation processing transactions on the basis of a Socket interface;
the driver equipment analyzes and obtains a TPC-E test result of the target database according to the processing result;
the Driver device establishes different Web interfaces corresponding to different transaction type labels between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component respectively;
the driver equipment triggers the CESERVER component or the MEEServer component to initiate the simulation processing transaction to the target database based on a first Web interface corresponding to a transaction category label of the simulation processing transaction;
the driver equipment monitors the number of different first simulation processing transactions corresponding to different transaction type labels;
when the fact that the number of the transactions of the target simulation processing transaction reaches the threshold value is monitored, the driver equipment releases the Web interface resources which are used completely, and an additional first Web interface is established for the target transaction type label corresponding to the target simulation processing transaction based on the released Web interface resources.
2. The method of claim 1, further comprising:
the Driver device establishes different Web interfaces corresponding to different simulation object labels between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component respectively;
and the driver equipment triggers the CESERVER component or the MEEServer component to initiate the simulation processing transaction to the target database based on a second Web interface corresponding to a simulation object label of the simulation processing transaction.
3. The method of claim 2, further comprising:
the driver device monitors the number of different second simulation processing transactions corresponding to different simulation object tags;
when the fact that the number of the transactions of the target simulation processing transaction reaches the threshold value is monitored, the driver equipment releases the Web interface resources which are used completely, and an additional second Web interface is established for a target simulation object label corresponding to the target simulation processing transaction based on the released Web interface resources.
4. A Driver device for operating a Driver component included in a TPC-E test platform, the TPC-E test platform further including a ceerver component for simulating customer-operated transactions and a meeserer component for simulating market-operated transactions, the device comprising:
the trigger unit is used for triggering the TPC-E test task corresponding to the target database;
the communication unit is used for realizing TCP communication between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component based on a Web interface;
the monitoring unit is used for monitoring the processing result of the target database for processing the simulation processing transaction based on a Socket interface when the CESERVER component and the MEEServer component respectively initiate the simulation processing transaction to the target database;
the analysis unit is used for analyzing and obtaining a TPC-E test result of the target database according to the processing result;
the establishing unit is used for respectively establishing different Web interfaces corresponding to different transaction type labels between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component;
the triggering unit is further configured to trigger the ceerver component or the MEEServer component to initiate the simulation processing transaction to the target database based on a first Web interface corresponding to a transaction type tag of the simulation processing transaction;
the monitoring unit is used for monitoring the number of different first simulation processing transactions corresponding to different transaction type labels;
the establishing unit is further configured to release the used Web interface resource when it is monitored that the number of the transactions of the target simulation processing transaction reaches a number threshold, and establish an additional first Web interface for the target transaction category tag corresponding to the target simulation processing transaction based on the released Web interface resource.
5. The apparatus of claim 4, further comprising:
the establishing unit is used for respectively establishing different Web interfaces corresponding to different simulation object labels between the Driver component and the CESERVER component and between the Driver component and the MEESERVER component;
the triggering unit is further configured to trigger the ceerver component or the MEEServer component to initiate the simulation processing transaction to the target database based on a second Web interface corresponding to a simulation object tag of the simulation processing transaction.
6. The apparatus of claim 5, further comprising:
the monitoring unit is used for monitoring the number of different second simulation processing transactions corresponding to different simulation object labels;
the establishing unit is further configured to release the used Web interface resource when it is monitored that the number of the transactions of the target simulation processing transaction reaches a number threshold, and establish an additional second Web interface for the target simulation object tag corresponding to the target simulation processing transaction based on the released Web interface resource.
CN201910572484.XA 2019-06-28 2019-06-28 Communication method applied to TPC-E test and driver equipment Active CN110618920B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910572484.XA CN110618920B (en) 2019-06-28 2019-06-28 Communication method applied to TPC-E test and driver equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910572484.XA CN110618920B (en) 2019-06-28 2019-06-28 Communication method applied to TPC-E test and driver equipment

Publications (2)

Publication Number Publication Date
CN110618920A CN110618920A (en) 2019-12-27
CN110618920B true CN110618920B (en) 2021-03-23

Family

ID=68921388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910572484.XA Active CN110618920B (en) 2019-06-28 2019-06-28 Communication method applied to TPC-E test and driver equipment

Country Status (1)

Country Link
CN (1) CN110618920B (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019921B (en) * 2011-09-20 2015-04-15 中国人民解放军63928部队 Operating system fault tolerance testing system and method based on fault injection
CN106919498A (en) * 2017-02-20 2017-07-04 上海斐讯数据通信技术有限公司 The method for showing interface and system of the test index information of Benchmark test system

Also Published As

Publication number Publication date
CN110618920A (en) 2019-12-27

Similar Documents

Publication Publication Date Title
US20220179682A1 (en) Task processing method, apparatus, and system based on distributed system
CN115328663B (en) Method, device, equipment and storage medium for scheduling resources based on PaaS platform
CN108256118B (en) Data processing method, device, system, computing equipment and storage medium
CN109636304B (en) Business system publishing method and device, storage medium and electronic device
CN107506284B (en) Log processing method and device
CN110933075B (en) Service calling method and device, electronic equipment and storage medium
CN104375854A (en) Application updating and downloading method and user terminal
CN112748961A (en) Method and device for executing starting task
CN110618920B (en) Communication method applied to TPC-E test and driver equipment
CN110457202B (en) TPC-E testing method for quickly establishing ODBC connection and driver equipment
US10261937B2 (en) Method and system for communication of device information
CN112235300A (en) Cloud virtual network vulnerability detection method, system and device and electronic equipment
CN102970375A (en) Cluster configuration method and device
CN110704301B (en) TPC-E automatic test method and TPC-E test system
CN112711466B (en) Hanging affair inspection method and device, electronic equipment and storage medium
CN113535020B (en) Method, apparatus, device, medium and product for generating application icons
CN106294408B (en) The method and apparatus that the Asynchronous Request of dynamic web page is monitored
CN115729727A (en) Fault repairing method, device, equipment and medium
CN110768855B (en) Method and device for testing linkmzation performance
CN114281473A (en) Cloud platform test environment management method, system, terminal and storage medium
CN112835759A (en) Test data processing method and device, electronic equipment and storage medium
CN111752827A (en) Test script generation method and device
CN110659139A (en) Remote procedure calling method, computer equipment and storage medium
CN111008124A (en) Task scheduling method and device for database test
CN110457187A (en) Based on backup test data can convenient operation TPC-E test method and testing service device

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