3 ms·
How do you handle temp file space, timezone data, and other things that a minimal image provide?
by veggieroll 1y ago
How do you handle temp file space, timezone data, and other things that a minimal image provide?
- kfreds 1y agoTemp file space: Use RAM, or talk to host storage over Virtio. Timezone data etc: You would have to fetch that over the network, or from a metadata API such as the one Firecracker provides to VM guests.
- fpoling 1y agoServices rarely need timezone done. So if one is OK with supporting only UTC, Go runtime works fine without any timezene data. We use a minimal image to run in on AWS Nitro VM and it contains only kernel, init.d, the Go application file and TLS certificate roots with the root filesystem mounted over tmpfs. Note that Nitro VM uses a custom kernel provided by AWS so the new proposal is not relevant for us. But if we could run Go directly in that VM, it will surely makes things faster and saves like 10% memory overhead. And it will also avoid OOM killer and few other bad unwanted interactions between Go runtime and Linux kernel memory management.
- champtar 1y agoFor timezones data go already has https://pkg.go.dev/time/tzdata https://pkg.go.dev/time/tzdata