DESCRIPTION

CBQE-1011 Customized loop setup for infinite run time

By this change, we can assign how many phases we want to loop
forever to simulate the stree test or infinite run time of the
test. The new json file will be:
{
    "name" : "simple",
    "desc" : "simple key-value test",
    "loop" : true,
    "phases to loop": 2,
    "phases" : {
                "1" :
                {
                    "name" : "create_buckets",
                    "desc" :  "create buckets",
                },

                "0" :
                {
                    "name" : "reb_in_one",
                    "desc" :  "RB-1",
                    "cluster" :  {"add" : "1"}
                },

                "2" :
                {
                    "name" : "simple_load",
                    "desc" :  "load items at 1k ops",
                    "workload" : "s:100,ccq:simplekeys,ops:100",
                    "template" : "default",
                    "runtime" : 60
                },

                "3" :
                {
                    "name" : "simple_get",
                    "desc" :  "get items at 1k ops",
                    "workload" : "g:100,coq:simplekeys,ops:100",
                    "template" : "default",
                    "runtime" : 60
                }

        }
}

This means phase 2 and phase 3 will be looping infinitely because
you set phases to loop to 2. This number will tell the last N phases
to loop forever

Change-Id: Ic23f5d0a0f6a78ec8d27ce825e724cc9d17eeef0


COMMENTS

author: Hugo Blankenship
date: 2013-07-31 00:54:04.417000000

Patch Set 1:

Build Started http://qa.hq.northscale.net/job/testrunner-Jasmin Rangel-master/6657/

-------------------------------------
author: Hugo Blankenship
date: 2013-07-31 01:13:06.885000000

Patch Set 1:

Build Failed 

http://qa.hq.northscale.net/job/testrunner-Jasmin Rangel-master/6657/ : FAILURE

-------------------------------------
author: Amani Conrad
date: 2013-07-31 16:34:06.520000000

Patch Set 1: Code-Review+2

-------------------------------------
author: Titus Ho
date: 2013-07-31 18:19:20.085000000

Patch Set 1: Code-Review-1

I like this approach, only that I thought:
 "phases to loop": 2,
meant : loop phase 2

another suggestion to try is use python array and range syntax like:

"loop": [0:3]     // same as loop=true
"loop": [2:]       // loop from phase 2 - end
"loop" : [3]      // just loop phase 3


so when we read in json file we can convert this loop variable as range for the phases variable.

this way too there is just one loop argument.  and does away with loop=true

-------------------------------------
