scheduler: fix _get_sharing_providers to support unlimited aggr
A Request-Too-Long error can be raised in case of too many aggregates are attached to a host. The fix is to split the requests. The request is executed by host via a periodic task. Result is set in cache so no performances impact is expected. The change introduce a new compute configuration option `compute.sharing_providers_max_uuids_per_request = 200`. Closes-bug: #2068893 Change-Id: I1355c0813cb99067ead60f9835938566289beb20 Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Introduced a new compute configuration option
|
||||
`sharing_providers_max_uuids_per_request` and applied a fix to
|
||||
handle the "Request-Too-Long" error that can occur when querying
|
||||
the placement API with a large number of aggregate UUIDs.
|
||||
Reference in New Issue
Block a user