Cloud system and cloud method for database
By using a controller to configure the business network in the database cloud system and transmitting the database to the cloud host, the problem of the database being unable to be accessed due to insufficient cloud platform resource configuration is solved, and the normal processing and storage of the database is achieved when it is accessed on the cloud.
Patent Information
- Application Number
- CN202411706204.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-03-11
AI Technical Summary
When the database is cloud-based, the resource configuration of the cloud platform does not meet the preset requirements, resulting in the database being unable to access the cloud normally.
Provides a cloud-based system for databases, including cloud hosts, controllers, business networks and cloud hard disks. When the controller receives the cloud database to be launched, it configures the service network and transmits the database to the cloud host through the configured service network for database processing and storage.
It realizes that the database can be uploaded directly to the cloud host through the business network for processing and storage when it is on the cloud, solving the disadvantage that the database cannot be transmitted to the cloud host for data storage and processing.
Smart Images

Figure CN119603302A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of cloud platforms, and in particular to a database cloud migration system and a cloud migration method. Background Art
[0002] In recent years, with the rapid expansion of the cloud computing market, more and more databases have the need to be migrated to the cloud. However, when a database is migrated to the cloud, it has certain requirements for the resource configuration of the cloud platform. That is, the resource configuration of the cloud platform must meet the preset resource configuration requirements before the database can be migrated to the cloud normally. If the resource configuration of the cloud platform does not meet the preset resource configuration requirements, the database cannot be migrated to the cloud normally.
[0003] Therefore, in order to realize the normal migration of databases to the cloud, how to configure the resources of the cloud platform has become an urgent problem to be solved. Summary of the invention
[0004] Based on this, it is necessary to provide a database cloud migration system and a database cloud migration method that can realize the normal migration of the database to the cloud in response to the above technical problems.
[0005] In a first aspect, the present application provides a database cloud system, including:
[0006] At least one cloud host, a controller, a business network and at least one cloud hard disk; the cloud host and the cloud hard disk are connected; the cloud host is connected to the client through the business network;
[0007] The controller is used to configure the business network when receiving the database to be put on the cloud sent by the client, and transmit the database to be put on the cloud to the cloud host through the configured business network;
[0008] The cloud host is used to perform database processing on the received database to obtain a corresponding database instance;
[0009] Cloud hard disk, used to store database instances sent by the cloud host.
[0010] In one embodiment, the cloud system includes multiple cloud hosts, each of which is connected to a cloud hard disk;
[0011] The controller is specifically used to select candidate cloud hosts from multiple cloud hosts when receiving the database to be uploaded to the cloud sent by the client, and transmit the database to be uploaded to the cloud to the candidate cloud hosts through the configured business network; the candidate cloud host refers to the cloud host that has not received the database to be uploaded to the cloud.
[0012] In one of the embodiments, the business network includes a plurality of virtual IP address network cards;
[0013] The controller is further used to, when receiving the to-be-uploaded-to-cloud database sent by the client, perform flow processing on the to-be-uploaded-to-cloud database to obtain multiple cloud database flow data, and respectively distribute the multiple cloud database flow data to the corresponding virtual IP address network cards;
[0014] Virtual IP address network card, used to transmit the received cloud database streaming data to the candidate cloud host.
[0015] In one of the embodiments, the plurality of virtual IP address network cards are virtual IP address network cards of various types;
[0016] The controller is also used to perform flow splitting processing on the database to be uploaded to the cloud, and after obtaining multiple cloud database flow data, the multiple cloud database flow data are respectively allocated to multiple virtual IP address network cards corresponding to the types of the database to be uploaded to the cloud.
[0017] In one of the embodiments, the cloud system further includes: a heartbeat network;
[0018] The cloud host is also used to transmit the received database to other cloud hosts for database processing through the heartbeat network when it is in a non-idle state.
[0019] In one embodiment, the heartbeat network includes a multicast component;
[0020] The cloud host is specifically used to load the database and transmit it to other cloud hosts using the heartbeat signal generated by the multicast component.
[0021] In one of the embodiments, the multicast component includes a common multicast component and a special multicast component;
[0022] The cloud host is specifically used to determine the type of database, and when the type of the database is a common database, call the heartbeat signal generated by the common multicast component to transmit the database to other cloud hosts; and when the type of the database is a special database, call the heartbeat signal generated by the special multicast component to transmit the database to other cloud hosts.
[0023] In one of the embodiments, the cloud hard disk is connected to the cloud host using a virtual block storage device (VBD) or a small computer system interface (SCSI) mode.
[0024] In a second aspect, the present application also provides a method for migrating a database to the cloud, including:
[0025] Receive the database to be uploaded to the cloud sent by the client;
[0026] Configure the business network, and transmit the database to be uploaded to the cloud to the cloud host based on the configured business network, so as to instruct the cloud host to perform database processing on the received database, obtain the corresponding database instance, and store the database instance to the cloud hard disk.
[0027] In one embodiment, the method further comprises:
[0028] Select candidate cloud hosts from multiple cloud hosts, and transfer the database to be uploaded to the cloud to the candidate cloud hosts based on the configured business network.
[0029] The above-mentioned database cloud migration system and cloud migration method. It includes at least one cloud host, a controller, a business network and at least one cloud hard disk. The cloud host and the cloud hard disk are connected. The cloud host is connected to the client through the business network. The controller is used to configure the business network when receiving the database to be cloud-migrated sent by the client, and transmit the database to be cloud-migrated to the cloud host through the configured business network. The cloud host is used to perform database processing on the received database to obtain the corresponding database instance. The cloud hard disk is used to store the database instance sent by the cloud host. The above-mentioned system creates a database cloud migration system on the cloud, so that when the database is migrated to the cloud, it can be directly uploaded to the cloud host through the business network for database processing and storage, which solves the problem that the database cannot be transmitted to the cloud host for data storage and processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 This is an application environment diagram of a cloud-based database system in one embodiment;
[0032] Figure 2 A schematic diagram of a database cloud system in one embodiment;
[0033] Figure 3 A schematic diagram of a database cloud system in another embodiment;
[0034] Figure 4 A schematic diagram of a database cloud system in another embodiment;
[0035] Figure 5 A schematic diagram of a database cloud system in another embodiment;
[0036] Figure 6The figure is an overall schematic diagram of a database cloud system in one embodiment;
[0037] Figure 7 A database node distribution topology diagram in an embodiment;
[0038] Figure 8 A flowchart of creating an anti-affinity database instance node in one embodiment;
[0039] Fig. 9 A schematic diagram of multicast in one embodiment;
[0040] Fig.10 The following is a flowchart of a method for migrating a database to the cloud in one embodiment;
[0041] Fig.11 The figure is a flowchart of a method for migrating a database to the cloud in another embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] In recent years, with the rapid expansion of the cloud computing market, more and more databases have the need to be migrated to the cloud. However, when a database is migrated to the cloud, it has certain requirements for the resource configuration of the cloud platform. That is, the resource configuration of the cloud platform must meet the preset resource configuration requirements before the database can be migrated to the cloud normally. If the resource configuration of the cloud platform does not meet the preset resource configuration requirements, the database cannot be migrated to the cloud normally.
[0044] Therefore, in order to realize the normal migration of databases to the cloud, how to configure the resources of the cloud platform has become an urgent problem to be solved. This application aims to solve this problem.
[0045] After introducing the background technology of the database cloud system provided by the embodiment of the present application, the implementation environment involved in the database cloud system provided by the embodiment of the present application will be briefly described below. The database cloud system provided by the embodiment of the present application can be applied to Figure 1 In the implementation environment shown, the implementation environment includes a cloud system 01 and a client 02. The client 02 is used to send signals to the cloud system 01, and the cloud system 01 is used to process the received signals. For example, the client 02 sends a database to the cloud system, and the cloud system 01 is used to receive the database and store the database in the cloud system 01.
[0046] Those skilled in the art will understand that Figure 1The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific terminal may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0047] After introducing the application scenarios of the database cloud system provided by the embodiments of the present application, the following focuses on introducing the database cloud system described in the present application.
[0048] In one embodiment, Figure 2 As shown, a database cloud system 01 is provided, including: at least one cloud host 10, a controller 20, a business network 30 and at least one cloud hard disk 40; the cloud host 10 and the cloud hard disk 40 are connected; the cloud host 10 is connected to the client through the business network 30;
[0049] The controller 20 is used to configure the business network 30 when receiving the database to be uploaded to the cloud sent by the client, and transmit the database to be uploaded to the cloud to the cloud host 10 through the configured business network 30;
[0050] The cloud host 10 is used to perform database processing on the received database to obtain a corresponding database instance;
[0051] The cloud hard disk 40 is used to store the database instance sent by the cloud host 10.
[0052] The cloud host 10 refers to a cloud host used to deploy a database instance; to ensure high availability of the database cluster, at least two cloud hosts 10 are used to deploy a database instance. The cloud host 10 can be pre-joined to a virtual private cloud (VPC), which refers to an isolated virtual private cloud network environment created on the cloud. Users can create a large private network on the VPC, and can create multiple private network subnets under the private network. The network address range of the private network subnet must be within the private network address range of the VPC.
[0053] The cloud hard disk 40 refers to a block device used to mount to the cloud host 10 in the cloud platform. The cloud hard disk 40 can be a shared disk, that is, one cloud hard disk 40 can be mounted to multiple cloud hosts 10 at the same time. The cloud hard disk 40 can be mounted to the cloud host 10 in a virtual block storage device (Virtual Block Device, VBD) or a small computer system interface (Small Computer System Interface, SCSI) disk mode. There is at least one cloud hard disk 40.
[0054] VBD is a data storage technology in which data is divided into fixed-size storage blocks, each of which has a unique identifier. This storage method is usually implemented through a storage area network (SAN) and uses protocols such as iSCSI or Fibre Channel to transmit data. The default disk mode of VBD type is VBD type, which only supports simple SCSI read and write commands.
[0055] The business network 30 refers to the network where the database instance deployed in the cloud host 10 provides services to the client.
[0056] In an embodiment of the present application, in the process of uploading a database from a client to the cloud, the database is first uploaded to the controller 20 in the cloud system 01. When the controller 20 receives the database to be uploaded to the cloud sent by the client, it can configure the business network 30 according to the configuration information of the database to be uploaded to the cloud, obtain the configured business network 30, and transmit the database to be uploaded to the cloud host 10 through the configured business network 30, so that the cloud host 10 performs database processing on the received database, obtains the corresponding database instance, and transmits the corresponding database instance to the cloud hard disk 40 for storage.
[0057] It should be noted that the configuration information of the database to be put on the cloud includes the type of the database to be put on the cloud and the size of the database to be put on the cloud.
[0058] The database cloud system provided in the embodiment of the present application includes at least one cloud host, a controller, a business network and at least one cloud hard disk. The cloud host and the cloud hard disk are connected, and the cloud host is connected to the client through the business network. The controller is used to configure the business network when receiving the database to be clouded sent by the client, and transmit the database to be clouded to the cloud host through the configured business network. The cloud host is used to perform database processing on the received database to obtain the corresponding database instance, and the cloud hard disk is used to store the database instance sent by the cloud host. The above system creates a database cloud system on the cloud, so that when the database is on the cloud, it can be directly uploaded to the cloud host through the business network for database processing and storage, which solves the problem that the database cannot be transmitted to the cloud host for data storage and processing.
[0059] In one embodiment, Figure 3 As shown, the cloud system 01 includes multiple cloud hosts 10, each of which is connected to a cloud hard disk 40;
[0060] The controller 20 is specifically used to screen out candidate cloud hosts from multiple cloud hosts 10 when receiving the database to be uploaded to the cloud sent by the client, and transmit the database to be uploaded to the cloud to the candidate cloud hosts through the configured business network 30; the candidate cloud host refers to the cloud host 10 that has not received the database to be uploaded to the cloud.
[0061] In an embodiment of the present application, when the controller 20 receives the database to be uploaded to the cloud sent by the client, it can first analyze the status of each cloud host 10 to determine whether the cloud host 10 is an idle cloud host. If it is an idle cloud host, the cloud host 10 can be determined as a candidate cloud host, and the database to be uploaded to the cloud can be transmitted to the candidate cloud host through the configured business network 30.
[0062] The database cloud migration system provided in this application has at least two cloud hosts. In the event of a failure of one cloud host, the other cloud host can still guarantee the database cloud migration task, thereby ensuring the high availability of the database cluster.
[0063] In one embodiment, Figure 4 As shown, the above-mentioned business network 30 includes multiple virtual IP address network cards 301;
[0064] The controller 20 is further used to perform flow processing on the to-be-uploaded cloud database upon receiving the to-be-uploaded cloud database sent by the client, obtain multiple cloud database flow data, and respectively distribute the multiple cloud database flow data to the corresponding virtual IP address network card 301;
[0065] The virtual IP address network card 301 is used to transmit the received cloud database streaming data to the candidate cloud host.
[0066] The virtual IP address network card 301 refers to a network card used to bind to the service network card of the database instance, and the virtual IP address network card 301 can provide a highly available unified access portal of the database cluster to the outside world. The virtual IP address network card 301 is allocated and created from the service network 30.
[0067] It should be noted that there is at least one virtual IP address network card 301.
[0068] The multiple virtual IP address network cards provided in the embodiment of the present application allocate corresponding databases to the candidate cloud hosts so that the databases can be uploaded to the cloud hosts normally.
[0069] In one embodiment, Figure 4 As shown, the above-mentioned multiple virtual IP address network cards 301 are multiple types of virtual IP address network cards;
[0070] The controller 20 is also used to perform flow distribution processing on the database to be uploaded to the cloud, and after obtaining multiple cloud database flow data, according to the type of the database to be uploaded to the cloud, distribute the multiple cloud database flow data to multiple virtual IP address network cards corresponding to the type.
[0071] In an embodiment of the present application, the database to be uploaded to the cloud includes multiple types of databases. After the data to be uploaded to the cloud is transmitted to the controller 20, the controller 20 can obtain the type of the database to be uploaded to the cloud through analysis, and perform diversion processing on the database to be uploaded to the cloud based on the type of the database to be uploaded to the cloud to obtain multiple cloud database stream data, and based on the type of each cloud database stream data, the multiple cloud database stream data are respectively allocated to multiple virtual IP address network cards corresponding to the type of the cloud database stream data, so that each virtual IP address network card transmits the received cloud database stream data to the candidate cloud host.
[0072] The database cloud system provided in the embodiment of the present application provides multiple virtual IP address network cards to allocate corresponding databases to candidate cloud hosts so that the database can be uploaded to the cloud host normally.
[0073] In one embodiment, Figure 5 As shown, the cloud system 01 further includes: a heartbeat network 50;
[0074] The cloud host 10 is also used to transmit the received database to other cloud hosts for database processing via the heartbeat network 50 when in a non-idle state.
[0075] The heartbeat network 50 refers to a network for database instances deployed in a cloud host to send heartbeats to each other.
[0076] In the embodiment of the present application, when the cloud host 10 receives the database to be put on the cloud, if the cloud host that receives the database to be put on the cloud is in an idle state, the cloud host that receives the database to be put on the cloud directly performs database processing on the database to be put on the cloud; if the cloud host that receives the database to be put on the cloud is in a non-idle state, the cloud host that receives the database to be put on the cloud transmits it to other cloud hosts through the heartbeat network for database processing.
[0077] The database cloud system provided in the embodiment of the present application can perform data transmission between cloud hosts based on the heartbeat network, providing a basis for information communication between cloud hosts.
[0078] In one embodiment, the heartbeat network 50 includes a multicast component 501;
[0079] The cloud host 10 is specifically used to load the database and transmit it to other cloud hosts 10 using the heartbeat signal generated by the multicast component 501 .
[0080] In one embodiment, the multicast component 501 includes a common multicast component and a special multicast component;
[0081] The cloud host 10 is specifically used to determine the type of database, and when the type of the database is a common database, call the heartbeat signal generated by the common multicast component to transmit the database to other cloud hosts; and when the type of the database is a special database, call the heartbeat signal generated by the special multicast component to transmit the database to other cloud hosts.
[0082] The multicast component 501 refers to a component in a database cluster that requires database instances to communicate via a heartbeat network by sending multicast heartbeats. The multicast component 501 includes multiple multicast group addresses, including common multicast group addresses and special multicast group addresses, and is used to add the heartbeat network card of the database instance in the database cluster to the multicast group address. Figure 6 , provides an overall schematic diagram of the database cloud system.
[0083] It should be noted that see Figure 7 , which is the database instance distribution topology provided by the present application, the resource pool may include multiple availability zones, each of which has multiple computing nodes, and the computing node is the host node used to create the cloud host. When the instance nodes of the database cluster are all created in the same availability zone, in order to ensure the high availability of the instance, the present invention uses anti-affinity groups to create the database instance cloud host nodes on different computing nodes. When a computing node goes down, it will not affect all instances in the database cluster, ensuring the high availability of the database cluster.
[0084] In one embodiment, a method for creating a database cloud system is also provided, including:
[0085] (1) Create a virtual private cloud (VPC) and a virtual IP address network card. The virtual private cloud (VPC) is a tenant-isolated virtual private cloud network environment created on the cloud. Create two subnets in the virtual private cloud (VPC): a business network and a heartbeat network. The business network is used as the business network of the database instance, and the heartbeat network is used as the heartbeat network of the database instance. The virtual IP address network card refers to the network card used to bind to the business network card of the database instance, providing a highly available unified access entrance to the database cluster. There is at least one virtual IP address network card, which is allocated and created from the business network.
[0086] (2) Create anti-affinity cloud hosts as database instance nodes. Anti-affinity means that the cloud hosts in the anti-affinity group are scheduled to different host computing nodes. When some computing nodes fail, the database cluster can still be available. The cloud hosts are added to the two subnets of the above virtual private cloud VPC (i.e., the business network and the heartbeat network). That is, the created cloud hosts include two network cards, the business network and the heartbeat network, and associate the virtual IP address network card with the business network card of all cloud hosts. Figure 8 , which is a specific flow chart for creating an anti-affinity database instance node, specifically including: the cloud platform receives an operation request to initiate the creation of a cloud host instance by a specified anti-affinity group; the cloud platform filters out the host computing nodes where the existing cloud hosts are located based on the information in the anti-affinity cloud host group, and selects a new host node to create a cloud host instance; the cloud platform completes the creation of the cloud host and adds the cloud host information to the anti-affinity cloud host group.
[0087] (3) Create a shared cloud hard disk and mount it to the database instance node. A shared cloud hard disk means that it can be mounted on multiple cloud host instances, i.e., database instances, at the same time. It is used to store database data and can be accessed by multiple nodes at the same time. The cloud hard disk can be mounted to the database instance node in VBD or SCSI disk mode. The number of shared cloud hard disks can be evaluated based on the amount of business data, and shared cloud hard disks can be added to the cluster to achieve storage expansion.
[0088] (3) Create a multicast component and associate it with the virtual private cloud VPC, create a multicast group address and import the database instance network card as the receiver. Fig. 9 The following is a diagram of multicast: Multicast components refer to components in a database cluster that require database instances to communicate by sending multicast heartbeats over a heartbeat network. First, create a multicast domain and associate the VPC where the database cluster is located with the multicast component; then create multiple multicast components and add the network cards of the database instance nodes to the multicast components. This enables multicast communication between database instance nodes over a heartbeat network. Multiple multicast components can be created in one multicast component, and multiple database instance network cards can be added to each multicast group.
[0089] (4) Deploy and configure database instances. Deploying database instances means installing database software on the cloud host instance nodes and adding nodes and storage disks to the cluster. Database instances communicate with each other through a heartbeat network, and the database cluster provides access services to the outside world through the virtual VIP of the business network.
[0090] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0091] Based on the same inventive concept, the embodiment of the present application also provides a method for implementing the above-mentioned database cloud migration system. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in the embodiments of the one or more database cloud migration system provided below can refer to the limitations of the database cloud migration method above, and will not be repeated here.
[0092] In an exemplary embodiment, Fig.10 As shown, a method for cloud-based database migration is provided, which is applied to the controller provided in the above embodiment, including:
[0093] S201: Receive a database to be uploaded to the cloud sent by a client.
[0094] S202: Configure the business network, and transmit the database to be uploaded to the cloud to the cloud host based on the configured business network, so as to instruct the cloud host to perform database processing on the received database, obtain the corresponding database instance, and store the database instance to the cloud hard disk.
[0095] In an exemplary embodiment, Fig.11 As shown, a method for cloud migration of a database is also provided, which is applied to the controller provided in the above embodiment, including:
[0096] S203: Select a candidate cloud host from the multiple cloud hosts, and transmit the database to be uploaded to the cloud to the candidate cloud host based on the configured business network.
[0097] The database cloud migration method provided in the embodiment of the present application receives the database to be migrated to the cloud sent by the client, configures the business network, and transmits the database to be migrated to the cloud host based on the configured business network, so as to instruct the cloud host to perform database processing on the received database, obtain the corresponding database instance, and store the database instance to the cloud hard disk. The above method creates a database cloud migration system on the cloud, so that when the database is migrated to the cloud, it can be directly uploaded to the cloud host through the business network for database processing and storage, which solves the problem that the database cannot be transmitted to the cloud host for data storage and processing.
[0098] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0099] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0100] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0101] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A database cloud system, characterized in that: The cloud system includes: at least one cloud host, a controller, a service network and at least one cloud hard disk; the cloud host is connected to the cloud hard disk; the cloud host is connected to the client through the service network; The controller is configured to configure the business network upon receiving the database to be put on the cloud sent by the client, and transmit the database to be put on the cloud to the cloud host through the configured business network; The cloud host is used to perform database processing on the received database to obtain a corresponding database instance; The cloud hard disk is used to store the database instance sent by the cloud host.
2. The cloud system according to claim 1, characterized in that: The cloud system includes a plurality of cloud hosts, each of which is connected to the cloud hard disk; The controller is specifically used to screen out candidate cloud hosts from multiple cloud hosts when receiving the database to be put on the cloud sent by the client, and transmit the database to be put on the cloud to the candidate cloud hosts through the configured business network; the candidate cloud host refers to a cloud host that has not received the database to be put on the cloud.
3. The cloud-based system according to claim 2, characterized in that: The business network includes multiple virtual IP address network cards; The controller is further configured to, upon receiving the database to be uploaded to the cloud sent by the client, perform flow processing on the database to be uploaded to the cloud, obtain multiple cloud database flow data, and respectively distribute the multiple cloud database flow data to corresponding virtual IP address network cards; The virtual IP address network card is used to transmit the received cloud database streaming data to the candidate cloud host.
4. The cloud-based system according to claim 3, characterized in that: The multiple virtual IP address network cards are multiple types of virtual IP address network cards; The controller is further used to perform flow splitting processing on the database to be put on the cloud, and after obtaining multiple cloud database flow data, according to the type of the database to be put on the cloud, respectively distribute the multiple cloud database flow data to multiple virtual IP address network cards corresponding to the type.
5. The cloud migration system according to claim 1, characterized in that: The cloud system also includes: a heartbeat network; The cloud host is also used to transmit the received database to other cloud hosts for database processing via the heartbeat network when in a non-idle state.
6. The cloud-based system according to claim 5, characterized in that: The heartbeat network includes a multicast component; The cloud host is specifically used to utilize the heartbeat signal generated by the multicast component to load the database and transmit it to the other cloud hosts.
7. The cloud migration system according to claim 6, characterized in that: The multicast component includes a common multicast component and a special multicast component; The cloud host is specifically used to determine the type of the database, and when the type of the database is a common database, call the heartbeat signal generated by the common multicast component to transmit the database to the other cloud hosts; and when the type of the database is a special database, call the heartbeat signal generated by the special multicast component to transmit the database to the other cloud hosts.
8. The cloud migration system according to any one of claims 1 to 7, characterized in that: The cloud hard disk is connected to the cloud host in a virtual block storage device (VBD) or a small computer system interface (SCSI) mode.
9. A method for moving a database to the cloud, characterized in that: Applied to the controller according to any one of claims 1 to 8 above, the method comprises: Receive the database to be uploaded to the cloud sent by the client; The business network is configured, and based on the configured business network, the database to be uploaded to the cloud is transmitted to the cloud host, so as to instruct the cloud host to perform database processing on the received database, obtain a corresponding database instance, and store the database instance in a cloud hard disk.
10. The method according to claim 9, characterized in that The method further comprises: A candidate cloud host is selected from the plurality of cloud hosts, and the database to be uploaded to the cloud is transmitted to the candidate cloud host based on the configured service network.
Citation Information
Patent Citations
Database expansion method and database
CN104142943A
Virtual cloud terminal and virtual cloud terminal server
CN108632360A
Method and system for implementing database service
CN109062732A
Virtual machine creation method and device, electronic equipment and storage medium
CN114138405A
Service shunting method and device, and terminal equipment
CN117041171A