circus 架构
Overall architecture

Circus is composed of a main process called circusd which takes care of running all the processes. Each process managed by Circus is a child process of circusd.
Processes are organized in groups called watchers. A watcher is basically a command circusd runs on your system, and for each command you can configure how many processes you want to run.
The concept of watcher is useful when you want to manage all the processes running the same command – like restart them, etc.
circusd binds two ZeroMQ sockets:
- REQ/REP – a socket used to control circusd using json-based commands.
- PUB/SUB – a socket where circusd publishes events, like when a process is started or stopped.
Note
Despite its name, ZeroMQ is not a queue management system. Think of it as an inter-process communication (IPC) library.
Another process called circusd-stats is run by circusd when the option is activated. circusd-stats’s job is to publish CPU/Memory usage statistics in a dedicated PUB/SUB channel.
This specialized channel is used by circus-top and circus-httpd to display a live stream of the activity.
circus-top is a console script that mimics top to display all the CPU and Memory usage of the processes managed by Circus.
circus-httpd is the web managment interface that will let you interact with Circus. It displays a live stream using web sockets and the circusd-stats channel, but also let you interact with circusd via its REQ/REP channel.
Last but not least, circusctl is a command-line tool that let you drive circusd via its REQ/REP channel.
You can also have plugins that subscribe to circusd’s PUB/SUB channel and let you send commands to the REQ/REPchannel like circusctl would.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
2017-06-10 一款直接时空处理分析的开源数据库---geomesa
2017-06-10 nginx php 配置
2017-06-10 Apache Accumulo
2017-06-10 Kubernetes Helm
2017-06-10 Helm Charts