CN111538522B - Zk-based message middleware online upgrading method and system - Google Patents

Zk-based message middleware online upgrading method and system Download PDF

Info

Publication number
CN111538522B
CN111538522B CN202010353015.1A CN202010353015A CN111538522B CN 111538522 B CN111538522 B CN 111538522B CN 202010353015 A CN202010353015 A CN 202010353015A CN 111538522 B CN111538522 B CN 111538522B
Authority
CN
China
Prior art keywords
cluster
test
brooker
idmm
client
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.)
Active
Application number
CN202010353015.1A
Other languages
Chinese (zh)
Other versions
CN111538522A (en
Inventor
王定坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN202010353015.1A priority Critical patent/CN111538522B/en
Publication of CN111538522A publication Critical patent/CN111538522A/en
Application granted granted Critical
Publication of CN111538522B publication Critical patent/CN111538522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware

Abstract

The invention discloses a zk-based message middleware online upgrading system, which comprises zk, wherein the 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 state client accesses the production state 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 at zk is/idmm/brooker; the registered path of the table of the production state cluster above zk is idmm/table; the registration path of the brooker of the test state cluster above zk is/idmm/testnode/brooker; the registering path of the table of the test state cluster above zk is idmm/testnode/table; the production state client obtains an address from an idmm/brooker path on zk and communicates with the address; the test state client obtains the address from the idmm/testnode/brooker path above zk and communicates. The invention solves the problem that the version upgrading of the information middleware is not operable more and more when the information middleware stops service.

Description

Zk-based message middleware online upgrading method and system
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 a zk-based message middleware online upgrading system.
Background
In the process of building an internet system, along with the diversity and continuous development change of services, message middleware is increasingly relied on as a throat for data transmission in order to solve the scenes of asynchronous notification, decoupling among 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, it becomes more and more inoperable to stop the version upgrade, and the requirement that the message middleware needs to have online upgrade capability becomes more and more prominent.
Disclosure of Invention
Aiming at the problem that version upgrading is more and more inoperable when the information middleware is stopped, the invention provides a zk-based message middleware online upgrading method and a zk-based message middleware online upgrading system.
The invention discloses a zk-based message middleware online upgrading system, which comprises zk (Apache ZooKeeper), a set of web application 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 a test state cluster;
the production state client accesses a production state 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 registration path of the brooker of the production state cluster at zk is/idmm/brooker.
Preferably, the registered path of the table of the production cluster above zk is idmm/table.
Preferably, the registration path of the brooker of the test state cluster above zk is/idmm/testnode/brooker.
Preferably, the registered path of the table of the test state cluster above zk is idmm/testnode/table.
Preferably, the production client obtains an address from an idmm/brooker path above zk and communicates with the server.
Preferably, the above-mentioned test state client obtains and communicates addresses from the idmm/testnode/brooker path above zk.
A zk-based message middleware online upgrading method comprises the following steps of:
step one: stopping the message middleware node, configuring the message middleware node into a test state node, and upgrading a node program;
step two: the producer and the consumer of the test are configured into a test state;
step three: performing service test of the upgrade node on pressure test;
step four: configuring the corresponding node into a production state;
step five: the above procedure is repeated until all nodes complete the replacement.
Compared with the prior art, the invention has the beneficial effects that:
after the zk-based message middleware online upgrading method and system provided by the invention are adopted, the test clusters of the message middleware are separated from the production clusters by using a load soft isolation mode, so that the online upgrading of the message middleware is realized, the verification of the clusters after the upgrading version is quickly realized, the assembly management mode is realized, the development is simple, and the later maintenance cost is low.
Drawings
FIG. 1 is a schematic diagram of a zk-based message middleware online upgrade system of the present invention.
Fig. 2 is a schematic workflow diagram of a zk-based message middleware online upgrade method of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the 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 clients and clusters; 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 a test state cluster;
the production state client accesses a production state cluster;
the test state cluster comprises a brooker module and a ble module;
the production cluster comprises a brooker module (IDMM proxy module) and a ble module (IDMM memory ordering module).
In specific implementation, the registration path of the brooker of the production state cluster at zk is/idmm/brooker.
In specific implementation, the registration path of the table of the production cluster on zk is idmm/table.
In specific implementation, the registration path of the brooker of the test state cluster above zk is/idmm/testnode/brooker.
In specific implementation, the registration path of the table of the test state cluster above zk is idmm/testnode/table.
In specific implementation, the production client acquires an address from an idmm/brooker path above zk and communicates with the server.
In specific implementation, the test state client acquires addresses from the idmm/testnode/brooker path above zk and communicates.
Referring to fig. 2, a zk-based online upgrading method for message middleware, wherein the zk-based online upgrading deployment process is as follows:
step one: stopping the message middleware node, configuring the message middleware node into a test state node, and upgrading a node program; namely, modifying a brooker and a bled config file of the standby node, modifying a cluster mode into 1, and entering a test mode;
step two: the producer and the consumer of the test are configured into a test state;
step three: performing service test of the upgrade node on pressure test;
step four: configuring the corresponding node into a production state; namely, modifying a brooker and a bled config file of the standby node, modifying a cluster mode into 0, and entering a production mode;
step five: the above procedure is repeated until all nodes complete the replacement.
After the zk-based message middleware online upgrading method and system provided by the invention are used, the test clusters of the message middleware are separated from the production clusters by using a load soft isolation mode, so that the online upgrading of the message middleware is realized, the verification of the clusters after the upgrading version is quickly realized, the assembly management mode is realized, the development is simple, and the 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, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (1)

1. A message middleware online upgrading system based on a ZooKeeper is characterized in that: the system includes ZooKeeper, zooKeeper quarantine between clients and clusters; 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, and the test state client acquires an address from an idmm/testnode/browser path on the ZooKeeper and communicates with the address;
the production state client accesses the production state cluster, and the production state client acquires an address from an idmm/browser path on the ZooKeeper and communicates with the address;
the test state cluster comprises a brooker module and a ble module, wherein the ble module is a memory ordering module; the registration path of the brooker of the test state cluster on the ZooKeeper is/idmm/testnode/brooker, and the registration path of the ble of the test state cluster on the ZooKeeper is idmm/testnode/ble;
the production state cluster comprises a brooker module and a ble module, wherein the registration path of the brooker of the production state cluster on the ZooKeeper is/idmm/brooker, and the registration path of the ble of the production state cluster on the ZooKeeper is idmm/ble;
the online upgrading deployment process of the message middleware online upgrading system based on the ZooKeeper is as follows:
step one: stopping the message middleware node, configuring the message middleware node into a test state node, and upgrading a node program; namely modifying a consistency file of a browser and a table of the standby node, modifying a cluster mode into 1, and entering a test mode;
step two: the producer and the consumer of the test are configured into a test state;
step three: performing service test and pressure test of the upgrade node;
step four: configuring the corresponding node into a production state; namely modifying a consistency file of a browser and a ble of the standby node, modifying a cluster mode into 0, and entering a production mode;
step five: repeating the steps until all nodes complete replacement.
CN202010353015.1A 2020-04-29 2020-04-29 Zk-based message middleware online upgrading method and system Active CN111538522B (en)

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 CN111538522A (en) 2020-08-14
CN111538522B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615759B (en) * 2020-12-17 2023-03-31 上海哔哩哔哩科技有限公司 Full link voltage measurement assembly, full link voltage measurement method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8881136B2 (en) * 2012-03-13 2014-11-04 International Business Machines Corporation Identifying optimal upgrade scenarios in a networked computing environment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (1)

* Cited by examiner, † Cited by third party
Title
基于微服务的物联网通用中间件设计与实现;吴斌烽;《中国优秀硕士学位论文全文数据库 信息科技辑》(第2期);I136-918 *

Also Published As

Publication number Publication date
CN111538522A (en) 2020-08-14

Similar Documents

Publication Publication Date Title
CN108234670B (en) Zookeeper and netty-based distributed remote calling method
JP4583452B2 (en) Method and system for monitoring server events in a node configuration by using direct communication between servers
CN110262902B (en) Information processing method and system, medium, and computing device
CN108712457A (en) Back-end server dynamic load method of adjustment and device based on Nginx reverse proxys
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
CN111064626B (en) Configuration updating method, device, server and readable storage medium
KR20190030116A (en) Micro grid energy management system using dds middleware
CN111538522B (en) Zk-based message middleware online upgrading method and system
CN104320441A (en) Method of sharing information between wireless communication systems
CN111309691A (en) Data sharing exchange system and exchange method based on bus architecture
CN111813503A (en) Micro-service application open system based on container cloud
CN111163172A (en) Message processing system, method, electronic device and storage medium
CN113612825B (en) Internet of things message middleware server cluster expansion method and system
CN111641680A (en) Management method of Ambari high-availability cluster
CN111565120A (en) 5G network slicing product configuration method and system and electronic equipment
CN115567400A (en) Whole cabinet management method, device, equipment and medium
CN111083182B (en) Distributed Internet of things equipment management method and device
CN115190103A (en) Service grid-based service domain name resolution method, device and equipment
CN111580998A (en) RPC calling method of multiple tenants in SaaS service mode
CN114500646B (en) Decentralizing ESB cloud platform system and service calling method thereof
CN111193614A (en) Cross-regional server system and method for connecting different regional network environments in the world
CN112003731B (en) Configuration method and device
JP2020526138A (en) Data interaction method, apparatus and device

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