Add function run_all_pollsters to api
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_
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
- Started by
- Completed by
- Ilya Tyaptin
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
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