krkn-chaos / krkn

Chaos and resiliency testing tool for Kubernetes with a focus on improving performance under failure conditions. A CNCF sandbox project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Kubernetes Cli Python Watches

paigerube14 opened this issue · comments

We're trying to rework our current code base to allow for more scalability and security. There are a couple of instances where we could use watches instead of polling every few seconds, this will help with not overwhelming the etcd on the cluster. Watches provide a more efficient detection, as explained in Kubernetes API Concepts.

This work will need to be used on both the wait_for_ready_status and wait_for_ready_status functions in common_node_functions.py

Will also want to assess other places that we could use watching instead of polling ourselves