ironic/releasenotes/notes/create_node_indexes-841b679e6cf332fd.yaml
Iury Gregory Melo Ferreira f2ef05fce4 Prepare 18.0 and clean up release note
Release notes checked:
* releasenotes/notes/adding-security-param-clean-step-00d5548072a397f2.yaml
* releasenotes/notes/bios-interface-api-ref-ebf866cc7da2270b.yaml
* releasenotes/notes/bios-interface-api-ref-validate-ddb95461adb0e478.yaml
* releasenotes/notes/bios-registry-support-e7fd62908e9c222d.yaml
* releasenotes/notes/boot-validate-6b4b6b40c8e27273.yaml
* releasenotes/notes/bug-2007551-aliases-for-a-few-named-state-transitions-a32433ad65638706.yaml
* releasenotes/notes/bye-bye-iscsi-658920cf126db0b8.yaml
* releasenotes/notes/configdrive-render-8eb398d956393d60.yaml
* releasenotes/notes/create_node_indexes-841b679e6cf332fd.yaml
* releasenotes/notes/custom-agent-deploy-88989512c29a14c1.yaml
* releasenotes/notes/decomposed-steps-9644d3b5ccbad1ea.yaml
* releasenotes/notes/get-bios-registry-aadc74800e0770f7.yaml
* releasenotes/notes/irmc-append-params-380a281db43e6013.yaml
* releasenotes/notes/pxe-append-params-9cd5831959676371.yaml
* releasenotes/notes/redfish-append-params-4d28d922484c2731.yaml
* releasenotes/notes/redfish-deploy-iso-9671ae83108f6385.yaml
* releasenotes/notes/secure-rbac-policy-sanitization-performance-dc7886952144bb04.yaml

Change-Id: I8b27df7e9c9b7f8623aa22c82be77b74e7d183d8
2021-06-02 17:09:20 +02:00

36 lines
1.5 KiB
YAML

---
upgrade:
- |
The ``ironic-dbsync upgrade`` command for this version of ironic will add
additional database indexes on the ``nodes`` table columns below.
Depending on database size and complexity, this will take time to complete
for every single index to be created. On MySQL or MariaDB, these indexes
will only be created if an index does not already exist matching the
field name with "_idx"
appended.:
* ``owner``
* ``lessee``
* ``driver``
* ``provision_state``
* ``reservation``
* ``conductor_group``
* ``resource_class``
An example of the SQL commands to generate these indexes can be found
in the `tuning <htts://docs.openstack.org/ironic/latest/admin/tuning.html>`_
documentation.
In testing with mock data, each column took approximately about 4 seconds
per column to be indexed on a database with 115,000 rows. The existing
database size and underlying server load will cause this time to vary.
Sample queries also reduced result generation from an average of ``0.40``
seconds to an average of ``0.02`` seconds with a test data set.
fixes:
- |
Improves lower-level performance issues with database activity where some
often queried columns were not indexed when the database model was created,
or as the model evolved. Operators seeking to pre-create these indexes may
do so prior to upgrading. Please consult the
`tuning`_ documentation in the Administrator's guide for the queries to leverage.