How OpenAI Saved 30,000 CPU Cores! 🤯

KodeKloud
123,590 views •

How OpenAI Freed 30,000 CPU Cores With One Config Line! OpenAI's Kubernetes clusters push around 9 petabytes of logs a day, and Fluent Bit collects them on every node. It watches each log file with inotify, so every new log line fires a notification. The catch is that inotify only says a file changed, not how much data was written, so Fluent Bit runs a stat syscall every time just to read the new file size. At millions of log lines per second, that turns into millions of stat calls, enough to starve Fluent Bit of CPU and start dropping logs. The fix was one line: turn inotify off and poll each file once per second. That took thousands of stat calls per second down to one. CPU usage dropped 50%, which freed 30,000 cores across the fleet. Reactive inotify or a one-second poll, which would you have reached for first? Drop your answer below. #OpenAI #FluentBit #Kubernetes #DevOps #Linux #inotify #syscall #Observability #SRE #CPUOptimization #CloudNative #Logging #KodeKloud

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close