Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal] events service for pouchd #2052

Closed
HusterWan opened this issue Aug 5, 2018 · 0 comments · Fixed by #2071
Closed

[Proposal] events service for pouchd #2052

HusterWan opened this issue Aug 5, 2018 · 0 comments · Fixed by #2071
Assignees

Comments

@HusterWan
Copy link
Contributor

HusterWan commented Aug 5, 2018

Ⅰ. Issue Description

When creating or deleting a container, pouchd will operate many objects, like container, snapshot, volume, network and so on. If can recording those actions of all objects, we can use those records for monitoring a container's all actions in it's life circle.

So we need an events service to record all actions of containers, suppose it at least has two common functions:

  • Publish: log the action when a event occurs
  • Subscribe : subscribe all events on the hosts, we also should support filter to filter some events that we do not care about.

I will finish this function, but in order to relieve the pressure of code review, i will break the whole service into four parts:

  • events package: this will only contains events service core code
  • api bridge: finish the api for event
  • collect events from containerd: there are some events not produced by pouchd but containerd, like OOM, container exited abnormally and so on, we also should collect those events and publish them to events service
  • event cli: finish cli tool for event

Ⅱ. Describe what happened

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • pouch version (use pouch version):
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants