Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently the agitation script has a configurable time for time between kills and time between restarts. Currently these are single value times. The times should be ranges with the expectation that the script will pick a random number in that range. This has the advantage that sometimes a kill event will occurr while logs are still recovering from a previous kill event and sometimes it will be after. The same applies to the restart times, sometimes a killed server will be restarted before the system has recovered from the previous kill and sometimes after.

        Activity

        Hide
        John Vines added a comment -

        Tested the patch and gave it a go and it seemed valid. I updated the usage information accordingly. Hopefully this will help with the 1.5 testing.

        Show
        John Vines added a comment - Tested the patch and gave it a go and it seemed valid. I updated the usage information accordingly. Hopefully this will help with the 1.5 testing.
        Hide
        Chris McCubbin added a comment -

        Attached is a patch that alters the agitator script to allow for ranges on the input. current input is like:

        agitator.pl 1 2 3 4

        Where 1 is the sleep time in minutes between kills and tup, and 2 is the sleep time between tup and kills. 3 and 4 are minkill and maxkill resp.

        The patch is fully backwards compatible in input and output. However, it now has the capability to be called like this:

        agitator.pl 1:5 2:6 3 4

        where now the time between kill and tup will be a uniformly randomly distributed number between 1 and 5 inclusive, and similar with the tup to kill time. The two styles can be mixed:

        agitator.pl 1:5 2 3 4

        is also valid. The separating character must be a colon. The script will throw an error if called with a minimum time greater than the max time.

        Show
        Chris McCubbin added a comment - Attached is a patch that alters the agitator script to allow for ranges on the input. current input is like: agitator.pl 1 2 3 4 Where 1 is the sleep time in minutes between kills and tup, and 2 is the sleep time between tup and kills. 3 and 4 are minkill and maxkill resp. The patch is fully backwards compatible in input and output. However, it now has the capability to be called like this: agitator.pl 1:5 2:6 3 4 where now the time between kill and tup will be a uniformly randomly distributed number between 1 and 5 inclusive, and similar with the tup to kill time. The two styles can be mixed: agitator.pl 1:5 2 3 4 is also valid. The separating character must be a colon. The script will throw an error if called with a minimum time greater than the max time.

          People

          • Assignee:
            Chris McCubbin
            Reporter:
            Keith Turner
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development