frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Title: Ask HN: Scheduling stateful nodes when MMAP makes memory accounting a lie

1•leo_e•26m ago
We’re hitting a classic distributed systems wall and I’m looking for war stories or "least worst" practices.

The Context: We maintain a distributed stateful engine (think search/analytics). The architecture is standard: a Control Plane (Coordinator) assigns data segments to Worker Nodes. The workload involves heavy use of mmap and lazy loading for large datasets.

The Incident: We had a cascading failure where the Coordinator got stuck in a loop, DDOS-ing a specific node.

The Signal: Coordinator sees Node A has significantly fewer rows (logical count) than the cluster average. It flags Node A as "underutilized."

The Action: Coordinator attempts to rebalance/load new segments onto Node A.

The Reality: Node A is actually sitting at 197GB RAM usage (near OOM). The data on it happens to be extremely wide (fat rows, huge blobs), so its logical row count is low, but physical footprint is massive.

The Loop: Node A rejects the load (or times out). The Coordinator ignores the backpressure, sees the low row count again, and retries immediately.

The Core Problem: We are trying to write a "God Equation" for our load balancer. We started with row_count, which failed. We looked at disk usage, but that doesn't correlate with RAM because of lazy loading.

Now we are staring at mmap. Because the OS manages the page cache, the application-level RSS is noisy and doesn't strictly reflect "required" memory vs "reclaimable" cache.

The Question: Attempting to enumerate every resource variable (CPU, IOPS, RSS, Disk, logical count) into a single scoring function feels like an NP-hard trap.

How do you handle placement in systems where memory usage is opaque/dynamic?

Dumb Coordinator, Smart Nodes: Should we just let the Coordinator blind-fire based on disk space, and rely 100% on the Node to return hard 429 Too Many Requests based on local pressure?

Cost Estimation: Do we try to build a synthetic "cost model" per segment (e.g., predicted memory footprint) and schedule based on credits, ignoring actual OS metrics?

Control Plane Decoupling: Separate storage balancing (disk) from query balancing (mem)?

Feels like we are reinventing the wheel. References to papers or similar architecture post-mortems appreciated.

Show HN: PDFClear – Browser-based PDF tools with local AI (WASM+Transformers.js)

https://www.pdfclear.com/
1•aliansari22•1m ago•0 comments

LisaGUI recreates Apple's Lisa interface in the browser

https://www.theregister.com/2025/11/24/lisagui_lisaos_apple/
1•coloneltcb•1m ago•0 comments

MCP Code Execution Server

https://github.com/ozgureyilmaz/mcp-executor
1•0x79de•2m ago•0 comments

Show HN: Wikidive: A tool to deep dive Wikipedia rabbitholes

https://wikidive.net/dive?topic=Philosophy
1•atulvi•4m ago•0 comments

Belgium's 15-year-old prodigy earns PhD in quantum physics

https://www.brusselstimes.com/1846332/belgiums-15-year-old-prodigy-earns-phd-in-quantum-physics
1•iamtech•4m ago•0 comments

Show HN: I built an interactive HN Simulator

https://news.ysimulator.run/news
1•johnsillings•4m ago•0 comments

Italian police raid Amazon offices over customs and tax fraud in Chinese imports

https://www.reuters.com/technology/tax-customs-police-raid-two-amazon-sites-italy-china-smuggling...
1•giuliomagnifico•4m ago•0 comments

Cool-retro-term: terminal emulator which mimics look and feel of the old CRTs

https://github.com/Swordfish90/cool-retro-term
1•michalpleban•5m ago•0 comments

ChatGPT told them they were special – their families say it led to tragedy

https://techcrunch.com/2025/11/23/chatgpt-told-them-they-were-special-their-families-say-it-led-t...
2•rbanffy•5m ago•0 comments

10 Years of Writing a Blog Nobody Reads

https://flowtwo.io/post/on-10-years-of-writing-a-blog-nobody-reads
1•speckx•5m ago•0 comments

Show HN: Success Motivation for Builders

https://apps.apple.com/us/app/success-quotes/id6752120038
1•hackingmonkey•5m ago•0 comments

Andrej Karpathy on X: implications of AI to schools

https://twitter.com/karpathy/status/1993010584175141038
1•bilsbie•6m ago•0 comments

In wake of Windows 10 retirement, over 780K Windows users skip Win 11 for Linux

https://www.tomshardware.com/software/linux/in-the-wake-of-windows-10-eol-over-780-000-windows-us...
2•rbanffy•6m ago•1 comments

How Busy Is the Tube?

https://howbusyisthetube.com/
1•ryangibb•6m ago•0 comments

Spain and Laliga Blocks of the Internet

https://vercel.com/blog/update-on-spain-and-laliga-blocks-of-the-internet
1•gdeglin•7m ago•0 comments

Dell Pro Max with GB10 Arrives for Linux Performance Benchmarking Review

https://www.phoronix.com/review/dell-pro-max-gb10-preview
1•rbanffy•7m ago•0 comments

New York City's Scaffolding Gets a Long Overdue Makeover

https://www.nytimes.com/2025/11/18/nyregion/nyc-scaffolding-sidewalk-sheds.html
1•bookofjoe•8m ago•1 comments

What Is This Logo?

https://old.reddit.com/r/HelpMeFind/comments/1p4nn1r/what_is_this_logo_i_came_across_it_on_my_exs/
2•yaur•11m ago•0 comments

Up to 14% of employee expenses are overpaid, study shows AI detects errors

https://www.financemagnates.com/forex/ai-tackles-14-employee-expense-overpayments-study-shows/
2•onpedrof•11m ago•0 comments

Narrative Context Protocol

https://github.com/narrative-first/narrative-context-protocol
1•turtleyacht•11m ago•1 comments

The Panini-Backus Form in Syntax of Formal Languages

https://www.infinityfoundation.com/mandala/t_es/t_es_rao-t_syntax.htm
1•burglarhobbit•11m ago•0 comments

Wealthiest 10% of Americans make up 50% of purchases and consumer spendings

https://www.morningbrew.com/stories/wealthy-americans-account-half-consumer-spending
3•randycupertino•11m ago•1 comments

TinyML

https://github.com/thommaskevin/TinyML
1•atomicnature•12m ago•0 comments

Misunderstanding That "Dependency" Comic

https://bertptrs.nl/2025/11/24/misunderstanding-that-dependency-comic.html
2•todsacerdoti•15m ago•1 comments

Andrej Karpathy's LLM Council

https://github.com/karpathy/llm-council
1•nanfinitum•15m ago•0 comments

The char-TCHAR-wchar_t Pendulum in Windows API Native C/C++ Programming

https://giodicanio.com/2025/11/24/the-char-tchar-wchar_t-pendulum-in-windows-api-native-c-and-c-p...
3•movd128•16m ago•0 comments

Self-Acceptance vs. Self-Improvement (and Why You Need Both) (2016)

https://www.doctornerdlove.com/self-acceptance-self-improvement-you-need-both/
1•mooreds•18m ago•0 comments

Boosting Claude: Faster, Clearer Code Analysis with MGrep

https://elite-ai-assisted-coding.dev/p/boosting-claude-faster-clearer-code
1•breadislove•19m ago•0 comments

SVGs that feel like GIFs

https://danq.me/2025/11/24/svgs-that-feel-like-gifs/
1•speckx•21m ago•1 comments

HTTPX 1.0 — Prelease

https://www.encode.io/httpnext/
1•gfortaine•21m ago•0 comments