WO2017114152A1 - 一种业务拨测方法、装置以及系统 - Google Patents

一种业务拨测方法、装置以及系统 Download PDF

Info

Publication number
WO2017114152A1
WO2017114152A1 PCT/CN2016/109748 CN2016109748W WO2017114152A1 WO 2017114152 A1 WO2017114152 A1 WO 2017114152A1 CN 2016109748 W CN2016109748 W CN 2016109748W WO 2017114152 A1 WO2017114152 A1 WO 2017114152A1
Authority
WO
WIPO (PCT)
Prior art keywords
dialing
target service
monitoring information
cloud system
preset
Prior art date
Application number
PCT/CN2016/109748
Other languages
English (en)
French (fr)
Inventor
章宇
柯晓东
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017114152A1 publication Critical patent/WO2017114152A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a service dialing method, apparatus, and system.
  • the lifecycle management operations of resource objects such as virtual machines, volumes, and networks are core services in the cloud system.
  • Common lifecycle management operations include: creating, deleting, starting, stopping, and migrating virtual machines.
  • One of the most important requirements of a cloud system is to ensure high availability of services. For example, the cloud system should ensure that users can create virtual machines at any time and the time required to create virtual machines is kept for a reasonable period of time. While ensuring high availability of services, there are usually the following requirements: using certain external means to monitor the status of the service in real time, determine whether the service is available, and whether the service performance is acceptable under the conditions in which the service is available.
  • the solution for the above requirements is an intrusive dialing test system, specifically: adding a dialing test system outside the cloud system, and the dialing test system sends a service dialing request to the cloud system in an automated manner according to the dialing test scheme. For example, create or delete a virtual machine, and collect the returned dial test results, and dial the test result to determine whether the service meets the above requirements.
  • the embodiments of the present invention provide a service dialing method, device, and system, which can effectively eliminate the impact of dialing on the performance and resources of the cloud system.
  • the first aspect of the present invention provides a service dialing method, which may include:
  • a first embodiment of the first aspect of the invention comprises:
  • the dialing configuration parameter includes a preset dialing number and a preset dialing period
  • the dialing configuration parameter of the target service to be dialed in the cloud system including:
  • the collecting monitoring information generated during the execution of the target service includes:
  • Determining whether the monitoring information matches the dialing configuration parameter includes:
  • the second embodiment of the first aspect of the invention comprises:
  • the analyzing the monitoring information to obtain the dialing result of the target service including:
  • the target monitoring information is analyzed to obtain a dialing result of the target service.
  • the third embodiment of the first aspect of the invention comprises:
  • N Since the value of M is not necessarily greater than N, if M ⁇ N, N-M dialing requests for the target service are sent to the cloud system.
  • N-M dialing test requests of the target service to the cloud system, it is ensured that the number of dialing tests of the target service meets the preset dialing times within the preset dialing period to improve dialing accuracy.
  • the fourth embodiment of the first aspect of the invention comprises:
  • the fifth embodiment of the first aspect of the invention comprises:
  • the state machine passes through different states during the driving process
  • the method further includes:
  • the duration of each of the states is determined based on the time stamp.
  • a first embodiment of the first aspect of the present invention a second embodiment of the first aspect of the present invention, a third embodiment of the first aspect of the present invention, and a fourth embodiment of the first aspect of the present invention
  • the sixth embodiment of the first aspect of the present invention comprises:
  • the step of acquiring the dialing configuration parameters of the target service to be dialed in the cloud system is stopped, thereby effectively avoiding error accumulation.
  • the second aspect of the present invention provides a service dialing device, including:
  • An obtaining unit configured to acquire a dialing configuration parameter of a target service to be dialed in the cloud system
  • a collecting unit configured to collect monitoring information generated by the target service during execution, where the monitoring information is persistent storage information
  • a determining unit configured to determine whether the monitoring information matches the dialing configuration parameter
  • the processing unit is configured to: if the determining unit determines that the monitoring information matches the dialing configuration parameter, analyze the monitoring information to obtain a dialing result of the target service.
  • the first embodiment of the second aspect of the invention comprises:
  • the dialing configuration parameter includes a preset dialing number and a preset dialing period
  • the acquiring unit is specifically configured to acquire a preset dialing number of the target service to be dialed in the cloud system and a preset dialing period;
  • the collecting unit is configured to collect, during the preset dialing period, monitoring information generated during execution of the target service, where the monitoring information is persistent storage information;
  • the determining unit is specifically configured to determine whether the dialing number M of the target service recorded in the monitoring information is not less than the preset dialing number N, and if yes, determining the monitoring information and the preset The number of dialing tests and the preset dialing period match.
  • the second embodiment of the second aspect of the invention comprises:
  • the device also includes:
  • a selecting unit configured to randomly select N times of dialing times from the number of M dialing times of the target service
  • a determining unit configured to determine target monitoring information corresponding to the randomly selected N times of dialing times from the monitoring information
  • the processing unit is specifically configured to analyze the target monitoring information to obtain a dialing result of the target service.
  • the third embodiment of the second aspect of the invention comprises:
  • the device also includes:
  • a sending unit configured to send, to the cloud system, N-M dialing request requests of the target service if M ⁇ N.
  • N-M dialing test requests of the target service to the cloud system, it is ensured that the number of dialing tests of the target service meets the preset dialing times within the preset dialing period to improve dialing accuracy.
  • the fourth embodiment of the second aspect of the present invention comprises:
  • the device also includes:
  • a calling unit for calling a state machine engine in the preset analysis engine
  • a creating unit configured to create, by using the state machine engine, a state machine corresponding to the target service
  • a driving unit configured to drive the state machine by using the target monitoring information
  • the processing unit is specifically configured to obtain a dialing result of the target service obtained by the state machine in a driving process.
  • the fifth embodiment of the second aspect of the present invention comprises:
  • the state machine passes through different states during the driving process; the device further includes:
  • a configuration unit configured to set a time label for each state that the state machine passes during the driving process
  • the determining unit is further configured to determine a duration of each of the states according to the time label.
  • the sixth embodiment of the second aspect of the present invention comprises:
  • the determining unit is further configured to determine, by using a cloud system, whether the target service to be dialed in the cloud system is abnormal.
  • the processing unit is further configured to: if the determining unit determines, by the cloud system, that the target service to be dialed in the cloud system is abnormal, stopping the acquiring unit from acquiring the target service to be dialed in the cloud system. And the step of dialing the configuration parameter, if the determining unit determines, by the cloud system, that the target service to be dialed in the cloud system is not abnormal, triggering the acquiring unit to obtain the dialing of the target service to be dialed in the cloud system.
  • the steps to measure configuration parameters if the determining unit determines, by the cloud system, that the target service to be dialed in the cloud system is abnormal, stopping the acquiring unit from acquiring the target service to be dialed in the cloud system.
  • the step of dialing the configuration parameter if the determining unit determines, by the cloud system, that the target service to be dialed in the cloud system is not abnormal, triggering the acquiring unit to obtain the dialing of the target service to be dialed in the cloud system.
  • the step of acquiring the dialing configuration parameters of the target service to be dialed in the cloud system is stopped, thereby effectively avoiding error accumulation.
  • the third aspect of the present invention provides a service dialing system, including: a second aspect of the present invention, a first embodiment of the second aspect of the present invention, a second embodiment of the second aspect of the present invention, and the present invention
  • the first embodiment of the third aspect of the invention comprises:
  • the system further includes a dialing configuration parameter storage module, and the dialing configuration parameter storage module is configured to store dialing configuration parameters.
  • the present invention collects monitoring information generated during the execution of the target service by acquiring the dialing configuration parameters of the target service to be dialed in the cloud system, where the monitoring is performed.
  • the information is persistently stored information, and it is determined whether the monitoring information matches the dialing configuration parameter. If the matching information is matched, the monitoring information is analyzed to obtain the dialing result of the target service.
  • the existing solution dialing system actively sends a large number of service dialing requests to the cloud system, which has a great impact on the performance and resources of the cloud system, and the present invention generates the self-owned services in the cloud system through passive acquisition.
  • the monitoring information does not need to actively send a large number of service dialing requests to the cloud system, so the impact of dialing tests on the performance and resources of the cloud system can be effectively eliminated.
  • FIG. 1 is a schematic diagram of a principle frame according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of a method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of another method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural view of a device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • the embodiments of the present invention provide a service dialing method, device, and system, which can effectively eliminate the impact of dialing on the performance and resources of the cloud system.
  • the dial test can be converted from the active dial test to the passive dial test that mainly relies on passive collection and analysis of data to achieve non-intrusive service dialing.
  • the schematic diagram of the present invention can be specifically referred to FIG. 1.
  • the control module controls the dialing behavior of the dialing system, and controls the operation of the dialing system and the execution of the dialing behavior according to the dialing mode and strategy.
  • the control module is responsible for providing the human-machine interface with the operation and maintenance personnel (users of the dial-up system); the dial-up mode and the policy module are responsible for persistent storage of the dial-up mode and strategy; the information collection module is responsible for the slave cloud system.
  • the data storage module is responsible for persistently storing monitoring information such as log information for analysis;
  • the analysis and statistics module is responsible for analyzing and counting log information according to the command of the control module, and outputting the result;
  • the dial test module is responsible for actively initiating a dial test request to the cloud system according to the command of the control module. In the absence of a dial test module, Figure 1 is a completely non-intrusive system.
  • FIG. 1 constitutes a service dialing system of the present invention.
  • an embodiment of the service dialing method in the embodiment of the present invention includes:
  • the dialing configuration parameters of the target service to be dialed in the cloud system may be obtained from the dialing mode and the policy module in FIG.
  • dialing test mode and the policy module include the dialing configuration parameter, and the dialing configuration parameter includes the dialing frequency and the dialing period, and may also include other parameters, which are not limited herein.
  • the target business is its own business in the cloud system. Services include creating virtual machines, migrating virtual machines, and more.
  • the dialing configuration parameters of the target service to be dialed in the cloud system are obtained, and the foregoing includes:
  • the cloud system determines whether the target service to be dialed in the cloud system is abnormal. If the abnormality occurs, the step of acquiring the dialing configuration parameter of the target service to be dialed in the cloud system is stopped, and if not abnormal, the cloud system is triggered to be acquired. The steps of dialing the test configuration parameters of the target service.
  • the dialing configuration parameters of the target service to be dialed in the cloud system can be stopped to effectively avoid error accumulation.
  • monitoring information generated by the target service during execution, where the monitoring information is persistent storage information
  • the monitoring information generated during the execution of the target service is collected, and the monitoring information is persistent storage information.
  • monitoring information includes log information.
  • step 104 determining whether the monitoring information matches the dialing configuration parameter, if yes, performing step 104;
  • step 104 After collecting the monitoring information generated during the execution of the target service, it is determined whether the monitoring information matches the dialing configuration parameter. If yes, step 104 is performed.
  • the monitoring information After judging that the monitoring information matches the dialing configuration parameters, the monitoring information is analyzed to obtain the dialing result of the target service.
  • the monitoring information generated by the target service during the execution process is collected by acquiring the dialing configuration parameter of the target service to be dialed in the cloud system, where the monitoring information is persistent storage information, and determining whether the monitoring information is Matches the dialing configuration parameters. If it matches, the monitoring information is analyzed to obtain the dialing result of the target service.
  • the existing solution dialing system actively sends a large number of service dialing requests to the cloud system, which has a great impact on the performance and resources of the cloud system, and the present invention passively acquires the cloud.
  • the monitoring information generated by the self-owned services in the system does not need to proactively send a large number of service dialing requests to the cloud system. Therefore, the impact of dialing tests on the performance and resources of the cloud system can be effectively eliminated.
  • FIG. 3 another embodiment of the service dialing method in the embodiment of the present invention includes:
  • the preset dialing times of the target service to be dialed in the cloud system and the preset dialing period are obtained from the dialing mode and the policy module in FIG.
  • the preset dialing frequency can be 10
  • the preset dialing period can be 30 minutes
  • the target service can be to create a virtual machine.
  • the above dialing mode and strategy may further include whether to perform function dialing only, or perform performance dialing at the same time, or whether to supplement the intrusive dialing test when necessary.
  • the control module in FIG. 1 collects monitoring information, in particular log information, generated during the execution of the target service through the information collection module in a preset dialing cycle.
  • monitoring information may also include other information, which is not limited herein.
  • the user itself frequently uses the target service in the cloud system, and thus can collect monitoring information generated during the execution of the target service.
  • step 204 determining whether the number of dialing times M of the target service recorded in the monitoring information is not less than the preset number of dialing times N, and if yes, executing step 204;
  • M is not less than N, it indicates that the monitoring information is sufficient to complete the dial test.
  • the monitoring information After determining that the monitoring information matches the preset dialing times and the preset dialing period, the monitoring information is analyzed to obtain the dialing result of the target service.
  • the monitoring information is analyzed to obtain a dialing result of the target service, and the foregoing includes:
  • the number of dialing times is randomly selected from the number of M dialing times of the target service, and the target monitoring information corresponding to the number of randomly selected N dialing times is determined from the monitoring information;
  • the target monitoring information is analyzed to obtain the dialing result of the target business.
  • M is not less than N, it indicates that the monitoring information is sufficient to complete the dialing test, and the number of dialing times can be randomly selected through the analysis and statistics module in FIG.
  • the method further includes:
  • the N-M target service dialing request is sent to the cloud system.
  • the target monitoring information is analyzed to obtain a dialing result of the target service, specifically:
  • the performance analysis may be further performed by using the performance dialing test.
  • the state machine goes through different states during the driving process
  • the method further includes:
  • the duration of each state is determined based on the time stamp.
  • the monitoring information generated by the target service during the execution process is collected by acquiring the dialing configuration parameter of the target service to be dialed in the cloud system, where the monitoring information is persistent storage information, and determining whether the monitoring information is Matches the dialing configuration parameters. If it matches, the monitoring information is analyzed to obtain the dialing result of the target service.
  • the existing solution dialing system actively sends a large number of service dialing requests to the cloud system, which has a great impact on the performance and resources of the cloud system, and the present invention passively acquires the cloud.
  • the monitoring information generated by the self-owned services in the system does not need to proactively send a large number of service dialing requests to the cloud system. Therefore, the impact of dialing tests on the performance and resources of the cloud system can be effectively eliminated.
  • dialing mode and strategy are defined as follows:
  • the operation and maintenance personnel determine the dialing mode and the policy definition, they are input to the control module through the human-machine interface of the control module, and are persistently stored in the dial-up mode and the policy module.
  • the control module requires the analysis and statistics module to analyze the log information in a period of 30 minutes, and determines whether the virtual machine creation operation recorded in the newly added log has reached 10 in 30 minutes. If it is determined that 10 or more have been reached, the analysis and statistics module randomly selects log records of 10 virtual machine creation operations, and analyzes them to obtain dialing test results.
  • the control module will control the dial-up module and actively send NM to the cloud system according to the requirements of the dial-up policy.
  • Each virtual machine creates a service request to ensure that the total virtual machine creation service operand can meet the requirements of the dialing mode and policy definition during the dialing period.
  • the analysis engine in the analysis and statistics module will call the state machine engine, create a state machine instance of the "virtual machine creation" type, and use the log information to drive the state machine to run, and obtain the state machine at The dialing result of the target service obtained during the driving process.
  • a time stamp is set for each state that the state machine passes during the driving process, and the duration of each state is determined according to the time stamp.
  • an embodiment of the service dialing device in the embodiment of the present invention includes:
  • the obtaining unit 301 is configured to acquire a dialing configuration parameter of the target service to be dialed in the cloud system.
  • the collecting unit 302 is configured to collect monitoring information generated by the target service during execution, where the monitoring information is persistent storage information;
  • the determining unit 303 is configured to determine whether the monitoring information matches the dialing configuration parameter
  • the processing unit 304 is configured to: if the determining unit 303 determines that the monitoring information matches the dialing configuration parameter, analyze the monitoring information to obtain a dialing result of the target service.
  • the monitoring information generated by the target service during the execution process is collected by acquiring the dialing configuration parameter of the target service to be dialed in the cloud system, where the monitoring information is persistent storage information, and determining whether the monitoring information is Matches the dialing configuration parameters. If it matches, the monitoring information is analyzed to obtain the dialing result of the target service.
  • the existing solution dialing system actively sends a large number of service dialing requests to the cloud system, which has a great impact on the performance and resources of the cloud system, and the present invention generates the self-owned services in the cloud system through passive acquisition.
  • the monitoring information does not need to actively send a large number of service dialing requests to the cloud system, so the impact of dialing tests on the performance and resources of the cloud system can be effectively eliminated.
  • another embodiment of the service dialing device in the embodiment of the present invention includes:
  • the obtaining unit 401 is configured to acquire a preset dialing number of the target service to be dialed in the cloud system and a preset dialing period;
  • the collecting unit 402 is configured to collect, during a preset dialing period, monitoring information generated by the target service during execution, where the monitoring information is persistent storage information;
  • the determining unit 403 is configured to determine whether the dialing number M of the target service recorded in the monitoring information is not less than a preset number of dialing times N;
  • the processing unit 404 is configured to determine, if the determination unit 403 is YES, that the monitoring information matches the preset dialing times and the preset dialing period, and analyze the monitoring information to obtain a dialing result of the target service.
  • the device further includes:
  • the selecting unit 405 is configured to randomly select N times of dialing times from the number of M dialing times of the target service
  • the determining unit 406 is configured to determine target monitoring information corresponding to the randomly selected N times of dialing times from the monitoring information;
  • the processing unit 404 is specifically configured to analyze the target monitoring information to obtain a dialing result of the target service.
  • the apparatus in order to meet the dialing requirement under the condition of M ⁇ N, the apparatus further includes:
  • the sending unit 407 is configured to send a dialing request of the N-M target services to the cloud system if M ⁇ N.
  • the apparatus further includes:
  • the calling unit 408 is configured to invoke a state machine engine in the preset analysis engine
  • a creating unit 409 configured to create a state machine corresponding to the target service by using the state machine engine
  • a driving unit 410 configured to drive the state machine by using target monitoring information
  • the processing unit 404 is specifically configured to obtain a dialing result of the target service obtained by the state machine during the driving process.
  • the apparatus in order to implement performance analysis by performance dialing, the apparatus further includes:
  • the configuration unit 411 is configured to set a time label for each state that the state machine passes during the driving process
  • the determining unit 406 is further configured to determine the duration of each state according to the time stamp.
  • the determining unit 403 is further configured to determine, by using the cloud system, whether the target service to be dialed in the cloud system is abnormal.
  • the processing unit 404 is further configured to: if the determining unit 403 determines, by the cloud system, that the target service to be dialed in the cloud system is abnormal, the acquiring unit 401 stops acquiring the dialing configuration parameter of the target service to be dialed in the cloud system. Steps: If the determining unit 403 determines, by the cloud system, that the target service to be dialed in the cloud system is not abnormal, the trigger acquiring unit 401 acquires the dialing configuration parameter of the target service to be dialed in the cloud system.
  • the monitoring information generated by the target service during the execution process is collected by acquiring the dialing configuration parameter of the target service to be dialed in the cloud system, where the monitoring information is persistent storage information, and determining whether the monitoring information is Matches the dialing configuration parameters. If it matches, the monitoring information is analyzed to obtain the dialing result of the target service.
  • the existing solution dialing system actively sends a large number of service dialing requests to the cloud system, which has a great impact on the performance and resources of the cloud system, and the present invention generates the self-owned services in the cloud system through passive acquisition.
  • the monitoring information does not need to actively send a large number of service dialing requests to the cloud system, so the impact of dialing tests on the performance and resources of the cloud system can be effectively eliminated.
  • dial test mode and strategy are defined as follows:
  • the obtaining unit 401 obtains the number of dialing times 10 of the target service to be dialed in the cloud system and the dialing period of 30 minutes from the dialing mode and the policy module in FIG. 1 , wherein the target service to be dialed is the virtual machine;
  • the collection unit 402 collects the log information generated during the process of creating the virtual machine in the cloud system. The number of times the virtual machine is created in the log information is 12 times.
  • the determining unit 403 determines that the virtual machine is recorded in the log information.
  • the number of times is greater than the preset number of dialing times; the selecting unit 405 randomly selects 10 times out of 12 times; the determining unit 406 determines 10 times of corresponding target log information randomly selected from the log information; the calling unit 408 calls the preset analysis engine a state machine engine; a creating unit 409, creating a state machine corresponding to the creation of the virtual machine by the state machine engine; driving unit 410, driving the state machine through the target log information; and processing unit 404, acquiring the virtual machine obtained by the state machine in the driving process Dial test results.
  • the configuration unit 411 sets a time stamp for each state that the state machine passes during the driving process; the determining unit 406 determines the duration of each state based on the time stamp.
  • an embodiment of the server in the embodiment of the present invention includes:
  • FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • the server 500 may have a large difference due to different configurations or performances, and may include one or more central processing units (CPUs) 501 (for example, One or more processors), one or more storage media 504 that store application 502 or data 503 (eg, one or one storage device in Shanghai).
  • the storage medium 504 can be short-lived or persistent.
  • the program stored on storage medium 504 may include one or more modules (not shown), each of which may include a series of instruction operations in the switch.
  • central processor 501 can be configured to communicate with storage medium 504, executing a series of instruction operations in storage medium 504 on server 500.
  • Server 500 may also include one or more power sources 505, one or more wired or wireless network interfaces 506, one or more output interfaces 507, and/or one or more operating systems 508, such as Windows ServerTM, Mac OS. XTM, UnixTM, LinuxTM, FreeBSDTM and many more.
  • power sources 505 one or more wired or wireless network interfaces 506, one or more output interfaces 507, and/or one or more operating systems 508, such as Windows ServerTM, Mac OS. XTM, UnixTM, LinuxTM, FreeBSDTM and many more.
  • the steps performed by the apparatus in the above embodiments may be based on the server structure shown in FIG. 6.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明公开了一种业务拨测方法、装置以及系统,能够有效消除拨测对云系统的性能和资源造成的影响。本发明实施例方法包括:获取云系统中待拨测的目标业务的拨测配置参数;收集所述目标业务在执行过程中产生的监测信息,所述监测信息为持久化存储的信息;判断所述监测信息是否与所述拨测配置参数相匹配,若匹配,则对所述监测信息进行分析得到所述目标业务的拨测结果。

Description

一种业务拨测方法、装置以及系统
本申请要求于2015年12月29日提交中国专利局、申请号为201511009714.X、发明名称为“一种业务拨测方法、装置以及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,尤其涉及一种业务拨测方法、装置以及系统。
背景技术
云系统中,虚拟机、卷、网络等资源对象的生命周期管理操作,为云系统中核心的业务,常见的生命周期管理操作包括:创建、删除、启动、停止以及迁移虚拟机。云系统最重要的要求之一就是保证业务的高可用性,例如:云系统应该尽可能的保证用户在任意时刻可以创建虚拟机,并且创建虚拟机的耗时保持在一个合理的时长内。在保证业务的高可用性的同时,通常还存在以下需求:采用一定的外部手段,实时监测业务状态,判断业务是否可用,以及在业务可用的条件下,业务性能是否可接受。
当前,针对上述需求存在的方案为侵入式拨测系统,具体为:在云系统外部增加一个拨测系统,由拨测系统根据拨测方案,以自动化的方式向云系统发出业务拨测请求,例如创建、删除虚拟机,并收集返回的拨测结果,通过拨测结果来判断业务是否满足上述需求。
但是,上述方案中为了对云系统中的业务状态、业务性能做出全面、准确的分析,需要对云系统下发大量的业务拨测请求,显然,下发大量的业务拨测请求会对云系统的性能和资源造成较大的影响。由此可见,上述方案会对云系统的性能和资源造成较大的影响。
发明内容
本发明实施例提供了一种业务拨测方法、装置以及系统,能够有效消除拨测对云系统的性能和资源造成的影响。
有鉴于此,本发明第一方面提供了一种业务拨测方法,可包括:
获取云系统中待拨测的目标业务的拨测配置参数;
在云系统正常运行的过程中,收集所述目标业务在执行过程中产生的监测信息,所述检测信息为持续存储的信息;
判断所述监测信息是否与所述拨测配置参数相匹配,在判断所述监测信息与拨测配置参数匹配后,对所述监测信息进行分析得到所述目标业务的拨测结果。
结合本发明第一方面,本发明第一方面的第一实施方式包括:
所述拨测配置参数包括预设拨测次数以及预设拨测周期;
所述获取云系统中待拨测的目标业务的拨测配置参数,包括:
获取云系统中待拨测的目标业务的预设拨测次数以及预设拨测周期;
所述收集所述目标业务在执行过程中产生的监测信息,包括:
在所述预设拨测周期内,收集所述目标业务在执行过程中产生的监测信息;
所述判断所述监测信息是否与所述拨测配置参数相匹配,包括:
判断所述监测信息中记录的所述目标业务的拨测次数M是否不小于所述预设拨测次数N,若是,则确定所述监测信息与所述预设拨测次数以及所述预设拨测周期相匹配。
需要说明的是,通过将拨测配置参数细化为预设拨测次数以及预设拨测周期,使得读者便于理解本发明技术方案。
结合本发明第一方面的第一实施方式,本发明第一方面的第二实施方式包括:
从所述目标业务的M次拨测次数中随机选取N次拨测次数,并从所述监测信息中确定随机选取的所述N次拨测次数对应的目标监测信息;
所述对所述监测信息进行分析得到所述目标业务的拨测结果,包括:
对所述目标监测信息进行分析得到所述目标业务的拨测结果。
结合本发明第一方面的第一实施方式,本发明第一方面的第三实施方式包括:
由于M的取值不一定大于N,所以若M﹤N,则向所述云系统发送N-M个所述目标业务的拨测请求。
需要说明的是,通过向云系统发送N-M个所述目标业务的拨测请求,以保证在预设拨测周期内,目标业务的拨测次数满足预设拨测次数,以提高拨测精度。
结合本发明第一方面的第二实施方式,本发明第一方面的第四实施方式包括:
调用预置分析引擎中的状态机引擎;
通过所述状态机引擎创建所述目标业务对应的状态机;
通过所述目标监测信息驱动所述状态机;
获取所述状态机在驱动过程中得到的所述目标业务的拨测结果。
需要说明的是,通过状态机对目标监测信息进行分析,使得本发明更具体。
结合本发明第一方面的第四实施方式,本发明第一方面的第五实施方式包括:
所述状态机在驱动过程中经过不同的状态;
所述方法还包括:
为所述状态机在驱动过程中经过的每个状态设置时间标签;
根据所述时间标签确定所述每个状态的持续时间。
需要说明的是,通过针对监测信息的状态机分析,可以详细获取不同阶段执行时间,实现性能分析。
结合本发明第一方面,本发明第一方面的第一实施方式,本发明第一方面的第二实施方式,本发明第一方面的第三实施方式,本发明第一方面的第四实施方式,本发明第一方面的第五实施方式,本发明第一方面的第六实施方式包括:
通过云系统判断所述云系统中待拨测的目标业务是否异常,若异常,则停止获取云系统中待拨测的目标业务的拨测配置参数的步骤,若不异常,则触发获取云系统中待拨测的目标业务的拨测配置参数的步骤。
需要说明的是,在确定云系统中待拨测的目标业务为异常业务时,停止获取云系统中待拨测的目标业务的拨测配置参数的步骤,有效的避免了错误累计。
有鉴于此,本发明第二方面提供了一种业务拨测装置,包括:
获取单元,用于获取云系统中待拨测的目标业务的拨测配置参数;
收集单元,用于收集所述目标业务在执行过程中产生的监测信息,所述监测信息为持久化存储的信息;
判断单元,用于判断所述监测信息是否与所述拨测配置参数相匹配;
处理单元,用于若判断单元判断所述监测信息与所述拨测配置参数相匹配,则对所述监测信息进行分析得到所述目标业务的拨测结果。
结合本发明第二方面,本发明第二方面的第一实施方式包括:
所述拨测配置参数包括预设拨测次数以及预设拨测周期;
所述获取单元,具体用于获取云系统中待拨测的目标业务的预设拨测次数以及预设拨测周期;
所述收集单元,具体用于在所述预设拨测周期内,收集所述目标业务在执行过程中产生的监测信息,所述监测信息为持久化存储的信息;
所述判断单元,具体用于判断所述监测信息中记录的所述目标业务的拨测次数M是否不小于所述预设拨测次数N,若是,则确定所述监测信息与所述预设拨测次数以及预设拨测周期相匹配。
需要说明的是,通过将拨测配置参数细化为预设拨测次数以及预设拨测周期,使得读者便于理解本发明技术方案。
结合本发明第二方面的第一实施方式,本发明第二方面的第二实施方式包括:
所述装置还包括:
选取单元,用于从所述目标业务的M次拨测次数中随机选取N次拨测次数;
确定单元,用于从所述监测信息中确定随机选取的所述N次拨测次数对应的目标监测信息;
所述处理单元,具体用于对所述目标监测信息进行分析得到所述目标业务的拨测结果。
结合本发明第二方面的第一实施方式,本发明第二方面的第三实施方式包括:
所述装置还包括:
发送单元,用于若M﹤N,则向所述云系统发送N-M个所述目标业务的拨测请求。
需要说的是,通过向云系统发送N-M个所述目标业务的拨测请求,以保证在预设拨测周期内,目标业务的拨测次数满足预设拨测次数,以提高拨测精度。
结合本发明第二方面的第二实施方式,本发明第二方面的第四实施方式包括:
所述装置还包括:
调用单元,用于调用预置分析引擎中的状态机引擎;
创建单元,用于通过所述状态机引擎创建所述目标业务对应的状态机;
驱动单元,用于通过所述目标监测信息驱动所述状态机;
所述处理单元,具体用于获取所述状态机在驱动过程中得到的所述目标业务的拨测结果。
需要说明的是,通过状态机对目标监测信息进行分析,使得本发明更具体。
结合本发明第二方面的第四实施方式,本发明第二方面的第五实施方式包括:
所述状态机在驱动过程中经过不同的状态;所述装置还包括:
配置单元,用于为所述状态机在驱动过程中经过的每个状态设置时间标签;
所述确定单元,还用于根据所述时间标签确定所述每个状态的持续时间。
需要说明的是,通过针对监测信息的状态机分析,可以详细获取不同阶段执行时间,实现性能分析。
结合本发明第二方面,本发明第二方面的第一实施方式,本发明第二方面的第二实施方式,本发明第二方面的第三实施方式,本发明第二方面的第四实施方式,本发明第二方面的第五实施方式,本发明第二方面的第六实施方式包括:
所述判断单元,还用于通过云系统判断所述云系统中待拨测的目标业务是否异常;
所述处理单元,还用于若所述判断单元通过云系统判断所述云系统中待拨测的目标业务是异常的业务,则停止所述获取单元获取云系统中待拨测的目标业务的拨测配置参数的步骤,若所述判断单元通过云系统判断所述云系统中待拨测的目标业务不是异常的业务,则触发所述获取单元获取云系统中待拨测的目标业务的拨测配置参数的步骤。
需要说明的是,在确定云系统中待拨测的目标业务为异常业务时,停止获取云系统中待拨测的目标业务的拨测配置参数的步骤,有效的避免了错误累计。
有鉴于此,本发明第三方面提供了一种业务拨测系统,包括:本发明第二方面、本发明第二方面的第一实施方式、本发明第二方面的第二实施方式、本发明第二方面的第三实施方式、本发明第二方面的第四实施方式、本发明第二方面的第五实施方式,本发明第二方面的第六实施方式中的任意一项。
结合本发明第三方面,本发明第三方面的第一实施方式包括:
所述系统还包括拨测配置参数存储模块,所述拨测配置参数存储模块用于存储拨测配置参数。
从以上技术方案可以看出,本发明实施例具有以下优点:本发明通过获取云系统中待拨测的目标业务的拨测配置参数,收集目标业务在执行过程中产生的监测信息,其中该监测信息为持久化存储的信息,判断该监测信息是否与拨测配置参数相匹配,若匹配,则对该监测信息进行分析得到目标业务的拨测结果。现有方案拨测系统主动向云系统下发大量的业务拨测请求会对云系统的性能和资源造成较大的影响,而本发明通过被动获取云系统中自有的业务在执行过程中产生的监测信息,无需主动向云系统下发大量的业务拨测请求,因此能够有效消除拨测对云系统的性能和资源造成的影响。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例原理框架示意图;
图2为本发明实施例一个方法流程示意图;
图3为本发明实施例另一个方法流程示意图;
图4为本发明实施例装置一个结构示意图;
图5为本发明实施例装置另一个结构示意图;
图6为本发明实施例服务器结构示意图。
具体实施方式
本发明实施例提供了一种业务拨测方法、装置以及系统,能够有效消除拨测对云系统的性能和资源造成的影响。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便 这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
为了便于理解本发明实施例,下面先对本发明业务拨测方法的原理进行如下说明:
在云系统正常运行的过程中,普通用户本身会频繁使用云系统中的各种业务,下发各类业务请求,并且,用户使用业务越多,越频繁,业务请求就越能够高频率的覆盖云系统的各种业务和云系统内部的各种执行路径。申请人发现,只要能够充分收集云系统中的各种业务在正常执行过程中产生的监测信息,特别是日志信息,对监测信息进行分析,事实上就可以涵盖大部分拨测系统需要解决的场景,仅在少数依靠上述方法无法覆盖的场景下,才需要进行少量有针对性的主动拨测。基于上述思路,可以将拨测从主动拨测的方式,转换为主要依靠被动收集和分析数据的被动拨测,实现非侵入式的业务拨测。本发明原理图具体可参阅图1,在图1中,控制模块控制拨测系统的拨测行为,根据拨测模式和策略控制拨测系统的运行以及拨测行为的执行。同时,控制模块负责提供与运维人员(拨测系统使用者)之间的人机接口;拨测模式及策略模块负责对拨测模式及策略进行持久化存储;信息收集模块负责从云系统中收集日志信息等监测信息;数据存储模块负责对日志信息等监测信息进行持久化存储,以供分析使用;分析与统计模块负责根据控制模块的命令,针对日志信息进行分析与统计,并输出结果;拨测模块负责根据控制模块的命令,在必要情况下主动发起对云系统的拨测请求。在不存在拨测模块的情况下,图1就属于完全非侵入式系统。
需要说明的是,在图1不包括云系统的情况下,图1构成了本发明的业务拨测系统。
在上述原理的基础上,下面通过实施例来对业务拨测方法进行说明:
请参阅图2,本发明实施例中业务拨测方法的一个实施例包括:
101、获取云系统中待拨测的目标业务的拨测配置参数;
本实施例中,可以从图1中的拨测模式及策略模块中获取云系统中待拨测的目标业务的拨测配置参数。
需要说明的是,拨测模式及策略模块中包括拨测配置参数,拨测配置参数包括拨测次数以及拨测周期,还可以包括其他参数,此处不作限定。
另外,目标业务为云系统中自有的业务。业务包括创建虚拟机、迁移虚拟机等操作。
可选的,在本发明的一些实施例中,获取云系统中待拨测的目标业务的拨测配置参数,之前包括:
通过云系统判断云系统中待拨测的目标业务是否异常,若异常,则停止获取云系统中待拨测的目标业务的拨测配置参数的步骤,若不异常,则触发获取云系统中待拨测的目标业务的拨测配置参数的步骤。
可以理解的是,在获知云系统中目标业务不正常的前提下,可以停止获取云系统中待拨测的目标业务的拨测配置参数,以有效避免错误累积。
102、收集目标业务在执行过程中产生的监测信息,该监测信息为持久化存储的信息;
在获取云系统中待拨测的目标业务的拨测配置参数后,收集目标业务在执行过程中产生的监测信息,该监测信息为持久化存储的信息。
需要说明的是,在云系统正常运行的过程中,用户本身就会频繁使用云系统中的目标业务,因此能够收集目标业务在执行过程中产生的监测信息,另外,上述监测信息可以由图1中的数据存储模块进行持久化存储。监测信息包括日志信息。
103、判断监测信息是否与拨测配置参数相匹配,若匹配,则执行步骤104;
在收集目标业务在执行过程中产生的监测信息后,判断监测信息是否与拨测配置参数相匹配,若匹配,则执行步骤104。
104、对监测信息进行分析得到目标业务的拨测结果。
在判断监测信息与拨测配置参数相匹配后,对监测信息进行分析得到目标业务的拨测结果。
本实施例中,通过获取云系统中待拨测的目标业务的拨测配置参数,收集目标业务在执行过程中产生的监测信息,其中该监测信息为持久化存储的信息,判断该监测信息是否与拨测配置参数相匹配,若匹配,则对该监测信息进行分析得到目标业务的拨测结果。现有方案拨测系统主动向云系统下发大量的业务拨测请求会对云系统的性能和资源造成较大的影响,而本发明通过被动获取云 系统中自有的业务在执行过程中产生的监测信息,无需主动向云系统下发大量的业务拨测请求,因此能够有效消除拨测对云系统的性能和资源造成的影响。
为了便于理解,下面对本发明实施例中业务拨测方法进行详细的描述,请参阅图3,本发明实施例中业务拨测方法另一个实施例包括:
201、获取云系统中待拨测的目标业务的预设拨测次数以及预设拨测周期;
本实施例中,从图1中的拨测模式及策略模块中获取云系统中待拨测的目标业务的预设拨测次数以及预设拨测周期。
例如,预设拨测次数可以为10,预设拨测周期可以为30分钟,目标业务可以为创建虚拟机。
需要说明的是,在实际应用中,上述拨测模式及策略还可以包括是否仅进行功能拨测、还是同时进行性能拨测,又或者是否在必要时候补充进行侵入式拨测。
202、在预设拨测周期内,收集目标业务在执行过程中产生的监测信息;
图1中的控制模块会以预设拨测周期为周期,通过信息收集模块收集目标业务在执行过程中产生的监测信息,特别是日志信息。
需要说明的是,该监测信息还可以包括其他信息,此处不做限定。
需要说明的是,在云系统正常运行的过程中,用户本身就会频繁使用云系统中的目标业务,因此能够收集目标业务在执行过程中产生的监测信息。
203、判断监测信息中记录的目标业务的拨测次数M是否不小于预设拨测次数N,若是,则执行步骤204;
获取监测信息中记录的目标业务的拨测次数M,判断拨测次数M是否不小于预设拨测次数N,若是,则执行步骤204。
204、确定监测信息与预设拨测次数以及预设拨测周期相匹配;
若确定监测信息中记录的目标业务的拨测次数M不小于预设拨测次数N,则确定监测信息与预设拨测次数以及预设拨测周期相匹配。
需要说明的是,若M不小于N,则说明监测信息已经足够完成拨测。
205、对监测信息进行分析得到目标业务的拨测结果。
在确定监测信息与预设拨测次数以及预设拨测周期相匹配后,对监测信息进行分析得到目标业务的拨测结果。
可选的,在本发明的一些实施例中,对监测信息进行分析得到目标业务的拨测结果,之前包括:
从目标业务的M次拨测次数中随机选取N次拨测次数,并从监测信息中确定随机选取的N次拨测次数对应的目标监测信息;
上述对监测信息进行分析得到目标业务的拨测结果,具体为:
对目标监测信息进行分析得到目标业务的拨测结果。
需要说明的是,若M不小于N,则说明监测信息已经足够完成拨测,可以通过图1中的分析与统计模块,随机选取N次拨测次数。
可以理解的是,在实际应用中,还存在M小于N的可能,若M小于N,则说明在预设拨测周期内,收集目标业务在执行过程中产生的监测信息不足以完成拨测,因此,在本发明的一些实施例中,为了满足拨测要求,还包括:
若M﹤N,则向云系统发送N-M个目标业务的拨测请求。
需要说明的是,在实际应用中,若图1中的拨测模式及策略模块设定了不补充进行侵入式拨测,即便M﹤N,控制模块也不会要求拨测模块进行主动拨测,此时云系统工作状态为完全非侵入式的状态。
可选的,在本发明的一些实施例中,对目标监测信息进行分析得到目标业务的拨测结果,具体为:
调动预置分析引擎中的状态机引擎;
通过状态机引擎创建目标业务对应的状态机;
通过目标监测信息驱动状态机;
获取状态机在驱动过程中得到的目标业务的拨测结果。
需要说明的是,为了通过性能拨测实现性能分析,在本发明的一些实施例中,还可以进一步包括:
状态机在驱动过程中经过不同的状态;
所述方法还包括:
为状态机在驱动过程中经过的每个状态设置时间标签;
根据时间标签确定每个状态的持续时间。
本实施例中,通过获取云系统中待拨测的目标业务的拨测配置参数,收集目标业务在执行过程中产生的监测信息,其中该监测信息为持久化存储的信息,判断该监测信息是否与拨测配置参数相匹配,若匹配,则对该监测信息进行分析得到目标业务的拨测结果。现有方案拨测系统主动向云系统下发大量的业务拨测请求会对云系统的性能和资源造成较大的影响,而本发明通过被动获取云 系统中自有的业务在执行过程中产生的监测信息,无需主动向云系统下发大量的业务拨测请求,因此能够有效消除拨测对云系统的性能和资源造成的影响。
其次,通过针对监测信息的状态机分析,可以详细获取不同阶段执行时间,实现性能分析。
最后,通过将拨测配置参数细化为预设拨测次数以及预设拨测周期,通过一个实际的应用举例来说明本发明技术方案,使得读者便于理解本发明。
为了便于理解本发明的技术方案,下面以一实际的应用场景对本发明的技术方案进行描述:
在图1的框架下,拨测模式与策略定义如下:
拨测用例:创建虚拟机;预设拨测次数N=10;预设拨测周期30分钟;拨测内容:同时进行功能拨测和性能拨测;拨测策略:在必要时补充进行侵入式拨测。
运维人员将上述拨测模式与策略定义确定后,通过控制模块的人机接口输入至控制模块中,并在拨测模式及策略模块中进行持久化存储。
控制模块以30分钟为周期,要求分析与统计模块分析日志信息,判断在30分钟内,新增日志里面记录的虚拟机创建操作是否已经达到10个。如果确定达到或已超过10个,则分析与统计模块从中随机选取10个虚拟机创建操作的日志记录,并对其进行分析,得到拨测结果。
如果在30分钟内,新增日志里面记录的虚拟机创建操作少于10个(假设为M个),则根据拨测策略的要求,控制模块将控制拨测模块,主动向云系统下发N-M个虚拟机创建业务请求,以保证在本拨测周期内,总虚拟机创建业务操作数能够达到拨测模式及策略定义的要求。
另外,针对每一次虚拟机创建业务操作,分析与统计模块中的分析引擎将调用状态机引擎,创建一个“虚拟机创建”类型的状态机实例,并用日志信息驱动状态机运转,获取状态机在驱动过程中得到的目标业务的拨测结果。同时,为状态机在驱动过程中经过的每个状态设置时间标签,根据时间标签确定每个状态的持续时间。
上面的实施例介绍了本发明的业务拨测方法,下面介绍本发明的业务拨测装置,请参阅图4,本发明实施例中业务拨测装置的一个实施例包括:
获取单元301、用于获取云系统中待拨测的目标业务的拨测配置参数;
收集单元302,用于收集目标业务在执行过程中产生的监测信息,该监测信息为持久化存储的信息;
判断单元303,用于判断该监测信息是否与拨测配置参数相匹配;
处理单元304,用于若判断单元303判断该监测信息与拨测配置参数相匹配,则对监测信息进行分析得到目标业务的拨测结果。
本实施例中,通过获取云系统中待拨测的目标业务的拨测配置参数,收集目标业务在执行过程中产生的监测信息,其中该监测信息为持久化存储的信息,判断该监测信息是否与拨测配置参数相匹配,若匹配,则对该监测信息进行分析得到目标业务的拨测结果。现有方案拨测系统主动向云系统下发大量的业务拨测请求会对云系统的性能和资源造成较大的影响,而本发明通过被动获取云系统中自有的业务在执行过程中产生的监测信息,无需主动向云系统下发大量的业务拨测请求,因此能够有效消除拨测对云系统的性能和资源造成的影响。
请参阅图5,本发明实施例中业务拨测装置的另一个实施例包括:
获取单元401,用于获取云系统中待拨测的目标业务的预设拨测次数以及预设拨测周期;
收集单元402,用于在预设拨测周期内,收集目标业务在执行过程中产生的监测信息,该监测信息为持久化存储的信息;
判断单元403,用于判断监测信息中记录的目标业务的拨测次数M是否不小于预设拨测次数N;
处理单元404,用于若判断单元403判断为是,则确定监测信息与预设拨测次数以及预设拨测周期相匹配,对监测信息进行分析得到目标业务的拨测结果。
可选的,在本发明的一些实施例中,在M不小于N的条件下,该装置还包括:
选取单元405,用于从目标业务的M次拨测次数中随机选取N次拨测次数;
确定单元406,用于从监测信息中确定随机选取的N次拨测次数对应的目标监测信息;
处理单元404,具体用于对目标监测信息进行分析得到目标业务的拨测结果。
可选的,在本发明的一些实施例中,为了在M﹤N的条件下,满足拨测要求,该装置还包括:
发送单元407,用于若M﹤N,则向云系统发送N-M个目标业务的拨测请求。
可选的,在本发明的一些实施例中,该装置还包括:
调用单元408,用于调用预置分析引擎中的状态机引擎;
创建单元409,用于通过状态机引擎创建目标业务对应的状态机;
驱动单元410,用于通过目标监测信息驱动状态机;
处理单元404,具体用于获取状态机在驱动过程中得到的目标业务的拨测结果。
可选的,在本发明的一些实施例中,为了通过性能拨测实现性能分析,该装置还包括:
配置单元411,用于为状态机在驱动过程中经过的每个状态设置时间标签;
确定单元406,还用于根据时间标签确定每个状态的持续时间。
可选的,在本发明的一些实施例中,为了有效避免错误累积,
判断单元403,还用于通过云系统判断云系统中待拨测的目标业务是否异常;
处理单元404,还用于若判断单元403通过云系统判断云系统中待拨测的目标业务是异常的业务,则停止获取单元401获取云系统中待拨测的目标业务的拨测配置参数的步骤,若判断单元403通过云系统判断云系统中待拨测的目标业务不是异常的业务,则触发获取单元401获取云系统中待拨测的目标业务的拨测配置参数的步骤。
本实施例中,通过获取云系统中待拨测的目标业务的拨测配置参数,收集目标业务在执行过程中产生的监测信息,其中该监测信息为持久化存储的信息,判断该监测信息是否与拨测配置参数相匹配,若匹配,则对该监测信息进行分析得到目标业务的拨测结果。现有方案拨测系统主动向云系统下发大量的业务拨测请求会对云系统的性能和资源造成较大的影响,而本发明通过被动获取云系统中自有的业务在执行过程中产生的监测信息,无需主动向云系统下发大量的业务拨测请求,因此能够有效消除拨测对云系统的性能和资源造成的影响。
其次,通过针对监测信息的状态机分析,可以详细获取不同阶段执行时间,实现性能分析。
最后,通过将拨测配置参数细化为预设拨测次数以及预设拨测周期,通过一个实际的应用举例来说明本发明技术方案,使得读者便于理解本发明。
为了便于理解,下面以一个实际的应用场景对本发明装置的各单元间的交互进行描述:
拨测模式与策略定义如下:
拨测用例:创建虚拟机;预设拨测次数N=10;预设拨测周期30分钟;拨测内容:同时进行功能拨测和性能拨测;拨测策略:在必要时补充进行侵入式拨测。
获取单元401从图1中的拨测模式及策略模块中获取云系统中待拨测的目标业务的拨测次数10以及拨测周期30分钟,其中目标待拨测的目标业务为创建虚拟机;在30分钟内,收集单元402收集云系统中创建虚拟机的过程中产生的日志信息;通过日志信息中记录的创建虚拟机的次数为12次,判断单元403判断日志信息中记录的创建虚拟机的次数大于预设拨测次数;选取单元405从12次中随机选取10次;确定单元406从日志信息中确定随机选取的10次对应的目标日志信息;调用单元408调用预置分析引擎中的状态机引擎;创建单元409,通过状态机引擎创建虚拟机的创建对应的状态机;驱动单元410,通过目标日志信息驱动状态机;处理单元404,获取状态机在驱动过程中得到的创建虚拟机的拨测结果。另外,配置单元411,为状态机在驱动过程中经过的每个状态设置时间标签;确定单元406,根据时间标签确定每个状态的持续时间。
本发明实施例还提供一种服务器,请参阅图6,本发明实施例中服务器的一个实施例包括:
图6是本发明实施例提供的一种服务器结构示意图,该服务器500可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)501(例如,一个或一个以上处理器),一个或一个以上存储应用程序502或数据503的存储介质504(例如一个或一个以上海量存储设备)。其中,存储介质504可以是短暂存储或持久存储。存储在存储介质504的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对交换机中的一系列指令操作。更进一步地,中央处理器501可以设置为与存储介质504通信,在服务器500上执行存储介质504中的一系列指令操作。
服务器500还可以包括一个或一个以上电源505,一个或一个以上有线或无线网络接口506,一个或一个以上输输出接口507,和/或,一个或一个以上操作系统508,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM 等等。
上述实施例中由装置所执行的步骤可以基于该图6所示的服务器结构。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (16)

  1. 一种业务拨测方法,其特征在于,包括:
    获取云系统中待拨测的目标业务的拨测配置参数;
    收集所述目标业务在执行过程中产生的监测信息,所述监测信息为持久化存储的信息;
    判断所述监测信息是否与所述拨测配置参数相匹配,若匹配,则对所述监测信息进行分析得到所述目标业务的拨测结果。
  2. 根据权利要求1所述的方法,其特征在于,
    所述拨测配置参数包括预设拨测次数以及预设拨测周期;
    所述获取云系统中待拨测的目标业务的拨测配置参数,包括:
    获取云系统中待拨测的目标业务的预设拨测次数以及预设拨测周期;
    所述收集所述目标业务在执行过程中产生的监测信息,包括:
    在所述预设拨测周期内,收集所述目标业务在执行过程中产生的监测信息;
    所述判断所述监测信息是否与所述拨测配置参数相匹配,包括:
    判断所述监测信息中记录的所述目标业务的拨测次数M是否不小于所述预设拨测次数N,若是,则确定所述监测信息与所述预设拨测次数以及所述预设拨测周期相匹配。
  3. 根据权利要求2所述的方法,其特征在于,所述对所述监测信息进行分析得到所述目标业务的拨测结果,之前包括:
    从所述目标业务的M次拨测次数中随机选取N次拨测次数,并从所述监测信息中确定随机选取的所述N次拨测次数对应的目标监测信息;
    所述对所述监测信息进行分析得到所述目标业务的拨测结果,包括:
    对所述目标监测信息进行分析得到所述目标业务的拨测结果。
  4. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    若M﹤N,则向所述云系统发送N-M个所述目标业务的拨测请求。
  5. 根据权利要求3所述的方法,其特征在于,所述对所述目标监测信息进行分析得到所述目标业务的拨测结果,包括:
    调用预置分析引擎中的状态机引擎;
    通过所述状态机引擎创建所述目标业务对应的状态机;
    通过所述目标监测信息驱动所述状态机;
    获取所述状态机在驱动过程中得到的所述目标业务的拨测结果。
  6. 根据权利要求5所述的方法,其特征在于,
    所述状态机在驱动过程中经过不同的状态;
    所述方法还包括:
    为所述状态机在驱动过程中经过的每个状态设置时间标签;
    根据所述时间标签确定所述每个状态的持续时间。
  7. 根据权利要求1至6任意一项所述的方法,其特征在于,所述获取云系统中待拨测的目标业务的拨测配置参数,之前包括:
    通过云系统判断所述云系统中待拨测的目标业务是否异常,若异常,则停止获取云系统中待拨测的目标业务的拨测配置参数的步骤,若不异常,则触发获取云系统中待拨测的目标业务的拨测配置参数的步骤。
  8. 一种业务拨测装置,其特征在于,包括:
    获取单元,用于获取云系统中待拨测的目标业务的拨测配置参数;
    收集单元,用于收集所述目标业务在执行过程中产生的监测信息,所述监测信息为持久化存储的信息;
    判断单元,用于判断所述监测信息是否与所述拨测配置参数相匹配;
    处理单元,用于若判断单元判断所述监测信息与所述拨测配置参数相匹配,则对所述监测信息进行分析得到所述目标业务的拨测结果。
  9. 根据权利要求8所述的装置,其特征在于,
    所述拨测配置参数包括预设拨测次数以及预设拨测周期;
    所述获取单元,具体用于获取云系统中待拨测的目标业务的预设拨测次数以及预设拨测周期;
    所述收集单元,具体用于在所述预设拨测周期内,收集所述目标业务在执行过程中产生的监测信息,所述监测信息为持久化存储的信息;
    所述判断单元,具体用于判断所述监测信息中记录的所述目标业务的拨测次数M是否不小于所述预设拨测次数N,若是,则确定所述监测信息与所述预设拨测次数以及预设拨测周期相匹配。
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    选取单元,用于从所述目标业务的M次拨测次数中随机选取N次拨测次数;
    确定单元,用于从所述监测信息中确定随机选取的所述N次拨测次数对应的目标监测信息;
    所述处理单元,具体用于对所述目标监测信息进行分析得到所述目标业务的拨测结果。
  11. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    发送单元,用于若M﹤N,则向所述云系统发送N-M个所述目标业务的拨测请求。
  12. 根据权利要求10所述的装置,其特征在于,所述装置还包括:
    调用单元,用于调用预置分析引擎中的状态机引擎;
    创建单元,用于通过所述状态机引擎创建所述目标业务对应的状态机;
    驱动单元,用于通过所述目标监测信息驱动所述状态机;
    所述处理单元,具体用于获取所述状态机在驱动过程中得到的所述目标业务的拨测结果。
  13. 根据权利要求12所述的装置,其特征在于,所述状态机在驱动过程中经过不同的状态;所述装置还包括:
    配置单元,用于为所述状态机在驱动过程中经过的每个状态设置时间标签;
    所述确定单元,还用于根据所述时间标签确定所述每个状态的持续时间。
  14. 根据权利要求8至13任意一项所述的装置,其特征在于,
    所述判断单元,还用于通过云系统判断所述云系统中待拨测的目标业务是否异常;
    所述处理单元,还用于若所述判断单元通过云系统判断所述云系统中待拨测的目标业务是异常的业务,则停止所述获取单元获取云系统中待拨测的目标业务的拨测配置参数的步骤,若所述判断单元通过云系统判断所述云系统中待拨测的目标业务不是异常的业务,则触发所述获取单元获取云系统中待拨测的目标业务的拨测配置参数的步骤。
  15. 一种业务拨测系统,其特征在于,包括:云系统以及权利要求8至14任意一项所述的业务拨测装置。
  16. 根据权利要求15所述的系统,其特征在于,所述系统还包括拨测配置参数存储模块,所述拨测配置参数存储模块用于存储拨测配置参数。
PCT/CN2016/109748 2015-12-29 2016-12-13 一种业务拨测方法、装置以及系统 WO2017114152A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511009714.XA CN105634804B (zh) 2015-12-29 2015-12-29 一种业务拨测方法、装置以及系统
CN201511009714.X 2015-12-29

Publications (1)

Publication Number Publication Date
WO2017114152A1 true WO2017114152A1 (zh) 2017-07-06

Family

ID=56049342

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/109748 WO2017114152A1 (zh) 2015-12-29 2016-12-13 一种业务拨测方法、装置以及系统

Country Status (2)

Country Link
CN (1) CN105634804B (zh)
WO (1) WO2017114152A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069506A (zh) * 2018-07-27 2019-07-30 阿里巴巴集团控股有限公司 业务数据的维护方法、装置及服务器
CN112202638A (zh) * 2020-09-29 2021-01-08 北京百度网讯科技有限公司 数据处理方法、装置、设备及计算机存储介质
CN113676724A (zh) * 2021-08-18 2021-11-19 中邮科通信技术股份有限公司 Iptv业务中节目的自动化拨测系统及方法
CN114978945A (zh) * 2022-05-13 2022-08-30 北京有竹居网络技术有限公司 网络拨测方法、装置、系统、电子设备及存储介质
CN115297037A (zh) * 2021-04-19 2022-11-04 中国移动通信集团安徽有限公司 拨测方法、装置、设备及存储介质
CN116527528A (zh) * 2023-04-12 2023-08-01 中国信息通信研究院 一种基于流量的数据安全监测系统的测试方法

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634804B (zh) * 2015-12-29 2019-02-12 华为技术有限公司 一种业务拨测方法、装置以及系统
CN106209854B (zh) * 2016-07-13 2017-05-31 徐州医科大学 一种基于状态机实现访问控制的云平台服务方法及系统
CN107005441B (zh) * 2016-08-25 2020-12-04 华为技术有限公司 拨测方法、拨测系统和计算节点
CN109639919B (zh) * 2018-11-27 2021-06-01 中国移动通信集团江苏有限公司 一种拨测方法、装置、设备及介质
CN115967613A (zh) * 2022-12-20 2023-04-14 广州骏伯网络科技有限公司 一种自适应性页面拨测告警方法、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075381A (zh) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 一种应用于云存储的自动化测试平台服务器及系统
US20110239214A1 (en) * 2010-03-29 2011-09-29 Frields Paul W Mechanism for Utilizing a Virtual Machine Cloud for Automated Test System Deployment
CN103580934A (zh) * 2012-07-18 2014-02-12 深圳市腾讯计算机系统有限公司 一种云业务监测方法和装置
CN105049298A (zh) * 2015-08-27 2015-11-11 浪潮集团有限公司 一种云资源监控方法和系统
CN105634804A (zh) * 2015-12-29 2016-06-01 华为技术有限公司 一种业务拨测方法、装置以及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050271186A1 (en) * 2004-06-02 2005-12-08 Audiopoint, Inc. System, method and computer program product for interactive voice notification
CN101115266B (zh) * 2007-08-23 2010-05-19 华为技术有限公司 一种拨测方法,装置及其系统
CN101159773A (zh) * 2007-10-17 2008-04-09 华为技术有限公司 一种自动拨测系统、设备及方法
CN101730055A (zh) * 2008-10-24 2010-06-09 华为技术有限公司 获取用户状态信息及其在业务中的应用方法、装置和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110239214A1 (en) * 2010-03-29 2011-09-29 Frields Paul W Mechanism for Utilizing a Virtual Machine Cloud for Automated Test System Deployment
CN102075381A (zh) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 一种应用于云存储的自动化测试平台服务器及系统
CN103580934A (zh) * 2012-07-18 2014-02-12 深圳市腾讯计算机系统有限公司 一种云业务监测方法和装置
CN105049298A (zh) * 2015-08-27 2015-11-11 浪潮集团有限公司 一种云资源监控方法和系统
CN105634804A (zh) * 2015-12-29 2016-06-01 华为技术有限公司 一种业务拨测方法、装置以及系统

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069506A (zh) * 2018-07-27 2019-07-30 阿里巴巴集团控股有限公司 业务数据的维护方法、装置及服务器
CN112202638A (zh) * 2020-09-29 2021-01-08 北京百度网讯科技有限公司 数据处理方法、装置、设备及计算机存储介质
CN112202638B (zh) * 2020-09-29 2022-03-01 北京百度网讯科技有限公司 数据处理方法、装置、设备及计算机存储介质
CN115297037A (zh) * 2021-04-19 2022-11-04 中国移动通信集团安徽有限公司 拨测方法、装置、设备及存储介质
CN113676724A (zh) * 2021-08-18 2021-11-19 中邮科通信技术股份有限公司 Iptv业务中节目的自动化拨测系统及方法
CN113676724B (zh) * 2021-08-18 2024-02-23 中邮科通信技术股份有限公司 Iptv业务中节目的自动化拨测系统及方法
CN114978945A (zh) * 2022-05-13 2022-08-30 北京有竹居网络技术有限公司 网络拨测方法、装置、系统、电子设备及存储介质
CN114978945B (zh) * 2022-05-13 2024-05-28 北京有竹居网络技术有限公司 基于边缘节点的网络拨测方法、服务器集群及相关设备
CN116527528A (zh) * 2023-04-12 2023-08-01 中国信息通信研究院 一种基于流量的数据安全监测系统的测试方法
CN116527528B (zh) * 2023-04-12 2024-02-02 中国信息通信研究院 一种基于流量的数据安全监测系统的测试方法

Also Published As

Publication number Publication date
CN105634804B (zh) 2019-02-12
CN105634804A (zh) 2016-06-01

Similar Documents

Publication Publication Date Title
WO2017114152A1 (zh) 一种业务拨测方法、装置以及系统
CN110245078B (zh) 一种软件的压力测试方法、装置、存储介质和服务器
EP3019971B1 (en) Methods and systems for performance monitoring for mobile applications
CN107294808B (zh) 接口测试的方法、装置和系统
US10904112B2 (en) Automatic capture of detailed analysis information based on remote server analysis
US11405259B2 (en) Cloud service transaction capsulation
EP3886367A1 (en) Automating 5g slices using real-time analytics
JP2017050715A (ja) ネットワーク監視システム、ネットワーク監視方法およびプログラム
US10616078B1 (en) Detecting deviating resources in a virtual environment
CN105607986A (zh) 用户行为日志数据采集方法及装置
Gulenko et al. A system architecture for real-time anomaly detection in large-scale nfv systems
US20180324031A1 (en) Diagnostic traffic generation for automatic testing and troubleshooting
CN107544832A (zh) 一种虚拟机进程的监控方法、装置和系统
CN107168850B (zh) 一种url页面监控方法和装置
TW201618496A (zh) 關聯用於系統活動的衍生度量之系統及方法
US20180095819A1 (en) Incident analysis program, incident analysis method, information processing device, service identification program, service identification method, and service identification device
CN107168844B (zh) 一种性能监控的方法及装置
CN108733545B (zh) 一种压力测试方法及装置
US11349730B2 (en) Operation device and operation method
CN107204868B (zh) 一种任务运行监控信息获取方法和装置
WO2022088809A1 (zh) 确定检测服务器的间隔时间的方法、系统、设备及介质
US20160050101A1 (en) Real-Time Network Monitoring and Alerting
US20180219752A1 (en) Graph search in structured query language style query
US20200133252A1 (en) Systems and methods for monitoring performance of a building management system via log streams
CN115525392A (zh) 容器监控方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16880942

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16880942

Country of ref document: EP

Kind code of ref document: A1