summaryrefslogtreecommitdiff
path: root/nova/conf
diff options
context:
space:
mode:
authorKevin_Zheng <zhengzhenyu@huawei.com>2018-12-12 17:08:54 +0800
committerMatt Riedemann <mriedem.os@gmail.com>2019-01-14 10:20:50 -0500
commite2e372b2b159630f82bb9e70a59ac87904ef7e7d (patch)
tree07c512e80d79360fb82d278fb25b165024c57a0c /nova/conf
parenta1c01f97ae0397e8f4ccff5eb2a8b8f5ef7f7221 (diff)
downloadnova-e2e372b2b159630f82bb9e70a59ac87904ef7e7d.tar.gz
Allow run metadata api per cell
Adds configuration option ``[api]/local_metadata_per_cell`` to allow user run Nova metadata API service per cell. Doing this can avoid query API DB for instance information each time an instance query for its metadata. Implements blueprint run-meta-api-per-cell Change-Id: I2e6ebb551e782e8aa0ac90169f4d4b8895311b3c
Diffstat (limited to 'nova/conf')
-rw-r--r--nova/conf/api.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/nova/conf/api.py b/nova/conf/api.py
index cb837ae7b3..4f4e0a34ef 100644
--- a/nova/conf/api.py
+++ b/nova/conf/api.py
@@ -196,6 +196,19 @@ performance reasons. Increasing this setting should improve response times
of the metadata API when under heavy load. Higher values may increase memory
usage, and result in longer times for host metadata changes to take effect.
"""),
+ cfg.BoolOpt("local_metadata_per_cell",
+ default=False,
+ help="""
+Indicates that the nova-metadata API service has been deployed per-cell, so
+that we can have better performance and data isolation in a multi-cell
+deployment. Users should consider the use of this configuration depending on
+how neutron is setup. If you have networks that span cells, you might need to
+run nova-metadata API service globally. If your networks are segmented along
+cell boundaries, then you can run nova-metadata API service per cell. When
+running nova-metadata API service per cell, you should also configure each
+Neutron metadata-agent to point to the corresponding nova-metadata API
+service.
+"""),
]
file_opts = [