V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ducuducu
V2EX  ›  程序员

etcd 的写性能怎么样?有人用过吗

  •  
  •   ducuducu · 24 天前 · 798 次点击

    看了下文档,类似 zk 和 etcd 这类分布式一致性系统,它的写过程像是个二段提交过程,然后一次只能处理一个写请求,那岂不是写性能比较差,我理解写的 qps 最多等于 1000/网络往返时延(毫秒),我这样理解对吗? 但我看过网上一些性能测试,etcd 能达到每秒上万次写,有点不太懂是怎么做到的,有大佬线上用过吗

    4 条回复    2024-04-15 20:19:18 +08:00
    kneo
        1
    kneo  
       24 天前
    https://etcd.io/docs/v3.5/op-guide/performance/

    To increase throughput, etcd batches multiple requests together and submits them to Raft. This batching policy lets etcd attain high throughput despite heavy load.
    cloudzhou
        2
    cloudzhou  
       23 天前
    在使用上,就不要把 etcd 作为存储使用,而是作为关键的版本号,或者仲裁者,敏感原子性操作,而把写操作放到其他地方
    ducuducu
        3
    ducuducu  
    OP
       16 天前
    @kneo 好的,原来 etcd 加了缓存
    kneo
        4
    kneo  
       16 天前 via Android
    @ducuducu 这个不算缓存吧,顶多叫缓冲。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   972 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 18:37 · PVG 02:37 · LAX 11:37 · JFK 14:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.