HNHacker News
TopNewBestAskShowJobs

fhuici

72 karma · joined October 23, 2023

LinkedIn: https://www.linkedin.com/in/felipe-huici-47a559127/ Twitter: @felipehuici E-mail: felipe@unikraft.io
submissionscomments
fhuici··on Unikraft Launches KraftCloud: Never Pay for Idle Again
Hi, Felipe from Unikraft here. Yes, it applies to DB instances too (all instances are the same on KraftCloud with respect to this).

Regarding multi-process, at present Unikraft has partial multi-process support: some multi-process apps work, others not yet -- we're hard at work completing this support.

fhuici··on KraftCloud
Yes, our kraft CLI tool (https://github.com/unikraft/kraftkit/) definitely has a clash with KRaft .
fhuici··on KraftCloud
Yes, we're a German company, it's a play on words :)
fhuici··on KraftCloud
I wonder whether we could get Kraft to sponsor us :) . Unikraft used to be called Unicraft but was changed to a "k" for name clash reasons. Agree that names are hard.
fhuici··on KraftCloud
Hi,

[Disclaimer, I'm one of the maintainers]

Another unikernel yes, sorry about that! :) . Unikraft started back in 2017 initially as a research project, and has been a Linux Foundation OSS project since 2018.

While Unikraft OSS is used in different use cases, our primary target is cloud deployments. Unikraft has 3 key principles:

1. A fully modular OS -- so that we can specialize the resulting unikernels (VMs) as much as possible

2. Linux-API compatibility -- so that we don't break applications

3. Integration with Docker/Dockerfiles (and other tools) -- for ease of use

Unikraft powers kraft.cloud . You can see the platform's guides to get an idea of the apps/frameworks it supports: https://docs.kraft.cloud/guides/

fhuici··on Software Infrastructure 2.0: A Wishlist (2021)
> The speed that's not there is setting up infrastructure. If I make a change in the AWS console, or if I add a new pod to Kubernetes, or whatever, I want that to happen in seconds. I'm not asking for milliseconds!

Milliseconds is now possible: https://kraft.cloud/ (e.g., an NGINX web server in under 20 millis).

fhuici··on Mirage – A programming framework for building type-safe, modular systems
No, CloudCaptain is based on Linux, and tries to provide a minimal, though Linux-based, image.

Unikernels do not use Linux at all: you can always try to minimize Linux but fundamentally it is a monolithic OS and fully specializing with it would require non-negligible engineering.

Instead, unikernels are (typically) based on a modular OS that makes it easier to pick and choose modules for each target application, resulting in images that can be an order of magnitude smaller, boot much faster, etc.

The difficulty with unikernels in the past has been to (1) making them Linux API compatible, (2) making them accessible/easy to use and (3) integrating them with popular tooling ecosystems (e.g., Docker, Kubernetes, Prometheus, etc.)

fhuici··on Mirage – A programming framework for building type-safe, modular systems
No, though you could use Firecracker to launch a Mirage (or any other) unikernel.

Basically from the bottom up the stack is:

1. Hypervisor (e.g., KVM, Xen, Hyper-V), runs directly on the hardware 2. Virtual Machine Monitor (e.g., QEMU, Firecracker), running on the host's user-space (say Linux) and in charge of starting/stopping/managing VMs and interacting with the hypervisor 3. Virtual machines, eg, a Linux VM running an NGINX web server.

(the above is simplified because there are differences between type-1 and type-2 hypervisors, but those diffs would make this message too long)

A unikernel is actually a virtual machine, just a very specialized one that doesn't use a general-purpose OS underneath. They tend to use library OSes, so that it's possible to choose libs that are appropriate to each app at build time.

And while we're at it :) , a MicroVM is nothing more than a standard VM (e.g., based on Linux) launched/managed via a fast/modern VMM like Firecracker.

fhuici··on Mirage – A programming framework for building type-safe, modular systems
There's also LF/OSS www.unikraft.com, language-agnostic/Linux API compatible, actively maintained.
fhuici··on Mirage – A programming framework for building type-safe, modular systems
At least for cloud deployments you'll (for almost all cases) already have a hypervisor underneath to provide strong isolation. With that in place, ideally you'd run your application (ultimately the only thing you care about) as close to that hypervisor as possible. Instead, we have hypervisor, and then inside the VM the (say Linux) kernel, user-space, the container runtime, and finally the application.

With a unikernel the stack becomes hypervisor and a VM that has a very thin layer and then the application -- as close to the application running on the hypervisor as possible. This results in lots of gains in terms of minimal cold boot times, memory usage, server density (thousands on a single server), etc.

In fact, you don't need to see containers and unikernels as an either or choice: in fact, at Unikraft (another unikernel project) for development and local deployment we have support for Docker/Dockerfiles -- and then for deployment we provide a lean unikernel as described above.

Hope this clarifies things somewhat.

fhuici··on Mirage – A programming framework for building type-safe, modular systems
The second wave is coming :) . At www.unikraft.org we're hard at work providing a Linux-API compatible unikernel (run unmodified apps/langs) and combining it with tooling like docker and k8s.
fhuici··on Mirage – A programming framework for building type-safe, modular systems
For a language-agnostic unikernel project you can also check out www.unikraft.org (OSS/Linux Foundation, actively maintained).
fhuici··on Mirage – A programming framework for building type-safe, modular systems
At least for cloud deployments you don't need a full blown OS when all you want to do is run apps like NGINX or Redis. If you use a unikernel instead, then you severely (orders of magnitude) reduce cold boot times, memory consumption, server density (thousands on hw-isolated instances on a single server) and TCB.
fhuici··on Go, Containers, and the Linux Scheduler
We just gave this a go (pun intended) on Unikraft / kraft.cloud , Caddy runs fine on it!
fhuici··on Go, Containers, and the Linux Scheduler
At Unikraft (OSS unikernel project) we do a bit of both: if wanted, people can specify via a Dockerfile what they want/need in their filesystem, and then we have a tool that compiles (if needed) and packs the files into a (OCI formatted) unikernel (which we then deploy via kraft.cloud ).
fhuici··on Go, Containers, and the Linux Scheduler
Hi, one of the maintainers of the Unikraft LF OSS project here (www.unikraf.org), clearly in agreement :) . We regularly run Go workloads, and even use Dockerfiles to build Go and other projects that we then turn into minimal unikernels. We also have a closed beta/free (unikernel) cloud platform if people want to try, sign up is at kraft.cloud .
fhuici··on Building a unikernel that runs WebAssembly – part 1
Actually this isn't a fundamental issue with unikernels, but rather an implementation one. For instance, check out debugging in Unikraft: https://unikraft.org/docs/internals/debugging .
fhuici··on Building a unikernel that runs WebAssembly – part 1
It still exists: https://wiki.xenproject.org/wiki/Mini-OS . But beware that this is no more than a small reference OS, there's a massive gap between getting it to just boot and running real-world applications with it.
← PreviousPage 2 of 2