Skip to content

v3.3 Mixed and Weighted Load

Andrey Kurilov edited this page Mar 26, 2017 · 1 revision

Overview

Mongoose is able to account the metrics for the configured test step. A test step is defined by an I/O type (Create/Read/Update/Delete/...) and other essential parameters. It's may be necessary to account the performance metrics while performing a test step consisting of (sub-steps). For example create and read the objects/files simultaneously and account the aggregated metrics.

Limitations

There are a set of parameters which are used by shared load monitor and may not be set for a sub-steps:

  • item-output-file
  • test-step-job-name
  • test-step-limit-rate
  • test-step-limit-time
  • test-step-metrics-threshold
  • test-step-metrics-period
  • test-step-precondition
  • load-queue-size
  • storage-driver-remote

The values for these parameters will be taken from the 1st "config" element from the list (if any).

Approach

TODO

Configuration

Mixed Load Types

"type" : "mixed",
"config" : [
    {
        "load" : {
            "type" : "create"
        }
    }, {
        "item" : {
            "input" : {
                "file" : "items2read.csv"
            }
        },
        "load" : {
            "circular" : true,
            "type" : "read"
        }
    }, {
        "item" : {
            "input" : {
                "file" : "items2update.csv"
            }
        },
        "load" : {
            "circular" : true,
            "type" : "update"
        }
    }
]

Create using different users

"type" : "mixed",
"config" : [
    {
        "auth" : {
            "uid" : "uid0",
            "secret" : "secret0"
        }
    }, {
        "auth" : {
            "uid" : "uid1",
            "secret" : "secret1"
        }
    }, {
        "auth" : {
            "uid" : "uid2",
            "secret" : "secret2"
        }
    }
]

Weighted

"type" : "mixed",
"weights" : [
    3,
    2,
    1,
],
"config" : [
    {
        "item" : {
            "output" : {
                "path" : "/bucket0"
            }
        }
    }, {
        "item" : {
            "output" : {
                "path" : "/bucket1"
            }
        }
    }, {
        "item" : {
            "output" : {
                "path" : "/bucket2"
            }
        }
    }
]

Reporting

Standard Output

Periodic metrics are displayed as the table like below:

______________________________________________________________________________________________________________________
 Load | Concur| Driver|       Count       |  Job  |    TP [op/s]    |        |  BW [MB/s]  |Latency [us]|Duration [us]
 Type | rency | Count |-------------------| Time  |-----------------|  Size  |-------------|------------|-------------
      |       |       |   Success  |Failed|  [s]  |  Mean  |  Last  |        | Mean | Last |    Mean    |    Mean     
------|-------|-------|------------|------|-------|--------|--------|--------|------|------|------------|-------------
  READ|    100|      1|    38547921|     0|3880.32|9934.211|9892.048| 36.76GB|9.7013|9.6602|        1029|        1324
CREATE|    100|      1|     9639439|     0|3880.32|2484.186|2471.754| 91.93GB|24.261|24.100|        1440|        1332
----------------------------------------------------------------------------------------------------------------------
Clone this wiki locally