首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Aerospike集群配置

Aerospike集群配置
EN

Stack Overflow用户
提问于 2019-03-24 15:35:24
回答 1查看 170关注 0票数 1

我尝试通过Docker启动和运行一个Aerospike集群,并使用以下配置来启动我的集群

代码语言:javascript
复制
Configuration:
    service {
            user root
            group root
            paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
            pidfile /var/run/aerospike/asd.pid
            service-threads 24
            transaction-queues 4
            transaction-threads-per-queue 4
            proto-fd-max 15000

    }



    network {
        service {
            address any
            access-address 172.16.43.5
            port 3000
        }

        heartbeat {
            mode mesh

            port 3002 # Heartbeat port for this node.
            address 172.16.43.5
            # List one or more other nodes, one ip-address & port per line:
            # Please note that we do not have the address of the incoming node in this list
            mesh-seed-address-port 172.16.43.7  3002
            mesh-seed-address-port 172.16.43.5  3002
            # Having the node itself as a mesh seed node is allowed
            # and helps with consistent configuration files across the cluster

            interval 250
            timeout 10
        }

        fabric {
            port 3001
        }

        info {
            port 3003
        }
    }

    namespace test {
                                   # Data in memory without persistance namespace
        replication-factor 2
        memory-size 32G
        default-ttl 30d               # 30 days, use 0 to never expire/evict.
        storage-engine memory
    }

但是集群中的节点失败,并出现以下错误:

Mar 22 2019 16:48:48 GMT: WARNING (socket): (socket.c:805) Error while binding to 172.16.43.5:3002: 99 (Cannot assign requested address)

这是我尝试用来运行它的命令:

代码语言:javascript
复制
docker run -p 3000:3000 -p 3001:3001 -p 3002:3002 -p 9918:9918 -v /home/user/aerospike:/opt/aerospike/etc aerospike/aerospike-server:latest --config-file /opt/aerospike/etc/aerospike.conf

如果使用--net host,我会得到以下错误:cat: /sys/class/net/eth0/operstate: No such file or directory

这是一种bug,还是我配置错了什么?

EN

回答 1

Stack Overflow用户

发布于 2019-03-27 14:51:27

这是一个在航空船坞图像中的错误。网络设备的名称在entrypoint.sh中是硬编码的

因此,对于我来说,通过将行NETLINK=${NETLINK:-eth0}更改为NETLINK=${NETLINK:-eno1}修复了这个问题

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55321648

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档