Add function run_all_pollsters to api

Registered by Ilya Tyaptin

Now pollsters poll and publish interval is 600 sec by default. But for debug or tests we need to poll and publish pollsters as often as necessary. For this feature we can implement 'run_all_pollsters_on_demand' function in api.

 It could be implemented with rpc calls to all agents. Already Ceilometer has rpc publisher and we can use it. How workflow of this feature looks in my mind:

1. User made 'pollsters/' post request to ceilometer api.
2. Rpc publisher's method is called from pollsters controller.
3. Rpc publisher publish message with target is 'pollsters_run' to special topic or fanout exchange
4. Method 'pollsters_run' is called in every agent and pollster tasks start.

Blueprint information

Status:
Complete
Approver:
Julien Danjou
Priority:
Medium
Drafter:
None
Direction:
Approved
Assignee:
Ilya Tyaptin
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Ilya Tyaptin

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/run-all-pollsters-on-demand,n,z

Addressed by: https://review.openstack.org/66551
    Add run pollsters on demand function to api

out of curiosity, whats the use case for this in production? this seems to have security risk where ppl could effectively launch a DOS attack by making ceilometer flood apis with poll requests. i may be misunderstanding the blueprint. -- gordc

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.