GET /v1/resources/generic has no facility to limit output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gnocchi |
Triaged
|
Medium
|
Mehdi Abaakouk |
Bug Description
I've been running a gnocchi+ceilometer test env with 5 nova instances and a polling interval of 5 seconds. It's been up for 2-3 hours.
Requesting GET /v1/resources/
Some of this problem will be resolved by the fixes currently being worked on in the gnocchi dispatcher for ceilometer.
However in a situation where there are legitimately many resources or many resource history records, it would be useful to be able to limit things explicitly and perhaps limit things tacitly (as ceilometer now does with the automatic result set limiting).
The "standard" appears to be some kind of pagination with 'limit' and 'marker' parameters.
Changed in gnocchi: | |
assignee: | nobody → Mehdi Abaakouk (sileht) |
Changed in gnocchi: | |
importance: | Undecided → Medium |
Changed in gnocchi: | |
status: | In Progress → Triaged |
The other impact of no limit is that if you do something like:
/v1/resources/ instance? history= true
when there are lots of instances and lots of history you can very easily create a very large httpd process. I currently have two which are over 5GB. Python won't give this back to the OS so it would be useful to document that mod_wsgi installation should set some parameters so that it restarts itself: https:/ /code.google. com/p/modwsgi/ wiki/Configurat ionDirectives# WSGIDaemonProce ss