Document [fake] delay config values

This feature was added in the previous commit

Change-Id: I30100cd3b2702bf8bb614d45c0f64712656ec15e
This commit is contained in:
Steve Baker 2022-12-19 17:43:03 +13:00
parent 393b20204b
commit b41d5d5145
1 changed files with 24 additions and 0 deletions

View File

@ -23,6 +23,30 @@ Development
Developers can use ``fake-hardware`` hardware-type to mock out nodes for
testing without those nodes needing to exist with physical or virtual hardware.
Scale testing
-------------
The ``fake`` drivers have a configurable delay in seconds which will result in
those operations taking that long to complete. Two comma-delimited values will
result in a delay with a triangular random distribution, weighted on the first
value. 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 an Ironic service without requiring real bare metal or
faking at the BMC protocol level.
.. code-block:: ini
[fake]
power_delay = 5
boot_delay = 10
deploy_delay = 60,360
vendor_delay = 1
management_delay = 5
inspect_delay = 360,480
raid_delay = 10
bios_delay = 5
storage_delay = 10
rescue_delay = 120
Adoption
--------
Some OpenStack deployers have used ``fake`` interfaces in Ironic to allow an