CN108650297A - A kind of realization method and system of Internet of things middleware high availability - Google Patents
A kind of realization method and system of Internet of things middleware high availability Download PDFInfo
- Publication number
- CN108650297A CN108650297A CN201810311817.9A CN201810311817A CN108650297A CN 108650297 A CN108650297 A CN 108650297A CN 201810311817 A CN201810311817 A CN 201810311817A CN 108650297 A CN108650297 A CN 108650297A
- Authority
- CN
- China
- Prior art keywords
- middleware system
- primary
- middleware
- spare
- internet
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Abstract
The present invention provides a kind of implementation methods of Internet of things middleware high availability, include the following steps:1) the primary middleware system of identical realization method and spare middleware system are set;2) configuration information of the spare primary middleware system of middleware system periodic detection, if variation, is synchronized to spare middleware system;3) operating status of the spare primary middleware system of middleware system periodic detection takes over the work of primary middleware system after exception;4) after detecting that the operating status of primary middleware system is restored, primary middleware system is resumed work.The method of the invention has the advantage that:Invention introduces the concepts of primary middleware system and spare middleware system, the realization of primary middleware system and spare middleware system is completely the same, and the realization method of active and standby function and the business processing flow of middleware system are tightly combined, it is upper more flexible in configuration, a variety of high availability schemes can be realized according to actual needs.
Description
Technical field
The invention belongs to Internet of things middleware High availabilities, more specifically, being that one kind is used for realizing in Internet of Things
In the case of middleware system abnormal work, the method that ensures the fast quick-recovery of system, reduce loss of data.
Background technology
With the high speed development of Internet of Things, every technology of Internet of Things progresses into the every field in people's life,
And then it is also increasingly strong to the high-availability requirement of internet of things data acquisition system.The appearance of middleware system for Internet of things, one
Determine to shield the details of operation of underlying device in degree, and realize the highly effective gatherings of data with it is shared.
But as the scale that Internet of Things collecting device is laid with is increasing, the pressure of middleware system is also increasing,
Once system occurs abnormal and is stopped, reliability and the timeliness of data are difficult to obtain effective guarantee.Therefore, for object
For the design of networking middleware system, the design of high availability is very necessary.
It is well known that in general network communication, the foundation of network connection is usually initiated by client, and server-side is responsible for
Corresponding port is monitored, connection request is responded.Therefore, two kinds in collecting device as client and server-side are high
The design of availability is different.When collecting device is as client, data are actively sent to middleware server, can be used
The mode of reverse proxy realizes the high availability of middleware system;But it, cannot in the case where collecting device is as server-side
It is enough to be realized by same mode.
In the typical case scene for acquiring automotive electronics label data using road surface read-write equipment, read-write equipment is usually made
It is used for the server-side of network communication, because other than the data flow that read-write equipment reports, middleware system also needs to down
Hair controls flow data to read-write equipment.The present invention will be directed to this application scenarios, solve the problems, such as the high availability of middleware system.
Invention content
In view of this, the present invention is directed to propose a kind of realization method and system of Internet of things middleware high availability, with reality
In the case of present middleware system for Internet of things abnormal work, ensures the fast quick-recovery of system, reduces loss of data.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
A kind of implementation method of Internet of things middleware high availability, includes the following steps:
1) the primary middleware system of identical realization method and spare middleware system are set;
2) by the primary middleware system of spare middleware system periodic detection carry out data acquisition configuration information whether
It changes, if changing, obtains the newest configuration information of primary middleware system, and be synchronized to spare middleware system
System;
3) operating status is acquired by the data of the spare primary middleware system of middleware system periodic detection, when detecting
After there is exception, spare middleware system takes over the work of primary middleware system;Meanwhile continuing the primary middleware of periodic detection
The data of system acquire operating status;
4) after detecting that the operating status of primary middleware system is restored, primary middleware system is resumed work, spare
Middleware system returns to step 2.
Compared with the existing technology, the method for the invention has the advantage that:
Invention introduces the concept of primary middleware system and spare middleware system, primary middleware system with it is spare
The realization of middleware system is completely the same, and the realization method of active and standby function is combined with the business processing flow of middleware system
Closely, traditional high availability scheme is compared, it is upper more flexible in configuration, a variety of High Availabitity sides can be realized according to actual needs
Case.
The system architecture of the primary middleware system and spare middleware system of the method for the present invention includes:
Data acquisition device, including equipment connection manager, collection rule manager, service data handler;
System monitoring device, including system configuration state monitor, system running state monitor;
Synchronizing device is configured, including configuration getter, configuration renovator.
Description of the drawings
The attached drawing for constituting the part of the present invention is used to provide further understanding of the present invention, schematic reality of the invention
Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the middleware system general structure schematic diagram of the present invention;
Fig. 2 is the spare middleware system switching extremely of the present invention and restores flow diagram;
Fig. 3 (a), (b) are the active/standby mode each other of the present invention, N+1 active/standby mode high availability scheme schematic diagrames respectively.
Specific implementation mode
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
As shown in Figure 1, the present invention system global structure include identical realization method primary middleware system with it is spare
Middleware system, the primary middleware system include with spare middleware system:
Data processing equipment 100, including:Collection rule manager 101 is responsible for the configuration of data processing equipment
Information, operating status etc.;Service data handler 102 is responsible for the specific operation flow of processing middleware system;Equipment connecting tube
Device 103 is managed, internet of things equipment connection is responsible for.
Synchronizing device 110 is configured, including:Getter 111 is configured, that is responsible for the primary middleware system of acquisition matches confidence
Breath;Renovator 112 is configured, the configuration information of the spare middleware system of update is responsible for.
System monitoring device 120, including:Configuration status monitor 121 is responsible for monitoring matching for primary middleware system
Set change;Running state monitoring device 122 is responsible for the operating status of the primary middleware system of monitoring.
As shown in Fig. 2, for the high-availability arrangement that the present invention is supported, pass through the primary middleware of above-mentioned realization method
System realizes that the switching and primary middleware system recovery flow extremely of spare middleware system is as follows with spare middleware system:
Step 1:Spare middleware system is started to work, and flow starts;
Step 2:System monitoring device 120 is configured in spare middleware system, including:The service of primary middleware system
The information such as device address, port, rule;
Step 3:Start the monitoring to primary middleware system;
Step 4:Judge whether the configuration of primary middleware system changes;
Step 5:After detecting that the configuration of primary middleware system changes, start configuration synchronizing device 110;
Step 6:Newest configuration information is synchronized to spare middleware system by configuration synchronizing device 110;
Step 7:Judge whether the operating status of primary middleware system is abnormal, if without exception, returns to step 3,
If there is exception, step 8 is carried out;
Step 8:The data processing equipment 100 of spare middleware system is run, and takes over the work of primary middleware system;
Step 9:Continue to be monitored primary middleware system;
Step 10:Judge whether the operating status of primary middleware system is restored, if do not restored, return to step 9,
If restoring to carry out step 11;
Step 11:Stop data acquisition device, discharges resource, and then taken over by the primary middleware system after restoring;
Step 12:Judge the operating status of spare middleware system, if system continues to run with, returns to step 3;
Step 13:Stopping is handled, and flow terminates.
The present invention supports two kinds of High Availabitity deployment schemes:Respectively as shown in Fig. 3 (a) (b), active/standby mode, N+1 are active and standby each other
Mode.
N+1 active/standby modes, i.e.,:N+1 platforms host is chosen as one group, N platforms host is as primary middleware system, 1 master
Machine is as spare middleware system;
Active/standby mode each other, i.e.,:For every two hosts as one group, every host is not only used as primary middleware system, but also makees
For other one spare middleware system;
It more can be according to actual conditions, using the combination of above two deployment scheme.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
With within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention god.
Claims (3)
1. a kind of implementation method of Internet of things middleware high availability, it is characterised in that include the following steps:
1) the primary middleware system of identical realization method and spare middleware system are set;
2) whether the configuration information that data acquisition is carried out by the primary middleware system of spare middleware system periodic detection occurs
Variation, if changing, obtains the newest configuration information of primary middleware system, and be synchronized to spare middleware system;
3) operating status is acquired by the data of the spare primary middleware system of middleware system periodic detection, occurred when detecting
After exception, spare middleware system takes over the work of primary middleware system;Meanwhile continuing the primary middleware system of periodic detection
Data acquire operating status;
4) after detecting that the operating status of primary middleware system is restored, primary middleware system is resumed work, spare centre
Part system returns to step 2.
2. a kind of realization system of Internet of things middleware high availability, it is characterised in that:In primary including identical realization method
Between part system and spare middleware system, the primary middleware system includes with spare middleware system:
Data processing equipment includes for managing the equipment connection manager of internet of things equipment connection, for managing data processing
The configuration information of device and the collection rule manager of operating status, the business for handling the specific operation flow of middleware system
Data processor;
System monitoring device includes the system configuration state monitor of the configuration change for monitoring primary middleware system, uses
In the system running state monitor for the operating status for monitoring primary middleware system;
Synchronizing device is configured, includes the configuration getter, standby for updating of the configuration information for obtaining primary middleware system
With the configuration renovator of the configuration information of middleware system.
3. a kind of realization system of Internet of things middleware high availability according to claim 1, it is characterised in that:The master
N+1 active/standby modes are used with middleware system and spare middleware system, that is, choose N+1 platforms host as one group, N platform hosts are made
It is primary middleware system, 1 host as spare middleware system;
Or using active/standby mode each other, i.e.,:For every two hosts as one group, every host is both used as primary middleware system,
Again as other one spare middleware system;
Alternatively, using the combination of N+1 active/standby modes and active/standby mode each other.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810311817.9A CN108650297A (en) | 2018-04-09 | 2018-04-09 | A kind of realization method and system of Internet of things middleware high availability |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810311817.9A CN108650297A (en) | 2018-04-09 | 2018-04-09 | A kind of realization method and system of Internet of things middleware high availability |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108650297A true CN108650297A (en) | 2018-10-12 |
Family
ID=63745568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810311817.9A Pending CN108650297A (en) | 2018-04-09 | 2018-04-09 | A kind of realization method and system of Internet of things middleware high availability |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108650297A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090094370A1 (en) * | 2007-10-05 | 2009-04-09 | Mark Lester Jacob | Seamless Host Migration Based on NAT Type |
CN105049244A (en) * | 2015-07-02 | 2015-11-11 | 浪潮(北京)电子信息产业有限公司 | Load balancing method and system |
CN105245361A (en) * | 2015-09-10 | 2016-01-13 | 浪潮(北京)电子信息产业有限公司 | Data high availability system for Linux system, method and device |
CN105354332A (en) * | 2015-12-04 | 2016-02-24 | 浪潮(北京)电子信息产业有限公司 | Method and system for implementing mutual standby of database and middleware based on BCP (Batch Communications Program) |
CN106569764A (en) * | 2016-10-24 | 2017-04-19 | 浙江大华技术股份有限公司 | Display system, method for decoding device hot backup in display system and backup decoding device |
-
2018
- 2018-04-09 CN CN201810311817.9A patent/CN108650297A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090094370A1 (en) * | 2007-10-05 | 2009-04-09 | Mark Lester Jacob | Seamless Host Migration Based on NAT Type |
CN105049244A (en) * | 2015-07-02 | 2015-11-11 | 浪潮(北京)电子信息产业有限公司 | Load balancing method and system |
CN105245361A (en) * | 2015-09-10 | 2016-01-13 | 浪潮(北京)电子信息产业有限公司 | Data high availability system for Linux system, method and device |
CN105354332A (en) * | 2015-12-04 | 2016-02-24 | 浪潮(北京)电子信息产业有限公司 | Method and system for implementing mutual standby of database and middleware based on BCP (Batch Communications Program) |
CN106569764A (en) * | 2016-10-24 | 2017-04-19 | 浙江大华技术股份有限公司 | Display system, method for decoding device hot backup in display system and backup decoding device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8983961B2 (en) | High availability for cloud servers | |
US7518983B2 (en) | Proxy response apparatus | |
CN106294713A (en) | The method of data synchronization resolved based on Incremental Log and data synchronization unit | |
EP3210367B1 (en) | System and method for disaster recovery of cloud applications | |
CN104935672B (en) | Load balancing service high availability implementation method and equipment | |
CN100426751C (en) | Method for ensuring accordant configuration information in cluster system | |
US20070094659A1 (en) | System and method for recovering from a failure of a virtual machine | |
US20080196029A1 (en) | Transaction Manager Virtualization | |
CN111949444A (en) | Data backup and recovery system and method based on distributed service cluster | |
CN106982244B (en) | Method and device for realizing message mirroring of dynamic flow under cloud network environment | |
CN105242990A (en) | Cloud platform based data backup method and apparatus | |
CN101227333B (en) | Disaster tolerance network managing system and login method of network managing subscriber end | |
CN111176888A (en) | Cloud storage disaster recovery method, device and system | |
CN106789291A (en) | A kind of cluster member control method and device | |
US20040123183A1 (en) | Method and apparatus for recovering from a failure in a distributed event notification system | |
CN106254814B (en) | Conference recovery method, service management center and system | |
CN104516795A (en) | Data access method and system | |
CN112052127B (en) | Data synchronization method and device for dual-computer hot standby environment | |
CN107168774A (en) | It is a kind of based on the virtual machine migration method being locally stored and system | |
CN108650297A (en) | A kind of realization method and system of Internet of things middleware high availability | |
CN108089968A (en) | A kind of method of host's machine monitoring virtual-machine data storehouse state | |
WO2023244491A1 (en) | Techniques for replication checkpointing during disaster recovery | |
CN106802842A (en) | A kind of operating system batch backup restoration methods and device based on cloud platform | |
CN106657360A (en) | Synchronization method and system for NIS servers under Linux system | |
CN114301763A (en) | Distributed cluster fault processing method and system, electronic device and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181012 |