rps runner starts threads simultaneously

Bug #1484537 reported by Oleh Anufriiev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Fix Released
High
Oleh Anufriiev

Bug Description

RPS runner should start threads inside processes with some time shift.
This was implemented to perform load more evenly.

config:

{
    "VMTasks.boot_runcommand_delete": [
        {
            "args": {
                "flavor": {
                    "name": "m1.tiny"
                },
                "nics": [
                  {
                    "net-id": "01f78bed-32e2-4a4d-bde4-287b9cb6b12a"
                 }
                ],
                "image": {
                    "name": "cirros"
                },
                "floating_network": "ext_net",
                "use_floating_ip": true,
                "force_delete": true,
                "script": "samples/tasks/support/instance_dd_test.sh",
                "interpreter": "/bin/sh",
                "username": "cirros"
            },
            "runner": {
                "type": "rps",
                "times": 40,
                "rps": 0.5,
                "timeout": 1
            },
            "context": {
                "users": {
                    "tenants": 1,
                    "users_per_tenant": 1
                },
                 "quotas": {
                     "nova": {
                         "instances": -1,
                         "cores": -1,
                         "ram": -1
                     },
                      "neutron": {
                         "port": 300,
                         "floatingip": -1,
                         "subnet": -1,
                         "router": -1,
                         "network": -1,
                         "security_group": -1
                      }
                 }
            }
        }
    ]
}

output:

 cls: <class 'rally.benchmark.scenarios.vm.vmtasks.VMTasks'>
2015-08-10 18:41:27.700 27736 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 1 START
2015-08-10 18:41:27.700 27736 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 1 rps: 0.499582103774 (requested rps: 0.125)
2015-08-10 18:41:29.702 27738 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 2 START
2015-08-10 18:41:29.702 27738 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 1 rps: 0.249853473406 (requested rps: 0.125)
2015-08-10 18:41:31.704 27739 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 3 START
2015-08-10 18:41:31.704 27739 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 1 rps: 0.166598361258 (requested rps: 0.125)
2015-08-10 18:41:33.698 27735 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 2 rps: 0.249960533056 (requested rps: 0.125)
2015-08-10 18:41:33.699 27735 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 4 START
2015-08-10 18:41:33.699 27736 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 5 START
2015-08-10 18:41:33.699 27736 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 2 rps: 0.249978849591 (requested rps: 0.125)
2015-08-10 18:41:33.701 27738 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 6 START
2015-08-10 18:41:33.701 27738 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 2 rps: 0.249984257915 (requested rps: 0.125)
2015-08-10 18:41:33.703 27739 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 7 START
2015-08-10 18:41:33.703 27739 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 2 rps: 0.249964786066 (requested rps: 0.125)
2015-08-10 18:41:41.698 27735 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 8 START
2015-08-10 18:41:41.698 27735 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 3 rps: 0.187490378069 (requested rps: 0.125)
2015-08-10 18:41:41.699 27736 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 9 START
2015-08-10 18:41:41.699 27736 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 3 rps: 0.187493895379 (requested rps: 0.125)
2015-08-10 18:41:41.701 27738 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 10 START
2015-08-10 18:41:41.701 27738 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 3 rps: 0.18748625748 (requested rps: 0.125)
2015-08-10 18:41:41.702 27739 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 11 START
2015-08-10 18:41:41.702 27739 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 3 rps: 0.187491246908 (requested rps: 0.125)
2015-08-10 18:41:49.698 27735 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 12 START
2015-08-10 18:41:49.698 27735 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 4 rps: 0.166658208203 (requested rps: 0.125)
2015-08-10 18:41:49.699 27736 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 13 START
2015-08-10 18:41:49.699 27736 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 4 rps: 0.166662070613 (requested rps: 0.125)
2015-08-10 18:41:49.701 27738 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 14 START
2015-08-10 18:41:49.702 27738 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 4 rps: 0.166653077916 (requested rps: 0.125)
2015-08-10 18:41:49.702 27739 INFO rally.benchmark.runners.base [-] Task 6a89973a-b95f-4513-88cb-501e5581d1dd | ITER: 15 START
2015-08-10 18:41:49.702 27739 RALLYDEBUG rally.plugins.common.runners.rps [-] Worker: 4 rps: 0.166662125248 (requested rps: 0.125)

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to rally (master)

Fix proposed to branch: master
Review: https://review.openstack.org/212531

Changed in rally:
status: New → In Progress
Changed in rally:
milestone: none → 0.1.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally (master)

Reviewed: https://review.openstack.org/212531
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=fc8415b0a8df8aaa640d7eb2bfd2bb24e696a407
Submitter: Jenkins
Branch: master

commit fc8415b0a8df8aaa640d7eb2bfd2bb24e696a407
Author: Oleh Anufriiev <email address hidden>
Date: Thu Aug 13 16:31:42 2015 +0300

    RPS thread start pause correction

    Correct calculation of pause between starting threads
    inside processes

    Change-Id: Ibfba44987886a1fd6e29064e6a7c65592e95d871
    Closes-Bug: #1484537

Changed in rally:
status: In Progress → Fix Committed
Changed in rally:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.