~/talk

Config files vs. flags: story of pain

Talkat SREday London 2024 · 2024-09-19..09-20· [devops-and-delivery]
links:none on file
slides:none on file

Argues that preferencing command-line flags and environment variables over static files eliminates indirection and improves observability because the full runtime config is visible in the process command line; notes ARG_MAX on Unix is around 2 megabytes ARG_MAX so long flags are feasible, while Kubernetes ConfigMaps are size-limited to 1 megabyte and are independent resources that break coordinated rollouts. Recommends flags-by-default, standardizing flag libraries, using files only for very large or nested configs (Nginx, OpenTelemetry), and storing structured configs as proto text when possible, plus sensible defaults and no programming inside configs.

AI-written summary · about

  1. 0:00Introduction and Speaker Background
  2. 0:20The Problem with Application Configurations
  3. 1:49Understanding Config Files
  4. 3:03Issues with Config Files
  5. 5:07Improving Configurations
  6. 7:42Using Flags for Configuration
  7. 10:15Arguments Against Flags
  8. 12:56Config Files in Kubernetes
  9. 17:06Best Practices for Configurations
  10. 21:02Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.