k3s-io / kine

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

[Question] Benefit of NATS over plain etcd #139

Closed unixfox closed 1 year ago

unixfox commented 1 year ago

I just saw that NATS support was recently added, that's neat.

But what would be the benefit of using NATS over etcd for a multi master k3s cluster?

Pinging people that seem to use NATS on k3s @caleblloyd @boxboatmatt @jnmoyne


After reading this paper found in the issue https://github.com/k3s-io/k3s/issues/5347, it seems like NATS would help in reducing the latency.

I plan to deploy a cluster that span across multiple datacenters so NATS may be useful in this case.

caleblloyd commented 1 year ago

Sure, @boxboatmatt did a Susecon talk that you might find interesting:

https://www.youtube.com/watch?v=JYDUc5ebyz0

The data is stored in a NATS KV bucket, which is a type of NATS Stream. Therefore any NATS stream operation is supported, such as source/mirror and backup/restore