CN111538522A - Zk-based message middleware online upgrading method and system - Google Patents
Zk-based message middleware online upgrading method and system Download PDFInfo
- Publication number
- CN111538522A CN111538522A CN202010353015.1A CN202010353015A CN111538522A CN 111538522 A CN111538522 A CN 111538522A CN 202010353015 A CN202010353015 A CN 202010353015A CN 111538522 A CN111538522 A CN 111538522A
- Authority
- CN
- China
- Prior art keywords
- cluster
- test
- state
- production
- message middleware
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/656—Updates while running
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/547—Messaging middleware
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a zk-based online upgrading system for message middleware, which comprises zk, wherein zk is isolated between a client and a cluster; the client comprises a test state client and a production state client; the clusters comprise a test-state cluster and a production-state cluster; the test state client accesses the test state cluster; the production client accesses the production cluster; the test state cluster comprises a brooker module and a ble module; the production state cluster comprises a brooker module and a ble module; the registration path of the brooker of the production state cluster in zk is/idmm/brooker; the registration path of ble of the production state cluster on zk is idmm/ble; the registered path of the brooker of the test state cluster on zk is idmm/testnode/brooker; the registration path of ble of the test state cluster on zk is idmm/testnode/ble; the production state client side obtains an address from an idmm/browser path on zk and carries out communication; and the test state client acquires an address from an idmm/testnode/browser path on zk and carries out communication. The invention solves the problem that the version upgrading is increasingly inoperable when the information middleware is out of service.
Description
Technical Field
The invention relates to the technical field of Internet system construction, in particular to a zk-based message middleware online upgrading method and system.
Background
In the process of internet system construction, with the diversity and continuous development and change of services, message middleware is increasingly relied on as the throat of data transmission in order to solve the scenes of asynchronous notification, decoupling between systems (micro services), peak clipping and valley filling, cache synchronization, real-time calculation and the like. As the services carried by the message middleware become more and more extensive, the message middleware becomes more and more inoperable when version upgrading is performed after being stopped, and the requirement that the message middleware needs to have online upgrading capability becomes more and more prominent.
Disclosure of Invention
Aiming at the problem that version upgrading is increasingly inoperable when the information middleware is out of service, the invention provides a zk-based online message middleware upgrading method and system.
The invention discloses a zk-based message middleware online upgrading system, which comprises zk (Apache ZooKeeper, a set of webpage application program development framework based on AJAX/XUL/Java), wherein zk is isolated between a client and a cluster; the client comprises a test state client and a production state client; the clusters comprise a test-state cluster and a production-state cluster;
the test state client accesses the test state cluster;
the production client accesses the production cluster;
the test state cluster comprises a brooker module and a ble module;
the production state cluster comprises a brooker module and a ble module.
Preferably, the registry path of the brooker of the production state cluster at zk is/idmm/brooker.
Preferably, the registration path of ble of the production state cluster above zk is idmm/ble.
Preferably, the registration path of the brooker of the test state cluster above zk is/idmm/testnode/brooker.
Preferably, the registration path of ble of the test state cluster above zk is idmm/testnode/ble.
Preferably, the production state client obtains an address from the idmm/browser path above zk and performs communication.
Preferably, the test-state client acquires an address from an idmm/testnode/router path above zk and performs communication.
An online upgrade method of message middleware based on zk, the online upgrade deployment process based on zk is as follows:
the method comprises the following steps: stopping preparing the message middleware node, configuring the message middleware node as a test state node, and upgrading a node program;
step two: the producer and the consumer of the test are configured to be in a test state;
step three: carrying out a business test of the upgrade node on a pressure test;
step four: configuring the corresponding node to be a production state;
step five: and repeating the processes until all the nodes finish the replacement.
Compared with the prior art, the invention has the beneficial effects that:
after the zk-based message middleware online upgrading method and the zk-based message middleware online upgrading system are adopted, the test cluster of the message middleware is separated from the production cluster in a load soft isolation mode, online upgrading of the message middleware is realized, verification of the cluster after the version is upgraded is quickly realized, a modular management mode is realized, development is simple, and later maintenance cost is low.
Drawings
FIG. 1 is a schematic diagram of an online upgrade system for zk-based message middleware according to the present invention.
FIG. 2 is a schematic workflow diagram of a zk-based message middleware online upgrade method according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The invention is described in further detail below with reference to the attached drawing figures:
referring to fig. 1, a zk-based message middleware online upgrade system includes zk isolated between a client and a cluster; the client comprises a test state client and a production state client; the clusters comprise a test-state cluster and a production-state cluster;
the test state client accesses the test state cluster;
the production client accesses the production cluster;
the test state cluster comprises a brooker module and a ble module;
the production state cluster comprises a brooker module (IDMM proxy module) and a ble module (IDMM memory ordering module).
In specific implementation, the registering path of the brooker of the production state cluster in zk is/idmm/brooker.
In specific implementation, the registration path of ble of the production state cluster above zk is idmm/ble.
In specific implementation, the registered path of the brooker of the test-state cluster on zk is/idmm/testnode/brooker.
In specific implementation, the registration path of ble of the test state cluster on zk is idmm/testnode/ble.
In specific implementation, the production state client acquires an address from an idmm/browser path above zk and performs communication.
In specific implementation, the test state client acquires an address from an idmm/testnode/browser path on zk and performs communication.
Referring to fig. 2, a zk-based online upgrade method for message middleware includes the following steps:
the method comprises the following steps: stopping preparing the message middleware node, configuring the message middleware node as a test state node, and upgrading a node program; namely, a browser and a shared config file of the standby node are modified, and the cluster mode is modified to be 1 to enter a test mode;
step two: the producer and the consumer of the test are configured to be in a test state;
step three: carrying out a business test of the upgrade node on a pressure test;
step four: configuring the corresponding node to be a production state; modifying the browser and the shared config file of the standby node, and modifying the cluster mode to 0 to enter a production mode;
step five: and repeating the processes until all the nodes finish the replacement.
After the zk-based online message middleware upgrading method and the zk-based online message middleware upgrading system are adopted, the test cluster of the message middleware is separated from the production cluster in a load soft isolation mode, online upgrading of the message middleware is realized, verification of the cluster after the version is upgraded is quickly realized, a modular management mode is adopted, development is simple, and later maintenance cost is low.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A zk-based online upgrade system for message middleware, comprising: the system comprises zk, wherein zk is isolated between a client and a cluster; the client comprises a test state client and a production state client; the clusters comprise a test-state cluster and a production-state cluster;
the test state client accesses the test state cluster;
the production client accesses the production cluster;
the test state cluster comprises a brooker module and a ble module;
the production state cluster comprises a brooker module and a ble module.
2. The zk-based message middleware online upgrade system of claim 1, wherein: the registered path of the brooker of the production state cluster at zk is/idmm/brooker.
3. The zk-based message middleware online upgrade system of claim 1, wherein: the registration path of ble of the production state cluster above zk is idmm/ble.
4. The zk-based message middleware online upgrade system of claim 1, wherein: the registered path of the brooker of the test state cluster on zk is/idmm/testnode/brooker.
5. The zk-based message middleware online upgrade system of claim 1, wherein: the registration path of ble of the test state cluster on zk is idmm/testnode/ble.
6. The zk-based message middleware online upgrade system of claim 1, wherein: and the production state client acquires an address from the idmm/browser path above zk and carries out communication.
7. The zk-based message middleware online upgrade system of claim 1, wherein: and the test state client acquires an address from an idmm/testnode/browser path on zk and carries out communication.
8. A zk-based online upgrading method for message middleware is characterized by comprising the following steps: the zk-based online upgrade deployment process is as follows:
the method comprises the following steps: stopping preparing the message middleware node, configuring the message middleware node as a test state node, and upgrading a node program;
step two: configuring a producer node and a consumer node of a test into a test state;
step three: carrying out service test and pressure test on the upgrade node;
step four: configuring the corresponding node to be a production state;
step five: and repeating the processes until all the nodes finish the replacement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010353015.1A CN111538522B (en) | 2020-04-29 | 2020-04-29 | Zk-based message middleware online upgrading method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010353015.1A CN111538522B (en) | 2020-04-29 | 2020-04-29 | Zk-based message middleware online upgrading method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111538522A true CN111538522A (en) | 2020-08-14 |
CN111538522B CN111538522B (en) | 2023-08-11 |
Family
ID=71975813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010353015.1A Active CN111538522B (en) | 2020-04-29 | 2020-04-29 | Zk-based message middleware online upgrading method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111538522B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112615759A (en) * | 2020-12-17 | 2021-04-06 | 上海哔哩哔哩科技有限公司 | Full link voltage measurement assembly, full link voltage measurement method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130247022A1 (en) * | 2012-03-13 | 2013-09-19 | International Business Machines Corporation | Identifying optimal upgrade scenarios in a networked computing environment |
CN105005487A (en) * | 2015-06-29 | 2015-10-28 | 清华大学 | Continuous-service high-performance cluster operating system online upgrading method |
CN105141452A (en) * | 2015-08-07 | 2015-12-09 | 北京思特奇信息技术股份有限公司 | High-performance service system and method based on CXF |
CN106445515A (en) * | 2016-09-18 | 2017-02-22 | 深圳市华云中盛科技有限公司 | PaaS cloud implementation method based on containers |
CN106941420A (en) * | 2017-03-16 | 2017-07-11 | 北京深思数盾科技股份有限公司 | A kind of cluster application environment upgrade method and device |
CN108681461A (en) * | 2018-05-07 | 2018-10-19 | 广东电网有限责任公司 | A kind of clustered software system does not shut down newer method, system and relevant apparatus |
CN109445825A (en) * | 2018-11-09 | 2019-03-08 | 郑州云海信息技术有限公司 | The method and apparatus that a kind of server cluster system updates upgrading |
CN110781013A (en) * | 2019-10-25 | 2020-02-11 | 湖南御家科技有限公司 | Gray scale publishing method, device, equipment and medium |
CN110874232A (en) * | 2018-09-04 | 2020-03-10 | 中兴通讯股份有限公司 | Virtual machine component upgrading method, equipment and computer readable storage medium |
-
2020
- 2020-04-29 CN CN202010353015.1A patent/CN111538522B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130247022A1 (en) * | 2012-03-13 | 2013-09-19 | International Business Machines Corporation | Identifying optimal upgrade scenarios in a networked computing environment |
CN105005487A (en) * | 2015-06-29 | 2015-10-28 | 清华大学 | Continuous-service high-performance cluster operating system online upgrading method |
CN105141452A (en) * | 2015-08-07 | 2015-12-09 | 北京思特奇信息技术股份有限公司 | High-performance service system and method based on CXF |
CN106445515A (en) * | 2016-09-18 | 2017-02-22 | 深圳市华云中盛科技有限公司 | PaaS cloud implementation method based on containers |
CN106941420A (en) * | 2017-03-16 | 2017-07-11 | 北京深思数盾科技股份有限公司 | A kind of cluster application environment upgrade method and device |
CN108681461A (en) * | 2018-05-07 | 2018-10-19 | 广东电网有限责任公司 | A kind of clustered software system does not shut down newer method, system and relevant apparatus |
CN110874232A (en) * | 2018-09-04 | 2020-03-10 | 中兴通讯股份有限公司 | Virtual machine component upgrading method, equipment and computer readable storage medium |
CN109445825A (en) * | 2018-11-09 | 2019-03-08 | 郑州云海信息技术有限公司 | The method and apparatus that a kind of server cluster system updates upgrading |
CN110781013A (en) * | 2019-10-25 | 2020-02-11 | 湖南御家科技有限公司 | Gray scale publishing method, device, equipment and medium |
Non-Patent Citations (5)
Title |
---|
余俊;万乔乔;范志英;: "视频会议系统跨域分布式升级方法研究", vol. 10, no. 02, pages 38 - 40 * |
吴斌烽: "基于微服务的物联网通用中间件设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 2, pages 136 - 918 * |
常荣;刘松;晏小凌;: "基于虚拟化技术的信息系统测试环境搭建与应用研究", 《信息技术与信息化》, no. 05, pages 101 - 104 * |
平凡不甘平庸: "kafka升级官方指导及注意事项", pages 1 - 37 * |
熊磊: "TUXEDO中间件及在江苏有线BOSS系统中的应用", 《有线电视技术》, vol. 20, no. 8, pages 82 - 84 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112615759A (en) * | 2020-12-17 | 2021-04-06 | 上海哔哩哔哩科技有限公司 | Full link voltage measurement assembly, full link voltage measurement method and device |
CN112615759B (en) * | 2020-12-17 | 2023-03-31 | 上海哔哩哔哩科技有限公司 | Full link voltage measurement assembly, full link voltage measurement method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111538522B (en) | 2023-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110955534A (en) | Middleware-based business process automation system and method | |
US20200322232A1 (en) | Network service management method, related apparatus, and system | |
CN107911430A (en) | A kind of micro services infrastructure equipment | |
CN101848107B (en) | SNMP (Simple Network Management Protocol) network element and communication method of SNMP network element and proprietary protocol network element | |
CN108540529A (en) | Do not restart dynamic parameter method for refreshing under a kind of framework based on micro services | |
US9152441B2 (en) | Systems and methods involving virtual machine host isolation over a network via a federated downstream cluster | |
CN111641521B (en) | Method for deploying big data clusters on cloud based on Ambari | |
CN108712457A (en) | Back-end server dynamic load method of adjustment and device based on Nginx reverse proxys | |
CN106790084A (en) | A kind of heterogeneous resource integrated framework and its integrated approach based on ICE middlewares | |
CN111064626A (en) | Configuration updating method, device, server and readable storage medium | |
CN104683968A (en) | Machine type communication application resource management method, node and system | |
CN114584555A (en) | Global event distribution method and system in distributed cloud scene | |
CN111538522A (en) | Zk-based message middleware online upgrading method and system | |
CN111309691A (en) | Data sharing exchange system and exchange method based on bus architecture | |
CN104410702A (en) | Remote service request method, response method, request device and response device | |
CN1972276B (en) | A management method and system for protocol access | |
CN104410511A (en) | Server management method and system | |
CN104331283B (en) | A kind of system and method for calling middleware based on templating WTC agreements | |
US20060028994A1 (en) | Hub-based messaging system | |
CN103067476B (en) | A kind of dynamic network reconstruction method based on virtual machine | |
CN100466550C (en) | Method, device and system for implementing multi-service type structure | |
CN106713464B (en) | service management method and device of enterprise service bus | |
CN114500646B (en) | Decentralizing ESB cloud platform system and service calling method thereof | |
CN111625513A (en) | Method for realizing file storage gateway | |
CN110991676B (en) | Operation and maintenance management platform based on modularized design |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |