frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Scaling to 1M concurrent sandboxes in seconds

https://modal.com/blog/scaling-to-1-million-concurrent-sandboxes-in-seconds
23•thundergolfer•4h ago

Comments

cweld510•4h ago
I'm a huge scheduling nerd, and the container scheduling system in this post is probably the most impactful system I've worked on. It's quite different than existing solutions, and I personally feel it's at an interesting point in the design space -- very distributed, no strong consistency anywhere, and oriented towards massive scales. Would love to hear feedback and thoughts!
skinfaxi•33m ago
> Rather than a single, serialized scheduler, we run a fleet of scheduling servers which handle sandbox creation requests concurrently. To handle a creation request, a scheduling server runs a fast scheduling algorithm against in-memory cached data. The result is that scheduling scales horizontally, and looks more like load balancing than traditional container scheduling.

What does this mean? You bucket requests on some attribute and use that to route the request (or create an ordered list of routes to try)?

_pdp_•38m ago
You can scale firecracker vms like really fast. In our shop we have a simple go service that maintain the state in a sqlite database. The only requirement is bare-metal servers.
no_circuit•11m ago
Sounds like the lesson learned is using the right tool for the job -- reusing Kubernetes in an existing cluster to spin up sandboxes is a fair initial path to start offering the service. But Kubernetes likely isn't meant for rapid churn of workloads, here sandboxes.

The architecture to me seemed very similar to SeaweedFS [1] (Facebook Haystack [2]) except with an extra layer for sandbox-hosting nodes. Like requests go into a master, or the global load balancer, then to a volume server, which in turn knows where the files/sandboxes should go. There is no need for sandboxes to be managed with the Kubernetes overhead since the the nodes/bare metal servers probably have scheduling taints on them to preserve the memory/cpu for the sandboxes.

[1] https://github.com/seaweedfs/seaweedfs

[2] https://www.usenix.org/legacy/event/osdi10/tech/full_papers/...

paulddraper•9m ago
They never used K8s for this.

They did reference it as an example for how a non-specialized solution would fall over.

> Modal’s original sandbox architecture has similar issues. Like Kubernetes, we rely on strong consistency throughout our backend, so creating and scheduling sandboxes requires global coordination, and O(sandboxes) writes to Postgres, which we cannot trivially shard.

summerevening•4m ago
Every scheduler node has cached view of whole cluster and optimistically makes a scheduling decision, retrying on conflict?

Any tricks you did to reduce conflict rate? Is there a certain cluster saturation threshold (little free capacity) where conflict rates would get too high?

Kimi K3: Open Frontier Intelligence

https://www.kimi.com/blog/kimi-k3
1144•vincent_s•10h ago•714 comments

LM Studio Bionic: the AI agent for open models

https://lmstudio.ai/blog/introducing-lm-studio-bionic
148•minimaxir•5h ago•60 comments

Microsoft Comic Chat is now open source

https://opensource.microsoft.com/blog/2026/07/16/microsoft-comic-chat-is-now-open-source/
523•jervant•9h ago•118 comments

Decoy Font

https://www.mixfont.com/experiments/decoy-font
385•ray__•9h ago•96 comments

The Little Book of Reinforcement Learning

https://github.com/alxndrTL/little-book-rl/
47•mustaphah•2h ago•6 comments

$100 AI Music Video: Claude Fable 5 vs. GPT-5.6 Sol

https://www.tryai.dev/blog/ai-music-video-arena-claude-vs-gpt-5.6
110•hershyb_•5h ago•119 comments

M 3.9 Experimental Explosion – 147 Km ENE of Ponce Inlet, Florida

https://earthquake.usgs.gov/earthquakes/eventpage/us7000t13l/executive
8•hnburnsy•34m ago•1 comments

NotebookLM is now Gemini Notebook

https://blog.google/innovation-and-ai/products/gemini-notebook/notebooklm-gemini-notebook/
229•xnx•9h ago•125 comments

Mathematics of Data Science

https://arxiv.org/abs/2607.11938
84•Anon84•4h ago•2 comments

Ring-Zero: Scaling Zero RL to a Trillion Parameters for Emergent Reasoning

https://arxiv.org/abs/2607.12395
31•binyu•3h ago•11 comments

Helium escaping from atmosphere of nearby rocky exoplanet in a habitable zone

https://www.science.org/doi/10.1126/science.aea9708
59•anyonecancode•4h ago•16 comments

'Likweli': A new monkey species discovered in the Congo Basin

https://news.yale.edu/2026/07/15/meet-likweli-new-monkey-species-discovered-congo-basin
31•gmays•3h ago•4 comments

Detecting LLM-Generated Texts with “Classical” Machine Learning

https://blog.lyc8503.net/en/post/llm-classifier/
153•uneven9434•8h ago•103 comments

Show HN: Mojibake – a low-level Unicode library written in C

https://mojibake.zaerl.com/
31•program•2h ago•6 comments

OnePlus halts operations in USA and Europe

https://community.oneplus.com/thread/2170715118587871237
537•pilililo2•15h ago•324 comments

Immersive Linear Algebra Book with Interactive Figures (2015)

https://immersivemath.com/ila/
164•srean•9h ago•26 comments

Show HN: Clx – Compile Lua to Native Executables Through C++20

https://github.com/samyeyo/clx
81•_samt_•5d ago•3 comments

How Our Rust-to-Zig Rewrite Is Going

https://rtfeldman.com/rust-to-zig
399•jorangreef•13h ago•220 comments

Solod: Go can be a better C

https://solod.dev
24•koeng•3d ago•4 comments

The privacy problems hidden in your period tracker

https://www.bbc.com/future/article/20260715-how-period-trackers-share-womens-private-details
70•tchalla•5h ago•40 comments

Abstracting Effects with Continuations

https://crowdhailer.me/2026-07-15/abstracting-effects-with-continuations/
35•crowdhailer•14h ago•0 comments

My car’s OTA update broke Android Auto

https://imdanielkendall.com/the-great-software-regress-how-move-fast-and-break-things-broke-our-l...
117•Expletive4138•2h ago•129 comments

Adaptional (YC S25) Is Hiring

https://www.ycombinator.com/companies/adaptional/jobs
1•acesohc•8h ago

Count the Bytes, Not the FLOPs

https://thepragmaticquant.com/why-we-stopped-materializing-arrays/
6•sgilda•2d ago•1 comments

Pseudpocalypse

https://dynomight.net/pseudpocalypse/
74•surprisetalk•2d ago•47 comments

Timeline Scan – AI fixes the dates on your scanned photos

https://timelinescan.com/
26•HoserHoser•4h ago•25 comments

Goes-19 weather satellite enters Safe Hold mode

https://www.spaceweather.gov/news/goes-19-safe-hold
148•yabones•11h ago•74 comments

How to Train a Gen AI Kick Drum Model on Your Old Linux Desktop with 6GB VRAM

https://www.zhinit.dev/blog/training-a-kick-drum-diffusion-model
96•zhinit•10h ago•54 comments

CD sales growth outpaced vinyl in the first half of 2026

https://consequence.net/2026/07/the-cd-revival-is-getting-hard-to-ignore/
59•speckx•8h ago•71 comments

CVE-2026-25089: FortiSandbox unauthenticated command injection added to CISA KEV

https://hellorecon.com/blog/cve-2026-25089
16•slvnx•3h ago•0 comments