The invention discloses an application server snapshot service method and device. The steps of the method include obtaining at least two snapshot rules, setting the execution time of snapshot rules in the timer, and controlling the timer executing the snapshot rule sequentially according to the execution time. Therefore, by setting the execution time of snapshot rules, this method can execute multiple snapshot rules sequentially according to execution time, and enable the information to be collected more comprehensively when the application server fails. In addition, due to the execution of multiple snapshot rules, users can customized according to the needs of the corresponding rules in the application server and use snapshot snapshot service, so the service is not limited to the snapshot snapshot rules provide default content, so snapshot rules can be customized more. In addition, the snapshot service device of the application server also has the above effect.
【技术实现步骤摘要】
一种应用服务器的快照服务方法及装置
本专利技术涉及服务器快照领域,特别是涉及一种应用服务器的快照服务方法及装置。
技术介绍
随着互联网技术的不断发展,在集群中的应用服务器数量越来越庞大,并且由于集群中的应用服务器故障往往持续时间短暂,很难在第一时间被运维人员排查到,因此运维人员对于应用服务器的工作情况的监控力度逐渐降低。基于上述情况,运维人员迫切需求能够掌握应用服务器在运行阶段的故障情况监测以及采集,因此应用服务器的快照服务应运而生。快照服务在应用服务器出现故障时能够快速响应,并根据快照规则采集响应故障情况下的软硬件运行情况信息,为运维人员解决应用服务器故障提供了有利的帮助。但是,在现有技术中,快照服务的快照规则是固定的,可定制化不足,运维人员只能使用快照服务默认提供的快照规则进行规则设定;另外,快照服务只支持一条快照规则的执行,并且在快照规则中对于应用服务器进行监测的内容数量也被严格限制,导致故障信息往往不能被全面的采集。由此可见,提供一种应用服务器的快照服务方法以提高快照规则的可定制化程度,以及更加全面的采集应用服务器的故障信息,是本领域技术人员亟待解决的问题 ...
【技术保护点】
一种应用服务器的快照服务方法,其特征在于,包括:获取至少两种快照规则;在计时器中设定所述快照规则的执行时间;控制所述计时器根据所述执行时间依次执行所述快照规则。
【技术特征摘要】
1.一种应用服务器的快照服务方法,其特征在于,包括:获取至少两种快照规则;在计时器中设定所述快照规则的执行时间;控制所述计时器根据所述执行时间依次执行所述快照规则。2.根据权利要求1所述的方法,其特征在于,在所述获取至少两种快照规则后,该方法进一步包括:通过注解的方式在所述快照规则中建立用于对所述快照规则进行编辑的接口。3.根据权利要求1或2所述的方法,其特征在于,该方法进一步包括:判断所述快照规则是否发生改变;如果是,则重新启动所述快照规则。4.根据权利要求3所述的方法,其特征在于,当所述快照规则发生改变时,该方法进一步包括:判断所述快照规则是否应用在应用服务器集群中其他的目标应用服务器中;如果是,则将所述快照规则同步到所述目标应用服务器中,并进入所述重新启动所述快照规则的步骤。5.根据权利要求1所述的方法,其特征在于,所述快照...
【专利技术属性】
技术研发人员:杨传艳,赵欣,翟鲁超,李新峰,谭昭,
申请(专利权)人:山东中创软件商用中间件股份有限公司,
类型:发明
国别省市:山东,37
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。