[placement] update 19-30
cdent+os at anticdent.org
Fri Aug 2 12:37:41 UTC 2019
Pupdate 19-30 is brought to you by the letter P for Performance.
# Most Important
The main things on the Placement radar are implementing Consumer
Types and cleanups, performance analysis, and documentation related
to nested resource providers.
# What's Changed
* [os-traits 0.16.0 was released](https://review.opendev.org/673294)
was released, with a corresponding [canary
* The [ProviderIds namedtuple was
removed](https://review.opendev.org/673788). This is the first in
a series of performance optimizations discovered as part of the
analysis described below in the Cleanup section.
(Numbers in () are the change since the last pupdate.)
There are 23 (2) stories in [the placement
0 (0) are [untagged](https://storyboard.openstack.org/#!/worklist/580).
3 (1) are [bugs](https://storyboard.openstack.org/#!/worklist/574). 5 (0)
are [cleanups](https://storyboard.openstack.org/#!/worklist/575). 11
(1) are [rfes](https://storyboard.openstack.org/#!/worklist/594).
4 (0) are [docs](https://storyboard.openstack.org/#!/worklist/637).
If you're interested in helping out with placement, those stories
are good places to look.
* Placement related nova [bugs not yet in progress](https://goo.gl/TgiPXb)
on launchpad: 17 (0).
* Placement related nova [in progress bugs](https://goo.gl/vzGGDQ) on
launchpad: 4 (0).
osc-placement is currently behind by 12 microversions.
Add support for multiple member_of. There's been some useful
discussion about how to achieve this, and a consensus has emerged
on how to get the best results.
Adds a new '--amend' option which can update resource provider
inventory without requiring the user to pass a full replacement
# Main Themes
## Consumer Types
Adding a type to consumers will allow them to be grouped for various
purposes, including quota accounting.
A WIP, as microversion 1.37, has started.
Cleanup is an overarching theme related to improving documentation,
performance and the maintainability of the code. The changes we are
making this cycle are fairly complex to use and are fairly complex
to write, so it is good that we're going to have plenty of time to
clean and clarify all these things.
I started some performance analysis this week. Initially I started
working with [placement master in a
but as I started making changes I moved back to
What I discovered was that there is quite a bit of redundancy in the
code in the `objects` package that I was able to remove. For
example we were creating at least twice as many ProviderSummary
objects than required in a situation with multiple request groups.
It's likely there would have been more duplicates with more request
groups. That's improved in [this
change](https://review.opendev.org/674254), which is at the end of a
stack of several other like-minded improvements.
The improvements in that stack will not be obvious until the [more
complex nested topology](https://review.opendev.org/#/c/673513/) is
generally available. My analysis was based on that topology.
Not to put too fine a point on it, but this kind of incremental
analysis and improvement is something I think we (the we that is the
community of OpenStack) should be doing far more often. It is
_incredibly_ revealing about how the system works and opportunities
for making the code both work better and be easier to maintain.
One outcome of this work will be something like a _Deployment
Considerations_ document to help people choose how to tweak their
placement deployment to match their needs. The simple answer is use
more web servers and more database servers, but that's often very
# Other Placement
Miscellaneous changes can be found in [the usual
There is one [os-traits
being discussed. And two [os-resource-classes
# Other Service Users
New discoveries are added to the end. Merged stuff is removed.
Anything that has had no activity in 4 weeks has been removed.
Nova: nova-manage: heal port allocations
Cyborg: Placement report
helm: add placement chart
libvirt: report pmem namespaces resources by provider tree
Nova: Remove PlacementAPIConnectFailure handling from AggregateAPI
Nova: WIP: Add a placement audit command
zun: [WIP] Use placement for unified resource management
Kayobe: Build placement images by default
blazar: Fix placement operations in multi-region deployments
Nova: libvirt: Start reporting PCPU inventory to placement
Nova: support move ops with qos ports
Nova: get_ksa_adapter: nix by-service-type confgrp hack
Blazar: Create placement client for each request
nova: Support filtering of hosts by forbidden aggregates
blazar: Send global_request_id for tracing calls
Nova: Update HostState.\*\_allocation_ratio earlier
tempest: Add placement API methods for testing routed provider nets
openstack-helm: Build placement in OSH-images
Correct global_request_id sent to Placement
I started working with around approximately 20,000 providers this
week. Only 980,000 to go.
Chris Dent ٩◔̯◔۶ https://anticdent.org/
More information about the openstack-discuss