circus && web comsole docker-compose 独立部署web console 的一个bug
如果直接使用以下的docker-compose 文件部署会有通过多播通信获取endpoint 异常的问题(circus 在stats endpoint 获取少了一个c)
这个问题是部分网络情况下会出现(多播包异常)
version: "3"
services:
circus:
image: dalongrong/circus:3.7-slim-stretch
ports:
- "9999:9999"
- "5555:5555"
volumes:
- "./circus.ini:/app/circus.ini"
circus-web:
image: dalongrong/circusd-web:2.7-slim-stretch
ports:
- "8080:8080"
一种简单的解决方法
- 配置web 的时候明确指定endpoint
方法不是很好,但是可以解决问题
支持的参数如下:
usage: circushttpd [-h] [--fd FD] [--host HOST] [--port PORT]
[--endpoint ENDPOINT] [--version]
[--log-level {info,debug,critical,warning,error,INFO,DEBUG,CRITICAL,WARNING,ERROR}]
[--log-output LOGOUTPUT] [--ssh SSH]
[--multicast MULTICAST]
Run the Web Console
optional arguments:
-h, --help show this help message and exit
--fd FD FD
--host HOST Host
--port PORT port
--endpoint ENDPOINT Circus Endpoint. If not specified, Circus will ask you
which system you want to connect to
--version Displays Circus version and exits.
--log-level {info,debug,critical,warning,error,INFO,DEBUG,CRITICAL,WARNING,ERROR}
log level
--log-output LOGOUTPUT
log output
--ssh SSH SSH Server
--multicast MULTICAST
Multicast endpoint. If not specified, Circus will use
default one
- 修改下docker-compose circus service name
修改格式如下:
version: "3"
services:
appcircus:
image: dalongrong/circus:3.7-slim-stretch
ports:
- "9999:9999"
- "5555:5555"
volumes:
- "./circus.ini:/app/circus.ini"
circus-web:
image: dalongrong/circusd-web:2.7-slim-stretch
ports:
- "8080:8080"
重新连接效果
从下图看出,获取的额信息正常,这样通信信息也就能显示了
参考资料
https://github.com/rongfengliang/circus-docker-compose
https://github.com/circus-tent/circus-web
https://circus.readthedocs.org/
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
2018-06-12 nats 学习 集群ha 配置
2017-06-12 Apache Tez 了解
2016-06-12 pouchdb Conflicts
2016-06-12 pouchdb sync
2016-06-12 linux node&& npm 安装方式
2016-06-12 swagger-editor 快速REST-API 测试文档编写