Kubernetes Podcast from Google cover image

Kubernetes Podcast from Google

Kubernetes stale reads, with Madhav Jivrajani

Feb 9, 2024
We talk with Madhav Jivrajani, an engineer at VMware and a tech lead in SIG Contributor Experience, about a recent post on social media regarding a stale reads issue in Kubernetes and what the community is doing about it. We also discuss the role of contributor experience and GitHub administration, the importance of academic research in Kubernetes, and reflections on Eric Brewer and the CAP Theorem.
43:37

Podcast summary created with Snipd AI

Quick takeaways

  • Efforts within the Kubernetes community to address the stale reads issue include the introduction of consistent reads from cache and vote next caps, providing potential solutions to mitigate data inconsistencies.
  • Disabling the caching mechanism in Kubernetes can ensure highly consistent reads from etcd, but at the cost of losing the performance advantages offered by the caching layer, making it a useful option for those prioritizing consistency over performance or specific use cases where caching is not required.

Deep dives

The Stale Reads Issue in Kubernetes

The podcast discusses the stale reads issue in Kubernetes. When a node goes down in a highly available Kubernetes cluster, it can result in reading from a stale cache, leading to potential data inconsistencies. This issue is rare and requires specific conditions to occur, but it can be challenging to reproduce and debug. The podcast also highlights the cap theorem, which states that in a distributed system, you can have consistency, availability, or partition tolerance, but not all three simultaneously. The podcast mentions ongoing efforts within the Kubernetes community to address the stale reads issue, including the introduction of consistent reads from cache and vote next caps, which aim to reduce the occurrence of stale reads by checking the freshness of data in the cache before serving a request. These caps are currently in beta and alpha stages, respectively, and provide a potential solution to mitigate the stale reads problem.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode