CN111629060A - Method, device, equipment and storage medium for creating virtual private cloud - Google Patents

Method, device, equipment and storage medium for creating virtual private cloud Download PDF

Info

Publication number
CN111629060A
CN111629060A CN202010469788.6A CN202010469788A CN111629060A CN 111629060 A CN111629060 A CN 111629060A CN 202010469788 A CN202010469788 A CN 202010469788A CN 111629060 A CN111629060 A CN 111629060A
Authority
CN
China
Prior art keywords
virtual private
private cloud
segment
range
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010469788.6A
Other languages
Chinese (zh)
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.)
Guangdong Inspur Smart Computing Technology Co Ltd
Original Assignee
Guangdong Inspur Big Data Research 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 Guangdong Inspur Big Data Research Co Ltd filed Critical Guangdong Inspur Big Data Research Co Ltd
Priority to CN202010469788.6A priority Critical patent/CN111629060A/en
Publication of CN111629060A publication Critical patent/CN111629060A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for creating a virtual private cloud, which comprises the following steps: when a target virtual private cloud is created by a standby data center, acquiring a target segment ID range of a virtual private cloud corresponding to the target virtual private cloud in a main data center; determining a magnitude value of the ID values contained by the target segment ID range; and searching the idle ID values with the quantity value from the data backup center by using the initial value to form a segment ID range of the target virtual private cloud. Therefore, in the application, when the virtual private cloud is created, the segment ID range of the target virtual private cloud is formed by searching the corresponding number of idle IDs according to the number of ID values of the segment ID range, so that the problem of error reporting caused by the repeated segment IDs can be avoided; the invention also discloses a device and equipment for creating the virtual private cloud and a computer readable storage medium, and the technical effects can be realized.

Description

Method, device, equipment and storage medium for creating virtual private cloud
Technical Field
The present invention relates to the field of data disaster recovery technology, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for creating a virtual private cloud.
Background
The cloud system is a set of cloud management platform, and the functions of the cloud system are to manage servers of a customer data center and virtualize resources of the servers, such as computation, network, storage and the like, so as to create a virtual machine for users to use. The cloud system is used as a unified cloud management platform, and can integrate various different virtualization products, such as VMWare, OpenStack and the like. Data centers in various industries currently use more OpenStack. Data centers in various industries face disaster tolerance problems, for example, a company has a machine room (data center) in A, B two cities, that is: the system comprises a main data center of a city A and a standby data center of a city B, which are managed by a set of OpenStack respectively, and the top layer uses a cloud system as a unified portal to manage the two sets of OpenStack. If earthquake, fire and the like happen to city A, important business and data destruction on the virtual machine of the data center A can be caused, and the loss to the company is disastrous. In the current industry scheme, disaster backup can be performed from a storage perspective, that is, two sets of data centers A, B store critical data in respective storage devices, and then the two storage devices are synchronized and backed up periodically, so that the critical data can be protected from being lost, but continuous use of services is not guaranteed well. Backup can also be carried out from the perspective of the virtual machine, namely, a backup virtual machine is established in a backup data center of the city B, and data is synchronized from a main data center of the city A regularly, so that data backup and service continuity can be ensured.
When the virtual machine is created in the backup data center, resources such as network and storage, which the virtual machine depends on, need to be created first, and the network creation is particularly complex. Wherein, the network belongs to a VPC (Virtual Private Cloud), the segment ID (Identity document) of the network must be within the segment ID range of the VPC, and the segment IDs of different VPCs in the same OpenStack center cannot overlap, and the segment IDs of the network cannot collide, so that it is difficult to create a VPC and a network for a backup data center, and if the segment ID of the VPC of the backup data center and the segment ID of a main data center are repeated, an error report problem may occur,
disclosure of Invention
The invention aims to provide a method, a device and equipment for creating a virtual private cloud and a computer readable storage medium, so as to avoid the problem of error report caused by repeated segment IDs when the virtual private cloud is created.
In order to achieve the above object, the present invention provides a method for creating a virtual private cloud, including:
when a target virtual private cloud is created by a standby data center, acquiring a target segment ID range of a virtual private cloud corresponding to the target virtual private cloud in a main data center;
determining a magnitude value of the ID values contained by the target segment ID range;
and searching the idle ID values with the quantity value from the data backup center by using the initial value to form a segment ID range of the target virtual private cloud.
Before searching the number of idle ID values from the backup data center by using the start value, the method further includes:
receiving an initial value setting instruction sent by a user;
and configuring a starting value in a database according to the starting value setting instruction.
Before searching the number of idle ID values from the backup data center by using the start value, the method further includes:
if the starting value is not configured in the database, determining the network type in the target virtual private cloud;
configuring a starting value in the database according to the network type.
Wherein the searching the quantity value of the idle ID values from the backup data center by using the start value includes:
determining a non-idle segment ID range of a created virtual private cloud in the backup data center;
and searching the number value of idle ID values except the non-idle segment ID range by taking the initial value as a segment ID initial value.
Before determining the quantity value of the ID values included in the target segment ID range, the method further includes:
creating a target virtual private cloud according to the target segment ID range;
and if notification information indicating segment ID collision is received, executing the step of determining the number value of the ID values included in the target segment ID range.
In order to achieve the above object, the present invention further provides a device for creating a virtual private cloud, including:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a target section ID range of a virtual private cloud corresponding to a target virtual private cloud in a main data center when the target virtual private cloud is created in a standby data center;
a determination module for determining a quantitative value of the ID values contained in the target segment ID range;
and the searching module is used for searching the number of idle ID values from the data backup center by using the initial value to form a segment ID range of the target virtual private cloud.
Wherein, this scheme still includes:
the instruction receiving module is used for receiving an initial value setting instruction sent by a user;
and the first starting value configuration module is used for configuring a starting value in a database according to the starting value setting instruction.
Wherein, this scheme still includes:
the type determining module is used for determining the network type in the target virtual private cloud when a starting value is not configured in the database;
and the second starting value configuration module is used for configuring the starting value in the database according to the network type.
In order to achieve the above object, the present invention also provides an electronic device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the virtual private cloud creation method when executing the computer program.
To achieve the above object, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above method for creating a virtual private cloud.
According to the above scheme, the method for creating the virtual private cloud provided by the embodiment of the invention comprises the following steps: when a target virtual private cloud is created by a standby data center, acquiring a target segment ID range of a virtual private cloud corresponding to the target virtual private cloud in a main data center; determining a magnitude value of the ID values contained by the target segment ID range; and searching the idle ID values with the quantity value from the data backup center by using the initial value to form a segment ID range of the target virtual private cloud. Therefore, in the application, when the virtual private cloud is created, the segment ID range of the target virtual private cloud consisting of idle IDs corresponding to the number value can be searched through the number value of the ID values of the segment ID range, and the problem of error reporting caused by repeated segment IDs can be avoided through the mode; the invention also discloses a device and equipment for creating the virtual private cloud and a computer readable storage medium, and the technical effects can be realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a disaster recovery process according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for creating a virtual private cloud according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for creating a virtual private cloud according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, 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.
The method mainly comprises the steps that the cloud management platform manages two sets of OpenStacks, the OpenStacks serve as a main data center and a standby data center, a user can select a plurality of virtual machines of the main data center in the cloud management platform and back up the virtual machines to the standby data center, so that backup at the level of the virtual machines is achieved, and after a backup relation is established, incremental synchronization can be kept in bottom storage all the time so as to guarantee that data and services of the main data center and the standby data center are consistent. Referring to fig. 1, a schematic diagram of a disaster recovery process disclosed in the present application is shown, where the disaster recovery process is specifically described:
the cloud management platform manages two sets of OpenStack, the two sets of OpenStack correspond to two data centers respectively, and the OpenStack is an existing function of the cloud. The two sets of OpenStack are used as a main data center and a standby data center respectively.
Creating virtual machine in main data center
Creating a virtual machine is also a basic function of the cloud management platform, but the logic and associated resources thereof are complex. Firstly, a virtual data center is created, then VPCs, networks, cloud hard disks and specifications required by virtual machines are created in the virtual data center, and then the virtual machines are created.
Thirdly, compiling service starting script
In order to enable the virtual machine of the data center to automatically start service after starting up, a script needs to be written in advance according to the service.
Fourthly, creating disaster backup pairs
The disaster recovery pair is a key concept of a cloud disaster recovery system. When disaster backup is established, a virtual machine to be protected by a main data center needs to be selected, a script is selected, then a backup data center is selected, and after a request is sent, a background establishes virtual machines with the same configuration on the backup data center according to the virtual machine of the main data center. The specific steps are relatively complex and comprise:
1. creating a virtual data center in a standby data center;
2. a VPC and a network used by a virtual machine are established in a standby data center, and the parameters of the VPC and the network are consistent with those of a main data center;
3. establishing a cloud hard disk in the standby data center, wherein the parameters of the cloud hard disk are consistent with those of the main data center;
4. establishing a virtual machine specification in the standby data center, wherein the size of the virtual machine specification is consistent with that of the main data center;
5. creating a virtual machine in the standby data center, wherein the configuration of the virtual machine is consistent with that of the main data center;
6. injecting the script into the virtual machine by using a cloudinit component so as to start and run conveniently;
7. a consistency group is created on OpenStack, and this function will pair the hard disks of the two virtual machines.
Five, open protection
The fourth step is that virtual machines with the same configuration are created in the standby data center and hard disk pairing is carried out, but data synchronization is not really started yet. And executing the protection starting operation, and sending an instruction to the bottom layer storage by the cloud sea to continuously back up the hard disks of the two virtual machines so as to ensure that the virtual machines of the standby data center are completely consistent with the main data center. Therefore, resource establishment, virtual machine establishment and data synchronization of the standby data center are completed.
It should be noted that, when the backup data center creates a network, in the cloud, the network belongs to a VPC, and one attribute of the VPC is a segment ID range, and a user needs to specify the segment ID value range when creating the VPC (for example 3100-; whereas the network belongs to the VPC, the segment ID of the network must be within the segment ID range of the VPC. In addition, in one OpenStack center, the segment IDs of VPCs cannot overlap, and the segment IDs of networks cannot collide. This limitation presents difficulties for backup data centers to create VPCs and networks. Such as: if the segment ID of the VPC with the segment ID of 3150-.
Therefore, the embodiment of the invention discloses a method, a device and equipment for creating a virtual private cloud and a computer readable storage medium, so as to avoid the problem of error report caused by repeated segment IDs when the virtual private cloud is created.
Referring to fig. 2, a schematic flow diagram of a method for creating a virtual private cloud according to an embodiment of the present invention is shown; the method specifically comprises the following steps:
s101, when the standby data center creates a target virtual private cloud, acquiring a target segment ID range of the target virtual private cloud corresponding to the target virtual private cloud in the main data center;
before determining the quantity value of the ID values contained in the target segment ID range, the method further includes: creating a target virtual private cloud according to the target segment ID range; and if the notification information indicating the segment ID collision is received, performing a step of determining the number value of the ID values included in the target segment ID range.
It should be noted that, in the present application, when a backup data center creates a target virtual private cloud VPC, the creation method described in the present application may be directly executed, or the backup data center may be created according to a target segment ID range of a primary data center, and if an error is reported at this time, "segment ID conflicts," a suitable segment ID range is automatically found by the creation method described in the present application, so as to solve the problem of error reporting during VPC creation,
s102, determining the quantity value of the ID value contained in the target section ID range;
it can be understood that, when automatically selecting an appropriate segment ID range in the present application, it is first required to determine how many ID values need to be found, so that the present application first needs to calculate how many values the segment ID range of the primary data center VPC contains, and n may represent the number value of the ID values contained in the target segment ID range; for example: if the target segment ID range is 3100 and 3200 for a total of 101 values, the number value n is 101.
S103, searching a quantity of idle ID values from the data backup center by using the initial value to form a segment ID range of the target virtual private cloud.
The method for searching the quantity value of the idle ID values from the data center by using the initial value comprises the following steps: determining a non-idle segment ID range of a created virtual private cloud in the backup data center; and searching the number value of idle ID values except the non-idle segment ID range by taking the initial value as a segment ID initial value.
It should be noted that, an already created virtual private cloud may exist in the backup data center, and in order to avoid that created segment ID ranges are not repeated, it is necessary to determine a non-idle segment ID range of the already created virtual private cloud, for example: if the non-idle segment ID range of the created vpn cloud is 3150-. Therefore, when determining the idle ID value, the present application needs to use the start value as the start value of the segment ID range, and search for n idle ID values except for the non-idle segment ID range, so as to form the segment ID range of the target virtual private cloud. In this way, the problem of error reporting due to segment ID duplication can be avoided.
Based on the above embodiment, in this embodiment, two configuration manners of the start value are also disclosed:
the first method is as follows: receiving an initial value setting instruction sent by a user; and configuring a starting value in the database according to the starting value setting instruction.
The second method comprises the following steps: if the initial value is not configured in the database, determining the network type in the target virtual private cloud; configuring a starting value in a database according to the network type.
It should be noted that the initial value in the present application is stored in the database, is an initial value for searching the ID range of the target virtual private cloud segment, and is empty by default, and the user can set the initial value according to the needs of the user. If the initial value is set in the database, finding n idle (unused by the network and the VPC) segment IDs from the set initial value, and combining the n idle (unused by the network and the VPC) segment IDs into a segment ID range format to be used as a segment ID range of the target virtual private cloud; if the initial value of the database is null, the application can customize an initial value according to the network type, for example: the initial value is 2300 for the type of VLAN (Virtual Local Area Network), 110001 for the type of VXLAN (Virtual Extensible Local Area Network), and then find n idle segment IDs as the segment ID range of the target Virtual private cloud. It can be seen that the segment ID range of the backup data center VPC found by the present application is absolutely usable and does not conflict, and a scenario where a user has a plan for the segment ID is solved by configuring an initial value in a database.
In the following, the creating apparatus provided by the embodiment of the present invention is introduced, and the creating apparatus described below and the creating method described above may be referred to each other.
Referring to fig. 3, a schematic structural diagram of a device for creating a virtual private cloud according to an embodiment of the present invention is provided; the device includes:
the acquiring module 100 is configured to acquire a target segment ID range of a virtual private cloud corresponding to a target virtual private cloud in a primary data center when the target virtual private cloud is created in a backup data center;
a determining module 200, configured to determine a quantity value of the ID values included in the target segment ID range;
the searching module 300 is configured to search the number of idle ID values from the backup data center by using a start value to form a segment ID range of the target virtual private cloud.
Wherein, this scheme still includes:
the instruction receiving module is used for receiving an initial value setting instruction sent by a user;
and the first starting value configuration module is used for configuring a starting value in a database according to the starting value setting instruction.
Wherein, this scheme still includes:
the type determining module is used for determining the network type in the target virtual private cloud when a starting value is not configured in the database;
and the second starting value configuration module is used for configuring the starting value in the database according to the network type.
Wherein the search module is specifically configured to: determining a non-idle segment ID range of a created virtual private cloud in the backup data center; and searching the number value of idle ID values except the non-idle segment ID range by taking the initial value as a segment ID initial value.
Wherein, this device still includes:
the creating module is used for creating a target virtual private cloud according to the target segment ID range;
the determining module is specifically configured to determine, when receiving notification information indicating segment ID collision, a quantitative value of an ID value included in the target segment ID range.
Fig. 4 is a schematic structural diagram of an electronic device disclosed in the embodiment of the present invention; the apparatus comprises:
a memory 11 for storing a computer program;
a processor 12, configured to implement the steps of the method for creating a virtual private cloud according to any of the above method embodiments when executing the computer program.
In this embodiment, the device may be a PC (Personal Computer), or may be a terminal device such as a smart phone, a tablet Computer, a palmtop Computer, or a portable Computer.
The device may include a memory 11, a processor 12, and a bus 13.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the device, for example a hard disk of the device. The memory 11 may also be an external storage device of the device in other embodiments, such as a plug-in hard disk provided on the device, a Smart Memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 11 may also include both an internal storage unit of the device and an external storage device. The memory 11 may be used not only to store application software installed in the device and various types of data such as program codes for performing the above-described creation method, but also to temporarily store data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or Processing data, such as program codes for executing the above-mentioned creating method.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Further, the device may further include a network interface 14, and the network interface 14 may optionally include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are generally used to establish a communication connection between the device and other electronic devices.
Optionally, the device may further comprise a user interface, which may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the device and for displaying a visualized user interface.
Fig. 4 shows only the device with the components 11-14, and it will be understood by those skilled in the art that the structure shown in fig. 4 does not constitute a limitation of the device, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
The embodiment of the invention also discloses a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for creating the virtual private cloud in any method embodiment are realized.
Wherein the storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In conclusion, the cloud platform manages two sets of OpenStack data centers as the main and standby data centers, and by the concept of disaster recovery, the virtual machine which the user wants to protect is subjected to full disaster recovery backup and data is continuously synchronized, so that the virtual machine level backup required by the user is achieved, and uninterrupted service can be realized when a disaster occurs. For the problem that the VPC is established by the standby center and the segment ID conflict frequently occurs in the network, a method for configuring the initial value through the database and automatically searching the idle segment ID according to the initial value is provided, so that the segment ID of the standby center is ensured not to conflict, and the situation that a user plans the segment ID is flexibly solved by configuring the database.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for creating a virtual private cloud, comprising:
when a target virtual private cloud is created by a standby data center, acquiring a target segment ID range of a virtual private cloud corresponding to the target virtual private cloud in a main data center;
determining a magnitude value of the ID values contained by the target segment ID range;
and searching the idle ID values with the quantity value from the data backup center by using the initial value to form a segment ID range of the target virtual private cloud.
2. The method of creating as claimed in claim 1, wherein before searching the quantity of free ID values from the backup data center using the start value, further comprising:
receiving an initial value setting instruction sent by a user;
and configuring a starting value in a database according to the starting value setting instruction.
3. The method of creating as claimed in claim 1, wherein before searching the quantity of free ID values from the backup data center using the start value, further comprising:
if the starting value is not configured in the database, determining the network type in the target virtual private cloud;
configuring a starting value in the database according to the network type.
4. The creating method according to any one of claim 1, wherein the searching the quantity of idle ID values from the backup data center using the start value comprises:
determining a non-idle segment ID range of a created virtual private cloud in the backup data center;
and searching the number value of idle ID values except the non-idle segment ID range by taking the initial value as a segment ID initial value.
5. The creating method according to any one of claims 1 to 4, wherein before determining the number value of the ID values included in the target segment ID range, the creating method further comprises:
creating a target virtual private cloud according to the target segment ID range;
and if notification information indicating segment ID collision is received, executing the step of determining the number value of the ID values included in the target segment ID range.
6. An apparatus for creating a virtual private cloud, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a target section ID range of a virtual private cloud corresponding to a target virtual private cloud in a main data center when the target virtual private cloud is created in a standby data center;
a determination module for determining a quantitative value of the ID values contained in the target segment ID range;
and the searching module is used for searching the number of idle ID values from the data backup center by using the initial value to form a segment ID range of the target virtual private cloud.
7. The creation apparatus according to claim 6, characterized by further comprising:
the instruction receiving module is used for receiving an initial value setting instruction sent by a user;
and the first starting value configuration module is used for configuring a starting value in a database according to the starting value setting instruction.
8. The creation apparatus according to claim 6, characterized by further comprising:
the type determining module is used for determining the network type in the target virtual private cloud when a starting value is not configured in the database;
and the second starting value configuration module is used for configuring the starting value in the database according to the network type.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of creating a virtual private cloud according to any one of claims 1 to 5 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, carries out the steps of the method of creating a virtual private cloud according to any one of claims 1 to 5.
CN202010469788.6A 2020-05-28 2020-05-28 Method, device, equipment and storage medium for creating virtual private cloud Pending CN111629060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010469788.6A CN111629060A (en) 2020-05-28 2020-05-28 Method, device, equipment and storage medium for creating virtual private cloud

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010469788.6A CN111629060A (en) 2020-05-28 2020-05-28 Method, device, equipment and storage medium for creating virtual private cloud

Publications (1)

Publication Number Publication Date
CN111629060A true CN111629060A (en) 2020-09-04

Family

ID=72260095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010469788.6A Pending CN111629060A (en) 2020-05-28 2020-05-28 Method, device, equipment and storage medium for creating virtual private cloud

Country Status (1)

Country Link
CN (1) CN111629060A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101695043A (en) * 2009-10-15 2010-04-14 中兴通讯股份有限公司 Method for multiplexing hot backup port and network system
US20100142410A1 (en) * 2008-12-09 2010-06-10 Olivier Huynh Van System and method for providing virtual private networks
CN110515763A (en) * 2019-07-26 2019-11-29 浪潮电子信息产业股份有限公司 A kind of method and system of the virtual machine two-node cluster hot backup based on OpenStack
CN110532457A (en) * 2019-07-30 2019-12-03 济南浪潮数据技术有限公司 Method and system for acquiring network segment ID

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100142410A1 (en) * 2008-12-09 2010-06-10 Olivier Huynh Van System and method for providing virtual private networks
CN101695043A (en) * 2009-10-15 2010-04-14 中兴通讯股份有限公司 Method for multiplexing hot backup port and network system
CN110515763A (en) * 2019-07-26 2019-11-29 浪潮电子信息产业股份有限公司 A kind of method and system of the virtual machine two-node cluster hot backup based on OpenStack
CN110532457A (en) * 2019-07-30 2019-12-03 济南浪潮数据技术有限公司 Method and system for acquiring network segment ID

Similar Documents

Publication Publication Date Title
CN108388599B (en) Electronic device, data migration and calling method and storage medium
CN111800462B (en) Micro service instance processing method, micro service instance processing device, computer equipment and storage medium
CN112104723B (en) Multi-cluster data processing system and method
CN112068936B (en) Workflow management platform and workflow management system
CN108445788B (en) Hotel scene control method and related device
CN112612853A (en) Data processing method and device based on database cluster and electronic equipment
CN110266505A (en) A kind of method and apparatus managing session group
CN109600430A (en) A kind of data managing method, system and electronic equipment and storage medium
CN112596951A (en) NAS data disaster tolerance method, device, equipment and storage medium
EP3422186A1 (en) Method, device and system for preventing memory data loss
CN112000911A (en) Page management method and device, electronic equipment and storage medium
CN113094125A (en) Business process processing method, device, server and storage medium
WO2017024519A1 (en) Startup method of smart terminal system, device and smart terminal
CN109491962A (en) A kind of file directory tree management method and relevant apparatus
CN114070847B (en) Method, device, equipment and storage medium for limiting current of server
CN111722888B (en) Operation execution method, device, equipment and readable storage medium
CN110290172B (en) Container application cloning method and device, computer equipment and storage medium
CN110908644B (en) Configuration method and device of state node, computer equipment and storage medium
CN110879701B (en) Workflow visual configuration method, server, system and medium
CN109739857B (en) Data distributed writing method and device under high concurrency, terminal and storage medium
CN111629060A (en) Method, device, equipment and storage medium for creating virtual private cloud
CN111221817B (en) Service information data storage method, device, computer equipment and storage medium
CN111221560B (en) Resource management method and device and electronic equipment
CN109977659A (en) Weblogic automatically creates method, system, device and the storage medium of local user
CN110798347A (en) Service state detection method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200904