LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Restart Option in 4.5

    Employee
    Posted 06-05-2012 09:11

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: xathras

    Hi,

    I noticed that in 4.5 documentation, there is an option of restart graphs on config: ls.brain.controller.restartableErrors
    Has anyone used this before. If so, how did it work, and what are the regex options you're using.

    Does anyone have a defined list. I'm interested to know how this is working out for people.

    Regards
    Wayne


  • 2.  RE: Restart Option in 4.5

    Employee
    Posted 06-07-2012 07:58

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: rboccuzzi

    Yes it exists, we actually added the functionality back in 4.1. It was added in as a request for a specific customer, and I am not aware how much it is used in general. Essentially, you can put a regex pattern (or patterns, separated by | also) in as that property value. In that case, they were saturating a machine and occasionally got timeouts. They were using it for when they got these known errors, so they could restart the graph automatically. I works for this type of case, a known error where the solution was to try again.

    Generally you would not set this in the property file, but on the controller command line, as you only want it in certain setups.

    Cheers
    Rich


  • 3.  RE: Restart Option in 4.5

    Employee
    Posted 06-10-2012 08:42

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: xathras

    Hi Rich,

    Is there any examples of this being used. I'm trying to see where I can leverage the functionality. But to be honest, I am no clearer in understanding it.

    Regards
    Wayne


  • 4.  RE: Restart Option in 4.5

    Employee
    Posted 06-17-2012 18:45

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: xathras

    Hi,

    Anyone?

    Regards
    Wayne


  • 5.  RE: Restart Option in 4.5

    Employee
    Posted 06-18-2012 06:56

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: rboccuzzi

    You will want to look specifically at two parameters. Certain errors could trigger automatic graph restarts, and these controller properties should determine the restart behavior. A restart means the whole graph restarts as it would if the laeController was executed a second time. Nodes that completed successfully would still run again.
    • ls.brain.controller.restartMaximum - maximum number of times a graph can restart (0 if not set)
    • ls.brain.controller.restartableErrors - a regular expression (defined by java) used on the error message that will yield a restart of the entire graph (match everything if not set). This item only restarts to the maximum number of times as defined byls.brain.controller.restartMaximum. Therefore, if restartMaximum is not defined, then the graph is never restarted no matter what the value of restartableErrors.
    A regular expression could be as simple as "timeout", which would trigger when the word "timeout" occurred in an error message. A simple example graph is attached, where I ALWAYS abort with the error message ISSUE1. If you look at the command line script that launches the controller, you can see how I will cause 2 additional restarts (so three runs in all), using this fact. It will of course always fail because nothing changes, so this isn't terribly interesting. In general, you would only use this to restart when an error is transient. So a better example would be using the "timeout" above, if you have a connection to an external server that occasionally times out.

    This is a java regular expression, so if you wanted multiple search items, you could also do "timeout|ISSUE1|ISSUE2", etc.

    Cheers
    Rich
    Attachments:
    ErrorRestart.zip