Comments (3)
从代码来看,关闭的步骤如下:
1.取消zk注册,这会通知客户端不要再使用这个broker
2.关闭网络层,拒绝接收新请求
3.关闭线程池,采用shutdown,会处理掉已经submit的请求,拒绝新请求
4.关闭其他服务
理论上可以做到比较优雅的关闭的。不过在1和2之间应该做一个短暂的sleep,因为zk通知到客户端需要一个时间差。
from metamorphosis.
不错,多谢辛苦工作,在问一个问题,关于message store里面flush,delete的schedule为什么不使用HashedWheelTimer来做?
在 2012-05-19 20:42:32,"dennis zhuang" [email protected] 写道:
从代码来看,关闭的步骤如下:
1.取消zk注册,这会通知客户端不要再使用这个broker
2.关闭网络层,拒绝接收新请求
3.关闭线程池,采用shutdown,会处理掉已经submit的请求,拒绝新请求
4.关闭其他服务理论上可以做到比较优雅的关闭的。不过在1和2之间应该做一个短暂的sleep,因为zk通知到客户端需要一个时间差。
Reply to this email directly or view it on GitHub:
#10 (comment)
from metamorphosis.
1.4.3 released.
from metamorphosis.
Related Issues (20)
- 如何发送定时消息 HOT 1
- Query pending messages shows negative consumed messages
- 不停的创建新线程直至资源耗尽 HOT 5
- 关于consumer 安全消费的问题 HOT 1
- Spring配置共享订阅者方式中的问题
- Send message timeout时不能自动恢复的问题
- Metamorphosis 分布式事务支持 HOT 1
- Consumer消费失败问题
- Offset存储异常问题
- Offset存储Mysql异常问题
- 与Storm0.10集成出错
- zk每个两三天就会过期重连 HOT 2
- 发送消息的主题不能自定义吗? HOT 7
- MetaQ接收数据客户端进入死循环 HOT 2
- 这么通用的中间件,原码为何不用utf-8,而用GBK?造成编译很容易出问题。 HOT 3
- 是否支持一条消息多个消费点 同时消费
- 如何发送延时消息 HOT 1
- 图挂了 HOT 1
- Inconsistent library versions notice.
- 关于MessageConsumer shutdown的问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metamorphosis.