MC中间件产品调研-mcrouter

MC中间件产品调研(一)

DBA迫切需要的功能

front-ends数量(连接数问题)
扩容
缩容
HA
系统状态

开发迫切需要的功能

多机房同步写
多级cache,热key自动分离
再说memcache的multiget hole(无底洞)

About mcrouter

Introduction

  • Facebook
  • pronounced “mick-router”
  • 5 billion requests per second
  • Instagram
  • BSD license
  • easy-to-understand and easy-to-deploy
  • C++ 11 C Ragel Folly fbthrift
  • multiple independent threads
  • configuration in JSON format

Features

  • Standard open source memcached ASCII protocol support
    支持标准的 ASCII 协议
  • Connection poolin
    采用连接池,减少对 memcached 的连接
  • Multiple hashing schemes
    采用一致性哈希
    支持其他专用哈希算法
  • Prefix routing
    前缀路由,可把某些 key 单独放在一个实例上,分离压力
  • Replicated pools
    pool 之间可做 复制 ,读写分离,(备份用),只读某个 pool ,写全部的 pool
  • Production traffic shadowing
    生产环境引流测试,可灵活设定引流方式

  • Online reconfiguration
    配置文件热更新,自动加载,无延迟

  • Flexible routing
    没看懂。

  • Destination health monitoring and automatic failover
    自带健康检查,如果出现问题,会自动切换到其他 destination ,期间会不断检查坏掉的节点,如果恢复,会切回来。

  • Cold cache warm up
    增加节点不会以冷的 cache 响应客户端,会按照下面的逻辑进行 warmup
  • Broadcast operations
    指定关键字,可进行广播操作,如达到多写(有问题)、多删除的目的。
  • Reliable delete stream
    通过文件落地,达到可靠性删除。
  • Multi-cluster support
    多个 cluster 配置简单。
  • Rich stats and debug commands
    丰富的系统状态,JSON。
    “Which host would a particular request go to?”

  • Quality of service
    可以进行限流。

  • Large values
    大的 item 进行拆分,重组。

  • Multi-level caches
    优先查找 local cache ,如果没有,会查询 remote cache 并把结果写到 local cache

  • IPv6 support

  • SSL support

  • Multi-threaded architecture

Reference

Introducing mcrouter: A memcached protocol router for scaling memcached deployments

翻译:Mcrouter:基于 Memcached协议的缓存层流量管理工具

mcrouter-wiki

mcrouter@github

mcrouter-group@facebook

[PDF]Scaling Memcache at Facebook

Welcome to mcrouter

mcrouter installation

使用

  • 安装
  • 配置
  • 测试

问题

  • 如何监控 mcrouter

总结

  • 是否满足平台对于mc的需求
  • 对比 Twemproxy
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容