Skip to content

Overlaybd is recommended as the backend of rootfs and template #1393

@lihuiba

Description

@lihuiba

Rootfs and its template is currently implemented as a layered nbd block device. Actually a similar component has already been implemented in the container community and used extensively in production for years. It is overlaybd, a sub-project of containerd.

I would recommend using overlaybd as the backend of rootfs and template, because:

  • It is highly performant, featuring
    • ublk or TCMU as the block device frontend (both are much better than nbd)
    • io_uring or epoll asynchronous API
    • AVX-512 vectorization and linearized B+ tree for index query (millions of QPS on a single CPU core)
  • It is feature-rich, including all possible operations on the layers.
  • It connects naturally to container registry ecology, which fits perfectly for template management.
  • It has a big user base, including Alibaba, Azure, DataBricks, Boss直聘, Meituan, fly.io, hocus.dev, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions