Add affinity/anti-affinity filters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Fix Released
|
Medium
|
Nate Potter |
Bug Description
https:/
commit c60044693190512
Author: Zhiteng Huang <email address hidden>
Date: Tue Jan 28 14:23:04 2014 +0800
Add affinity/
Cinder has done a good job hiding the details of storage backends from end
users by using volume types. However there are use cases where users who
build their application on top of volumes would like to be able to 'choose'
where a volume be created on. How can Cinder provide such capability without
hurting the simplicity we have been keeping? Affinity/
of the flexibility we can provide without exposing details to backends.
The term affinity/
between two sets of volumes in terms of location. To limit the scope, we
describe one volume is affinity with the other one only when they reside in
the same volume back-end (this notion can be extended to volume pools if
volume pool support lands in Cinder); on the contrary, 'anti-affinity'
relation between two sets of volumes simply implies they are on different
Cinder back-ends (pools).
This affinity/
specified by end user. The hint expresses the affinity or anti-affinity
relation between new volumes and existing volume(s). This allows end
users to provide hints like 'please put this volume to a place that is
different from where Volume-XYZ resides in'.
This change adds two new filters to Cinder - SameBackendFilter and
DifferentBa
provided by end users (via scheduler hint extension) and filter backends by
checking the 'host' of old and new volumes see if a backend meets the
requirement (being on the same backend as existing volume or not being on
the same backend(s) as existing volume(s)).
For example:
Volume A is on 'backend 1', to create Volume B on the same backend as A,
use:
cinder create --hint same_host=VolA-UUID SIZE
To create Volume C on different backend than that of A, use:
cinder create --hint different_
Now, to create Volume D on different backend other than those of A and C,
use:
cinder create --hint different_
or:
cinder create --hint different_
implements bp: affinity-
DocImpact
Change-Id: I19f298bd87b006
tags: | added: config-reference |
Changed in openstack-manuals: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in openstack-manuals: | |
assignee: | nobody → jelly (coding1314) |
Changed in openstack-manuals: | |
assignee: | jelly (coding1314) → Ho Yu Cheng (kiss5891) |
Changed in openstack-manuals: | |
assignee: | Danny.Ho (dannyh) → inwinSTACK (inwinstack) |
Changed in openstack-manuals: | |
status: | Triaged → Incomplete |
Changed in openstack-manuals: | |
assignee: | inwinSTACK (inwinstack) → nobody |
Changed in openstack-manuals: | |
assignee: | nobody → Nate Potter (ntpttr) |
status: | Incomplete → In Progress |
This write-up could basically be copied and pasted into the admin guide, in a new section if there is no current section on scheduling.