Skip to content

Commit f696660

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Mention [cinder]/cross_az_attach in the AZ docs"
2 parents 0fcbb88 + 3482daf commit f696660

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

doc/source/user/aggregates.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,34 @@ the user resizes the server, the scheduler will try to move it back to zone A
106106
which may or may not work, e.g. if the admin deleted or renamed zone A in the
107107
interim.
108108

109+
Resource affinity
110+
~~~~~~~~~~~~~~~~~
111+
112+
The :oslo.config:option:`cinder.cross_az_attach` configuration option can be
113+
used to restrict servers and the volumes attached to servers to the same
114+
availability zone.
115+
116+
A typical use case for setting ``cross_az_attach=False`` is to enforce compute
117+
and block storage affinity, for example in a High Performance Compute cluster.
118+
119+
By default ``cross_az_attach`` is True meaning that the volumes attached to
120+
a server can be in a different availability zone than the server. If set to
121+
False, then when creating a server with pre-existing volumes or attaching a
122+
volume to a server, the server and volume zone must match otherwise the
123+
request will fail. In addition, if the nova-compute service creates the volumes
124+
to attach to the server during server create, it will request that those
125+
volumes are created in the same availability zone as the server, which must
126+
exist in the block storage (cinder) service.
127+
128+
As noted in the `Implications for moving servers`_ section, forcefully moving
129+
a server to another zone could also break affinity with attached volumes.
130+
131+
.. note:: ``cross_az_attach=False`` is not widely used nor tested extensively
132+
and thus suffers from some known issues:
133+
134+
* `Bug 1694844 <https://bugs.launchpad.net/nova/+bug/1694844>`_
135+
* `Bug 1781421 <https://bugs.launchpad.net/nova/+bug/1781421>`_
136+
109137
Design
110138
------
111139

0 commit comments

Comments
 (0)