manila/manila/scheduler
Chuan Miao 7e7ec7337c Add Share Affinity/Anti-Affinity Scheduler Filters
This patch implements hard affinity and anti-affinity filter for
manila scheduler. Users can specify affinity/anti-affinity share
ids to the field "share.scheduler_hints.same_host" or
"share.scheduler_hints.different_host" in the request payload
when creating a manila share. The scheduler_hints are stored as
share metadata. The filter properties are populated from this
metadata during share migration and so filters will be applied
for share migration as well.

Both fields can be a single share UUID or multiple uuids
separated by comma. For example,

`{
    "share": {
        "scheduler_hints": {
            "same_host": "share_uuid_1,share_uuid_2",
            "different_host": "share_uuid_3"
        }
    }
}`

Implements: bp/affinity-antiaffinity-filter

Change-Id: Ic42d8a0c1d22e77ae64e0ca014607b28fd336467
Co-authored-by: Maurice Escher <maurice.escher@sap.com>
2021-09-03 08:58:46 +02:00
..
drivers Add Share Affinity/Anti-Affinity Scheduler Filters 2021-09-03 08:58:46 +02:00
evaluator remove usage of six library 2021-01-27 13:46:31 -08:00
filters Add Share Affinity/Anti-Affinity Scheduler Filters 2021-09-03 08:58:46 +02:00
weighers Add config option reserved_share_from_snapshot_percentage. 2021-08-27 19:10:36 +02:00
__init__.py Reorganize scheduler and merge code from Oslo incubator 2015-12-01 20:54:17 +00:00
base_handler.py Reorganize scheduler and merge code from Oslo incubator 2015-12-01 20:54:17 +00:00
host_manager.py Add Share Affinity/Anti-Affinity Scheduler Filters 2021-09-03 08:58:46 +02:00
manager.py Extend share will go through scheduler 2021-08-27 05:35:45 +00:00
rpcapi.py Extend share will go through scheduler 2021-08-27 05:35:45 +00:00
scheduler_options.py Remove log translations in scheduler 3/5 2017-03-31 00:54:26 +08:00
utils.py Add config option reserved_share_from_snapshot_percentage. 2021-08-27 19:10:36 +02:00