k3s-io / kine

Run Kubernetes on MySQL, Postgres, sqlite, dqlite, not etcd.
Apache License 2.0
1.63k stars 234 forks source link

[Question] Does Having A Caching Layer Make Sense? #284

Closed infinitydon closed 7 months ago

infinitydon commented 7 months ago

Hi,

I am wondering if projects like https://github.com/readysettech/readyset that improves the overall performances of DBs like Mysql/Psql will be beneficial to use between kine and the backend DB?

My initial thought is that it may not be suitable since cached data may not accurately reflect the k8s state but I am not a DB expert, hence why I want to clarify this from the community.

Thanks

brandond commented 7 months ago

I would generally say no? The apiserver already caches as much as it can, while guaranteeing consistent reads. Adding additional caches between kine and the database will probably break things.

We don't have discussions on this repo so I'm going to close this issue, but feel free to continue to comment.