~/talk

Speeding up Terraform caching with OverlayFS

links:none on file
slides:none on file

Uses OverlayFS to build a concurrent-safe provider cache by keeping a shared central lower (read-only) cache and giving each concurrent init its own upper (writable) dir, so inits never race writing the same files. Fetching and persisting providers are decoupled and persisting is deferred between plan and apply, cutting provider fetches to only cache misses. Results: typical pipelines see about a 10x speedup, big states go from hours to minutes and thousands of concurrent nightly plans finish in roughly an hour; implemented today with Atlantis, not yet a HashiCorp feature.

AI-written summary · about

  1. 0:00Introduction and Speaker Background
  2. 0:40Understanding Terraform Operations
  3. 1:31Optimizing Terraform Performance
  4. 11:21Challenges with Terraform Provider Cache
  5. 11:47Implementing a Concurrent Safe Provider Cache
  6. 12:28OverlayFS: A Solution for Provider Cache
  7. 17:07Performance Improvements and Results
  8. 19:16Conclusion and Recommendations
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.