CN111221714A - Service dial testing method, device, system and storage medium - Google Patents

Service dial testing method, device, system and storage medium Download PDF

Info

Publication number
CN111221714A
CN111221714A CN202010002063.6A CN202010002063A CN111221714A CN 111221714 A CN111221714 A CN 111221714A CN 202010002063 A CN202010002063 A CN 202010002063A CN 111221714 A CN111221714 A CN 111221714A
Authority
CN
China
Prior art keywords
dial
task
server
service
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010002063.6A
Other languages
Chinese (zh)
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.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya 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 Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN202010002063.6A priority Critical patent/CN111221714A/en
Publication of CN111221714A publication Critical patent/CN111221714A/en
Pending legal-status Critical Current

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
    • G06F11/3433Recording 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 for load management
    • 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
    • G06F11/3419Recording 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 by assessing time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a service dial testing method, a device, a system and a storage medium. The method comprises the following steps: starting a dial testing task at set dial testing intervals; distributing the dial testing task to at least two task executors for execution; acquiring a plurality of servers contained in a service to be dial-tested corresponding to the dial-testing task; respectively checking the plurality of servers to obtain the checking result of each server; adjusting the state of the server according to the checking result; wherein the state comprises a shielding state or an operating state. According to the service dial testing method provided by the embodiment of the invention, the dial testing task is distributed to at least two task executors to be executed, so that the condition that the whole dial testing task is influenced when a certain task executor fails can be avoided, and the reliability of service dial testing is improved; and the state of the server is adjusted according to the checking result of the server, so that the server is dynamically switched to the service to be tested.

Description

Service dial testing method, device, system and storage medium
Technical Field
The embodiment of the invention relates to the technical field of server health examination, in particular to a service dial testing method, device and system and a storage medium.
Background
Health checks (dial tests) are an important mechanism in load balancing. After all the load balancing services are started, the health check mechanism can avoid the influence of the abnormality of the back-end server on the whole service and improve the whole availability of the front-end service. After the health check is started, the load balance can automatically distribute the request to the server with normal service according to the health dial test result, and meanwhile, the health check mechanism can inform related personnel to process the abnormal server in time through the alarm.
In the prior art, a single server is usually adopted to execute the dial testing tasks, and when the server fails, all the dial testing tasks executed in the server are affected, so that the reliability is not high.
Disclosure of Invention
The embodiment of the invention provides a service dial testing method, a device, a system and a storage medium, which are used for realizing the dial testing of services and improving the reliability of the dial testing.
In a first aspect, an embodiment of the present invention provides a service dial testing method, including:
starting a dial testing task at set dial testing intervals; distributing the dial testing task to at least two task executors for execution;
acquiring a plurality of servers contained in a service to be dial-tested corresponding to the dial-testing task;
respectively checking the plurality of servers to obtain the checking result of each server;
and adjusting the state of the server according to the checking result.
Further, the step of distributing the dial testing task to at least two task executors to execute comprises the following steps:
dividing the dial testing task into a plurality of subtasks according to the area of the service to be dial tested;
and distributing the plurality of subtasks to the task executors corresponding to the areas respectively for execution.
Further, the step of distributing the plurality of subtasks to the task executors corresponding to the respective areas for execution includes:
and if the current task executor is abnormal, redistributing the subtasks distributed to the current task executor to other normal task executors for execution.
Further, acquiring a plurality of servers included in the service to be dial-tested corresponding to the dial-testing task includes:
acquiring a domain name of a service to be dial-up tested corresponding to the dial-up test task;
and acquiring the IPs of a plurality of servers contained in the service to be dial-up and tested according to the domain name.
Further, the checking the plurality of servers respectively to obtain the checking result of each server includes:
sending check information to each server, and acquiring the overtime duration of feedback information of each server;
and if the overtime duration exceeds the set duration, the check result of the server is abnormal.
Further, adjusting the state of the server according to the checking result includes:
if the checking result is abnormal, judging whether the continuous abnormal times of the server exceed a set threshold value, and if so, adjusting the state of the server to be a shielding state;
and if the checking result is normal and the current state of the server is a shielding state, restoring the state of the server to a working state.
Further, after the adjusting the state of the server to the shielding state, the method further includes: calculating the fault time length of the server according to the continuous abnormal times, the set dial testing interval and the overtime time length; and rolling back the service processed by the server according to the fault duration, and sending the rolled back service to the server in the working state for processing.
In a second aspect, an embodiment of the present invention further provides a service dial testing apparatus, including:
the dial testing task starting module is used for starting dial testing tasks at set dial testing intervals; distributing the dial testing task to at least two task executors for execution;
the to-be-dial-test service acquisition module is used for acquiring a plurality of servers contained in the to-be-dial-test service corresponding to the dial test task;
the inspection result acquisition module is used for respectively inspecting the plurality of servers to obtain the inspection results of the servers;
and the server state adjusting module is used for adjusting the state of the server according to the checking result.
In a third aspect, an embodiment of the present invention further provides a service dial testing system, including: the system comprises a dial testing task scheduler, at least two task executors, a control interface and a service cluster;
the dial testing task scheduler is used for starting dial testing tasks at set dial testing intervals and distributing the dial testing tasks to at least two task executors for execution;
the at least two task executors are used for acquiring a plurality of servers contained in the service to be dial-tested corresponding to the dial-testing task; respectively checking the plurality of servers to obtain the checking result of each server; adjusting the state of the server according to the checking result;
the control interface is used for receiving configuration information of a user on the dial testing task and a viewing instruction of the user on the execution state of the dial testing task;
the service cluster is used for maintaining dial testing configuration.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the service dial testing method according to the embodiment of the present invention.
According to the embodiment of the invention, the dial testing tasks are started at set dial testing intervals and are distributed to at least two task executors to be executed; acquiring a plurality of servers contained in a service to be dial-tested corresponding to a dial-testing task; respectively checking the plurality of servers to obtain the checking result of each server; and adjusting the state of the server according to the checking result. According to the service dial testing method provided by the embodiment of the invention, the dial testing task is distributed to at least two task executors to be executed, so that the condition that the whole dial testing task is influenced when a certain task executor fails can be avoided, and the reliability of service dial testing is improved; and the state of the server is adjusted according to the checking result of the server, so that the server is dynamically switched to the service to be tested.
Drawings
Fig. 1 is a flowchart of a service dial-up test method according to a first embodiment of the present invention;
fig. 2 is an exemplary diagram of a service dial testing method according to a first embodiment of the present invention;
FIG. 3 is an exemplary graph of calculating a fault duration in accordance with a first embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service dial testing device in the second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a service dial testing system in the third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a service dial testing method according to an embodiment of the present invention, where the present embodiment is applicable to a service dial testing situation, and the method may be executed by a service dial testing apparatus, where the apparatus may be composed of hardware and/or software, and may be generally integrated in a device with a service dial testing function, where the device may be an electronic device such as a server or a server cluster. As shown in fig. 1, the method specifically includes the following steps:
step 110, starting a dial testing task at set dial testing intervals; and distributing the dial testing task to at least two task executors for execution.
Wherein the set dial test interval may be a user-set interval, such as any value between 2-10 seconds. The dial testing task may be a mechanism for performing a timing check on a service requiring a health check, and is executed by a set server (task executor). In this embodiment, the number of task performers is at least two, and the task performers may be arranged in different areas.
In the application scenario, the services to be dial-up tested can include a plurality of services, and the services are divided according to areas (such as provinces), and each service to be dial-up tested is realized by a plurality of servers. The system can simultaneously carry out dial testing on a plurality of services to be dial tested.
Optionally, the manner of allocating the dial testing task to at least two task executors to execute may be: dividing the dial testing task into a plurality of subtasks according to the area of the service to be dial tested; and distributing the plurality of subtasks to the task executors corresponding to the areas respectively for execution.
One subtask can perform dial testing on one or more services to be dial tested. The method for dividing the dial testing task into a plurality of subtasks according to the area of the service to be dial tested can be as follows: and dividing the dial testing task corresponding to the service to be dial tested with the short regional distance into a subtask. For example: the area corresponding to the service to be dial-tested comprises A, B, C, D, E, F, G and the like, wherein the distance between A and B is short, the distance between C and D is short, and the distance between E and F is short, so that the dial-testing task performed on the service to be dial-tested of A and B can be divided into a subtask; dividing the dial testing tasks of the services to be dial tested of the C and the D into a subtask; dividing the dial testing tasks of the services to be dial tested of the E and the F into a subtask; and dividing the dial testing task of the service to be dial tested of the G into one subtask. The task executors are arranged in different areas, and the plurality of subtasks are respectively allocated to the task executors corresponding to the areas to execute, such that the area where the service to be dial-up and tested included in the subtask is located is obtained, and the subtask is allocated to the task executor in the area closest to the area where the service to be dial-up and tested is located. For example, assuming that the task executors are set at A, C, E and G, which are the first task executor, the second task executor, the third task executor and the fourth task executor respectively, the subtasks including the services to be dial-tested a and B are allocated to the first task executor to be executed, the subtasks including the services to be dial-tested C and D are allocated to the second task executor to be executed, the subtasks including the services to be dial-tested E and F are allocated to the third task executor to be executed, and the subtasks including the services to be dial-tested G are allocated to the fourth task executor.
Optionally, the allocating the multiple subtasks to the task executors corresponding to the respective areas respectively for execution includes: and if the current task executor is abnormal, redistributing the subtasks distributed to the current task executor to other normal task executors for execution.
In the implementation, due to the fact that the plurality of task executors are arranged, when one of the task executors has a problem and cannot execute the dial testing task, the subtasks which are already distributed to the task executor having the problem are redistributed to other normal task executors to be executed, and therefore normal execution of the dial testing task is guaranteed, and the dial testing task is not affected.
And step 120, acquiring a plurality of servers contained in the service to be dial tested corresponding to the dial testing task.
The service to be dial-up and tested has a domain name, and is realized by a plurality of servers, and each server has an Internet Protocol (IP) Address. Specifically, the manner of obtaining the plurality of servers included in the service to be dial-tested corresponding to the dial-testing task may be: and acquiring the domain name of the service to be dial-tested corresponding to the dial-testing task, and acquiring the IP addresses of a plurality of servers contained in the service to be dial-tested according to the domain name. In this embodiment, the domain name and the IP address have a corresponding relationship, and after the domain name is obtained, a plurality of IP addresses corresponding to the domain name can be obtained. And after the IP address of each server is obtained, each server is accessed through the IP address so as to realize dial testing of each server.
Step 130, checking each of the plurality of servers to obtain the checking result of each server.
Wherein, the detection result can be abnormal or normal. In this embodiment, in order to increase the detection speed, a plurality of threads may be created, and a plurality of servers may be checked in parallel. Specifically, the plurality of servers are respectively checked, and the process of obtaining the check result of each server may be: sending check information to each server, and acquiring the overtime duration of feedback information of each server; and if the overtime duration exceeds the set duration, the check result of the server is abnormal.
The check information may be an HTTP request, or the like. The set time period may be set to any value between 5 and 10 seconds. And starting timing after sending the check information to each server, then acquiring the timeout duration of the feedback information returned by each server, wherein if the timeout duration exceeds the set duration, the check result of the server is abnormal, and otherwise, the check result of the server is normal.
And step 140, adjusting the state of the server according to the checking result.
Wherein the state comprises a shielding state or an operating state. The shielded state may be understood as not accessing the server and accessing other normal servers when a user access request is received. In this embodiment, the manner of adjusting the state of the server according to the check result may be: if the checking result is abnormal, judging whether the number of times of continuous abnormality of the server exceeds a set threshold value, and if so, adjusting the state of the server to be a shielding state; and if the checking result is normal and the current state of the server is the shielding state, restoring the state of the server to the working state.
Wherein the set threshold value can be set to any value between 3 and 5. Specifically, if the current server is abnormal and the number of consecutive abnormalities exceeds a set threshold, the state of the current server is adjusted to the shielding state, and if the number of consecutive abnormalities does not exceed the set threshold, the state of the current server is continuously maintained to be the working state. If the checking result of the current server is normal and the state of the current server is a shielding state, restoring the state of the current server to a working state; and if the current server state is the working state, continuously keeping the current server state as the working state. Exemplarily, fig. 2 is an exemplary diagram of a service dial test method in this embodiment.
According to the technical scheme of the embodiment, the dial testing tasks are started at set dial testing intervals and are distributed to at least two task executors to be executed; acquiring a plurality of servers contained in a service to be dial-tested corresponding to a dial-testing task; respectively checking the plurality of servers to obtain the checking result of each server; and adjusting the state of the server according to the checking result. According to the service dial testing method provided by the embodiment of the invention, the dial testing task is distributed to at least two task executors to be executed, so that the condition that the whole dial testing task is influenced when a certain task executor fails can be avoided, and the reliability of service dial testing is improved; and the state of the server is adjusted according to the checking result of the server, so that the server is dynamically switched to the service to be tested.
Optionally, after the state of the server is adjusted to the shielding state, the method further includes: calculating the fault time length of the server according to the continuous abnormal times, the set dial testing interval and the overtime time length; and rolling back the service processed by the server according to the fault duration, and sending the rolled back service to the server in the working state for processing.
Specifically, the failure time of the server is calculated according to the number of continuous anomalies, the set dial test interval and the timeout duration, and according to the following formula: the failure duration is the number of abnormality times, the timeout duration + the preset dialing interval (the number of abnormality times-1). In this embodiment, within the fault duration, the server cannot normally process the service, but the system still allocates the service to the server, rolls back the service processed by the server according to the fault duration, and sends the rolled-back service to the server in the working state for processing, thereby ensuring normal processing of the service. For example, fig. 3 is an exemplary diagram of calculating the fault time length according to the present embodiment. As shown in fig. 3, the timeout period is set to 5 seconds, the preset dial-up interval is 2 seconds, and the number of abnormal times is 3, so that the obtained fault period is 19 seconds.
Example two
Fig. 4 is a schematic structural diagram of a service dial testing device according to a second embodiment of the present invention. As shown in fig. 4, the apparatus includes: the dial testing task starting module 210, the to-be-dial-tested service obtaining module 220, the checking result obtaining module 230 and the server state adjusting module 240.
A dial testing task starting module 210, configured to start a dial testing task every set dial testing interval; distributing the dial testing task to at least two task executors for execution;
a to-be-dial-test service acquisition module 220, configured to acquire a plurality of servers included in a to-be-dial-test service corresponding to a dial test task;
an inspection result obtaining module 230, configured to perform inspection on the multiple servers respectively to obtain inspection results of the servers;
a server state adjusting module 240 for adjusting the state of the server according to the checking result; wherein the state comprises a shielding state or an operating state.
Optionally, the dial testing task starting module 210 is further configured to:
dividing the dial testing task into a plurality of subtasks according to the area of the service to be dial tested;
and distributing the plurality of subtasks to the task executors corresponding to the areas respectively for execution.
Optionally, the dial testing task starting module 210 is further configured to:
and if the current task executor is abnormal, redistributing the subtasks distributed to the current task executor to other normal task executors for execution.
Optionally, the to-be-dial-test service obtaining module 220 is further configured to:
acquiring a domain name of a service to be dial-up tested corresponding to a dial-up test task;
and acquiring the Internet protocol IP addresses of a plurality of servers contained in the service to be dial-up tested according to the domain name.
Optionally, the inspection result obtaining module 230 is further configured to:
sending check information to each server, and acquiring the overtime duration of feedback information of each server;
and if the overtime duration exceeds the set duration, the check result of the server is abnormal.
Optionally, the server state adjusting module 240 is further configured to:
if the checking result is abnormal, judging whether the number of times of continuous abnormality of the server exceeds a set threshold value, and if so, adjusting the state of the server to be a shielding state;
and if the checking result is normal and the current state of the server is the shielding state, restoring the state of the server to the working state.
Optionally, the method further includes: the fault duration determining module is used for calculating the fault duration of the server according to the continuous abnormal times, the set dial testing interval and the overtime duration; and rolling back the service processed by the server according to the fault duration, and sending the rolled back service to the server in the working state for processing.
The device can execute the methods provided by all the embodiments of the invention, and has corresponding functional modules and beneficial effects for executing the methods. For details not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present invention.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a service dial testing system according to a third embodiment of the present invention. As shown in fig. 5, the system includes: the system comprises a dial testing task scheduler, at least two task executors, a control interface and a service cluster.
And the dial testing task scheduler is used for starting dial testing tasks at set dial testing intervals and distributing the dial testing tasks to at least two task executors for execution. The at least two task executors are used for acquiring a plurality of servers contained in the service to be dial-tested corresponding to the dial-testing task; respectively checking the plurality of servers to obtain the checking result of each server; and adjusting the state of the server according to the checking result. The control interface is used for receiving configuration information of the dial testing task from a user and a viewing instruction of the execution state of the dial testing task from the user. The service cluster is used for maintaining the dial-up test configuration.
Wherein the service cluster may be a zookeeper cluster. The control interface is responsible for the uniform configuration of the dial testing tasks, including the addition and deletion of the tasks and the attribute configuration; and the method can also be used for functions such as task state viewing and the like.
Example four
Fig. 6 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 6 illustrates a block diagram of a computer device 312 suitable for use in implementing embodiments of the present invention. The computer device 312 shown in FIG. 6 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention. Device 312 is a typical service dialing function computing device.
As shown in FIG. 6, computer device 312 is in the form of a general purpose computing device. The components of computer device 312 may include, but are not limited to: one or more processors 316, a storage device 328, and a bus 318 that couples the various system components including the storage device 328 and the processors 316.
Bus 318 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 312 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 312 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 328 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 330 and/or cache Memory 332. The computer device 312 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 334 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 318 by one or more data media interfaces. Storage 328 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 336 having a set (at least one) of program modules 326 may be stored, for example, in storage 328, such program modules 326 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which may comprise an implementation of a network environment, or some combination thereof. Program modules 326 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
The computer device 312 may also communicate with one or more external devices 314 (e.g., keyboard, pointing device, camera, display 324, etc.), with one or more devices that enable a user to interact with the computer device 312, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 312 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 322. Also, computer device 312 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via Network adapter 320. As shown, network adapter 320 communicates with the other modules of computer device 312 via bus 318. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 312, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, among others.
Processor 316 executes various functional applications and data processing, such as implementing the service call testing methods provided by the above-described embodiments of the present invention, by executing programs stored in storage 328.
EXAMPLE five
The fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the service dial testing method provided in the fifth embodiment of the present invention.
Of course, the computer program stored on the computer-readable storage medium provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the service dial test method provided in any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A service dial testing method, comprising:
starting a dial testing task at set dial testing intervals; distributing the dial testing task to at least two task executors for execution;
acquiring a plurality of servers contained in a service to be dial-tested corresponding to the dial-testing task;
respectively checking the plurality of servers to obtain the checking result of each server;
adjusting the state of the server according to the checking result; wherein the state comprises a shielding state or an operating state.
2. The method of claim 1, wherein distributing the dial testing task to at least two task executors for execution comprises:
dividing the dial testing task into a plurality of subtasks according to the area of the service to be dial tested;
and distributing the plurality of subtasks to the task executors corresponding to the areas respectively for execution.
3. The method according to claim 2, wherein the step of distributing the plurality of subtasks to the task executors corresponding to the areas for execution respectively comprises:
and if the current task executor is abnormal, redistributing the subtasks distributed to the current task executor to other normal task executors for execution.
4. The method according to claim 1, wherein obtaining a plurality of servers included in the service to be dial-up tested corresponding to the dial-up test task comprises:
acquiring a domain name of a service to be dial-up tested corresponding to the dial-up test task;
and acquiring the Internet protocol IP addresses of a plurality of servers contained in the service to be dial-up tested according to the domain name.
5. The method of claim 1, wherein the checking the plurality of servers respectively to obtain the checking result of each server comprises:
sending check information to each server, and acquiring the overtime duration of feedback information of each server;
and if the overtime duration exceeds the set duration, the check result of the server is abnormal.
6. The method of claim 5, wherein adjusting the state of the server according to the checking result comprises:
if the checking result is abnormal, judging whether the continuous abnormal times of the server exceed a set threshold value, and if so, adjusting the state of the server to be a shielding state;
and if the checking result is normal and the current state of the server is a shielding state, restoring the state of the server to a working state.
7. The method of claim 6, after adjusting the state of the server to the masked state, further comprising: calculating the fault time length of the server according to the continuous abnormal times, the set dial testing interval and the overtime time length; and rolling back the service processed by the server according to the fault duration, and sending the rolled back service to the server in the working state for processing.
8. A service dial-up test device, comprising:
the dial testing task starting module is used for starting dial testing tasks at set dial testing intervals; distributing the dial testing task to at least two task executors for execution;
the to-be-dial-test service acquisition module is used for acquiring a plurality of servers contained in the to-be-dial-test service corresponding to the dial test task;
the inspection result acquisition module is used for respectively inspecting the plurality of servers to obtain the inspection results of the servers;
the server state adjusting module is used for adjusting the state of the server according to the checking result; wherein the state comprises a shielding state or an operating state.
9. A service dial testing system, comprising: the system comprises a dial testing task scheduler, at least two task executors, a control interface and a service cluster;
the dial testing task scheduler is used for starting dial testing tasks at set dial testing intervals and distributing the dial testing tasks to at least two task executors for execution;
the at least two task executors are used for acquiring a plurality of servers contained in the service to be dial-tested corresponding to the dial-testing task; respectively checking the plurality of servers to obtain the checking result of each server; adjusting the state of the server according to the checking result;
the control interface is used for receiving configuration information of a user on the dial testing task and a viewing instruction of the user on the execution state of the dial testing task;
the service cluster is used for maintaining dial testing configuration.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a service call testing method according to any one of claims 1 to 7.
CN202010002063.6A 2020-01-02 2020-01-02 Service dial testing method, device, system and storage medium Pending CN111221714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010002063.6A CN111221714A (en) 2020-01-02 2020-01-02 Service dial testing method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010002063.6A CN111221714A (en) 2020-01-02 2020-01-02 Service dial testing method, device, system and storage medium

Publications (1)

Publication Number Publication Date
CN111221714A true CN111221714A (en) 2020-06-02

Family

ID=70830967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010002063.6A Pending CN111221714A (en) 2020-01-02 2020-01-02 Service dial testing method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN111221714A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615696A (en) * 2020-12-08 2022-06-10 中国联合网络通信集团有限公司 Automatic dial testing method, device, system, server and storage medium
CN116016276A (en) * 2022-12-02 2023-04-25 京东科技信息技术有限公司 Method and device for detecting health state of server
CN114448850B (en) * 2021-12-21 2023-11-03 天翼云科技有限公司 Dialing control method, electronic equipment and dialing control system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546269A (en) * 2010-12-07 2012-07-04 中国移动通信集团广东有限公司 Method and system capable of fast monitoring internet protocol (IP) network
CN107256178A (en) * 2017-04-27 2017-10-17 北京数人科技有限公司 Container management platform
CN107612727A (en) * 2017-09-14 2018-01-19 掌阅科技股份有限公司 Distributed health examination method, computing device and computer-readable storage medium
CN109005085A (en) * 2018-08-24 2018-12-14 北京奇艺世纪科技有限公司 A kind of service availability monitoring system, method, device and equipment
CN109921925A (en) * 2019-02-15 2019-06-21 北京奇艺世纪科技有限公司 A kind of dial testing method and device
CN110581855A (en) * 2019-09-12 2019-12-17 中国工商银行股份有限公司 Application control method and device, electronic equipment and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546269A (en) * 2010-12-07 2012-07-04 中国移动通信集团广东有限公司 Method and system capable of fast monitoring internet protocol (IP) network
CN107256178A (en) * 2017-04-27 2017-10-17 北京数人科技有限公司 Container management platform
CN107612727A (en) * 2017-09-14 2018-01-19 掌阅科技股份有限公司 Distributed health examination method, computing device and computer-readable storage medium
CN109005085A (en) * 2018-08-24 2018-12-14 北京奇艺世纪科技有限公司 A kind of service availability monitoring system, method, device and equipment
CN109921925A (en) * 2019-02-15 2019-06-21 北京奇艺世纪科技有限公司 A kind of dial testing method and device
CN110581855A (en) * 2019-09-12 2019-12-17 中国工商银行股份有限公司 Application control method and device, electronic equipment and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615696A (en) * 2020-12-08 2022-06-10 中国联合网络通信集团有限公司 Automatic dial testing method, device, system, server and storage medium
CN114448850B (en) * 2021-12-21 2023-11-03 天翼云科技有限公司 Dialing control method, electronic equipment and dialing control system
CN116016276A (en) * 2022-12-02 2023-04-25 京东科技信息技术有限公司 Method and device for detecting health state of server

Similar Documents

Publication Publication Date Title
US9497095B2 (en) Dynamic control over tracing of messages received by a message broker
US20090204947A1 (en) Method and system for correlating trace data
US8495430B2 (en) Generate diagnostic data for overdue thread in a data processing system
CN109039787B (en) Log processing method and device and big data cluster
CN111221714A (en) Service dial testing method, device, system and storage medium
CN113032215A (en) Thread snapshot analysis method, device, equipment and storage medium
CN114253864A (en) Service testing method and device, electronic equipment and storage medium
CN112817831A (en) Application performance monitoring method, device, computer system and readable storage medium
CN111274130A (en) Automatic testing method, device, equipment and storage medium
CN109165372B (en) Webpage loading method, device, equipment and storage medium
US8214693B2 (en) Damaged software system detection
CN111639025B (en) Software testing method and device, electronic equipment and storage medium
US11599404B2 (en) Correlation-based multi-source problem diagnosis
CN110033242B (en) Working time determining method, device, equipment and medium
CN112818204B (en) Service processing method, device, equipment and storage medium
CN108197041B (en) Method, device and storage medium for determining parent process of child process
CN111262727B (en) Service capacity expansion method, device, equipment and storage medium
US20220188424A1 (en) Anomaly detection with impact assessment
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
US11294804B2 (en) Test case failure with root cause isolation
CN113419887A (en) Method and device for processing abnormal online transaction of host
CN114024867B (en) Network anomaly detection method and device
CN112363778B (en) Dynamic picture loading method and device, electronic equipment and storage medium
US7716534B2 (en) Methods and apparatus for measuring performance in processing system
CN112711487A (en) Data source management and control method and device, management and control server and storage medium

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