393b20204b
Simulating workloads with the fake driver currently misses the reality that some operations take time to complete, rather than occuring instantly. This makes it difficult to mock real workloads for performance and functional testing of ironic itself. This change adds configurable random wait times for fake drivers in a new ironic.conf [fake] section. Each supported driver having one configuration option controlling the delay. These delays are applied to operations which typically block in other drivers. The default value of zero continues the existing behaviour of no delay. A single integer value will result in a constant delay in seconds. Two values separated by a comma will result in a triangular distribution weighted by the first value, specifically in python[1]: random.triangular(a, b, a) Change-Id: I7cb1b50d035939e6c4538b3373002a309bfedea4 [1] https://docs.python.org/3/library/random.html#random.triangular
9 lines
404 B
YAML
9 lines
404 B
YAML
---
|
|
features:
|
|
- |
|
|
There are now configurable random wait times for fake drivers in a new
|
|
ironic.conf [fake] section. Each supported driver having one configuration
|
|
option controlling the delay. These delays are applied to operations which
|
|
typically block in other drivers. This allows more realistic scenarios to
|
|
be arranged for performance and functional testing of ironic itself.
|