CN113949712A - Cloud host cluster high-availability processing method and system, electronic equipment and storage medium - Google Patents

Cloud host cluster high-availability processing method and system, electronic equipment and storage medium Download PDF

Info

Publication number
CN113949712A
CN113949712A CN202111203604.2A CN202111203604A CN113949712A CN 113949712 A CN113949712 A CN 113949712A CN 202111203604 A CN202111203604 A CN 202111203604A CN 113949712 A CN113949712 A CN 113949712A
Authority
CN
China
Prior art keywords
cloud host
cluster
cloud
added
volume
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.)
Granted
Application number
CN202111203604.2A
Other languages
Chinese (zh)
Other versions
CN113949712B (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.)
iFlytek Co Ltd
Original Assignee
iFlytek 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 iFlytek Co Ltd filed Critical iFlytek Co Ltd
Priority to CN202111203604.2A priority Critical patent/CN113949712B/en
Publication of CN113949712A publication Critical patent/CN113949712A/en
Application granted granted Critical
Publication of CN113949712B publication Critical patent/CN113949712B/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
    • 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
    • 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/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • 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/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a high-availability processing method, a high-availability processing system, electronic equipment and a storage medium for a cloud host cluster, wherein volume type information of each cloud host in the cloud host cluster is obtained firstly; and then, based on the volume type information of each cloud host, assigning a storage cluster in the distributed storage system for the back-end volume of each cloud host. Through the volume type information of the cloud host, the scheduling of the back-end volume of the cloud host can be realized, and the high availability of the cloud host at the volume level is ensured.

Description

Cloud host cluster high-availability processing method and system, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of cloud, in particular to a cloud host cluster high-availability processing method and system, electronic equipment and a storage medium.
Background
With the increase of the number of users of the cloud computing platform, the high availability demands of various shapes come along, and the high availability of the cloud computing platform is challenged when the hardware faults are met.
When the application end uses a plurality of cloud hosts to configure the high-availability service of the application layer, the application end usually accesses a plurality of storage clusters through the openstack rear end, and schedules the cloud hosts at the same time.
When the cloud host is scheduled, the scheduling policy in the cloud host cluster is usually used for scheduling, but the scheduling policy only supports scheduling of the cloud host added in the cloud host cluster to different computing nodes, and the back-end volume of the cloud host is not supported by the corresponding scheduling policy, so that high availability of the cloud host at the volume level cannot be realized.
Disclosure of Invention
The invention provides a cloud host cluster high-availability processing method, a cloud host cluster high-availability processing system, electronic equipment and a storage medium, which are used for overcoming the defects in the prior art.
The invention provides a high-availability processing method of a cloud host cluster, which comprises the following steps:
acquiring volume type information of each cloud host in a cloud host cluster;
and based on the volume type information of each cloud host, assigning a storage cluster in the distributed storage system for the back-end volume of each cloud host.
The cloud host cluster high-availability processing method provided by the invention further comprises the following steps:
determining a cloud host to be added, and judging whether a cloud host which is positioned at the same computing node as the cloud host to be added exists in the cloud host cluster;
and if the cloud host which is positioned at the same computing node as the to-be-added cloud host does not exist in the cloud host cluster, adding the to-be-added cloud host into the cloud host cluster.
The cloud host cluster high-availability processing method provided by the invention further comprises the following steps:
if the cloud host which is located at the same computing node as the cloud host to be added exists in the cloud host cluster, sending thermal migration prompt information to a front end;
and receiving feedback information of the thermal migration prompt information, and if the feedback information is forward feedback information, performing thermal migration operation on the cloud host to be added.
According to the high-availability processing method for the cloud host cluster, the hot migration operation is performed on the cloud host to be added, and the method specifically comprises the following steps:
determining alternative computing nodes corresponding to the cloud host cluster;
and determining a target computing node in the alternative computing nodes based on the computing nodes where the cloud hosts in the cloud host cluster are located, and performing thermal migration on the to-be-added cloud host to the target computing node.
According to the cloud host cluster high-availability processing method provided by the invention, the determining of the target computing node in the alternative computing nodes based on the computing node where each cloud host in the cloud host cluster is located specifically comprises:
determining other computing nodes except the computing node where each cloud host is located in the alternative computing nodes;
and selecting one computing node from the other computing nodes as the target computing node.
According to the cloud host cluster high-availability processing method provided by the invention, the hot migration operation is performed on the cloud host to be added, and then the method further comprises the following steps:
and adding the cloud host to be added into the cloud host cluster.
According to the cloud host cluster high-availability processing method provided by the present invention, the specifying a storage cluster in a distributed storage system for a backend volume of each cloud host based on the volume type information of each cloud host specifically includes:
for any cloud host in the cloud hosts, selecting a target storage cluster with volume type information identical to that of the cloud host from the distributed storage system;
and assigning the target storage cluster to a back-end volume of any cloud host.
The invention also provides a cloud host cluster high-availability processing system, which comprises:
the acquisition module is used for acquiring the volume type information of each cloud host in the cloud host cluster;
and the specifying module is used for specifying a storage cluster in the distributed storage system for the back-end volume of each cloud host based on the volume type information of each cloud host.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the steps of any one of the cloud host cluster high-availability processing methods are realized.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the cloud host cluster high availability processing method as described in any of the above.
The invention also provides a computer program product, which comprises a computer program, wherein the computer program realizes the steps of the cloud host cluster high-availability processing method when being executed by a processor.
The invention provides a high-availability processing method, a high-availability processing system, electronic equipment and a storage medium for a cloud host cluster, which are characterized by firstly acquiring volume type information of each cloud host in the cloud host cluster; and then, based on the volume type information of each cloud host, assigning a storage cluster in the distributed storage system for the back-end volume of each cloud host. Through the volume type information of the cloud host, the scheduling of the back-end volume of the cloud host can be realized, and the high availability of the cloud host at the volume level is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a high availability processing method for a cloud host cluster according to the present invention;
FIG. 2 is a schematic structural diagram of a distributed storage system provided by the present invention;
FIG. 3 is a flowchart illustrating a cloud host creation method according to the present invention;
FIG. 4 is a schematic structural diagram of a cloud host cluster high availability processing system provided by the present invention;
fig. 5 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, when an application uses a plurality of cloud hosts to configure high-availability services of an application layer, the application typically accesses a plurality of storage clusters through the openstack rear end, and schedules the cloud hosts at the same time. When the cloud host is scheduled, the adopted scheduling strategy only supports the scheduling of the cloud host added into the cloud host cluster to different computing nodes, but cannot support the scheduling of the back-end volume of the cloud host, and further cannot realize the high availability of the cloud host at the volume level. Therefore, the embodiment of the invention provides a high-availability processing method for a cloud host cluster.
Fig. 1 is a schematic flowchart of a high availability processing method for a cloud host cluster provided in an embodiment of the present invention, and as shown in fig. 1, the method includes:
s1, acquiring volume type information of each cloud host in the cloud host cluster;
and S2, based on the volume type information of each cloud host, assigning a storage cluster in the distributed storage system for the back-end volume of each cloud host.
Specifically, in the cloud host cluster high-availability processing method provided in the embodiment of the present invention, an execution main body is a cloud host cluster high-availability processing system at a back end, the system may be configured in a server, the server may be a local server or a cloud server, and the local server may be a computer, a tablet computer, a smart phone, and the like.
It should be noted that, in the embodiment of the present invention, the High Availability (HA) refers to a performance that the out-of-service time is less than a preset threshold, and the preset threshold may be set according to needs, which is not specifically limited in the embodiment of the present invention. The high availability of the cloud host cluster means that the time that the cloud host cluster cannot serve is reduced by design and is smaller than a preset threshold value.
Step S1 is executed first, and volume type information of each cloud host in the cloud host cluster server-group is obtained. The cloud host cluster can comprise a plurality of cloud hosts, at least two cloud hosts with the same function exist in each cloud host for ensuring the feasibility of high-availability performance of the cloud host cluster, and when one cloud host fails, the other cloud host can be used for replacing the cloud host in time.
The volume type information is one configuration information of the cloud host, and the volume type information may include a type (type) value of a backend volume of the cloud host, and different cloud hosts may have different volume type information. The type value may be identified in the form of a character string, a number, a letter, and the like, which is not specifically limited in the embodiment of the present invention.
Then, step S2 is executed to designate a storage cluster in the distributed storage system for the backend volume of each cloud host according to the volume type information of each cloud host. The backend volume of the cloud host may include a system volume, a data volume, and the like, which is not specifically limited in the embodiment of the present invention.
The distributed storage system may include a block storage component driver, the distributed storage system may be expanded through the block storage component driver, and volume information is created for the newly added storage cluster when the distributed storage system is expanded, where the volume information includes volume type information. That is to say, each storage cluster in the distributed storage system corresponds to volume information, and the volume information may include volume type information, through which one storage cluster can be uniquely characterized.
In the embodiment of the present invention, the distributed storage system may be a storage system constructed based on OpenStack. The OpenStack is an open-source cloud computing management platform project and is a combination of a series of software open-source projects. Fig. 2 is a schematic structural diagram of a distributed storage system provided in an embodiment of the present invention, and as shown in fig. 2, the distributed storage system is an OpenStack cluster, where the distributed storage system includes two storage clusters HYPERVIS and a storage block corresponding to each storage cluster HYPERVIS, each storage cluster includes a plurality of cloud host VMs and a management component cluster Nova-Ceph, and the storage block includes cluster data CEPT-sata and a cluster pool CEPT-ssd pool. The management component clusters Nova-Ceph in the two storage clusters HYPERVIIS can access the storage blocks corresponding to the management component clusters Nova-Ceph and can also access the storage blocks of the other storage cluster.
The distributed storage system can further comprise a mirror image service component, an available storage cluster can be newly added through the mirror image service component, and the block storage component shader can realize capacity expansion according to the available storage cluster newly added through the mirror image service component, that is to say, the capacity expansion idea of the distributed storage system based on the OpenStack is cluster expansion, and after capacity requirements are improved, the corresponding available storage cluster at the back end of the distributed storage system can be expanded. Extending the available storage cluster does not involve an intrusive operation on any of the available storage clusters that are providing the service, nor is there a risk due to the intrusive operation.
The chunk storage component circle may include a circle-volume component, where the circle-volume component is responsible for encapsulating drivers, and different drivers are responsible for controlling different available storage clusters and providing volume-related operations, and then the volume is mounted to the instance through a Nova-computer component in a management component Nova in the distributed storage system, during which the Nova-computer component may obtain volume information created by the circle-volume component, and the obtained volume information may be effectively linked to the instance. In the virtual operating system simulator qemu, the mounting of multiple network volumes is independent, so that the feasibility of volume schemes with different attributes under a single instance is ensured. The created volume information includes volume type information to ensure the corresponding relationship between the storage cluster and the backend volume.
The cloud host cluster high-availability processing method provided by the embodiment of the invention comprises the steps of firstly obtaining volume type information of each cloud host in a cloud host cluster; and then, based on the volume type information of each cloud host, assigning a storage cluster in the distributed storage system for the back-end volume of each cloud host. Through the volume type information of the cloud host, the scheduling of the back-end volume of the cloud host can be realized, and the high availability of the cloud host at the volume level is ensured.
On the basis of the above embodiment, in the cloud host cluster high-availability processing method provided in the embodiment of the present invention, when a circle volume component in a chunk storage component circle is configured with an rbd back end to create a back end volume, operation is generally performed by a circle user; the openstack folder volume component needs to be completed or optimized, and cannot self-define the operation of the user keyring, so that the configuration needs to be carried out for the user keyring.
For this problem, based on any of the above embodiments, in the embodiment of the present invention, the problem may be solved by creating a multi-cluster with a user keying manner or by closing authority authentication of a ceph cluster client end of an available storage cluster.
On the basis of the foregoing embodiment, the cloud host cluster high availability processing method provided in the embodiment of the present invention further includes:
determining a cloud host to be added, and judging whether a cloud host which is positioned at the same computing node as the cloud host to be added exists in the cloud host cluster;
and if the cloud host which is positioned at the same computing node as the to-be-added cloud host does not exist in the cloud host cluster, adding the to-be-added cloud host into the cloud host cluster.
Specifically, in the embodiment of the present invention, for a to-be-added cloud host that needs to be added to a cloud host cluster, the to-be-added cloud host may be determined first, and a name of a computing node where the to-be-added cloud host is located is further determined.
The cloud host to be added can be a newly created cloud host, fig. 3 is a schematic flow diagram of the cloud host creation method provided in the embodiment of the present invention, and as shown in fig. 3, a mirror service component Glance, a block storage component Cinder, and a management component Nova in a distributed storage system can be docked with two available storage clusters Cluster-a and Cluster-a in the distributed storage system, which is shown in fig. 3, a connecting line docked with Cluster-a is a dash-dot line with a double arrow, and a connecting line docked with Cluster-B is a dashed line with a double arrow.
In fig. 3, the cloud host creation method includes the following steps:
firstly, a user sends a cloud host starting request to a management component Nova in the distributed storage system through a Client.
And the management component Nova sends a volume creation request for creating the cloud host to the block storage component shader based on the received cloud host startup request. The volume creation request here includes an image identifier of a target image required for creating the cloud host.
And the block storage component Cinder sends the mirror image identification of the target mirror image required by the cloud host to the mirror image service component Glance to acquire mirror image information, wherein the mirror image information comprises the position information of the target mirror image.
And fourthly, the mirror image service component Glance returns the mirror image information corresponding to the mirror image identification of the target mirror image to the block storage component sender. Here, the image information includes location information of the target image, and the location information of the target image includes a cluster identifier of an available storage cluster in which the target image is stored.
And the storage component Cinder extracts the target mirror image from the corresponding available storage cluster based on the position information of the target mirror image in the mirror image information, creates a logical volume of the cloud host based on the target mirror image, creates a cloud host in the logical volume of the cloud host, and generates new volume information based on the logical volume of the cloud host to return to the management component Nova.
Sixthly, the management component Nova requests other equipment information.
The management component Nova receives returned information of other devices.
And allowing the Nova management component to return a virtual machine state to the client by combining with the information of other equipment and the information of the new volume.
In the embodiment of the invention, support for adding the newly created cloud host to be added to the cloud host cluster needs to be added for the nova, and interface support for adding the cloud host to be added to the cloud host cluster needs to be added for the nova-api. Here, the interface may include a check interface, an add interface, a live migration interface, a rollback interface after a live migration failure, and the like.
The name of the computing node where the cloud host to be added is located may be combined with the names of the computing nodes where the cloud hosts are located in the cloud host cluster to determine whether a cloud host in the same computing node as the cloud host to be added exists in the cloud host cluster, where the function is to check an interface. For any cloud host in the cloud host cluster, whether the name of the computing node where the cloud host to be added is located is the same as the name of the computing node where the cloud host is located can be compared, if yes, the cloud host to be added and the cloud host are considered to be located in the same computing node, and if not, the cloud host to be added and the cloud host are considered to be located in different computing nodes.
If the cloud host which is located at the same computing node as the to-be-added cloud host does not exist in the cloud host cluster, it is indicated that the situation that two cloud hosts are located at the same computing node does not exist in the cloud host cluster when the to-be-added cloud host is added into the cloud host cluster, and therefore the to-be-added cloud host is added into the cloud host cluster, and the function of adding the interface is used here, so that the high availability of the cloud host cluster on the cloud host level can be guaranteed.
When a to-be-added cloud host is added to a cloud host cluster, an addition request can be sent to a backend, and the addition request can be represented by the following codes:
Figure BDA0003306001510000091
the server _ group _ id represents a cloud host cluster, and the addition request may include a check instruction, namely a checkInstance, where the check instruction is used to check whether a cloud host in the same computing node as the cloud host to be added exists in the cloud host cluster. And uuid is a return result of the check instruction, and if uuid is empty, it indicates that the cloud host in the same computing node as the cloud host to be added does not exist in the cloud host cluster, and the addition is successful. If the uuid is not empty, it is stated that a cloud host which is located in the same computing node as the cloud host to be added exists in the cloud host cluster, and the adding fails.
In the embodiment of the invention, when the cloud host which is positioned at the same computing node as the cloud host to be added does not exist in the cloud host cluster, the cloud host to be added is added into the cloud host cluster, so that the high availability of the cloud host cluster on the cloud host layer can be ensured.
On the basis of the foregoing embodiment, the cloud host cluster high availability processing method provided in the embodiment of the present invention further includes:
if the cloud host which is located at the same computing node as the cloud host to be added exists in the cloud host cluster, sending thermal migration prompt information to a front end;
and receiving feedback information of the thermal migration prompt information, and if the feedback information is forward feedback information, performing thermal migration operation on the cloud host to be added.
Specifically, in the embodiment of the present invention, if a cloud host exists in the cloud host cluster and is located at the same computing node as the to-be-added cloud host, it indicates that the to-be-added cloud host cannot be directly added to the cloud host cluster, and a hot migration operation may need to be performed on the to-be-added cloud host. The live migration prompting information is used for prompting that a front-end user needs to perform live migration when joining the cloud host, so that the front-end user can confirm whether the live migration is performed or not.
After the front-end user confirms whether the live migration is performed, a confirmation result can be returned to the cloud host cluster high-availability processing system through feedback information of the live migration prompt information. The feedback information may include positive feedback information used to represent that the front-end user confirms performing the live migration and negative feedback information used to represent that the front-end user confirms not performing the live migration.
After the cloud host cluster high-availability processing system receives the feedback information, if the feedback information is forward feedback information, the front-end user confirms to perform the thermal migration, and at the moment, the cloud host to be added performs the thermal migration operation, wherein the thermal migration interface has a function of selecting computing nodes except the computing nodes where the cloud hosts are located in the cloud host cluster for the cloud host to be added. If the feedback information is negative feedback information, the front-end user confirms that the live migration is not performed, and no operation is performed at this time.
It should be noted that, for the nova, for the cloud host in the cloud host cluster, when performing the live migration operation, support for using the cloud host cluster rule to perform the relevant constraint needs to be added, and the relevant constraint may include inverse affinity scheduling, and the like.
In the embodiment of the invention, when the cloud host which is in the same computing node as the cloud host to be added exists in the cloud host cluster, the thermal migration prompt information needs to be sent to the front end, the feedback information of the front end user is introduced, and whether the thermal migration operation is carried out or not is judged according to the feedback information, so that the user requirements can be met better, and the user experience is improved.
On the basis of the foregoing embodiment, the cloud host cluster high-availability processing method provided in the embodiment of the present invention specifically includes, for performing a live migration operation on the to-be-added cloud host:
determining alternative computing nodes corresponding to the cloud host cluster;
and determining a target computing node in the alternative computing nodes based on the computing nodes where the cloud hosts in the cloud host cluster are located, and performing thermal migration on the to-be-added cloud host to the target computing node.
Specifically, in the embodiment of the present invention, when performing a hot migration operation on a to-be-added cloud host, a plurality of candidate computing nodes corresponding to a cloud host cluster may be determined, and the candidate computing nodes may be all computing nodes that the cloud host cluster can mount, and include both a computing node where each cloud host in the cloud host cluster is located and a computing node that each cloud host in the cloud host cluster can mount but is not actually mounted.
Then, a target computing node in the alternative computing nodes can be determined according to the computing node where each cloud host in the cloud host cluster is located. The target computing node is typically one of the candidate computing nodes other than the computing node at which each cloud host is located.
And finally, the cloud host to be added is subjected to thermal migration to the target computing node, namely the cloud host to be added is mounted to the target computing node.
In the embodiment of the invention, when the hot migration operation is performed on the cloud host to be added, the computing nodes where the cloud hosts are located in the cloud host cluster are considered, so that a theoretical basis can be provided for the high availability of the cloud host cluster at the level of the computing nodes after the subsequent cloud host to be added is added to the cloud host cluster.
On the basis of the foregoing embodiment, the cloud host cluster high-availability processing method provided in the embodiment of the present invention is a method for determining a target computing node in the candidate computing nodes based on a computing node where each cloud host in the cloud host cluster is located, and specifically includes:
determining other computing nodes except the computing node where each cloud host is located in the alternative computing nodes;
and selecting one computing node from the other computing nodes as the target computing node.
Specifically, in the embodiment of the present invention, when determining the target computing node, other computing nodes except for the computing node where all the cloud hosts are located in the candidate computing nodes may be determined first, and the number of the other computing nodes may be one or more, which is not specifically limited in the embodiment of the present invention. And then selecting one computing node from other computing nodes as a target computing node. If one other computing node is provided, the other computing node can be directly used as a target computing node, and the to-be-added cloud host is mounted on the target computing node. If the number of the other computing nodes is multiple, one computing node can be arbitrarily selected from the other computing nodes to serve as a target computing node, and the to-be-added cloud host is mounted to the target computing node.
In the embodiment of the invention, when the target computing node is determined, the computing node where each cloud host in the cloud host cluster is located is considered, so that the high availability of the cloud host cluster at the level of the computing node after the cloud host to be added is added to the cloud host cluster can be ensured.
On the basis of the foregoing embodiment, the cloud host cluster high-availability processing method provided in the embodiment of the present invention performs a live migration operation on the to-be-added cloud host, and then further includes:
and adding the cloud host to be added into the cloud host cluster.
Specifically, in the embodiment of the present invention, after performing a live migration operation on a to-be-added cloud host, the to-be-added cloud host is added to a cloud host cluster, so that high availability of the cloud host cluster at a computing node level can be realized.
Here, when adding a to-be-added cloud host to a cloud host cluster, an addition request may be sent to a backend, and the addition request may be represented by the following code:
POST/v2.1/os-server-groups/{server_group_id}/action HTTP/1.1
{
"addInstance":{
instance _ uuid' uuid of cloud host "
}
}
The server _ group _ id represents a cloud host cluster, the adding request may include an adding instruction, namely addlnstance, and the adding instruction is used for directly adding the to-be-added cloud host to the cloud host cluster. The Instance _ uuid is the uuid to be added into the cloud host.
On the basis of the foregoing embodiment, in the cloud host cluster high-availability processing method provided in the embodiment of the present invention, the distributed storage system further includes a database access proxy component, and the database access proxy component is configured based on the live migration operation.
Specifically, in the embodiment of the present invention, the distributed storage system further includes a database access proxy component nova-conductor, and the database access proxy component nova-conductor may be configured through the live migration operation live-migration, that is, the database access proxy component nova-conductor may increase support for the live migration operation live-migration application cloud host cluster. Therefore, the hot migration operation can be guaranteed to support migration scheduling by using the rule of the cloud host cluster.
On the basis of the foregoing embodiment, the cloud host cluster high availability processing method provided in the embodiment of the present invention specifies a storage cluster in a distributed storage system for a backend volume of each cloud host based on the volume type information of each cloud host, and specifically includes:
for any cloud host in the cloud hosts, selecting a target storage cluster with volume type information identical to that of the cloud host from the distributed storage system;
and assigning the target storage cluster to a back-end volume of any cloud host.
Specifically, in the embodiment of the present invention, each storage cluster in the distributed storage system corresponds to volume type information, and one storage cluster can be uniquely characterized by the volume type information. Therefore, when the storage cluster in the distributed storage system is specified for the backend volume of each cloud host through the volume type information of each cloud host, the following processes can be implemented:
for any one cloud host in the cloud hosts, namely any cloud host, a target storage cluster with volume type information identical to that of the any cloud host is selected from the distributed storage system, and then the target storage cluster is assigned to a back-end volume of the any cloud host, namely the target storage cluster can be regarded as a storage cluster assigned to the back-end volume of the any cloud host.
In the embodiment of the invention, the storage cluster appointed for the back-end volume of each cloud host is determined by comparing the volume type information, so that the feasibility of the scheme can be ensured, and the scheme can be simplified.
On the basis of the foregoing embodiment, in the cloud host cluster high-availability processing method provided in the embodiment of the present invention, the distributed storage system further includes a mirror image service component company, and the mirror image service component company may generate a mirror image upload request and send the mirror image upload request to the block storage component.
The mirror image uploading request comprises a mirror image to be uploaded and a Cluster identifier to be stored of the mirror image, the mirror image to be uploaded needs to be imported into a storage Cluster at the back end in advance, the Cluster identifier to be stored can be added into the mirror image uploading request in a form of designated parameters, for example, a parameter property Cluster is set in the mirror image uploading request, and the Cluster to be stored is set to be Cluster-B in a form of writing the parameter property Cluster into Cluster-B.
And the gland-api in the mirror service component gland can be compatible with the update configuration of the gland-api.
The update configuration of the gland-api.conf can be realized by the following codes, and the storage service of the mirror image can be configured firstly, then an rbd pool (pool) is created, and finally ceph is configured:
[glance_store]
default_store=rbd
filesystem_store_datadir=/var/lib/glance/images/
stores=rbd
rbd_store_pool=images
rbd_store_user=glance
rbd_store_ceph_conf=/etc/ceph/cephA/ceph.conf
enabled_backends=glance_store_cephA,glance_store_cephB
default_glance_type=glance_store_cephA
[glance_store_cephA]
rbd_store_ceph_conf=/etc/ceph/cephA/ceph.conf
[glance_store_cephB]
rbd_store_ceph_conf=/etc/ceph/cephB/ceph.conf
the field updates are illustrated as follows:
enabled _ backings: backings are available;
default _ window _ type: setting default gland backup;
segment [ angle _ store _ cephA ]: the related configuration of the specific backands in the enabled _ backings;
rbd _ store _ ceph _ conf: configuration file designation in backup;
the storage cluster at the back end takes cephA and cephB as examples;
the rbd _ store _ pool must be created in the storage cluster;
the rbd _ store _ user of the same keying must be configured in the storage cluster.
The gan api update description:
the liance image-create: mirror upload function
1) Band field-property cluster ═ ceph01 ": using the specified attribute kv;
2) without field-property: automatically adding default _ gloss _ type as an attribute value;
the detailed information of all the images is obtained through the following codes:
uri:/api/glance/images/;
response update: each item is added with a "cluster" attribute;
the attribute value will be used to specify the type in the inside of the circle-create, and the attribute value can be matched according to the volume _ backup _ name.
On the basis of the foregoing embodiment, in the cloud host cluster high-availability processing method provided in the embodiment of the present invention, the update configuration of the chunk storage component Cinder in the distributed storage system may be implemented by the following code, and the global configuration (global) may be performed on the chunk storage component Cinder first, and then the ceph-cluster may be configured:
[global]
//……
enabled_backends=ceph-cluster-A,ceph-cluster-B
default_volume_type=ceph-cluster-A
//……
[ceph-cluster-A]
rbd_ceph_conf=/etc/ceph/cephA/ceph.conf
[ceph-cluster-B]
rbd_ceph_conf=/etc/ceph/cephB/ceph.conf
description of field update:
enabled _ backings: backings are available;
default _ window _ type: setting default font backnd, which must be one of enabled _ backnds;
segment [ ceph-cluster-A ]: specific backup related configuration in enabled _ backings;
volume _ backup _ name: must correspond to an enabled _ backings field value in the gland-api.conf;
rbd _ ceph _ conf: appointing a configuration file of each backup;
the rbd _ users in the enabled _ backings must be the same;
the storage cluster at the back end takes cephA and cephB as examples;
the rbd _ store _ user of the same keying must be configured in the storage cluster.
As shown in fig. 4, on the basis of the foregoing embodiment, an embodiment of the present invention provides a cloud host cluster high availability processing system, including:
an obtaining module 41, configured to obtain volume type information of each cloud host in the cloud host cluster;
and the specifying module 42 is configured to specify a storage cluster in the distributed storage system for the backend volume of each cloud host based on the volume type information of each cloud host.
On the basis of the foregoing embodiment, the cloud host cluster high-availability processing system provided in the embodiment of the present invention further includes:
the judging module is used for determining a cloud host to be added and judging whether a cloud host which is positioned at the same computing node as the cloud host to be added exists in the cloud host cluster;
and the adding module is used for adding the to-be-added cloud host into the cloud host cluster if the cloud host which is positioned at the same computing node as the to-be-added cloud host does not exist in the cloud host cluster.
On the basis of the foregoing embodiment, the cloud host cluster high-availability processing system provided in the embodiment of the present invention further includes:
the prompt module is used for sending thermal migration prompt information to a front end if a cloud host which is located at the same computing node as the cloud host to be added exists in the cloud host cluster;
and the migration module is used for receiving feedback information of the thermal migration prompt information, and if the feedback information is forward feedback information, performing thermal migration operation on the cloud host to be added.
On the basis of the foregoing embodiment, in the cloud host cluster high-availability processing system provided in the embodiment of the present invention, the migration module is specifically configured to:
determining alternative computing nodes corresponding to the cloud host cluster;
and determining a target computing node in the alternative computing nodes based on the computing nodes where the cloud hosts in the cloud host cluster are located, and performing thermal migration on the to-be-added cloud host to the target computing node.
On the basis of the foregoing embodiment, in the cloud host cluster high-availability processing system provided in the embodiment of the present invention, the migration module is specifically configured to:
determining other computing nodes except the computing node where each cloud host is located in the alternative computing nodes;
and selecting one computing node from the other computing nodes as the target computing node.
On the basis of the foregoing embodiment, in the cloud host cluster high-availability processing system provided in the embodiment of the present invention, the adding module is further configured to:
and after the thermal migration operation is carried out on the cloud host to be added, adding the cloud host to be added into the cloud host cluster.
On the basis of the foregoing embodiment, in the cloud host cluster high-availability processing system provided in the embodiment of the present invention, the specifying module is specifically configured to:
for any cloud host in the cloud hosts, selecting a target storage cluster with volume type information identical to that of the cloud host from the distributed storage system;
and assigning the target storage cluster to a back-end volume of any cloud host.
Specifically, the functions of the modules in the cloud host cluster high-availability processing system provided in the embodiment of the present invention correspond to the operation flows of the steps in the method embodiments one to one, and the implementation effects are also consistent.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)510, a communication Interface (Communications Interface)520, a memory (memory)530 and a communication bus 540, wherein the processor 510, the communication Interface 520 and the memory 530 communicate with each other via the communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a cloud host cluster high availability processing method provided in the above-described method embodiments, the method comprising: acquiring volume type information of each cloud host in a cloud host cluster; and based on the volume type information of each cloud host, assigning a storage cluster in the distributed storage system for the back-end volume of each cloud host.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention further provides a computer program product, where the computer program product includes a computer program, the computer program may be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer is capable of executing the cloud host cluster high-availability processing method provided in the above-mentioned method embodiments, where the method includes: acquiring volume type information of each cloud host in a cloud host cluster; and based on the volume type information corresponding to each cloud host, assigning a storage cluster in the distributed storage system for the back-end volume of each cloud host.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the cloud host cluster high-availability processing method provided in the above method embodiments, the method including: acquiring volume type information of each cloud host in a cloud host cluster; and based on the volume type information of each cloud host, assigning a storage cluster in the distributed storage system for the back-end volume of each cloud host.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A high-availability processing method for a cloud host cluster is characterized by comprising the following steps:
acquiring volume type information of each cloud host in a cloud host cluster;
and based on the volume type information of each cloud host, assigning a storage cluster in the distributed storage system for the back-end volume of each cloud host.
2. The cloud host cluster high availability processing method according to claim 1, further comprising:
determining a cloud host to be added, and judging whether a cloud host which is positioned at the same computing node as the cloud host to be added exists in the cloud host cluster;
and if the cloud host which is positioned at the same computing node as the to-be-added cloud host does not exist in the cloud host cluster, adding the to-be-added cloud host into the cloud host cluster.
3. The cloud host cluster high availability processing method according to claim 2, further comprising:
if the cloud host which is located at the same computing node as the cloud host to be added exists in the cloud host cluster, sending thermal migration prompt information to a front end;
and receiving feedback information of the thermal migration prompt information, and if the feedback information is forward feedback information, performing thermal migration operation on the cloud host to be added.
4. The cloud host cluster high-availability processing method according to claim 3, wherein the performing a live migration operation on the to-be-added cloud host specifically includes:
determining alternative computing nodes corresponding to the cloud host cluster;
and determining a target computing node in the alternative computing nodes based on the computing nodes where the cloud hosts in the cloud host cluster are located, and performing thermal migration on the to-be-added cloud host to the target computing node.
5. The cloud host cluster high-availability processing method according to claim 4, wherein the determining a target computing node among the candidate computing nodes based on the computing node where each cloud host in the cloud host cluster is located specifically includes:
determining other computing nodes except the computing node where each cloud host is located in the alternative computing nodes;
and selecting one computing node from the other computing nodes as the target computing node.
6. The cloud host cluster high-availability processing method according to claim 3, wherein the performing a hot migration operation on the to-be-joined cloud host further includes:
and adding the cloud host to be added into the cloud host cluster.
7. The cloud host cluster high-availability processing method according to any one of claims 1 to 6, wherein the specifying a storage cluster in a distributed storage system for a backend volume of each cloud host based on the volume type information of each cloud host specifically includes:
for any cloud host in the cloud hosts, selecting a target storage cluster with volume type information identical to that of the cloud host from the distributed storage system;
and assigning the target storage cluster to a back-end volume of any cloud host.
8. A cloud host cluster high availability processing system, comprising:
the acquisition module is used for acquiring the volume type information of each cloud host in the cloud host cluster;
and the specifying module is used for specifying a storage cluster in the distributed storage system for the back-end volume of each cloud host based on the volume type information of each cloud host.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the cloud host cluster high available processing method according to any one of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the cloud host cluster high availability processing method of any of claims 1 to 7.
CN202111203604.2A 2021-10-15 2021-10-15 Cloud host cluster high-availability processing method, system, electronic equipment and storage medium Active CN113949712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111203604.2A CN113949712B (en) 2021-10-15 2021-10-15 Cloud host cluster high-availability processing method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111203604.2A CN113949712B (en) 2021-10-15 2021-10-15 Cloud host cluster high-availability processing method, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113949712A true CN113949712A (en) 2022-01-18
CN113949712B CN113949712B (en) 2024-04-30

Family

ID=79330643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111203604.2A Active CN113949712B (en) 2021-10-15 2021-10-15 Cloud host cluster high-availability processing method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113949712B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016160041A2 (en) * 2015-03-30 2016-10-06 Hewlett Packard Enterprise Development Lp Scalabale cloud storage solution
CN107241421A (en) * 2017-06-21 2017-10-10 北京云联万维技术有限公司 A kind of cloud host resource method for obligating and device
CN107493330A (en) * 2017-08-16 2017-12-19 北京新网数码信息技术有限公司 A kind of cloud service method and Cloud Server
WO2018010636A1 (en) * 2016-07-12 2018-01-18 腾讯科技(深圳)有限公司 Virtual machine hot migration method, host and storage medium
US20180278686A1 (en) * 2017-03-23 2018-09-27 Netapp, Inc. Methods and systems for managing networked storage system resources
CN110427245A (en) * 2019-06-28 2019-11-08 苏州浪潮智能科技有限公司 Manage virtual machine method and apparatus
CN111209090A (en) * 2020-04-17 2020-05-29 腾讯科技(深圳)有限公司 Method and assembly for creating virtual machine in cloud platform and server
CN112162702A (en) * 2020-09-25 2021-01-01 科大讯飞股份有限公司 Distributed storage system, virtual machine creation method and data volume expansion method
US20210096902A1 (en) * 2018-06-15 2021-04-01 Huawei Technologies Co., Ltd. Virtual Machine Management Method, Apparatus, and System
CN112711469A (en) * 2020-12-29 2021-04-27 武汉联影医疗科技有限公司 Cloud host migration method and device, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016160041A2 (en) * 2015-03-30 2016-10-06 Hewlett Packard Enterprise Development Lp Scalabale cloud storage solution
WO2018010636A1 (en) * 2016-07-12 2018-01-18 腾讯科技(深圳)有限公司 Virtual machine hot migration method, host and storage medium
US20180278686A1 (en) * 2017-03-23 2018-09-27 Netapp, Inc. Methods and systems for managing networked storage system resources
CN107241421A (en) * 2017-06-21 2017-10-10 北京云联万维技术有限公司 A kind of cloud host resource method for obligating and device
CN107493330A (en) * 2017-08-16 2017-12-19 北京新网数码信息技术有限公司 A kind of cloud service method and Cloud Server
US20210096902A1 (en) * 2018-06-15 2021-04-01 Huawei Technologies Co., Ltd. Virtual Machine Management Method, Apparatus, and System
CN110427245A (en) * 2019-06-28 2019-11-08 苏州浪潮智能科技有限公司 Manage virtual machine method and apparatus
CN111209090A (en) * 2020-04-17 2020-05-29 腾讯科技(深圳)有限公司 Method and assembly for creating virtual machine in cloud platform and server
CN112162702A (en) * 2020-09-25 2021-01-01 科大讯飞股份有限公司 Distributed storage system, virtual machine creation method and data volume expansion method
CN112711469A (en) * 2020-12-29 2021-04-27 武汉联影医疗科技有限公司 Cloud host migration method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113949712B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
US11809726B2 (en) Distributed storage method and device
JP5727020B2 (en) Cloud computing system and data synchronization method thereof
CN113296792B (en) Storage method, device, equipment, storage medium and system
US20150227605A1 (en) Information processing terminal, synchronization control method, and computer-readable recording medium
CN108810055B (en) Large file transmission method and device
CN113626286A (en) Multi-cluster instance processing method and device, electronic equipment and storage medium
CN109344006A (en) A kind of mirror image management method and mirror image management module
CN110046062B (en) Distributed data processing method and system
CN111209090B (en) Method and assembly for creating virtual machine in cloud platform and server
US20220326940A1 (en) Service Upgrade Method, Apparatus, and System
WO2011109049A1 (en) Method and apparatus of backing-up subversion repository
KR101638689B1 (en) System and method for providing client terminal to user customized synchronization service
CN109948332A (en) A kind of physical machine login password remapping method and device
CN113342746A (en) File management system, file management method, electronic device, and storage medium
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
JP5670369B2 (en) Information processing apparatus, image file management method, and program
CN110119388B (en) File reading and writing method, device, system, equipment and computer readable storage medium
CN113949712A (en) Cloud host cluster high-availability processing method and system, electronic equipment and storage medium
CN115480910A (en) Multi-cluster resource management method and device and electronic equipment
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN114490189A (en) Cloud platform database backup method and device, electronic equipment and storage medium
CN114553859A (en) BMC configuration management method and device, electronic equipment and storage medium
CN111767345B (en) Modeling data synchronization method, modeling data synchronization device, computer equipment and readable storage medium
CN108664353A (en) The method, apparatus and replica management server that data are restored
CN112055057B (en) Method, system and equipment for dynamic expansion of Web system

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