ymlog

k8s 集群中数据库为什么要用 etcd

  •  
  •   ymlog · Aug 6, 2020 · 5526 views
    This topic created in 2137 days ago, the information mentioned may be changed or developed.

    网上找了很多,为什么不用 MySQL,而非要用 etcd 呢

    7 replies    2020-09-23 09:18:05 +08:00
    rushssss
        2
    rushssss  
       Aug 6, 2020
    因为需要一个分布式的、强一致的数据库,MySQL 做不到这点
    ymlog
        3
    ymlog  
    OP
       Aug 6, 2020
    @uncat 多谢
    liulaomo
        4
    liulaomo  
       Aug 6, 2020
    当初应该有赶时髦的意思,也有一些政治因素。docker 公司和微软走得较近,而谷歌和 CoreOS 的关系比较好,为了扶持盟友,就用了 CoreOS 新出的 etcd 。

    没有必要非得用 etcd 。k3s 用的是 sqlite 。
    julyclyde
        5
    julyclyde  
       Aug 7, 2020
    可能因为有 WATCH 的需求吧
    ymlog
        6
    ymlog  
    OP
       Aug 8, 2020
    @liulaomo 也有人说 MySQL 做不到分布式并且数据一致性,最终答案优点扑朔迷离
    fyooo
        7
    fyooo  
       Sep 23, 2020
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2978 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 81ms · UTC 05:25 · PVG 13:25 · LAX 22:25 · JFK 01:25
    ♥ Do have faith in what you're doing.