CN106850877A - The method to set up and device of the virtual IP address in distributed memory system - Google Patents
The method to set up and device of the virtual IP address in distributed memory system Download PDFInfo
- Publication number
- CN106850877A CN106850877A CN201710203026.XA CN201710203026A CN106850877A CN 106850877 A CN106850877 A CN 106850877A CN 201710203026 A CN201710203026 A CN 201710203026A CN 106850877 A CN106850877 A CN 106850877A
- Authority
- CN
- China
- Prior art keywords
- node
- memory system
- distributed memory
- distributed
- address
- 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
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5053—Lease time; Renewal aspects
-
- 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/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- 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/30—Decision processes by autonomous network management units using voting and bidding
-
- 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/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides the method to set up and device of a kind of virtual IP address in distributed memory system.Methods described includes:When the service of the node in distributed memory system is started, first current identity of the node in the distributed memory system is obtained;When the first current identity of the node is the main control node of the distributed memory system, the virtual IP address of the distributed memory system is arranged on the node.The present invention can increase the stability of system.
Description
Technical field
The present invention relates to a kind of method to set up of the virtual IP address in technical field of memory, more particularly to distributed memory system
And device.
Background technology
Distributed memory system provides iSCSI (small computer system interface) services, and it is based on master that iSCSI provides service
Machine may have access to IP's, and the IP of the iSCSI service of client connection will cause that client cannot be connected if there is failure
Iscsi is serviced, so as to read-write operation cannot be done.
The content of the invention
The embodiment provides the method to set up and device of the virtual IP address in a kind of distributed memory system, increase
The stability of system.
To achieve these goals, this invention takes following technical scheme.
A kind of method to set up of the virtual IP address in distributed memory system, including:
When the service of the node in distributed memory system is started, from the node identity information of distributed system,
Obtain first current identity of the node in the distributed memory system;
When the first current identity of the node is the main control node of the distributed memory system, by the distribution
The virtual IP address of formula storage system is arranged on the node.
A kind of setting device of the virtual IP address in distributed memory system, including:
Acquiring unit, when the service of the node in distributed memory system is started, from the node body of distributed system
In part information, first current identity of the node in the distributed memory system is obtained;
Setting unit, when the first current identity of the node is the main control node of the distributed memory system,
The virtual IP address of the distributed memory system is arranged on the node.
The technical scheme provided by embodiments of the invention described above can be seen that in the embodiment of the present invention, by the distribution
The virtual IP address of formula storage system is arranged on the main control node that current identity is the distributed memory system, that is to say, that will
VIP is associated with main control node, because main control node algorithm can ensure the globally unique of main control node, and main control node
Service must be available, therefore ensured as the globally unique of the node of VIP, meanwhile, as long as having ensured that cluster can be with
Service is provided, VIP can just provide service, increased the stability of system.
The additional aspect of the present invention and advantage will be set forth in part in the description, and these will become from the following description
Obtain substantially, or recognized by practice of the invention.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will use needed for embodiment description
Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill of field, without having to pay creative labor, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the place of the method to set up of the virtual IP address in a kind of many distributed memory systems that the embodiment of the present invention one is provided
Reason flow chart;
Fig. 2 is the place of the method to set up of the virtual IP address in a kind of many distributed memory systems that the embodiment of the present invention two is provided
Reason flow chart;
Fig. 3 is the connection of the setting device of the virtual IP address in a kind of many distributed memory systems provided in an embodiment of the present invention
Schematic diagram.
Fig. 4 is the treatment of the method to set up of the virtual IP address in a kind of many distributed memory systems provided in an embodiment of the present invention
Flow chart.
Specific embodiment
Embodiments of the present invention are described below in detail, the example of the implementation method is shown in the drawings, wherein ad initio
Same or similar element or element with same or like function are represented to same or similar label eventually.Below by ginseng
The implementation method for examining Description of Drawings is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
As shown in figure 1, be the method to set up of the virtual IP address in a kind of distributed memory system of the present invention, including:
Step 11, when the service of the node in distributed memory system is started, from the first partial node of distributed system
In point identity information, first current identity of the node in the distributed memory system is obtained;
Step 12, when the first current identity of the node is the main control node of the distributed memory system, will
The virtual IP address of the distributed memory system is arranged on the node.
In above-described embodiment, it is that the distribution is deposited that the virtual IP address of the distributed memory system is arranged on into current identity
The main control node of storage system, that is to say, that VIP is associated with main control node, because main control node algorithm can ensure master
Control node it is globally unique, and the service of main control node must be available, therefore ensure as the complete of the node of VIP
Office is unique, meanwhile, as long as having ensured that cluster can provide service, VIP can just provide service, increased the stability of system.
Optionally, methods described also includes:
Step 13, when the first current identity of the node is the ordinary node of the distributed memory system, deletes
The setting of the virtual IP address of distributed memory system described in of the node.
Two concepts are introduced first.The VIP configuration informations of cluster overall situation VIP configuration informations and node.Wherein, cluster is global
In the unified configuration of the overall situation that VIP configuration informations are stored in distributed memory system, include VIP address informations.Node
VIP configuration informations are the sub- IP address information on the network interface card of the node that configures, and the address of sub- IP is VIP addresses;Node
VIP configuration informations should be only stored in current as on the node of VIP.
Accordingly, when the first current identity of the node is the main control node of the distributed memory system, step
Rapid 12 can be, judge whether the node has the VIP configuration informations for having set;If the VIP configuration informations for having set, then
Judge whether the VIP configuration informations for having set of the node are consistent with cluster overall situation VIP configuration informations;If consistent, no
Need to set the VIP configuration informations of the node;If it is inconsistent, according to cluster overall situation VIP configuration informations, resetting institute
State the VIP configuration informations of node.If the node is not provided with VIP configuration informations, confidence is matched somebody with somebody according to cluster overall situation VIP
Breath, sets the VIP configuration informations of the node.
Likewise, when the first current identity of the node is the ordinary node of the distributed memory system, step
13 can be, judge whether the node has the VIP configuration informations for having set;If the VIP configuration informations for having set, then directly
Connect deletion;If it is not, need not further operate.
In above-described embodiment, when the first current identity of the node is ordinary node, then the node is deleted in time
The setting of the virtual IP address of distributed memory system described in, maintain the stability of system.For client, access
VIP addresses be not changed in, simply the node of actual access there occurs change.
Optionally, before step 11, methods described also includes:
Step 10A, distributed memory system elects first segment for the first time from all nodes in the distributed system
Point is used as lease Master Node;Using other nodes in addition to the first node in the distributed memory system as common
Node.
Step 10B, according to the result that the first time elects, generates the first node identity information of distributed system
In above-described embodiment, for using the system of distributed consensus algorithm Paxos, main control node is lease
Main control node.Way to elect is specially:Using mini paxos (distributed consensus) algorithm, election lease master
(lease main control) node, the node is globally unique.
Optionally, methods described also includes:
Step 14, the node every the first predetermined period, from the Section Point identity information of the distributed system,
Obtain second current identity of the node in the distributed memory system;
Step 15, when the second current identity of the node is main control node, by the distributed memory system
Virtual IP address is arranged on the node.Step 15 can be to judge whether the node has the VIP configuration informations for having set;If
There are the VIP configuration informations for having set, then the VIP configuration informations for having set and cluster overall situation VIP for judging the node match somebody with somebody confidence
Whether breath is consistent;If consistent, the VIP configuration informations of the node need not be set;If it is inconsistent, complete according to cluster
Office's VIP configuration informations, reset the VIP configuration informations of the node.If the node is not provided with VIP with confidence
Breath, then according to cluster overall situation VIP configuration informations, set the VIP configuration informations of the node.
Step 16, when the current identity of the node is ordinary node, delete the node as virtual IP address when
Configuration information.16 steps can be to judge whether the node has the VIP configuration informations for having set;If the VIP for having set
Configuration information, then directly delete;If it is not, need not further operate.
In above-described embodiment, the node where virtual IP address can be adjusted correspondingly according to the current identity of node,
So as to increased the stability of system.
Before step 14, methods described also includes:
Step 14A, distributed memory system checks the current node as lease Master Node every the second predetermined period
Running status it is whether normal;
Step 14B, if the current running status as the node of lease Master Node is abnormal, distributed storage
From all nodes in the distributed system, second election Section Point is used as lease Master Node for system;Will be described
Other nodes in addition to the Section Point in distributed memory system are used as ordinary node;In the step, divide for using
For the system of cloth consistency algorithm Paxos, main control node is lease main control node.Way to elect is specially:Using
Mini paxos (distributed consensus) algorithm, elects lease master (lease main control) node, the node for it is global only
One.If the current running status as the node of lease Master Node is normal, do not processed.
Step 14C, according to the result of second election, generates the Section Point identity of the distributed memory system
Information.
In above-described embodiment, whether the running status for inspecting periodically the current node as lease Master Node is normal, such as
It is really abnormal, then Section Point is re-elected as lease Master Node, and updates each in the distributed memory system
Second current identity of node, so as to redefine the node where VIP, increased the stability of system.
As shown in Fig. 2 being the method to set up of the virtual IP address in a kind of distributed memory system of the present invention, the side
Method includes:
Step 21, when the service of the node in distributed memory system is started, from the first partial node of distributed system
In point identity information, first current identity of the node in the distributed memory system is obtained;
Step 22, when the first current identity of the node is the main control node of the distributed memory system, will
The virtual IP address of the distributed memory system is arranged on the node.Step 22 can be to judge whether the node has to have set
The VIP configuration informations put;If the VIP configuration informations for having set, then the VIP configuration informations for having set of the node are judged
It is whether consistent with cluster overall situation VIP configuration informations;If consistent, the VIP configuration informations of the node need not be set;If
It is inconsistent, then according to cluster overall situation VIP configuration informations, reset the VIP configuration informations of the node.If the node does not have
VIP configuration informations are provided with, then according to cluster overall situation VIP configuration informations, the VIP configuration informations of the node are set.
Step 23, when the first current identity of the node is ordinary node, delete the node as virtual IP address
Setting.Step 23 can be to judge whether the node has the VIP configuration informations for having set;If the VIP for having set matches somebody with somebody
Confidence ceases, then directly delete;If it is not, need not further operate.
Step 24, when the service of the node in the distributed memory system is closed, and the node first
When current identity is the main control node of the distributed memory system, the setting as virtual IP address for deleting the node is believed
Breath.
As shown in figure 3, the setting device of the virtual IP address in a kind of distributed memory system shown in the present invention, including:
Acquiring unit 31, when the service of the node in distributed memory system is started, obtains the node described
The first current identity in distributed memory system;
Setting unit 32, when the first current identity of the node is the main control node of the distributed memory system
When, the virtual IP address of the distributed memory system is arranged on the node.
Described device, also includes:
Unit 33 is deleted, when the first current identity of the node is ordinary node, the conduct institute of the node is deleted
State the setting of the virtual IP address of distributed memory system.
Described device, also includes:
Election unit 34, distributed memory system from all nodes in the distributed system, make by one node of election
It is lease Master Node.
As shown in figure 4, describing application scenarios of the invention below.
In the present invention, as a example by storage system provides iSCSI service in a distributed manner, VIP is increased in a distributed system (virtual
IP), iSCSI clients pass through VIP access services end, so, even if the service that there is the iSCSI of respective nodes in cluster is different
Often, VIP can be switched to other clustered nodes in cluster so that client is without exception with the connection of distributed system, improves
Service availability.
Wherein, to be the node identities based on distributed memory system do what is set to VIP, and node serve occurs to start and stops
When, can actively trigger VIP_check functions.
VIP_check function inspections judge the identity of present node, if present node is admin (main control node),
VIP is just set in present node;If not admin, just cancel the VIP configuration informations of present node.If node serve is protected
Hold constant, system can be checked once for automatic 1 minute, be VIP_check.
Can so ensure that distributed memory system cluster has VIP, then, iscsi services just can be with offer clothes free of discontinuities
Business, enhances the availability and stability of system.
The above, the only present invention preferably specific embodiment, but protection scope of the present invention is not limited thereto,
Any one skilled in the art the invention discloses technical scope in, the change or replacement that can be readily occurred in,
Should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with scope of the claims
It is defined.
Claims (10)
1. the method to set up of the virtual IP address in a kind of distributed memory system, it is characterised in that including:
When the service of the node in distributed memory system is started, from the first node identity information of distributed system,
Obtain first current identity of the node in the distributed memory system;
When the main control node during the first current identity of the node is the distributed memory system, by the distribution
The virtual IP address of storage system is arranged on the node.
2. method according to claim 1, it is characterised in that methods described also includes:
When the ordinary node during the first current identity of the node is the distributed memory system, the node is deleted
Configuration information during as virtual IP address.
3. method according to claim 1, it is characterised in that the service of the node in the distributed memory system is carried out
During startup, before obtaining the node the step of identity of the distributed memory system, methods described also includes:
From all nodes in the distributed system, election first node is used as lease master for the first time for distributed memory system
Control point;Using other nodes in addition to the first node in the distributed memory system as ordinary node;
According to the result that the first time elects, the first node identity information of distributed system is generated.
4. method according to claim 1, it is characterised in that methods described also includes:
The node from the Section Point identity information of distributed system, obtains the node and exists every the first predetermined period
Second current identity of the distributed memory system;
When the second current identity of the node is main control node, the virtual IP address of the distributed memory system is arranged on
The node;
When the second current identity of the node is ordinary node, delete the node as virtual IP address when setting letter
Breath.
5. method according to claim 4, it is characterised in that the node obtains the section every the first predetermined period
Before point is the step of the second current identity of the distributed memory system, methods described also includes:
Distributed memory system checks that the current running status as the node of lease Master Node is every the second predetermined period
It is no normal;
If the current running status as the node of lease Master Node is abnormal, distributed memory system is from described point
In all nodes in cloth system, second election Section Point is used as lease Master Node;By the distributed storage system
Other nodes in addition to the Section Point in system are used as ordinary node;
And according to the result of second election, generate the Section Point identity information of the distributed memory system.
6. method according to claim 1, it is characterised in that methods described also includes:
When the service of the node in the distributed memory system is closed, the setting as virtual IP address of the node is deleted
Information.
7. the setting device of the virtual IP address in a kind of distributed memory system, it is characterised in that including:
Acquiring unit, when the service of the node in distributed memory system is started, from the first node body of distributed system
In part information, first current identity of the node in the distributed memory system is obtained;
Setting unit, when the first current identity of the node is the main control node of the distributed memory system, by institute
The virtual IP address for stating distributed memory system is arranged on the node.
8. device according to claim 7, it is characterised in that also include:
Unit is deleted, when the first current identity of the node is the ordinary node of the distributed memory system, institute is deleted
State the configuration information as virtual IP address of node.
9. device according to claim 7, it is characterised in that also include:
Election unit, from all nodes in the distributed system, one node of election is used as lease for distributed memory system
Master Node.
10. device according to claim 7, it is characterised in that described device also includes:
Unit is deleted, when the service of the node in the distributed memory system is closed, the conduct for deleting the node is empty
Intend the configuration information of IP.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710203026.XA CN106850877A (en) | 2017-03-30 | 2017-03-30 | The method to set up and device of the virtual IP address in distributed memory system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710203026.XA CN106850877A (en) | 2017-03-30 | 2017-03-30 | The method to set up and device of the virtual IP address in distributed memory system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106850877A true CN106850877A (en) | 2017-06-13 |
Family
ID=59142536
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710203026.XA Pending CN106850877A (en) | 2017-03-30 | 2017-03-30 | The method to set up and device of the virtual IP address in distributed memory system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106850877A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740167A (en) * | 2019-09-20 | 2020-01-31 | 北京浪潮数据技术有限公司 | distributed storage system and node monitoring method thereof |
US11500667B2 (en) * | 2020-01-22 | 2022-11-15 | Vmware, Inc. | Object-based approaches to support internet small computer system interface (ISCSI) services in distributed storage system |
US11507409B2 (en) | 2020-01-22 | 2022-11-22 | Vmware, Inc. | Object-based load balancing approaches in distributed storage system |
WO2023273483A1 (en) * | 2021-06-28 | 2023-01-05 | 华为技术有限公司 | Data processing system and method, and switch |
-
2017
- 2017-03-30 CN CN201710203026.XA patent/CN106850877A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740167A (en) * | 2019-09-20 | 2020-01-31 | 北京浪潮数据技术有限公司 | distributed storage system and node monitoring method thereof |
US11500667B2 (en) * | 2020-01-22 | 2022-11-15 | Vmware, Inc. | Object-based approaches to support internet small computer system interface (ISCSI) services in distributed storage system |
US11507409B2 (en) | 2020-01-22 | 2022-11-22 | Vmware, Inc. | Object-based load balancing approaches in distributed storage system |
WO2023273483A1 (en) * | 2021-06-28 | 2023-01-05 | 华为技术有限公司 | Data processing system and method, and switch |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111371696B (en) | Method for realizing Pod network flow control in Kubernetes | |
CN102025798B (en) | Address allocation processing method, device and system | |
CN106850877A (en) | The method to set up and device of the virtual IP address in distributed memory system | |
CN113746887B (en) | Cross-cluster data request processing method, device and storage medium | |
CN106302565B (en) | Scheduling method and system of service server | |
US10771318B1 (en) | High availability on a distributed networking platform | |
CN111176888B (en) | Disaster recovery method, device and system for cloud storage | |
US20080275962A1 (en) | Remote access providing computer system and method for managing same | |
TW200805941A (en) | High-availability network systems | |
CN106657354A (en) | Load balancing device and method | |
CN110826799B (en) | Service prediction method, device, server and readable storage medium | |
CN113347037B (en) | Data center access method and device | |
CN109743357A (en) | A kind of successional implementation method of business access and device | |
CN111355600A (en) | Method and device for determining main node | |
CN106911769B (en) | Cloud platform routing data processing method and physical server of cloud platform | |
CN110019481A (en) | Memory database access method, device, equipment and medium | |
CN106911508B (en) | DNS configuration recovery method and device | |
CN118214721A (en) | Fusing current limiting method and system based on Sentinel | |
CN107302459B (en) | Service processing method and system | |
CN110545336A (en) | IP address replacing method, device, computer equipment and storage medium | |
CN108156203B (en) | Storage system and storage node management method | |
CN103546569B (en) | Method for processing business based on Policies sharing, node and system | |
CN107341269A (en) | A kind of file storage location management method, device and operation system | |
WO2015196769A1 (en) | Method for processing data in iptv system, and network element device | |
CN114553809A (en) | Client device, information processing method, and computer-readable 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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170613 |
|
WD01 | Invention patent application deemed withdrawn after publication |