首页> 外国专利> Early warning mechanism for enhancing enterprise availability

Early warning mechanism for enhancing enterprise availability

机译:增强企业可用性的预警机制

摘要

A computer method for issuing an early warning includes determining, using change and test coverage and control flow and data flow analyses of a program, locations in the program at which to insert early warning (EW) code to monitor for an event. The program is instrumented with EW code which monitors for the event, by inserting EW code at the determined locations. Upon detecting the event, EW code performs an early action warning, or issues an early action. Early warnings are issued when an EW-instrumented block is reached. Issuance of an early warning action can be conditional upon execution of the program in a particular environment, such as a production environment. Issuance of an EW can also be conditional upon executing an untested block of code that was recently modified. The issuing of an early warning can include sending an email, writing into a log file, sending a message to a console, where the message causes the change of a human-perceptible characteristic, placing the program into a wait state, halting the program, sending an alarm to an operator, or triggering a failover. In some embodiments, EW code can be deactivated upon certain conditions. Issuance of an early warning can also occur upon an event such as the execution of a user-inserted assert or warning statement, or before a file is opened, wherein the EW issues if a null pointer about to be passed to a system function. In some embodiments, an EW will issue if the value of an argument to some function exceeds a predetermined range. In various embodiments, the EW code is placed in a loop, and issues an EW if the loop is executed more than a predetermined number of times, or the EW code issues an EW upon the execution of user-marked code, or the EW code issues an EW when the time duration between execution of two points in the program exceeds a predetermined value, or upon the detection of an untested configuration.
机译:一种发布预警的计算机方法,包括使用变更和测试覆盖率以及对程序的控制流和数据流分析来确定程序中要插入预警(EW)代码以监视事件的位置。通过在确定的位置插入EW代码,该程序将配备EW代码,该代码可监视事件。在检测到事件后,EW代码将执行预警或发出预警。达到EW仪表块时将发出预警。发出预警措施可以在特定环境(例如生产环境)中执行程序为条件。 EW的发布也可以以执行最近修改的未经测试的代码块为条件。发出预警可以包括发送电子邮件,写入日志文件,向控制台发送消息,在此消息会导致人类可感知的特性发生变化,将程序置于等待状态,暂停程序,向操作员发送警报或触发故障转移。在一些实施例中,可以在某些条件下停用EW代码。预警的发出也可能发生在诸如执行用户插入的断言或警告语句之类的事件时,或者在打开文件之前,其中EW发出是否将空指针传递给系统功能。在一些实施例中,如果某个函数的自变量的值超出预定范围,则将发出EW。在各种实施例中,EW代码被放置在循环中,并且如果循环被执行超过预定次数则发出EW,或者EW代码在执行用户标记的代码或EW代码时发出EW。当程序中两点执行之间的持续时间超过预定值时,或者检测到未经测试的配置时,将发出EW。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号