memcached - 是否有带有 Couchbase memcached 存储桶的代理?

标签 memcached couchbase

我们使用 Couchbase 5.1.1,一个包含 5 个虚拟机的集群,memcached 存储桶。我尝试了解 memcache 存储桶在 couchbase 集群中如何工作。

Php 直接与 couchbase 服务器对话(没有显式代理)。

但有时,我会看到错误:SERVER_ERROR 代理下游超时 看起来某处有代理?

使用 Docker 进行测试:

  1. docker run --name cb --rm -ti couchbase:5.1.1

然后在容器内:

  • couchbase-cli cluster-init --cluster localhost --cluster-username admin --cluster-password totototo --cluster-name poc
  • couchbase-cli bucket-create --用户名 admin --密码 totototo --cluster localhost --bucket mem --bucket-type memcached --bucket-ramsize 128 --bucket-port 11212
  • 我现在可以看到moxi进程:

    > /opt/couchbase/bin/moxi -B auto -z
    > url=http://127.0.0.1:8091/pools/default/bucketsStreaming/mem -Z
    > port_listen=11212,downstream_max=1024,downstream_conn_max=4,connect_max_errors=5,connect_retry_interval=30000,connect_timeout=400,auth_timeout=100,cycle=200,downstream_conn_queue_timeout=200,downstream_timeout=5000,wait_queue_timeout=200 -p 0 -Y y -O stderr
    

    最佳答案

    实际上是的,在 Couchbase 5.5.X 之前:

    a moxi process is run as soon as a memcached bucket is created.

    5.5.X 之后和版本:

    no more moxi proxy, you can run moxi or configure application to distribute data over the cluster

    关于memcached - 是否有带有 Couchbase memcached 存储桶的代理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52039844/

    相关文章:

    mysql - NoSQL/InnoDB 与 Memcached

    c# - Enyim Memcached Client 不写/读数据

    database - CouchBase 1.8 和 2.0 Erlang SDK?为什么 Erlang 被排除在外

    node.js - 使用 Couchnode 模块 v.1.2.4 从 Node.js 连接到 CouchBase 时出错

    docker - 安装 Couchbase 的特定 docker 镜像

    memcached - 如何在 mac 上配置启用 SASL 的 memcached 用户名和密码

    java - GAE JCache NumberFormatException,我需要编写 Java 来避免吗?

    memcached - membase 相对于 memcached 的用例是什么?

    couchbase - 如何增加Couchbase中群集的RAM内存?

    elasticsearch Transport-couchbase 插件拒绝端口 9091 上的连接