CN111258867B - Public cloud dial testing method and device - Google Patents

Public cloud dial testing method and device Download PDF

Info

Publication number
CN111258867B
CN111258867B CN202010045373.6A CN202010045373A CN111258867B CN 111258867 B CN111258867 B CN 111258867B CN 202010045373 A CN202010045373 A CN 202010045373A CN 111258867 B CN111258867 B CN 111258867B
Authority
CN
China
Prior art keywords
service
public cloud
call
parameter value
test 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.)
Active
Application number
CN202010045373.6A
Other languages
Chinese (zh)
Other versions
CN111258867A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010045373.6A priority Critical patent/CN111258867B/en
Publication of CN111258867A publication Critical patent/CN111258867A/en
Application granted granted Critical
Publication of CN111258867B publication Critical patent/CN111258867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The embodiment of the invention discloses a dial testing method of public cloud, which comprises the following steps: acquiring a load parameter value of a public cloud; when the load parameter value is smaller than a preset value, sending a service test request to the public cloud; acquiring a call log generated by each service call in the process that the public cloud executes the service test request; and obtaining a call chain of the service test request according to the generated access log and obtaining a performance parameter value of the call chain. The embodiment of the invention also discloses a public cloud dial testing device. By adopting the invention, the public cloud can be tested from the service layer, and the performance bottleneck and the fault position of the service can be conveniently obtained.

Description

Public cloud dial testing method and device
Technical Field
The invention relates to the field of testing, in particular to a public cloud dial testing method and device.
Background
The dial testing of the public cloud means that relevant parameters of the public cloud are tested, and the current dial testing method comprises the following steps: periodically accessing the website, calculating the access availability and delay of different regions and operators, and providing a comprehensive view and a real-time alarm; carrying out periodic connection access on any TCP port, monitoring the state of the port and providing real-time alarm; the domain name or the IP is periodically detected in a PING mode, the access connectivity of different regions and operators is displayed, and real-time alarm is provided.
The existing public cloud dial testing method can show that: the dial testing is deployed on a website, a domain name, a background interface and the like of the public cloud for periodic monitoring, is limited in a network layer, and cannot be used for dial testing the performance of the public cloud in a service layer.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide a public cloud dial testing method and device. The problem that public clouds can not be dialed and tested in a service layer in the prior art can be solved.
In order to solve the above technical problem, a first aspect of an embodiment of the present invention provides a public cloud dial testing method, including:
acquiring a load parameter value of a public cloud;
when the load parameter value is smaller than a preset value, sending a service test request to the public cloud;
acquiring a call log generated by each service call in the process that the public cloud executes the service test request;
and obtaining a call chain of the service test request according to the generated access log and obtaining a performance parameter value of the call chain.
With reference to the first aspect, in a first possible implementation manner, the call log includes: one or more of a test identifier, a call chain identification, an identifier of a service call, a parent identifier of a service call, service attribute information of a callee, annotation information of the callee, and additional information of the callee.
With reference to the first aspect or the first possible implementation manner, in a second possible implementation manner, the obtaining a load parameter value of a public cloud includes:
determining a plurality of service clusters corresponding to the public cloud, selecting a target service cluster to be tested from the plurality of service clusters, and periodically acquiring a load parameter value of the target service cluster, wherein the load parameter value comprises: one or more of CPU usage and disk idleness.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, the initiating a service test request to the public cloud when the load parameter value is smaller than a preset value includes:
and selecting a target test script from a preset test script library, and sending a service test request to the target service cluster according to the target test script.
With reference to the first aspect, in a fourth possible implementation manner, the acquiring a call log generated by each service call in a process of executing the service test request by the public cloud includes:
and acquiring a call chain identifier distributed for the service test request, and acquiring an access log generated before each service call in the process of executing the service test request by the public cloud according to the call chain identifier.
With reference to the first aspect, in a fifth possible implementation manner, the obtaining a call chain of the service test request according to the generated access log, and obtaining a performance parameter value of the call chain includes:
obtaining a calling chain of the service test request according to the generated calling log, and obtaining a performance parameter value of each hop in the calling chain, wherein the performance parameter value comprises processing time consumption and a processing result;
and extracting an access log which consumes more time than a preset value or an access log with an abnormal processing result from the generated call log, and marking the access log.
Correspondingly, a second aspect of the embodiments of the present invention further provides a device for dial testing a public cloud, including:
the acquisition module is used for acquiring the load parameter value of the public cloud;
the sending module is used for sending a service test request to the public cloud when the load parameter value is smaller than a preset value;
the acquisition module is used for acquiring a call log generated by each service call in the process that the public cloud executes the service test request;
and the generating module is used for obtaining the call chain of the service test request according to the generated access log and obtaining the performance parameter value of the call chain.
With reference to the second aspect, in a first possible implementation manner, the invoking log includes: one or more of a test identifier, a call chain identification, an identifier of a service call, a parent identifier of a service call, service attribute information of a callee, annotation information of the callee, and additional information of the callee.
With reference to the second aspect or the first possible implementation manner, in a second possible implementation manner, the obtaining module is configured to:
determining a plurality of service clusters corresponding to the public cloud, selecting a target service cluster to be tested from the plurality of service clusters, and periodically acquiring a load parameter value of the target service cluster, wherein the load parameter value comprises: one or more of CPU usage and disk idleness.
With reference to the second aspect, in a third possible implementation manner, the sending module is configured to:
and selecting a target test script from a preset test script library, and sending a service test request to the target service cluster according to the target test script.
With reference to the second aspect, in a fourth possible implementation manner, the acquisition module is configured to:
and acquiring a call chain identifier distributed for the service test request, and acquiring an access log generated before each service call in the process of executing the service test request by the public cloud according to the call chain identifier.
With reference to the second aspect, in a fifth possible implementation manner, the generating module is configured to:
obtaining a calling chain of the service test request according to the generated calling log, and obtaining a performance parameter value of each hop in the calling chain, wherein the performance parameter value comprises processing time consumption and a processing result;
and extracting an access log which consumes more time than a preset value or an access log with an abnormal processing result from the generated call log, and marking the access log.
In a third aspect, an embodiment of the present application provides a device for dial testing a public cloud, including:
one or more processors, memory, a bus system, a transceiver, and one or more programs, the processors, memory, and transceiver being coupled via the bus system;
wherein the one or more programs are stored in the memory, the one or more programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the method as any one of the first aspect and the fourth possible implementation of the first aspect.
In a fifth aspect, the present application provides a computer readable storage medium storing one or more programs, where the one or more programs include instructions, which when executed by the apparatus, cause the apparatus to perform the method of any one of the first aspect to the fourth possible implementation manner of the first aspect.
The embodiment of the invention has the following beneficial effects:
the method comprises the steps of initiating a service test request to the public cloud, obtaining a call log generated by the public cloud in each service call in the service test request, constructing a call chain according to the generated call log, and obtaining performance parameters of the call chain, so that the performance of the public cloud can be tested through a service layer, the bottleneck and the fault point of a service flow can be determined according to a test result, and the service flow is optimized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a public cloud dial-up test method according to an embodiment of the present invention;
fig. 2 is another schematic flow chart of a public cloud dial-up test method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a service invocation provided by an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a public cloud dial testing device according to an embodiment of the present invention;
fig. 5 is another schematic structural diagram of a public cloud dial testing device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
Referring to fig. 1, a schematic flow chart of a public cloud dial testing method according to an embodiment of the present invention is provided, where in the embodiment of the present invention, the method includes:
and S101, acquiring a load parameter value of the public cloud.
Specifically, the public cloud represents a server that provides computing resources through the internet, and may be composed of a plurality of service clusters, each of which constitutes a resource pool. The load parameter value represents a parameter value of a degree of load of the public cloud, for example: and load parameter values such as CPU utilization rate, disk utilization rate, memory utilization rate and the like. The system comprises a public cloud configurable monitoring system, a dial-up testing device and a cloud monitoring system, wherein the monitoring system continuously monitors the load parameter value of the public cloud, provides a service interface for external access, and can acquire the load parameter value of the public cloud in real time through the service interface; the dial testing device can obtain the whole load parameter value of the public cloud or the load parameter value of a certain service cluster.
And S102, when the load parameter value is smaller than the preset value, sending a service test request to the public cloud.
Specifically, the magnitude of the load parameter value in this embodiment is in positive correlation with the degree of load, that is, the larger the load parameter value is, the heavier the load degree is, and the smaller the load parameter value is, the lighter the load degree is. The dial testing device judges whether the load parameter value is smaller than a preset value, and sends a service testing request to the public cloud under the condition that the judgment result is yes, wherein the service testing request simulates a real service scene of a service, for example, the service testing request can be: a request to create a virtual machine, a request to clone a virtual machine, a request to migrate a virtual machine, or the like. Therefore, the service test is prevented from influencing the current service carried by the public cloud.
S103, acquiring a call log generated by each service call in the process of executing the service test request by the public cloud.
Specifically, the public cloud receives a service test request sent by a dial test device, calls each component to execute the service test request, service calls of different levels may occur for many times in the process of executing the service test request, when the service test request at the front end of the public cloud arrives, a unique call chain identifier is allocated to the service test request, a call log of the current service call is recorded before each subsequent service call is executed, and the call log is stored and includes related information of the service call. After the public cloud executes the service test request, a plurality of call logs are generated, the generated call logs are triggered by the same service test request and have the same call chain identifier, and the call logs of each service call generated after the public cloud executes the service test request are collected by the dial testing device.
And S104, obtaining the call chain of the service test request according to the generated access log, and obtaining the performance parameter value of the call chain.
Specifically, the call chain includes components participating in executing the service test request in the public cloud, and is used for representing a call relationship between the components, and the components include an application program, a database, middleware, and the like. The performance parameter represents a parameter describing the merits of caller and callee service calls in the call chain, such as: the performance parameters include: time consuming processing and processing results. The generation of the call chain can clearly know the components and the call relation among the components which are commonly used by the service test request, and inform the acquisition of the performance parameters of each service call, so that the bottleneck of service execution can be determined through the call relation and the performance parameters, and the targeted optimization is performed on the service flow.
It can be seen from the above description that, a service test request is initiated to the public cloud, a call log generated by the public cloud in the service test request every service call is obtained, a call chain is constructed according to the generated call log, and a performance parameter of the call chain is obtained, so that the performance of the public cloud can be tested through a service layer, a bottleneck and a fault point of a service flow can be determined according to a test result, and the service flow is optimized.
Referring to fig. 2, another schematic flow chart of a public cloud dial testing method according to an embodiment of the present invention is shown, where in the embodiment of the present invention, the method includes:
s201, determining a plurality of service clusters corresponding to the public cloud, and selecting a target service cluster to be tested from the plurality of service clusters.
Specifically, the public cloud represents a server providing computing resources through the internet, the public cloud generally comprises a plurality of service clusters, when a service test is required, a dial-up test device determines the plurality of service clusters corresponding to the public cloud, and selects a target service cluster to be tested from the service clusters, wherein the method for selecting the target service cluster is used for performing the service test on each service in the plurality of service clusters corresponding to the public cloud in turn according to a uniform distribution principle when a specific type of service test is required to be performed on the public cloud, so that the same number of times of testing each service cluster in the plurality of service clusters corresponding to the public cloud is ensured. For example: the public cloud corresponds to 10 service clusters, and when the dial testing device needs to perform data backup service testing on the public cloud, service testing requests are sent to the 10 service clusters in turn, so that each service cluster is ensured to be tested.
S202, load parameter values of the target service cluster are obtained periodically.
Specifically, the load parameter value represents a parameter value of the degree of load of the public cloud, for example: and load parameter values such as CPU utilization rate, disk utilization rate, memory utilization rate and the like. The system comprises a public cloud configurable monitoring system, a dial-up testing device and a cloud monitoring system, wherein the monitoring system continuously monitors the load parameter value of the public cloud, provides a service interface for external access, and can acquire the load parameter value of the public cloud in real time through the service interface; the dial testing device can obtain the whole load parameter value of the public cloud or the load parameter value of a certain service cluster.
S203, selecting a target test script from a preset test script library, and sending a service test request to the target service cluster according to the target test script.
Specifically, the test script library is used for storing a test script, and the test script represents an application program or a code which triggers the tested object to run according to preset test parameters, so as to simulate a real service scene. The test script library comprises at least one test script, the dial test device selects a target test script from a preset test script library according to the current test requirement, and sends a service test request to the target service cluster according to the target test script.
S204, acquiring a call chain identifier distributed for the service test request, and acquiring an access log generated before each service call in the process of executing the service test request by the public cloud according to the call chain identifier.
Specifically, after the dial testing device sends a service test request to a target service cluster of the public cloud, the target service cluster acts according to the deployed call chain Agent to collect an access log of a uniform format generated before each service call initiated in the process of executing the service test request by the target service cluster, wherein the access log comprises: the method comprises the following steps of testing one or more of a request initiated by a front end as a business test request, calling chain identification representing the global identification of a calling chain, a child identifier of a service call representing the identifier of the service call, a parent identifier of the service call representing the root identifier of the service call, an identifier of the service call, a parent identifier of the called component representing the name, the type of the provided service and the type of an interface of the called component, and additional information of the called component. The generation process of the access log comprises the following steps: when a business test request at the front end reaches a target service cluster of a public cloud, an application container firstly executes a buried point logic of a call chain Agent before executing the business test request; the embedded point logic allocates a globally unique call chain identifier (Trace ID) for the service test request, places the call chain identifier in a call context object Threadlocal, when the service request arrives at the next hop, the call chain Agent acquires the previously set call context from Threadlocal, then increments the identifier RPC ID of the service call by a sequence number, and stores the access log of the service call in a database. And the dial testing device acquires the access logs belonging to the same service testing request according to the calling chain identifier. For example, referring to fig. 3, a description will be given of the generation process of the access log: the method comprises the steps that a dial testing device initiates a service testing request (for example, a virtual machine is created) to a target service cluster of a public cloud, an APP2 in the current service cluster receives the service testing request, a calling chain Agent in the target service cluster allocates a calling chain identifier TRACE ID of 100 and a service calling identifier RPC ID of 1 to the service testing request, an access log is generated and stored in a calling context object Thread Local, then the APP2 needs to initiate service calls to APP3, APP1, APP4, APP5 and APP6 in sequence, and according to the access log of upper-layer service calls in the calling context object, the identifier of the service call 2 calling the APP2 is recorded as 1.1, the identifiers of subsequent service calls are incremented by one sequence number, and the sequence numbers are 1.2, 1.3, 1.4 and 1.5 in sequence, and so on. The access log generated by each service call also includes call chain identification, called party service attribute information, comment information, and the like.
Referring to table 1, a possible data structure of an access log is provided in an embodiment of the present invention, where the access log includes the following information:
Figure BDA0002369183920000071
Figure BDA0002369183920000081
TABLE 1
S205, obtaining a call chain of the service test request according to the generated call log, and obtaining a performance parameter value of each hop in the call chain, wherein each hop comprises processing time consumption and a processing result.
Specifically, the call chain includes components for executing the business test request in the target service cluster, and the components are used for representing a call relationship between the components, and include an application program, a database, middleware, and the like. The performance parameter represents a parameter describing the merits of caller and callee service calls in the call chain, such as: the performance parameters include: time consuming processing and processing results. The dial testing device acquires a plurality of access logs generated by the service testing request, matches the access logs belonging to the same service testing request according to the calling chain identification of the access logs, and splices according to the service calling identification and the father identification in the access logs, so that a finished calling chain of the service testing request is formed, and each node in the calling chain identifies one component. The processing time consumption of each hop can be calculated according to the timestamp of the event, and the processing result of each service call is obtained according to the Value field in the access log, wherein each hop represents each initiated service call. The generation of the call chain can clearly know the components and the call relation among the components which are commonly used by the service test request, and inform the acquisition of the performance parameters of each service call, so that the bottleneck of service execution can be determined through the call relation and the performance parameters, and the targeted optimization is performed on the service flow. For example, the processing result of the service call of calling APP2 by APP1 is abnormal, and the user quickly locates the fault position according to the information recorded in the access log, and removes the fault.
S206, extracting the access log with processing time exceeding a preset value or processing result being abnormal from the generated call log, and marking the access log.
Specifically, the access logs with processing time consumption exceeding a preset value or processing results being abnormal are marked, so that the bottleneck position and the fault position of service calling can be known, and the extracted access logs can be displayed to business personnel through a Portal.
It can be seen from the above description that, a service test request is initiated to the public cloud, a call log generated by the public cloud in the service test request every service call is obtained, a call chain is constructed according to the generated call log, and a performance parameter of the call chain is obtained, so that the performance of the public cloud can be tested through a service layer, a bottleneck and a fault point of a service flow can be determined according to a test result, and the service flow is optimized.
Referring to fig. 4, a schematic structural diagram of a public cloud dial testing apparatus according to an embodiment of the present invention is provided, which is hereinafter referred to as an apparatus for short, and the apparatus according to the embodiment of the present invention is configured to execute the public cloud dial testing method shown in fig. 1, where the reference examples and terms may refer to the description of fig. 1. The device 4 comprises: the device comprises an acquisition module 401, a sending module 402, an acquisition module 403 and a generation module 404.
An obtaining module 401, configured to obtain a load parameter value of a public cloud.
A sending module 402, configured to send a service test request to the public cloud when the load parameter value is smaller than a preset value.
An acquiring module 403, configured to acquire a call log generated by each service call in a process that the public cloud executes the service test request.
A generating module 404, configured to obtain, according to the generated access log, a call chain of the service test request, and obtain a performance parameter value of the call chain.
The embodiment of the present invention and the embodiment of the method in fig. 1 are based on the same concept, and the technical effects brought by the embodiment are also the same, and the specific process may refer to the description of the first embodiment of the method, and will not be described herein again.
Further optionally, the call log comprises: one or more of a test identifier, a call chain identification, an identifier of a service call, a parent identifier of a service call, service attribute information of a callee, annotation information of the callee, and additional information of the callee.
Optionally, the obtaining module 401 is configured to:
determining a plurality of service clusters corresponding to the public cloud, selecting a target service cluster to be tested from the plurality of service clusters, and periodically acquiring a load parameter value of the target service cluster, wherein the load parameter value comprises: one or more of CPU usage and disk idleness.
The sending module 402 is configured to:
and selecting a target test script from a preset test script library, and sending a service test request to the target service cluster according to the target test script.
Optionally, the collecting module 403 is configured to:
and acquiring a call chain identifier distributed for the service test request, and acquiring an access log generated before each service call in the process of executing the service test request by the public cloud according to the call chain identifier.
Optionally, the generating module 404 is configured to:
obtaining a calling chain of the service test request according to the generated calling log, and obtaining a performance parameter value of each hop in the calling chain, wherein the performance parameter value comprises processing time consumption and a processing result;
and extracting an access log which consumes more time than a preset value or an access log with an abnormal processing result from the generated call log, and marking the access log.
The embodiment of the present invention and the second method embodiment are based on the same concept, and the technical effects brought by the embodiment are also the same, and specific principles can refer to the description of the second method embodiment, and are not described herein again.
Referring to fig. 5, a schematic structural diagram of a dial testing apparatus (hereinafter, referred to as a dial testing apparatus) for public cloud according to an embodiment of the present invention is shown, where in the embodiment of the present invention, the dial testing apparatus 5 includes a processor 501, a memory 502, and a transceiver 503. The transceiver 503 is used for transmitting and receiving data to and from an external device. The number of processors 501 in the dial-up test device 5 may be one or more. In some embodiments of the invention, the processor 501, the memory 502, and the transceiver 503 may be connected by a bus system or other means. The dial testing device 5 may be used to perform the method shown in fig. 1. With regard to the meaning and examples of the terms involved in the present embodiment, reference may be made to the embodiment corresponding to fig. 1. And will not be described in detail herein.
Wherein the memory 502 stores program code therein. The processor 501 is configured to call up program code stored in the memory 502 for performing the following operations:
acquiring a load parameter value of a public cloud;
when the load parameter value is smaller than a preset value, sending a service test request to the public cloud;
acquiring a call log generated by each service call in the process that the public cloud executes the service test request;
and obtaining a call chain of the service test request according to the generated access log and obtaining a performance parameter value of the call chain.
In some embodiments of the invention, the call log comprises: one or more of a test identifier, a call chain identification, an identifier of a service call, a parent identifier of a service call, service attribute information of a callee, annotation information of the callee, and additional information of the callee.
In some embodiments of the present invention, the processor 501 executing the obtaining of the load parameter value of the public cloud includes:
determining a plurality of service clusters corresponding to the public cloud, selecting a target service cluster to be tested from the plurality of service clusters, and periodically acquiring a load parameter value of the target service cluster, wherein the load parameter value comprises: one or more of CPU usage and disk idleness.
In some embodiments of the present invention, the executing, by processor 501, when the load parameter value is smaller than a preset value, the initiating a service test request to the public cloud includes:
and selecting a target test script from a preset test script library, and sending a service test request to the target service cluster according to the target test script.
In some embodiments of the present invention, the executing, by processor 501, the call log generated by each service call in the process of collecting the service test request executed by the public cloud includes:
and acquiring a call chain identifier distributed for the service test request, and acquiring an access log generated before each service call in the process of executing the service test request by the public cloud according to the call chain identifier.
In some embodiments of the present invention, the processor 501 executes the call chain for obtaining the service test request according to the generated access log, and obtaining the performance parameter value of the call chain includes:
obtaining a calling chain of the service test request according to the generated calling log, and obtaining a performance parameter value of each hop in the calling chain, wherein the performance parameter value comprises processing time consumption and a processing result;
and extracting an access log which consumes more time than a preset value or an access log with an abnormal processing result from the generated call log, and marking the access log.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (13)

1. A method for dial testing of a public cloud is executed by a dial testing device, and the dial testing device is connected to the public cloud through a service interface of the public cloud, and the method comprises the following steps: acquiring a load parameter value of the public cloud through a service interface of the public cloud, wherein the load parameter value is used for identifying a parameter value of the load degree of the public cloud;
when the load parameter value is smaller than a preset value, sending a service test request to the public cloud, wherein the service test request is used for simulating a real service scene of a service; acquiring a call log generated by each service call in the process of executing a service test request by a public cloud;
and obtaining a call chain of the service test request and a performance parameter value of the call chain according to the generated call log.
2. The method of claim 1, wherein obtaining the load parameter value of the public cloud comprises:
determining a plurality of service clusters corresponding to the public cloud, selecting a target service cluster to be tested from the plurality of service clusters of the public cloud, and periodically acquiring a load parameter value of the target service cluster, wherein the load parameter value comprises: one or more of CPU usage and disk idleness.
3. The method of claim 2, wherein the load parameter value comprises a load parameter value for a public cloud as a whole or a load parameter value for a service cluster in the public cloud.
4. The method of claim 1, wherein sending the business test request to the public cloud comprises:
and selecting a target test script from a preset test script library, and sending the service test request to the target cluster according to the target test script.
5. The method of claim 1, wherein the call log comprises: one or more of a test identifier, a call chain identification, an identifier of a service call, a parent identifier of a service call, service attribute information of a callee, annotation information of the callee, and additional information of the callee.
6. The method of claim 1, wherein the collecting the call log generated by each service call in the process of executing the business test request by the public cloud comprises:
and acquiring a call chain identifier distributed for the service test request, and acquiring a call log generated before each service call in the process of executing the service test request by the public cloud according to the call chain identifier.
7. A public cloud dial testing device is characterized in that the dial testing device is connected to a public cloud through a service interface of the public cloud, and the device comprises an acquisition module, a sending module, an acquisition module and a generation module;
the obtaining module is used for obtaining a load parameter value of the public cloud through a service interface of the public cloud, wherein the load parameter value is used for identifying a parameter value of the load degree of the public cloud;
the sending module is used for sending a service test request to the public cloud when the load parameter value is smaller than a preset value;
the acquisition module is used for acquiring a call log generated by each service call in the process that the public cloud executes the service test request;
and the generating module is used for obtaining a call chain of the service test request according to the generated call log and obtaining a performance parameter value of the call chain.
8. The apparatus of claim 7,
the obtaining module is further configured to determine a plurality of service clusters corresponding to the public cloud, select a target service cluster to be tested from the plurality of service clusters of the public cloud, and periodically obtain a load parameter value of the target service cluster, where the load parameter value includes: one or more of CPU usage and disk idleness.
9. The apparatus of claim 8, wherein the load parameter value comprises a load parameter value for a public cloud as a whole or a load parameter value for a service cluster in the public cloud.
10. The apparatus of claim 7,
the sending module is further configured to select a target test script from a preset test script library, and send the service test request to the target cluster according to the target test script.
11. The apparatus of claim 7, wherein the call log comprises: one or more of a test identifier, a call chain identification, an identifier of a service call, a parent identifier of a service call, service attribute information of a callee, annotation information of the callee, and additional information of the callee.
12. The apparatus of claim 7,
the generation module is further configured to acquire a call chain identifier allocated to the service test request, and acquire, according to the call chain identifier, a call log generated before each service call in the process of executing the service test request by the public cloud.
13. An apparatus for public cloud testing, the apparatus comprising a processor and a memory, the memory storing computer instructions, the processor executing the computer instructions in the memory to perform the operational steps of the method of any one of claims 1 to 6 when the apparatus is run.
CN202010045373.6A 2015-12-30 2015-12-30 Public cloud dial testing method and device Active CN111258867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010045373.6A CN111258867B (en) 2015-12-30 2015-12-30 Public cloud dial testing method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511027535.9A CN106936659B (en) 2015-12-30 2015-12-30 Public cloud dial testing method and device
CN202010045373.6A CN111258867B (en) 2015-12-30 2015-12-30 Public cloud dial testing method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201511027535.9A Division CN106936659B (en) 2015-12-30 2015-12-30 Public cloud dial testing method and device

Publications (2)

Publication Number Publication Date
CN111258867A CN111258867A (en) 2020-06-09
CN111258867B true CN111258867B (en) 2022-04-22

Family

ID=59441336

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010045373.6A Active CN111258867B (en) 2015-12-30 2015-12-30 Public cloud dial testing method and device
CN201511027535.9A Active CN106936659B (en) 2015-12-30 2015-12-30 Public cloud dial testing method and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201511027535.9A Active CN106936659B (en) 2015-12-30 2015-12-30 Public cloud dial testing method and device

Country Status (1)

Country Link
CN (2) CN111258867B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833184B (en) * 2018-06-29 2020-10-27 腾讯科技(深圳)有限公司 Service fault positioning method and device, computer equipment and storage medium
CN109005085B (en) * 2018-08-24 2021-01-29 北京奇艺世纪科技有限公司 Service availability monitoring system, method, device and equipment
CN109491885A (en) * 2018-09-26 2019-03-19 深圳壹账通智能科技有限公司 Test problem localization method, device, computer equipment and storage medium
CN110007957A (en) * 2018-12-17 2019-07-12 阿里巴巴集团控股有限公司 Call link construction method, device and equipment
CN109976921A (en) * 2019-02-25 2019-07-05 青岛迅隆信息科技有限责任公司 RPC service or the specified consuming method and device of message, can storage medium and terminal
CN112242917A (en) * 2019-07-19 2021-01-19 广州汽车集团股份有限公司 Internet of vehicles service quality detection method and system
CN111193636A (en) * 2019-10-21 2020-05-22 腾讯科技(深圳)有限公司 Method and device for testing availability of single machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581177A (en) * 2013-10-24 2014-02-12 华为技术有限公司 Method and device for managing virtual machine
CN104333488A (en) * 2014-11-04 2015-02-04 哈尔滨工业大学 Cloud service platform performance test method

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593135A (en) * 2008-05-29 2009-12-02 国际商业机器公司 In distributed integrated environment, focus on the apparatus and method of business process failure
US8990813B2 (en) * 2010-03-29 2015-03-24 Red Hat, Inc. Automated virtual machine image deployment and testing by accessing downloadable test packages and dynamically-changing test parameters
CN102075384A (en) * 2010-12-20 2011-05-25 创新科存储技术有限公司 Performance test system and method
CN102693177B (en) * 2011-03-23 2015-02-04 中国移动通信集团公司 Fault diagnosing and processing methods of virtual machine as well as device and system thereof
CN102222042B (en) * 2011-06-28 2014-04-23 北京新媒传信科技有限公司 Automatic software testing method based on cloud computing
CN102710663B (en) * 2012-06-21 2015-01-07 北京奇虎科技有限公司 Method and device for obtaining cloud service
CN103580934B (en) * 2012-07-18 2018-09-04 深圳市腾讯计算机系统有限公司 A kind of cloud business monitoring method and device
CN103699474A (en) * 2012-09-27 2014-04-02 鸿富锦精密工业(深圳)有限公司 Storage equipment monitoring system and method
CN103793237A (en) * 2012-10-31 2014-05-14 中国移动通信集团浙江有限公司 J2EE application system performance bottleneck locating method and device
CN103729266A (en) * 2013-12-30 2014-04-16 安徽科大讯飞信息科技股份有限公司 Method and system for dial testing of terminal and cloud terminal
US9378123B2 (en) * 2013-12-31 2016-06-28 International Business Machines Corporation Testing of transaction tracking software
US9916185B2 (en) * 2014-03-18 2018-03-13 International Business Machines Corporation Managing processing associated with selected architectural facilities
CN104219316B (en) * 2014-09-12 2018-03-23 微梦创科网络科技(中国)有限公司 A kind of call request processing method and processing device in distributed system
CN104765689B (en) * 2015-04-20 2018-09-21 广州华多网络科技有限公司 A kind of interface capability data supervise method and apparatus in real time

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581177A (en) * 2013-10-24 2014-02-12 华为技术有限公司 Method and device for managing virtual machine
CN104333488A (en) * 2014-11-04 2015-02-04 哈尔滨工业大学 Cloud service platform performance test method

Also Published As

Publication number Publication date
CN111258867A (en) 2020-06-09
CN106936659B (en) 2020-02-14
CN106936659A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN111258867B (en) Public cloud dial testing method and device
US10521322B2 (en) Modeling and testing of interactions between components of a software system
CN108256118B (en) Data processing method, device, system, computing equipment and storage medium
US20200327045A1 (en) Test System and Test Method
CN109885496B (en) Test log management method and system
KR102134547B1 (en) Risk identification method, risk identification device, and cloud risk identification device and system
CN111327647A (en) Method and device for providing service to outside by container and electronic equipment
CN112350854B (en) Flow fault positioning method, device, equipment and storage medium
CN107168844B (en) Performance monitoring method and device
CN102385536B (en) Method and system for realization of parallel computing
CN108108296B (en) Cloud testing method, server and client
CN112313627A (en) Mapping mechanism of events to serverless function workflow instances
CN107092556B (en) Test method, device and equipment
CN113608751A (en) Operation method, device and equipment of reasoning service platform and storage medium
CN110809051B (en) Service data processing method and system
CN112799970A (en) Test data processing method, device, electronic equipment and medium
CN106210159B (en) Domain name resolution method and device
CN109086185B (en) Fault detection method, device and equipment of storage cluster and storage medium
Tao et al. Cloud-based infrastructure for mobile testing as a service
CN106230666B (en) A kind of monitoring method and monitoring system of service availability
US11360871B1 (en) Automatic optimization and hardening of application images
CN110795330A (en) Monkey pressure testing method and device
US10949232B2 (en) Managing virtualized computing resources in a cloud computing environment
CN113778709A (en) Interface calling method, device, server and storage medium
CN108650251B (en) Display processing method and device for network security comprehensive situation awareness data

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