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

Storage hierarchy refactor #5

Open
leoluk opened this issue Jul 5, 2021 · 0 comments
Open

Storage hierarchy refactor #5

leoluk opened this issue Jul 5, 2021 · 0 comments
Labels
c/node Issues related to low-level node services and startup refactor Tech debt cleanup

Comments

@leoluk
Copy link
Member

leoluk commented Jul 5, 2021

(originally reported by @lorenz in T965)

We currently store both "real" data (etcd data, PVs, ...) as well as ephemeral data (containerd overlay2 store, kubelet logs and state dirs, ...) on the same filesystem. This is not great both for security (we can't set things like MS_NODEV and aggressive LSM policies on the data partition) as well as reliability (we want the capability to just blow away all the ephemeral storage).

The storage hierarchy should eventually look something like this:

  • /run: Files which should not survive a restart and be stored in memory. Things like sockets, state bound to a running kernel, ...
  • /ephemeral: Files which should survive a restart but which can be rebuilt from scratch. Things like kubelet's state dir, containerd state, ...
  • /data: Actual persistent data. etcd, PVs
@leoluk leoluk added c/node Issues related to low-level node services and startup refactor Tech debt cleanup labels Jul 5, 2021
@q3k q3k added this to the Integrity MVP milestone Jul 13, 2022
@msgctl msgctl self-assigned this Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/node Issues related to low-level node services and startup refactor Tech debt cleanup
Projects
None yet
Development

No branches or pull requests

3 participants