Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a service dial testing method, a service dial testing system, a server and a storage medium, which can realize service dial testing in different environments, thereby discovering the health degree of the same service in different environments.
According to an embodiment of the present invention, there is provided a method for dial testing a service, which can perform dial testing on the service in multiple environments, including: acquiring a running environment list of a service to be dialed and tested; respectively configuring dialing points according to elements in the operating environment list; initiating a dial test to the service through the dial test point; and receiving a dial testing result generated by the service according to the dial testing.
In some embodiments of the invention, the list of runtime environments includes environments supported by the service to run, wherein each of the elements corresponds to an environment.
In some embodiments of the present invention, the respectively configuring the dial-up test points according to the elements in the runtime environment list includes: acquiring corresponding environment information according to the elements; configuring the dial testing points according to the environment information and preset dial testing configuration information; the dial testing configuration information comprises a dial testing strategy, a dial testing parameter, a script, an alarm rule and an execution period.
In some embodiments of the invention, the method further comprises: and acquiring the health degree state of the service according to the dial testing result, and displaying the health degree state.
Meanwhile, the invention provides a service dial testing system, which can carry out dial testing on the service under multiple environments and comprises the following components: the acquisition module is used for acquiring an operating environment list of the service to be dial-tested; the configuration module is used for respectively configuring dialing points according to the elements in the operating environment list; the detection module is used for initiating dial testing to the service through the dial testing point; and the receiving module is used for receiving the dial testing result generated by the service according to the dial testing.
In some embodiments of the invention, the list of runtime environments includes environments supported by the service to run, wherein each of the elements corresponds to an environment.
In some embodiments of the invention, the configuration module is configured to: acquiring corresponding environment information according to the elements; configuring the dial testing points according to the environment information and preset dial testing configuration information; the dial testing configuration information comprises a dial testing strategy, a dial testing parameter, a script, an alarm rule and an execution period.
In some embodiments of the invention, the system further comprises: and the display module is used for acquiring the health degree state of the service according to the dial testing result and displaying the health degree state.
In addition, the embodiment of the invention provides a service dial testing device, which comprises a memory and a processor, wherein the memory is used for storing one or more computer readable instructions; the processor is configured to execute the one or more computer readable instructions to implement the method of any of the preceding embodiments.
Embodiments of the present invention also provide a computer storage medium storing one or more computer programs that, when executed, implement the method of any one of the preceding embodiments.
The invention discloses a method for simulating service using parties in different environments by arranging a plurality of dial-up measuring points, wherein each dial-up measuring point has own environment configuration and finds the health degree of the same service in different environments through the dial-up measuring points in the multi-dimensional environment. Therefore, when a service has a problem, a plurality of dimensionality dial test results such as dial test environments and service use can be obtained at the first time, operation and maintenance personnel can locate fault reasons and judge service influence more quickly when troubleshooting is performed, operation and maintenance efficiency is improved, and fault influence is reduced.
Detailed Description
Various aspects of the invention are described in detail below with reference to the figures and the detailed description. Well-known modules, units and their interconnections, links, communications or operations with each other are not shown or described in detail. Furthermore, the described features, architectures, or functions can be combined in any manner in one or more implementations. It will be understood by those skilled in the art that the various embodiments described below are illustrative only and are not intended to limit the scope of the present invention. It will also be readily understood that the modules or units or processes of the embodiments described herein and illustrated in the figures can be combined and designed in a wide variety of different configurations.
The various abbreviations to which the invention relates are explained first:
IaaS: infrastructure as a Service;
CMDB: configuration Management Database, Configuration Management Database.
Fig. 1 is a schematic flow chart of a service dial-up test method according to an embodiment of the present invention, and in the embodiment of the present invention, referring to fig. 1, the method includes:
100: acquiring a running environment list of a service to be dialed and tested;
101: respectively configuring dialing points according to elements in the operating environment list;
102: initiating dial testing to the service through the dial testing point;
103: and receiving a dial testing result generated by the service according to the dial testing.
In an embodiment of the present invention, the running environment list records running environments supported by the service, and specifically, each element in the running environment list corresponds to one environment.
In an embodiment of the invention, a method for implementing theprocess 102 is provided, which is as follows:
and acquiring corresponding environment information according to the elements in the operating environment list, and configuring dial testing points according to the environment information and preset dial testing configuration information. Preferably, each element in the list of runtime environments, i.e., each runtime environment, corresponds to a point of dialing.
In the embodiment of the invention, the dial testing configuration information comprises a dial testing strategy, a dial testing parameter, a script, an alarm rule and an execution period.
Therefore, by arranging a plurality of dial-up points, each dial-up point has own environment configuration and is used for simulating service users in different environments, so that dial-up test on the same service in different environments is realized.
In an embodiment of the present invention, as shown in fig. 2, the service dial testing method may further include:
104: and acquiring the health degree state of the service according to the dial testing result, and displaying.
When one application system provides a plurality of services to the outside, the traditional service dial test can only show the health state of a single service, and the health degree analysis of the whole application system is lacked.
In order to solve the above problems, in the embodiment of the present invention, the services and the systems to which the services belong may be configured, so that the dial-up test result of a single service can also be fed back to the whole system and the service chain, thereby showing the health conditions of the whole system and the services.
The method for dial testing of the service provided by the present embodiment will be described below with reference to specific examples.
Taking a common public cloud architecture as an example, a provider of a service and a caller of the service are in different environments respectively. And obtaining an environment through a corresponding operating environment list: the system comprises an overlay environment for tenant service, an underlay environment supported by a bottom layer IaaS, a management and control and office environment of a public cloud provider and an external internet environment.
And for different environments, acquiring corresponding environment information configuration dial testing environment, associating preset dial testing strategy, dial testing parameters, scripts, alarm rules, execution cycles and the like to the configured dial testing environment, and completing configuration of dial testing points.
After the dial testing points are configured, dial testing of the service under different environments is carried out through the dial testing points, and dial testing results of the same service under different environments are obtained.
For the analysis and display of the dial-up test result, the method can also be divided into a plurality of dimensions. Firstly, the service management system needs to be in butt joint with CMDB configuration management to obtain application systems and corresponding user services to which each service belongs. Therefore, for the health degree state analysis of the service, dial test result display and influence analysis can be performed from different dimensions such as single service, integral application, user business and the like.
In an optional implementation manner, a preset alarm rule may be matched according to the dial test result, and an alarm may be given according to the matching result.
Therefore, the invention discloses a method for simulating service using parties in different environments by arranging a plurality of dial-up points, wherein each dial-up point has own environment configuration, and the health degree of the same service in different environments is found by the dial-up points in the multi-dimensional environment. Therefore, when a service has a problem, a plurality of dimensionality dial test results such as dial test environments and service use can be obtained at the first time, operation and maintenance personnel can locate fault reasons and judge service influence more quickly when troubleshooting is performed, operation and maintenance efficiency is improved, and fault influence is reduced.
Fig. 3 is a block diagram of adial testing system 1 of a service according to an embodiment of the present invention, and referring to fig. 3, thegenerating system 1 includes: an obtainingmodule 11, configured to obtain an operating environment list of a service to be dial; theconfiguration module 12 is used for respectively configuring the dialing points according to the elements in the operating environment list; thedetection module 13 is used for initiating dial testing to the service through the dial testing point; and the receivingmodule 14 is configured to receive a dial test result generated by the service according to the dial test.
In an embodiment of the invention, the run environment list comprises environments supported for running by the service, wherein each element corresponds to an environment.
In an optional embodiment of the present invention, theconfiguration module 12 is configured to obtain corresponding environment information according to elements in the operating environment list, and configure the dial testing point according to the environment information and preset dial testing configuration information. The dial testing configuration information comprises a dial testing strategy, a dial testing parameter, a script, an alarm rule and an execution period
In an alternative embodiment, as shown in fig. 4, the servicedial testing system 1 may further include: and thedisplay module 15 is used for acquiring the health status of the service according to the dial test result and displaying the health status.
In an optional embodiment, the servicedial testing system 1 may further include an alarm module, configured to match a preset alarm rule according to a dial testing result, and alarm according to a matching result.
Optionally, an embodiment of the present invention provides a service dial testing apparatus, where the apparatus includes a memory, configured to store one or more computer-readable instructions; a processor configured to execute the one or more computer readable instructions to implement the method for dial testing of services provided by the foregoing embodiments or implementations of the present invention. Optionally, in an implementation manner of the embodiment of the present invention, the apparatus may further include an input/output interface for data communication. For example, the device may be a computer, a smart terminal, a server, or the like.
The embodiment of the present invention further provides a computer storage medium, which stores one or more computer programs, and is used for implementing the dial testing method of the service provided by the foregoing embodiment or implementation manner of the present invention when executed. For example, the storage medium may include a hard disk, a floppy disk, an optical disk, a magnetic tape, a magnetic disk, a flash memory, and the like.
The particular embodiments disclosed herein are illustrative only and should not be taken as limitations upon the scope of the invention, which is to be accorded the full scope consistent with the claims, as defined in the appended claims. Accordingly, the particular illustrative embodiments disclosed above are susceptible to various substitutions, combinations or modifications, all of which are within the scope of the disclosure.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention can be implemented by combining software and a hardware platform. With this understanding in mind, all or part of the technical solutions of the present invention that contribute to the background can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods according to the embodiments or some parts of the embodiments.