# Rancher 2.0 and ETCD question

**URL:** <https://forums.suse.com/t/rancher-2-0-and-etcd-question/7537>\
**Category:** Rancher 2.0 Tech Preview\
**Created:** [October 10, 2017, 4:33pm UTC](https://forums.suse.com/t/rancher-2-0-and-etcd-question/7537 "2017-10-10T16:33:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luc\_Evers](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/luc_evers/32/2745_2.png) [@Luc\_Evers](https://forums.suse.com/u/Luc_Evers)\
**Post date:** [October 10, 2017, 4:33pm UTC](https://forums.suse.com/t/rancher-2-0-and-etcd-question/7537/1 "2017-10-10T16:33:58Z")

</div>

I read that Rancher 2.0 is using MySQL instead of etcd.  
Are you using a distributed MySQL system to avoid a single point of failure?  
+  
ETCD is a distributed design but MySQL is not really a distributed database?

---

<div class="post-metadata">

**Author:** ![shubbard343](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@shubbard343](https://forums.suse.com/u/shubbard343)\
**Post date:** [October 10, 2017, 4:40pm UTC](https://forums.suse.com/t/rancher-2-0-and-etcd-question/7537/2 "2017-10-10T16:40:36Z")

</div>

I believe that the MySQL implementation will follow the 1.x method, and the user is required to take care of any required MySQL master/slave/clustering.

---

<div class="post-metadata">

**Author:** ![Luc\_Evers](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/luc_evers/32/2745_2.png) [@Luc\_Evers](https://forums.suse.com/u/Luc_Evers)\
**Post date:** [October 12, 2017, 5:51am UTC](https://forums.suse.com/t/rancher-2-0-and-etcd-question/7537/3 "2017-10-12T05:51:10Z")

</div>

So this will be the most weak point of Rancher2.0.  
But:  
Integration of Longhorn inside Rancher2.0 is foreseen and Longhorn is using ETCD.  
It would be logical to use etcd in place of MySQL.

---

<div class="post-metadata">

**Author:** ![wjimenez5271](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/wjimenez5271/32/2306_2.png) [@wjimenez5271](https://forums.suse.com/u/wjimenez5271)\
**Post date:** [October 12, 2017, 10:49pm UTC](https://forums.suse.com/t/rancher-2-0-and-etcd-question/7537/4 "2017-10-12T22:49:44Z")

</div>

Hi everyone. Rancher plans to support using an external etcd cluster with our embedded K8s, MySQL is simply an option for those who don’t need the features of etcd.

---

<div class="post-metadata">

**Author:** ![baboune](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/baboune/32/2932_2.png) [@baboune](https://forums.suse.com/u/baboune)\
**Post date:** [October 14, 2017, 4:41pm UTC](https://forums.suse.com/t/rancher-2-0-and-etcd-question/7537/5 "2017-10-14T16:41:29Z")

</div>

When will this external etcd be coming as part of rancher 2?

Replacing MySQL with ETCD is an important feature.

---

<div class="post-metadata">

**Author:** ![mitch](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@mitch](https://forums.suse.com/u/mitch)\
**Post date:** [February 3, 2018, 5:24am UTC](https://forums.suse.com/t/rancher-2-0-and-etcd-question/7537/6 "2018-02-03T05:24:10Z")

</div>

I don’t think everyone is on the same page here… Kubernetes HAS to use etcd, it is the required datastore for the kubernetes api server. However the Rancher Server needs a relational database which is mysql. These are two different pieces to the system. etcd and mysql are not interchangeable. One is a distributed/concurrent key value store, later is a relational database.

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [February 3, 2018, 8:17am UTC](https://forums.suse.com/t/rancher-2-0-and-etcd-question/7537/7 "2018-02-03T08:17:03Z")

</div>

This is all outdated. 2.0 preview2+ (alpha12) does not have a MySQL or any other relational DB. There is an embedded etcd for the management stack, and each cluster registered to it has its own etcd like any other k8s installation. Future builds will likely add options to

- Use an external etcd for management instead of the built-in one

and

- (Re)Use the management etcd for clusters instead of requiring each cluster to have a separate one (“Embedded” vs “Dedicated”)

---

<div class="post-metadata">

**Author:** ![Zoltan](https://avatars.discourse-cdn.com/v4/letter/z/ad7895/32.png) [@Zoltan](https://forums.suse.com/u/Zoltan)\
**Post date:** [April 10, 2018, 12:31pm UTC](https://forums.suse.com/t/rancher-2-0-and-etcd-question/7537/8 "2018-04-10T12:31:03Z")

</div>

Hey there,

in which version can we expect this feature? “Use an external etcd for management instead of the built-in one”

regards  
Zoltan

---

<div class="post-metadata">

**Author:** ![kucerarichard](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kucerarichard/32/3167_2.png) [@kucerarichard](https://forums.suse.com/u/kucerarichard)\
**Post date:** [May 7, 2018, 2:53pm UTC](https://forums.suse.com/t/rancher-2-0-and-etcd-question/7537/9 "2018-05-07T14:53:12Z")

</div>

BTW, etcd is the weak link now 🙂

I had k8s admin course and k8s production grade workshop, it was explained that etcd was the weak link but nobody said anything about this blog post or how robust to make etcd:

> **[Monzo- Very robust etcd](https://www.signifytechnology.com/blog/2018/01/monzo-very-robust-etcd)**
>
> This article was written by Filipe Varela, Backend Engineer at Monzo.
> 
> Filipe Varela Monzo’s backend platform powers the bank, and we know that our service needs to be extremely reliable. Our aim is for our platform to be able to automatically...

> **[Very Robust etcd 💪](https://monzo.com/blog/2017/11/29/very-robust-etcd/)**
>
> We know Monzo's platform must be extremely reliable, and etcd is one of our most critical components. We've gone to great lengths to make sure it can survive a range of failures.

(full stack: [https://monzo.com/blog/2016/09/19/building-a-modern-bank-backend/](https://monzo.com/blog/2016/09/19/building-a-modern-bank-backend/) )

The upshot is you need 9 etcds in 3 zones (or “data centers”).

here’s another take on etcd:

[https://crewjam.com/etcd-aws/](https://crewjam.com/etcd-aws/)

Both of these approaches wrap etcd in some way, but the crewjam example just uses 3 zones (not 3 in each zone).

Wonder what Rancher 2.0 does… soon will find out.

Regards  
Rich
