Coder Social home page Coder Social logo

Comments (3)

killme2008 avatar killme2008 commented on August 26, 2024

从代码来看,关闭的步骤如下:

1.取消zk注册,这会通知客户端不要再使用这个broker
2.关闭网络层,拒绝接收新请求
3.关闭线程池,采用shutdown,会处理掉已经submit的请求,拒绝新请求
4.关闭其他服务

理论上可以做到比较优雅的关闭的。不过在1和2之间应该做一个短暂的sleep,因为zk通知到客户端需要一个时间差。

from metamorphosis.

hanzhihua avatar hanzhihua commented on August 26, 2024

不错,多谢辛苦工作,在问一个问题,关于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.

killme2008 avatar killme2008 commented on August 26, 2024

1.4.3 released.

from metamorphosis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.