Improve the way of action and the event db wrote
senlin-engine's action and event increase too fast.Such as cluster_
If the action records are too many, it will cause CPU high and many other problems.
Blueprint information
- Status:
- Complete
- Approver:
- XueFeng Liu
- Priority:
- High
- Drafter:
- XueFeng Liu
- Direction:
- Approved
- Assignee:
- XueFeng Liu
- Definition:
- Approved
- Series goal:
- Accepted for pike
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- XueFeng Liu
- Completed by
- XueFeng Liu
Related branches
Related bugs
Sprints
Whiteboard
more details are needed on this please.
Will slove from three directions:
1.Slove increasing too fast
1)Periodic action such as cluster_
2)Use update to replace add new record in some logic.
2.Slove records too many which will cause cpu high or other problem
For example:
Add max_action_
Add action_
3.senlin client
Make 'timeout' optional in action/event list command.
More detail will update later.
[XueFeng 20170118]
After discussing on meetup, under things should to do.
1.When do a cluster/node check we can delete all CLUSTER_
2.When delete a cluster/node, we can delete all actions of the cluster/node excepting the delete action itself.
3.About event, we will handle with another BP:
https:/
Gerrit topic: https:/
Addressed by: https:/
Revise action_
Gerrit topic: https:/
Addressed by: https:/
Clean action records after deleting cluster/node
Addressed by: https:/
Revise action_
[XueFeng 20170707]
We have Implemented clean api in db and do clean patch when deleteing cluster/node.
Under patch will rewrite in another bp. Finsh this bp first.
Addressed by: https:/
Revise cluster/node check action records design