@@ -106,6 +106,34 @@ the user resizes the server, the scheduler will try to move it back to zone A
106
106
which may or may not work, e.g. if the admin deleted or renamed zone A in the
107
107
interim.
108
108
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
+
109
137
Design
110
138
------
111
139
0 commit comments