rally tenants & users

asked 2015-11-05 01:06:42 -0600

Bharath gravatar image

I am trying to completely understand the difference between below rally input files.

{
  "kw": {
    "runner": {
      "rps": 50,
      "type": "rps",
      "times": 50
    },
    "args": {
      "size": 2
    },
    "name": "CinderVolumes.create_volume",
    "context": {
      "users": {
        "project_domain": "default",
        "users_per_tenant": 5,
        "tenants": 5,
        "resource_management_workers": 10,
        "user_domain": "default"
      }
    }
}

Second Input:

{
  "kw": {
    "runner": {
      "rps": 50,
      "type": "rps",
      "times": 50
    },
    "args": {
      "size": 2
    },
    "name": "CinderVolumes.create_volume",
    "context": {
      "users": {
        "project_domain": "default",
        "users_per_tenant": 5,
        "tenants": 1,
        "resource_management_workers": 10,
        "user_domain": "default"
      }
    }
  },

I wanted to create 50 cinder volumes with rps 50.

When I use one tenant with 5 users - 50 volumes will be created from 5 users in that tenant.

When I use 5 tenants with 5 users each - 50 volumes will be created across 5 tenants from 25 users.

Is my understanding correct or in case of 5 tenants and 5 users - 50 volumes will be created for each tenant from 5 users in it?

Also I understand that resource_management_workers parameter defines concurrent threads use for serving users context, correct me if I am wrong.

Please throw some light on this.

Thank you.

edit retag flag offensive close merge delete