CN112468327B - ICOS cluster-based address change method, device and medium - Google Patents

ICOS cluster-based address change method, device and medium Download PDF

Info

Publication number
CN112468327B
CN112468327B CN202011261694.6A CN202011261694A CN112468327B CN 112468327 B CN112468327 B CN 112468327B CN 202011261694 A CN202011261694 A CN 202011261694A CN 112468327 B CN112468327 B CN 112468327B
Authority
CN
China
Prior art keywords
address information
icos
cluster
updating
node
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
CN202011261694.6A
Other languages
Chinese (zh)
Other versions
CN112468327A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011261694.6A priority Critical patent/CN112468327B/en
Publication of CN112468327A publication Critical patent/CN112468327A/en
Application granted granted Critical
Publication of CN112468327B publication Critical patent/CN112468327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The embodiment of the invention discloses an address change method, a device and a medium based on an ICOS cluster, wherein when an address change instruction is received, a nova container of each node is closed; and updating the address information contained in the address information file according to the storage directory corresponding to the address information file. And updating the address information contained in each database according to the address information field corresponding to each database in the ICOS cluster. And updating the address information of the network card of each node in the ICOS cluster. Restarting the docker service of the deployment node, and updating the configuration of the address information of the ICOS cluster so as to enable all the updated address information to take effect. According to the set automatic updating flow, only temporary halt is needed when an address changing instruction is received, and the service can be recovered after all address information in the ICOS cluster is updated according to the set flow, so that the automatic change of the ICOS cluster management network address information is realized.

Description

ICOS cluster-based address change method, device and medium
Technical Field
The present invention relates to the field of cluster management technologies, and in particular, to an address modification method and apparatus based on an ICOS cluster, and a computer-readable storage medium.
Background
The cloud data center operating system (icloudpenstack, ICOS) is a product which takes an OpenStack platform mainstream in the industry as a core, integrates deep understanding of the customer requirements in the wave, and performs a large amount of optimization and development on OpenStack core components such as computation management (Nova), block storage (Cinder), file storage (Manila), network management (Neutron), mirror image management (liance) and the like. The method is widely applied to the cloud markets of the industries such as finance, politics, energy, education and the like and enterprises.
However, in some special scenarios, due to factors such as changes in client network planning and relocation of a computer room, the management IP of the built ICOS platform needs to be changed. However, there is no method for modifying its management IP for the ICOS currently, and only the service system in the deployed environment can be destroyed after being migrated and the current platform is rebuilt, which not only consumes time but also affects the continuity of the service provided by the virtual machine running on the platform.
Therefore, how to implement the automatic change of the IP of the ICOS cluster management network is a problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention aims to provide an ICOS cluster-based address changing method, an ICOS cluster-based address changing device and a computer readable storage medium, which can realize automatic change of an IP (Internet protocol) of an ICOS cluster management network.
To solve the foregoing technical problem, an embodiment of the present invention provides an address changing method based on an ICOS cluster, including:
when an address change instruction is received, closing the nova containers of the nodes;
updating address information contained in an address information file according to a storage directory corresponding to the address information file; the address information files are all files containing address information in the ICOS cluster;
updating the address information contained in each database according to the address information field corresponding to each database in the ICOS cluster;
updating the address information of each node network card in the ICOS cluster;
restarting the docker service of the deployment node, and updating the configuration of the address information of the ICOS cluster so as to enable all the updated address information to take effect.
Optionally, the updating, according to the storage directory corresponding to the address information file, the address information included in the address information file includes:
updating the virtual address information in the configuration file according to the storage directory of the configuration file of the deployment node;
and updating the address information contained in the domain name resolution file of each node according to the storage directory of the domain name resolution file of each node.
Optionally, before the restarting the docker service of the deployment node, the method further includes:
judging whether the ICOS cluster is in butt joint with software definition storage;
and if the ICOS cluster is butted with the software definition storage, updating address information in a configuration file corresponding to the software definition storage.
Optionally, before the restarting the docker service of the deployment node, the method further includes:
judging whether the ICOS cluster is in butt joint with centralized storage;
and if the ICOS cluster is in butt joint with the centralized storage, updating address information recorded in a block device mapping table of the nova database.
Optionally, after restarting the docker service of the deployment node and updating the configuration of the address information of the ICOS cluster, so that all the updated address information is valid, the method further includes:
judging whether the service of each node can normally run according to a preset service detection program;
and if the node with the service incapable of normally operating exists, marking the node with the service incapable of normally operating as the node to be overhauled.
The embodiment of the invention also provides an address changing device based on the ICOS cluster, which comprises a closing unit, a file updating unit, a field updating unit, a network card updating unit and a restarting unit;
the closing unit is used for closing the nova containers of the nodes when receiving the address change instruction;
the file updating unit is used for updating the address information contained in the address information file according to the storage directory corresponding to the address information file; the address information files are all files containing address information in the ICOS cluster;
the field updating unit is used for updating the address information contained in each database according to the address information field corresponding to each database in the ICOS cluster;
the network card updating unit is used for updating the address information of the network card of each node in the ICOS cluster;
and the restarting unit is used for restarting the docker service of the deployment node and updating the configuration of the address information of the ICOS cluster so as to enable all the updated address information to take effect.
Optionally, the file updating unit is specifically configured to update the virtual address information in the configuration file according to a storage directory of the deployment node configuration file; and updating the address information contained in the domain name resolution file of each node according to the storage directory of the domain name resolution file of each node.
Optionally, the system further comprises a first judging unit and a first updating unit;
the first judging unit is configured to judge whether the ICOS cluster is docked with a software defined storage before the docker service of the deployment node is restarted;
the first updating unit is configured to update address information in a configuration file corresponding to a software definition storage if the ICOS cluster interfaces the software definition storage.
Optionally, a second judging unit and a second updating unit are further included;
the second judging unit is configured to judge whether the ICOS cluster is docked with the centralized storage before the docker service of the deployment node is restarted;
the second updating unit is configured to update the address information recorded in the block device mapping table of the nova database if the ICOS cluster is docked with the centralized storage.
Optionally, the system further comprises a third judging unit and a marking unit;
the third judging unit is configured to restart the docker service of the deployment node, and update the configuration of the address information of the ICOS cluster, so that after all the updated address information becomes effective, according to a preset service detection program, it is judged whether the service of each node can normally operate;
and the marking unit is used for marking the node with the service incapable of normal operation as the node to be overhauled if the node with the service incapable of normal operation exists.
An embodiment of the present invention further provides an address changing apparatus based on an ICOS cluster, including:
a memory for storing a computer program;
a processor for executing said computer program to implement the steps of the ICOS cluster based address changing method as described in any of the above.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the ICOS cluster-based address changing method are implemented as any one of the above.
According to the technical scheme, when the address change instruction is received, the nova containers of the nodes are closed, and the nodes can be controlled to stop reporting data containing the address information to the system by closing the nova containers. Updating the address information contained in the address information file according to the storage directory corresponding to the address information file; the address information files are all files containing address information in the ICOS cluster. The storage positions of the address information in the different types of databases are different, and the address information contained in each database can be updated according to the address information field corresponding to each database in the ICOS cluster. In order to ensure the comprehensive coverage of address information update in the ICOS cluster, the address information of each node network card in the ICOS cluster needs to be updated. After the updating of the address information file, the database and the address information of the node network card in the ICOS cluster is completed, the docker service of the deployment node needs to be restarted, and the configuration of the address information of the ICOS cluster is updated, so that all the updated address information becomes effective. According to the technical scheme, according to the set automatic updating process, only temporary halt is needed when an address change instruction is received, and the service can be recovered after all address information in the ICOS cluster is updated according to the set process, so that the automatic change of the ICOS cluster management network address information is realized, and the influence on a customer service system is effectively reduced while manpower, material resources and financial resources are saved.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of an address change method based on an ICOS cluster according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an address changing apparatus based on an ICOS cluster according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of an address changing apparatus based on an ICOS cluster according to an embodiment of the present invention.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Next, an address modification method based on an ICOS cluster according to an embodiment of the present invention is described in detail. Fig. 1 is a flowchart of an address changing method based on an ICOS cluster according to an embodiment of the present invention, where the method includes:
s101: when the address change instruction is received, the nova containers of the nodes are closed.
In the embodiment of the present invention, the address information of the node is generally presented in the form of an Internet Protocol (IP) address, i.e., an IP address. For a virtual device, the corresponding address information is a virtual IP address, i.e., a VIP address.
Under the normal operation state, the nova container of the node is in an open state, the nova container uploads the information of the node to the system, and the uploaded information comprises the address information of the node.
In order to avoid confusion of address information management when address information on an ICOS cluster needs to be changed due to factors such as change of network planning and relocation of a computer room, in the embodiment of the present invention, when an address change instruction is received, the nova container of each node needs to be closed.
S102: and updating the address information contained in the address information file according to the storage directory corresponding to the address information file.
In the embodiment of the present invention, all files containing address information in the ICOS cluster may be collectively referred to as an address information file. The address information file may be divided into a configuration file and a domain name resolution file. In practical application, the virtual address information in the configuration file can be updated according to the storage directory of the configuration file of the deployment node; and updating the address information contained in the domain name resolution file of each node according to the storage directory of the domain name resolution file of each node.
In the ICOS cluster, the storage directory of the configuration file of the deployment node is the deployment node/etc/kolla/global. In consideration of the fact that in practical application, the docker _ registration value in the global file may be an IP address, and therefore, if the docker _ registration value in the global file is an IP address, the IP address needs to be modified into a new IP address corresponding to the deployment node.
The storage directory of the domain name resolution file is nodes/etc/hosts, and in a specific implementation, the IP address contained in the domain name resolution file stored under the etc/hosts directory of each node may be changed to a new IP address.
S103: and updating the address information contained in each database according to the address information field corresponding to each database in the ICOS cluster.
There are many types of databases contained in the ICOS cluster, and the different types of databases differ in the fields in which address information is stored. The databases may include a keystone database, a nova _ api database, a nova database, and a magnum database.
In practical applications, for the keystone database, the end address of the keystone database may be modified to be a new VIP address.
For the nova _ api database, the transport _ url, database _ connection fields in the nova _ api database cell _ maps table may be modified. Wherein database _ connection is changed to a new VIP address and transport _ url is changed to an IP address of a new node.
For the nova database, the address in the host _ IP field in the nova database computer _ nodes table can be modified to be the IP address of the new node.
For the magnum database, the host field in the magnum database magnum _ service table can be modified to be a new IP address.
S104: and updating the address information of the network card of each node in the ICOS cluster.
In order to ensure the comprehensive coverage of address information update in the ICOS cluster, in addition to the update of the address information contained in the address information file and the database, the address information of the network card of each node in the ICOS cluster needs to be updated.
In practical application, the address information corresponding to each node network card may be recorded in a list, where the list may include a correspondence between a network card identifier and the address information. When the address information of the node network card needs to be updated, the old address information stored in the list is directly replaced by the new address information of the node network card depending on the network identifier.
In the embodiment of the present invention, the operation sequence of S102, S103, and S104 is not limited, for example, S102, S103, and S104 may be sequentially processed in a random arrangement manner, or the three operation steps may be simultaneously executed.
S105: restarting the docker service of the deployment node, and updating the configuration of the address information of the ICOS cluster so as to enable all the updated address information to take effect.
The deployment node is a node used for performing service deployment on other nodes in the ICOS cluster, when updating of ICOS cluster address information is executed, the nova container of each node is closed, at the moment, the docker service of the deployment node is in a suspended state, and after the updating of the address information is completed, the docker service of the deployment node needs to be restarted.
In order to validate all the updated address information, the configuration of the address information of the ICOS cluster needs to be updated.
According to the technical scheme, when the address change instruction is received, the nova containers of the nodes are closed, and the nodes can be controlled to stop reporting data containing the address information to the system by closing the nova containers. Updating the address information contained in the address information file according to the storage directory corresponding to the address information file; the address information files are all files containing address information in the ICOS cluster. The storage positions of the address information in the different types of databases are different, and the address information contained in each database can be updated according to the address information field corresponding to each database in the ICOS cluster. In order to ensure the comprehensive coverage of address information updating in the ICOS cluster, the address information of each node network card in the ICOS cluster needs to be updated. After the updating of the address information files, the database and the address information of the node network card in the ICOS cluster is completed, the docker service of the deployed node needs to be restarted, and the configuration of the address information of the ICOS cluster is updated, so that all the updated address information takes effect. According to the technical scheme, only temporary halt is needed when an address change instruction is received according to a set automatic update flow, and the service can be recovered after all address information in an ICOS cluster is updated according to the set flow, so that the automatic change of the ICOS cluster management network address information is realized, and the influence on a customer service system is effectively reduced while the manpower, the material resources and the financial resources are saved.
In consideration of the fact that in practical application, different types of Storage may be developed in the ICOS cluster according to different business requirements, before the docker service of the deployment node is restarted, it may be determined whether the ICOS cluster interfaces with Software-defined Storage (SDS). And if the ICOS cluster is connected with the software definition storage, updating the address information in the configuration file corresponding to the software definition storage.
In practical applications, when an ICOS cluster interfaces SDS, there will be a/etc/kolla/config directory and a cetus, cider, gloss, nova directory, which will change the MON address in ceph.
In the embodiment of the invention, on the basis of judging whether the ICOS cluster is in butt joint with the software definition storage, whether the ICOS cluster is in butt joint with the centralized storage can be judged before the docker service of the deployment node is restarted; and if the ICOS cluster is in butt joint with the centralized storage, updating the address information recorded in the block device mapping table of the nova database.
In practical application, when the ICOS cluster is connected to the centralized storage in an ISCSI mode and the IP address of the centralized storage server changes, the storage IP address in the connection _ info value of the block _ device _ mapping table in the nova database may be updated.
By detecting the docking SDS and the docking centralized storage of the ICOS cluster, the address information corresponding to the docking service can be updated in time when the docking SDS and/or the docking centralized storage of the ICOS cluster are ensured, and the effective execution of the docking service is ensured.
In the embodiment of the invention, after the docker service of the node is restarted and the configuration of the address information of the ICOS cluster is updated, so that all the updated address information is effective, whether the service of each node can normally run can be judged according to a preset service detection program; and if the node with the service incapable of normally operating exists, marking the node with the service incapable of normally operating as the node to be overhauled.
The service detection program can be set according to a process of detecting the node service in the prior art, and the detection mode belongs to a mature technology in the prior art and is not described herein any further.
By marking the nodes which cannot normally operate in service as the nodes to be overhauled, managers can find the nodes which cannot normally operate after the address information is updated in time, so that the nodes can be checked in time, and the influence of the address update on the normal service of the nodes is reduced.
Fig. 2 is a schematic structural diagram of an address changing apparatus based on an ICOS cluster according to an embodiment of the present invention, including a closing unit 21, a file updating unit 22, a field updating unit 23, a network card updating unit 24, and a restarting unit 25;
a closing unit 21, configured to close the nova containers of the nodes when receiving the address change instruction;
a file updating unit 22, configured to update the address information included in the address information file according to the storage directory corresponding to the address information file; the ICOS cluster comprises address information files, address information files and a control unit, wherein the address information files are all files containing the address information in the ICOS cluster;
a field updating unit 23, configured to update address information included in each database according to an address information field corresponding to each database in the ICOS cluster;
a network card updating unit 24, configured to update address information of a network card of each node in the ICOS cluster;
and the restarting unit 25 is configured to restart the docker service of the deployment node, and update the configuration of the address information of the ICOS cluster, so that all the updated address information becomes effective.
Optionally, the file updating unit is specifically configured to update the virtual address information in the configuration file according to the storage directory of the deployment node configuration file; and updating the address information contained in the domain name resolution file of each node according to the storage directory of the domain name resolution file of each node.
Optionally, the system further comprises a first judging unit and a first updating unit;
the first judgment unit is used for judging whether the ICOS cluster is in butt joint with software definition storage or not before restarting the docker service of the deployment node;
and the first updating unit is used for updating the address information in the configuration file corresponding to the software definition storage if the ICOS cluster is butted with the software definition storage.
Optionally, a second determining unit and a second updating unit are further included;
the second judgment unit is used for judging whether the ICOS cluster is in butt joint with the centralized storage or not before restarting the docker service of the deployment node;
and the second updating unit is used for updating the address information recorded in the block device mapping table of the nova database if the ICOS cluster is in butt joint with the centralized storage.
Optionally, the system further comprises a third judging unit and a marking unit;
a third judging unit, configured to, after restarting the docker service of the deployment node and updating the configuration of the address information of the ICOS cluster, judge whether the service of each node can normally operate according to a preset service detection program after all the updated address information becomes effective;
and the marking unit is used for marking the node with the service incapable of normally operating as the node to be overhauled if the node with the service incapable of normally operating exists.
The description of the features in the embodiment corresponding to fig. 2 may refer to the related description of the embodiment corresponding to fig. 1, and is not repeated here.
According to the technical scheme, when the address change instruction is received, the nova containers of the nodes are closed, and the nodes can be controlled to stop reporting data containing the address information to the system by closing the nova containers. Updating the address information contained in the address information file according to the storage directory corresponding to the address information file; the address information files are all files containing address information in the ICOS cluster. The storage locations of the address information in the different types of databases are different, and the address information contained in each database can be updated according to the address information field corresponding to each database in the ICOS cluster. In order to ensure the comprehensive coverage of address information updating in the ICOS cluster, the address information of each node network card in the ICOS cluster needs to be updated. After the updating of the address information file, the database and the address information of the node network card in the ICOS cluster is completed, the docker service of the deployment node needs to be restarted, and the configuration of the address information of the ICOS cluster is updated, so that all the updated address information becomes effective. According to the technical scheme, according to the set automatic updating process, only temporary halt is needed when an address change instruction is received, and the service can be recovered after all address information in the ICOS cluster is updated according to the set process, so that the automatic change of the ICOS cluster management network address information is realized, and the influence on a customer service system is effectively reduced while manpower, material resources and financial resources are saved.
Fig. 3 is a schematic hardware structure diagram of an address changing apparatus 30 based on an ICOS cluster according to an embodiment of the present invention, including:
a memory 31 for storing a computer program;
a processor 32 for executing a computer program for implementing the steps of the ICOS cluster based address modification method as described in any of the embodiments above.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the address changing method based on an ICOS cluster as described in any of the above embodiments are implemented.
The address modification method, device and computer-readable storage medium based on the ICOS cluster provided by the embodiments of the present invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed in the embodiment corresponds to the method disclosed in the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

Claims (10)

1. An ICOS cluster-based address modification method is characterized by comprising the following steps:
when an address change instruction is received, closing the nova containers of the nodes;
updating address information contained in an address information file according to a storage directory corresponding to the address information file; the address information files are all files containing address information in the ICOS cluster;
updating the address information contained in each database according to the address information field corresponding to each database in the ICOS cluster;
updating the address information of each node network card in the ICOS cluster;
restarting the docker service of the deployment node, and updating the configuration of the address information of the ICOS cluster so as to enable all the updated address information to take effect.
2. The ICOS cluster-based address changing method according to claim 1, wherein the updating the address information included in the address information file according to the storage directory corresponding to the address information file comprises:
updating the virtual address information in the configuration file according to the storage directory of the configuration file of the deployment node;
and updating the address information contained in the domain name resolution file of each node according to the storage directory of the domain name resolution file of each node.
3. The ICOS cluster-based address changing method according to claim 1, further comprising, before the restarting the docker service of the deployment node:
judging whether the ICOS cluster is in butt joint with software definition storage;
and if the ICOS cluster is in butt joint with the software definition storage, updating the address information in the configuration file corresponding to the software definition storage.
4. The ICOS cluster-based address changing method according to claim 1, further comprising, before the restarting the docker service of the deployment node:
judging whether the ICOS cluster is in butt joint with centralized storage or not;
and if the ICOS cluster is in butt joint with centralized storage, updating address information recorded in a block device mapping table of the nova database.
5. The ICOS cluster-based address changing method according to any one of claims 1 to 4, wherein after the restarting the docker service of the deployment node and updating the configuration of the address information of the ICOS cluster, so that all the updated address information is valid, further comprising:
judging whether the service of each node can normally run according to a preset service detection program;
and if the node with the service incapable of normally operating exists, marking the node with the service incapable of normally operating as the node to be overhauled.
6. An ICOS cluster-based address changing device is characterized by comprising a closing unit, a file updating unit, a field updating unit, a network card updating unit and a restarting unit;
the closing unit is used for closing the nova containers of the nodes when receiving the address change instruction;
the file updating unit is used for updating the address information contained in the address information file according to the storage directory corresponding to the address information file; the address information files are all files containing address information in the ICOS cluster;
the field updating unit is used for updating the address information contained in each database according to the address information field corresponding to each database in the ICOS cluster;
the network card updating unit is used for updating the address information of each node network card in the ICOS cluster;
and the restarting unit is used for restarting the docker service of the deployment node and updating the configuration of the address information of the ICOS cluster so as to enable all the updated address information to take effect.
7. The ICOS cluster-based address changing apparatus according to claim 6, wherein the file updating unit is specifically configured to update the virtual address information in the configuration file according to a storage directory of a deployment node configuration file; and updating the address information contained in the domain name resolution file of each node according to the storage directory of the domain name resolution file of each node.
8. The ICOS cluster-based address changing apparatus according to claim 6, further comprising a first judging unit and a first updating unit;
the first judging unit is configured to judge whether the ICOS cluster is docked with a software defined storage before the docker service of the deployment node is restarted;
the first updating unit is configured to update address information in a configuration file corresponding to a software definition storage if the ICOS cluster interfaces the software definition storage.
9. An ICOS cluster-based address modification apparatus, comprising:
a memory for storing a computer program;
a processor for executing said computer program for carrying out the steps of the ICOS cluster based address changing method according to any of the claims 1 to 5.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the ICOS cluster based address changing method as set forth in any one of the claims 1 to 5.
CN202011261694.6A 2020-11-12 2020-11-12 ICOS cluster-based address change method, device and medium Active CN112468327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011261694.6A CN112468327B (en) 2020-11-12 2020-11-12 ICOS cluster-based address change method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011261694.6A CN112468327B (en) 2020-11-12 2020-11-12 ICOS cluster-based address change method, device and medium

Publications (2)

Publication Number Publication Date
CN112468327A CN112468327A (en) 2021-03-09
CN112468327B true CN112468327B (en) 2022-11-04

Family

ID=74825590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011261694.6A Active CN112468327B (en) 2020-11-12 2020-11-12 ICOS cluster-based address change method, device and medium

Country Status (1)

Country Link
CN (1) CN112468327B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017041486A1 (en) * 2015-09-10 2017-03-16 中兴通讯股份有限公司 Cluster deployment implementation method and apparatus
CN107071043A (en) * 2017-04-28 2017-08-18 曙光信息产业(北京)有限公司 The collocation method and device of a kind of network information
CN107547635A (en) * 2017-08-04 2018-01-05 新华三大数据技术有限公司 Big data cluster host IP address amending method and device
CN110727579A (en) * 2019-09-03 2020-01-24 苏州浪潮智能科技有限公司 ICOS system-based database service testing method and device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810192A (en) * 2018-07-20 2018-11-13 郑州云海信息技术有限公司 A kind of static IP configuration method, device, equipment and readable storage medium storing program for executing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017041486A1 (en) * 2015-09-10 2017-03-16 中兴通讯股份有限公司 Cluster deployment implementation method and apparatus
CN107071043A (en) * 2017-04-28 2017-08-18 曙光信息产业(北京)有限公司 The collocation method and device of a kind of network information
CN107547635A (en) * 2017-08-04 2018-01-05 新华三大数据技术有限公司 Big data cluster host IP address amending method and device
CN110727579A (en) * 2019-09-03 2020-01-24 苏州浪潮智能科技有限公司 ICOS system-based database service testing method and device and storage medium

Also Published As

Publication number Publication date
CN112468327A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
US11368407B2 (en) Failover management using availability groups
US11539590B2 (en) Detect impact of network maintenance in software defined infrastructure
EP3152653A2 (en) Techniques to isolating a portion of an online computing service
CN110784515B (en) Data storage method based on distributed cluster and related equipment thereof
US10673694B2 (en) Private network mirroring
CN109144776A (en) Virtual machine image file processing method and processing device
CN109660389A (en) A kind of IT assets management method and device
CN104010018B (en) The method and apparatus of synchronization multicast group
CN109408376A (en) A kind of generation method of configuration data, device, equipment and storage medium
CN112468327B (en) ICOS cluster-based address change method, device and medium
CN109116818B (en) Real-time data dump method and device during SCADA system upgrade
CN114598680B (en) Domain name management method, device and storage medium
US11366734B2 (en) Identification of log events for computing systems
CN109379212B (en) Nginx route configuration information updating method and system, readable storage medium and terminal
CN116594798B (en) Data center maintenance method, equipment and medium based on inspection robot
US11632299B1 (en) Cell management for services implemented at cloud computing environments
WO2023032116A1 (en) Script identification device, script identification method, and script identification system
CN115543963A (en) Database service supply method and device
US11061666B1 (en) Distributing computing tasks to individual computer systems
CN109189599B (en) Method and device for improving real-time data dump stability of SCADA system
CN110045930B (en) Method, device, equipment and medium for virtual platform to manage storage equipment volume
US20230401087A1 (en) Method and system for automated migration of high performance computing application to serverless platform
US11853273B1 (en) Partial migration of applications across database systems
CN110784332B (en) Operation and maintenance configuration management system and computer storage medium
CN105763627A (en) Data center managing method 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