3 ms·
k3s, by default, uses sqlite for storage instead of etcd. This is one of the ways you can get a performance improvement. If you are going to run a cluster you'
by mfer 5y ago
k3s, by default, uses sqlite for storage instead of etcd. This is one of the ways you can get a performance improvement.
If you are going to run a cluster you're likely going to want to have your database be an HA cluster. While k3s can support other databases, like PostgreSQL, it doesn't have handling for clusters in the config.
This is a limitation I see for k3s in clusters, right now.
I would love to see cluster handling in k3s. etcd can be a scaling bottleneck and replacing it with PostgreSQL could help it scale much higher.
Disclaimer, I work on Rancher Desktop which uses k3s
- zaphirplane 5y agoAssuming k8s still uses watch on etcd keys how is that implemented for SQLite ? I suppose polling is possible way if it’s low tps desktop focused
- h3h3 5y agoyes looks to be polling https://github.com/k3s-io/kine/blob/master/pkg/server/watch.go https://github.com/k3s-io/kine/blob/master/pkg/server/watch....
- skrtskrt 5y agoAs someone using k3s on a single node right now, could you clarify/expand on "it doesn't have handling for clusters in the config"?
- pixiemagic 5y agoI think they are talking about using a clustered RDMBS as storage for k3s, rather than running multiple nodes as part of your Kubernetes cluster.