Selection method and device for master and slave service unit
A service unit and selection device technology, applied in electrical components, digital transmission systems, data exchange networks, etc., can solve problems such as high implementation costs, consuming large hardware resources, and inability to support cluster environments, and achieve the effect of reducing HA costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] An embodiment of the present invention provides a method for selecting an active and standby service unit, such as figure 1 shown, including:
[0030] 101. Obtain the high availability HA status of each service unit in the service group, where the HA status includes a primary role, a standby role, and an unknown role.
[0031] In the present invention, according to the different functions provided by each module in the product, we divide the modules with similar business logic and can be independently managed together into service units (SUs), and each service unit provides a Type of control service. The whole product can be considered to be composed of many such service units. In order to improve service reliability, we design redundancy for these service units, and divide them into active and standby service units according to the HA state. As the smallest unit of HA management, the service unit can independently switch the HA state. Each group of such service unit...
Embodiment 2
[0041] An embodiment of the present invention provides a method for selecting an active and standby service unit, such as image 3 As shown, the method includes:
[0042] 201. Obtain the high availability HA status of each service unit in the service group, where the HA status includes a primary role, a standby role, and an unknown role.
[0043] In this embodiment, we define three HA-related states for each service unit: one is the HA state, one is the switchable state, and there is a priority.
[0044] Among them, the HA state indicates the current role of the service unit, and its values include: unknown, active, standby, quiescing, and quiesced. The main states are active and standby, that is, the aforementioned primary role and standby role. The other three states are temporary process states.
[0045] 202. Obtain the switchable status of each service unit in the service group, where the switchable status includes handover preparation completed, handover preparation ...
Embodiment 3
[0071] The embodiment of the present invention provides a device 30 for selecting an active / standby service unit, such as Figure 4 shown, including:
[0072] An acquisition unit 31, configured to acquire the high availability HA status of each service unit in the service group, wherein the HA status includes a master role, a standby role and an unknown role;
[0073] A sorting unit 32, configured to sort each service unit in the service group according to the HA status acquired by the acquiring unit 31, to obtain a temporary linked list;
[0074] The primary role selection unit 33 is configured to select, for the service instance, a service unit with a primary role in the HA state as the primary service unit according to the order in the temporary linked list obtained by the sorting unit 32;
[0075] The standby role selection unit 34 is configured to select a service unit whose HA status is the standby role for the service instance as the standby service unit according to t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com