59766a57ec
The reason why we need to refactor constant runner are as follows: 1) using processes to genereate load is to expensive The optimal way to do thing is to create N processes (where N is amount of cpu) and use threads. 2) using multiprocessing.Pool() doesn't allow us to make proper timeouts 3) using multprocessing.Pool() doesn't allow us to stop imidiatelly load (when we run runner.abort()) What has also been done in this patch: 1) Unification of common part between rps and new constant runner 2) Using RAMInt for iterations counting in the RPS runner as well 3) Added a "sleep" parameter in Dummy.dummy_exception. This will allow us a better functional testing for the "--abort-on-sla-failure" feature. 4) Minor fix in SLA ToDo in next patches: * Implement timeouts * Work on the constant for duration runner Co-Authored-By: Boris Pavlovic <boris@pavlovic.me> Co-Authored-By: Mikhail Dubov <mdubov@mirantis.com> Change-Id: I49bcc8694e10b3bbb8dcf5c9fe52e29e48a985f3 |
||
---|---|---|
.. | ||
__init__.py | ||
test_dummy.py |