Skip to content

一些问题 #18

@mysterytree

Description

@mysterytree

@xiaokai-wang
我用marathon 动态更新容器 容器端口随机
然后通过docker registrator注册到consul里边
nginx配置文件里边写的是:
1.upsync 127.0.0.1:8500/v1/kv/haserver/haserver
image
我在添加和删除consul里边的ip的时候
/usr/local/nginx/conf/servers/servers_test.conf
里的列表确实能够正常动态更新
但我一旦将/kv/haserver/haserver整个删除
servers_test.conf并不会更新(变成空)
2. 我将轮询间隔设置了50ms
然后用benchmark去测试nginx
刚开始测试挺正常的
但随着我更新consul
发现经常有upstream失败的情况
ab -n 10 -c 10 http://192.168.1.55/
image

image

这种情况经常出现 而且都是整数型的失败
image
image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions