Run metadata-api per cell

Registered by Matt Riedemann on 2018-10-25

This was discussed at the Stein PTG:

https://etherpad.openstack.org/p/nova-ptg-stein (Line 400)

The cells v2 deployment docs say the metadata API service runs globally across cells, but deployers, like CERN and Huawei, run it per cell for performance reasons. All you have to do is make sure the nova configuration has the api_database configured so the metadata-api service can hit the API DB to lookup the instance information.

The downside to this is, if you're running the service per-cell anyway, you don't need to waste time doing that lookup to the API DB when you know the instance will be in that cell.

So this blueprint proposes that, like the old "local conductor" mode, a config option can be set which indicates the metadata-api service is "local" to a cell and therefore can ignore the API DB lookups to improve performance.

The suggested configuration option name would be ``local_metadata_per_cell`` in the [api] group.

Docs will be updated appropriately for the config option, plus tests etc.

Blueprint information

Status:
Complete
Approver:
Balazs Gibizer
Priority:
Low
Drafter:
Matt Riedemann
Direction:
Approved
Assignee:
Zhenyu Zheng
Definition:
Approved
Series goal:
Accepted for stein
Implementation:
Implemented
Milestone target:
milestone icon stein-3
Started by
Matt Riedemann on 2018-12-12
Completed by
Matt Riedemann on 2019-01-15

Related branches

Sprints

Whiteboard

Agreed in the nova meeting [1] that this blueprint can be specless.

(efried) would like to see the actual conf option section/name in the description before this is approved.

[1] http://eavesdrop.openstack.org/meetings/nova/2018/nova.2018-10-25-21.00.log.html#l-166

(melwitt): Note that during the Nova/Neutron cross project session [2], we determined we'll need to document when it's appropriate to run metadata API service per cell or globally:

"If you have networks that span cells, you might need to run nova-metadata-api global. If your networks are segmented along cell boundaries, then you can run nova-metadata-api per cell.

AGREE: document when you wouldn't want to run global vs per cell"

[2] https://etherpad.openstack.org/p/nova-ptg-stein L632

Agreed to approve this in the Nov 29 nova meeting. -- mriedem 20181129

Gerrit topic: https://review.openstack.org/#q,topic:bp/run-meta-api-per-cell,n,z

Addressed by: https://review.openstack.org/624612
    WIP run metadata api per cell

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.