CN109582439B - DCN deployment method, device, equipment and computer readable storage medium - Google Patents

DCN deployment method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN109582439B
CN109582439B CN201811421289.9A CN201811421289A CN109582439B CN 109582439 B CN109582439 B CN 109582439B CN 201811421289 A CN201811421289 A CN 201811421289A CN 109582439 B CN109582439 B CN 109582439B
Authority
CN
China
Prior art keywords
host
deployment
dcn
address
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811421289.9A
Other languages
Chinese (zh)
Other versions
CN109582439A (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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201811421289.9A priority Critical patent/CN109582439B/en
Publication of CN109582439A publication Critical patent/CN109582439A/en
Application granted granted Critical
Publication of CN109582439B publication Critical patent/CN109582439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/4557Distribution of virtual machine instances; Migration and load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a DCN deployment method, which comprises the following steps: when a DCN deployment request is monitored, acquiring DCN template data according to a DCN template ID in the DCN deployment request, and generating a host deployment table according to the DCN template data; allocating an IP address of a server for deploying the host according to the host deployment table, generating an IP address allocation table, and generating a virtual host in a corresponding server according to the IP address allocation table; generating a corresponding DCN deployment scheme according to the generated IP address of the virtual host, the IP address of a server for deploying the physical host in the IP address allocation table and an application instance information table in DCN template data; and executing corresponding application deployment operation according to the DCN deployment scheme. The invention also discloses a DCN deployment device, equipment and a computer readable storage medium. The invention can reduce the deployment time and cost of the DCN and improve the deployment efficiency of the DCN.

Description

DCN deployment method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a DCN deployment method, apparatus, device, and computer-readable storage medium.
Background
With the rapid development of internet technology, bank enterprises realize electronic management of customer service according to the internet, and the specific implementation mode is that a service system is used as a dimension, different service systems are split and deployed on different data center nodes, and each application system adopts a centralized deployment scheme and is responsible for processing all customers under the service. However, since the service systems carried by each node are different, the logical architecture and the physical architecture of each node often have differences, which is not convenient for implementation of schemes such as daily operation and maintenance, time or problem response, disaster tolerance, and the like.
In order to solve the above problems, a distributed architecture capable of being expanded horizontally and rapidly is proposed, which uses DCNs (Data Center nodes) as management units to provide services for clients, and as the number of clients increases, new DCNs need to be deployed continuously to serve more clients. However, at present, the DCN deployment mode mainly depends on manual deployment of management personnel, and the DCN deployment includes server shelving, virtual host launching, configuration modification, deployment application and the like, which requires a long time and a high cost. Therefore, how to reduce the deployment time and cost of the DCN and improve the deployment efficiency of the DCN is a problem to be solved urgently at present.
Disclosure of Invention
The invention mainly aims to provide a DCN deployment method, a DCN deployment device, DCN deployment equipment and a computer readable storage medium, aiming at reducing the DCN deployment time and cost and improving the DCN deployment efficiency.
In order to achieve the above object, the present invention provides a DCN deployment method, including the following steps:
when a DCN deployment request is monitored, acquiring DCN template data according to a DCN template ID in the DCN deployment request, and generating a host deployment table according to the DCN template data;
according to the host deployment table, allocating an IP address of a server for deploying the host, generating an IP address allocation table, and according to the IP address allocation table, generating a virtual host in a corresponding server;
generating a corresponding DCN deployment scheme according to the generated IP address of the virtual host, the IP address of a server for deploying a physical host in the IP address allocation table and an application instance information table in the DCN template data;
and executing corresponding application deployment operation according to the DCN deployment scheme.
Further, the step of generating a host deployment table according to the DCN template data includes:
acquiring a host information table and an application example information table from the DCN template data, and generating a physical host deployment table according to physical host information in the host information table;
generating a virtual host deployment table according to the virtual host information in the host information table and the application instance information table;
summarizing the physical host deployment table and the virtual host deployment table to generate a host deployment table.
Further, the step of generating a virtual host deployment table according to the virtual host information in the host information table and the application instance information table includes:
acquiring virtual host information from the host information table, and calculating server resources required by virtual host deployment according to host specifications in the virtual host information;
according to the server resources and the preset server specification, an initial virtual host deployment table with a blank host ID list item is created;
and according to the host specification in the virtual host information and the application instance information table, registering a corresponding host ID under the host ID list item of each server in the initial virtual host deployment table to generate a virtual host deployment table.
Further, according to the host specification in the virtual host information and the application instance information table, registering a corresponding host ID under a host ID list item of each server in the initial virtual host deployment table to generate a virtual host deployment table includes:
reading the host ID and the host specification of each virtual host from the virtual host information, and acquiring the instance name corresponding to the host ID of each virtual host from the application instance information table;
according to the host specification of each virtual host, the instance name and the server specification in the initial virtual host deployment table, registering corresponding host ID under the host ID list item of each server in the initial virtual host deployment table to generate a virtual host deployment table, wherein the instance names corresponding to the host ID registered under the same server host ID list item in the virtual host deployment table are different.
Further, the step of generating a corresponding DCN deployment scheme according to the generated IP address of the virtual host, the IP address of the server for deploying the physical host in the IP address allocation table, and the application instance information table in the DCN template data includes:
acquiring the IP address of the generated virtual host, and acquiring the IP address of a server for deploying the physical host from the IP address allocation table;
creating a mapping relation table between the host ID and the IP address according to the generated IP address of each virtual host and the IP address of the server for deploying the physical host;
and acquiring an application instance information table from the DCN template data, and generating a corresponding DCN deployment scheme according to the application instance information table and the mapping relation table.
In addition, to achieve the above object, the present invention further provides a DCN deployment apparatus, including:
the DCN deployment request processing module is used for processing a DCN deployment request sent by a DCN deployment module according to a DCN template ID in the DCN deployment request;
the table generation module is used for generating a host deployment table according to the DCN template data;
the table generating module is further configured to allocate an IP address of a server for deploying the host according to the host deployment table, and generate an IP address allocation table;
the virtual host generating module is used for generating a virtual host in a corresponding server according to the IP address distribution table;
the scheme generation module is used for generating a corresponding DCN deployment scheme according to the generated IP address of the virtual host, the IP address of the server for deploying the physical host in the IP address allocation table and the application instance information table in the DCN template data;
and the DCN deployment module is used for executing corresponding application deployment operation according to the DCN deployment scheme.
In addition, to achieve the above object, the present invention further provides a DCN deployment device, where the DCN deployment device includes: a memory, a processor, and a DCN deployment program stored on the memory and executable on the processor, the DCN deployment program implementing the steps of the DCN deployment method as described above when executed by the processor.
The present invention also provides a computer-readable storage medium having stored thereon a DCN deployment program, which when executed by a processor implements the steps of the DCN deployment method as described above.
The invention provides a DCN deployment method, a device, equipment and a computer readable storage medium, when a DCN deployment request is monitored, DCN template data is obtained according to a DCN template ID in the DCN deployment request, a host deployment table is generated according to the DCN template data, then an IP address of a server for deploying a host is allocated according to the host deployment table, an IP address allocation table is generated, a virtual host is generated in a corresponding server according to the IP address allocation table, finally a corresponding DCN deployment scheme is generated according to the generated IP address of the virtual host, the IP address of the server for deploying a physical host in the IP address allocation table and an application instance information table in the DCN template data, and corresponding application deployment operation is executed according to the DCN deployment scheme.
Drawings
Fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a DCN deployment method according to a first embodiment of the present invention;
fig. 3 is a functional module diagram of a DCN deployment apparatus according to a first embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The DCN deployment equipment in the embodiment of the invention can be a PC, and can also be a mobile terminal equipment with a display function, such as a smart phone, a tablet personal computer and a portable computer.
As shown in fig. 1, the DCN deployment apparatus may include: a processor 1001, e.g. a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the DCN deployment device architecture shown in fig. 1 does not constitute a limitation of a DCN deployment device, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a DCN deployment program.
In the DCN deployment device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the DCN deployment program stored in the memory 1005 and perform the following steps:
when a DCN deployment request is monitored, acquiring DCN template data according to a DCN template ID in the DCN deployment request, and generating a host deployment table according to the DCN template data;
according to the host deployment table, allocating an IP address of a server for deploying the host, generating an IP address allocation table, and according to the IP address allocation table, generating a virtual host in a corresponding server;
generating a corresponding DCN deployment scheme according to the generated IP address of the virtual host, the IP address of a server for deploying the physical host in the IP address allocation table and an application instance information table in the DCN template data;
and executing corresponding application deployment operation according to the DCN deployment scheme.
Further, the processor 1001 may be configured to call the DCN deployment program stored in the memory 1005, and further perform the following steps:
acquiring a host information table and an application example information table from the DCN template data, and generating a physical host deployment table according to physical host information in the host information table;
generating a virtual host deployment table according to the virtual host information in the host information table and the application instance information table;
summarizing the physical host deployment table and the virtual host deployment table to generate a host deployment table.
Further, the processor 1001 may be configured to call the DCN deployment program stored in the memory 1005, and further perform the following steps:
acquiring virtual host information from the host information table, and calculating server resources required by virtual host deployment according to host specifications in the virtual host information;
according to the server resources and the preset server specification, an initial virtual host deployment table with a host ID list item being blank is created;
and according to the host specification in the virtual host information and the application instance information table, registering corresponding host IDs under host ID list items of all servers in the initial virtual host deployment table to generate a virtual host deployment table.
Further, the processor 1001 may be configured to call the DCN deployment program stored in the memory 1005, and further perform the following steps:
reading the host ID and the host specification of each virtual host from the virtual host information, and acquiring the instance name corresponding to the host ID of each virtual host from the application instance information table;
and registering corresponding host IDs under host ID list items of all servers in the initial virtual host deployment table according to the host specification, the instance name and the server specification in the initial virtual host deployment table to generate a virtual host deployment table, wherein the instance names corresponding to the host IDs registered under the same server host ID list item in the virtual host deployment table are different.
Further, the processor 1001 may be configured to call the DCN deployment program stored in the memory 1005, and further perform the following steps:
acquiring the IP address of the generated virtual host, and acquiring the IP address of a server for deploying the physical host from the IP address allocation table;
creating a mapping relation table between the host ID and the IP address according to the generated IP address of each virtual host and the IP address of the server for deploying the physical host;
and acquiring an application instance information table from the DCN template data, and generating a corresponding DCN deployment scheme according to the application instance information table and the mapping relation table.
The specific embodiment of the DCN deployment device of the present invention is substantially the same as each specific embodiment of the DCN deployment method described below, and details thereof are not described herein.
The invention provides a DCN deployment method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a DCN deployment method according to a first embodiment of the present invention.
In this embodiment, the DCN deployment method includes:
step S101, when a DCN deployment request is monitored, obtaining DCN template data according to a DCN template ID in the DCN deployment request, and generating a host deployment table according to the DCN template data;
in this embodiment, the DCN deployment method is applied to a DCN deployment device, when a DCN (Data Center Node) needs to be deployed, a manager may trigger a DCN deployment instruction through the DCN deployment device, when the DCN deployment device monitors the triggered DCN deployment instruction, the DCN deployment device queries and obtains a DCN template ID of each DCN template from a configuration management Center, and displays a DCN template selection interface including a DCN template ID option, and the manager may select a DCN template ID of a required DCN template through the DCN template selection interface, when the DCN deployment device receives the DCN template ID selected by the manager, displays a DCN name input interface, and then, when receiving a DCN name input by the manager based on the DCN name input interface, generates a DCN deployment request including the DCN name and the DCN template ID. The DCN template ID is used to uniquely identify the DCN template, and the configuration management center stores DCN template data corresponding to the DCN template.
When the DCN deployment device monitors a DCN deployment request, the DCN template data is obtained according to the DCN template ID in the DCN deployment request, namely the DCN template ID is obtained from the DCN deployment request, and the DCN template data corresponding to the DCN template ID is obtained from the configuration management center. The DCN template data includes, but is not limited to, a basic information table, a host information table, and an application instance information table. It should be noted that, the specific representation manners of the basic information table, the host information table, and the application example information table may be set by those skilled in the art based on actual situations, and this embodiment is not particularly limited thereto. Examples of the basic information table, the host information table, and the application example information table are given below.
The following table is an example of a basic information table:
template ID Name of template Stencil type DCN resource scheduling mode Application domain resource scheduling mode Use of
The basic information table stores information such as a template ID, a template name, a template type, a DCN resource scheduling mode (exclusive or shared), an application domain resource scheduling mode (exclusive or shared), and a template use.
The following table is a sample host information table:
host ID The template ID Belonging application domain Specification of host Host type
The host information table stores information such as a host ID, an associated template ID, an associated application domain, a host specification (CPU, memory, and disk size), and a host type (virtual host or physical host).
The following table is a sample of an application example information table:
recording ID Example name Affiliated host ID The application
The host information table stores information such as record ID, instance name, affiliated host ID, affiliated application and the like.
After acquiring DCN template data, the DCN deployment equipment generates a host deployment table according to the DCN template data, specifically, acquires a host information table and an application instance information table from the DCN template data, and generates a physical host deployment table according to physical host information in the host information table, namely, data of which the host type is a physical host in the host information table is counted, and each physical host is allocated with a server meeting host specifications; and then generating a virtual host deployment table according to the virtual host information in the host information table and the application instance information table, and summarizing the physical host deployment table and the virtual host deployment table to generate a host deployment table.
Wherein, the virtual host deployment table is generated by creating a blank virtual host deployment table, registering a server in the blank virtual host deployment table to obtain a virtual host deployment table containing a server and having a blank host ID list item, then sequentially determining the current virtual host according to the size sequence of the host ID, obtaining the host ID and the host specification of the current virtual host from the virtual host information, checking whether the remaining available resources of the server in the virtual host deployment table meet the host specification of the current virtual host, if the remaining available resources of the server in the virtual host deployment table meet the host specification of the current virtual host, further obtaining an instance name corresponding to the host ID of the current virtual host from the application instance information table, and judging whether an instance name corresponding to the registered host ID under the host ID list item of the server is the same as an instance name corresponding to the host ID of the current virtual host, if the instance name corresponding to the registered host ID under the host ID list item of the server is different from the instance name corresponding to the host ID of the current virtual host, registering the host ID of the current virtual host under the host ID list item of the server, if the instance name corresponding to the registered host ID under the host ID list item of the server is the same as the instance name corresponding to the host ID of the current virtual host, adding a server record in the virtual host deployment table, registering the host ID of the current virtual host under the newly added host ID list item of the server, and repeatedly executing the above steps until the host IDs of all the virtual hosts are registered in the virtual host deployment table, thereby generating a final virtual host deployment table, and the instance names corresponding to the host IDs registered under the same server host ID list item in the final virtual host deployment table are different.
For example, the host information table in a certain DCN template data is as follows:
host ID The template ID Belonging application domain Specification of host Host type
PM00001 123 Deposit area 16-core 24G memory 1T disk Physical host
PM00002 123 Deposit area 16-core 24G memory 1T disk Physical host
VM00001 123 Loan field 300G disk of 4-core 8G memory Virtual host
VM00002 123 Loan field 300G disk of 4-core 8G memory Virtual host
VM00003 123 Loan field 4-core 8G memory 300G disk Virtual host
VM00004 123 Loan field 4-core 8G memory 300G disk Virtual host
VM00005 123 Loan field 4-core 8G memory 300G disk Virtual host
VM00006 123 Loan field 300G disk of 4-core 8G memory Virtual host
VM00007 123 Loan field 4-core 8G memory 300G disk Virtual host
VM00008 123 Loan field 4-core 8G memory 300G disk Virtual host
VM00009 123 Loan field 4-core 8G memory 300G disk Virtual host
Wherein, 16 cores 24G memory 1T disk means that the CPU is 16 cores, the memory is 24G, the disk is 1T, i.e. 1024G, it can be known from the host information table that the physical host information is data corresponding to the host IDs stored in the host information table as PM00001 and PM00002, and the virtual host information is data corresponding to the hosts IDVM00001, VM00002, VM00003, VM00004, VM00005, VM00006, VM00007, VM00008, and VM00009 stored in the host information table.
Through the physical host information in the host information table, a physical host deployment table is generated as follows:
server Specification of server Host ID list
server1 16-core 24G memory 1T disk PM00001
server2 16-core 24G memory 1T disk PM00002
The application instance information table in the DCN template data is as follows:
Figure BDA0001879793340000091
Figure BDA0001879793340000101
as can be seen from the host information table and the application instance information table, based on the virtual host information in the host information table and the application instance information table, a virtual host deployment table is generated as follows:
server Specification of server Host ID list
server3 16-core 24G memory 1T disk VM00001、VM00004、VM00007
server4 16-core 24G memory 1T disk VM00002、VM00005、VM00008
server5 16-core 24G memory 1T disk VM00003、VM00006、VM00009
Wherein, by inquiring the application example information table, the corresponding example names of the host ID VM00001, VM00004 and VM00007 are [ B, C and D ], [ E, F and G ], and [ H, I and J ], respectively, and the example names are different; the host ID is VM00002, VM00005 and VM00008, the corresponding instance names are [ A, B, C and D ], [ E, F and G ] and [ H, I and J ], respectively, and the instance names are different; the host IDs VM00003, VM00006, and VM00009 correspond to instance names [ B, C and D ], [ F, G and H ], and [ H ], respectively, and the instance names are different.
By summarizing the physical host deployment table and the virtual host deployment table, the obtained host deployment table is as follows:
server Server specification Host ID list
server1 16-core 24G memory 1T disk PM00001
server2 16-core 24G memory 1T disk PM00002
server3 16-core 24G memory 1T disk VM00001、VM00004、VM00007
server4 16-core 24G memory 1T disk VM00002、VM00005、VM00008
server5 16-core 24G memory 1T disk VM00003、VM00006、VM00009
Step S102, distributing IP addresses of servers for deploying the hosts according to the host deployment table, generating an IP address distribution table, and generating virtual hosts in corresponding servers according to the IP address distribution table;
in this embodiment, after generating the host deployment table, the DCN deployment device allocates IP addresses of servers for deploying the host according to the host deployment table, and generates an IP address allocation table, that is, counts the number of servers in the host deployment table, calls a server management interface, selects an IP address of a corresponding server from an IP resource pool of the server, allocates a corresponding IP address to each host ID based on the selected IP address and the host deployment table, and generates the IP address allocation table. For example, as can be seen from the host deployment table, if there are 5 servers required for deploying the host, the generated IP address allocation table is as follows:
IP address Server specification Host ID list
IP address 1 16-core 24G memory 1T disk PM00001
IP address 2 16-core 24G memory 1T disk PM00002
IP address 3 16-core 24G memory 1T disk VM00001、VM00004、VM00007
IP address 4 16-core 24G memory 1T disk VM00002、VM00005、VM00008
IP address 5 16-core 24G memory 1T disk VM00003、VM00006、VM00009
After generating the IP address allocation table, the DCN deployment device generates a virtual host in the corresponding server according to the IP address allocation table, that is, obtains an IP address of a server for deploying the virtual host from the IP address allocation table, and generates the virtual host in the corresponding server through the IP address, specifically, performs virtualization operation on the server to which the IP address belongs, converts the server into a virtual parent machine, generates the corresponding virtual host in the virtual parent machine, and allocates the corresponding IP address to each virtual host.
For example, it can be known from the IP address allocation table that a server that needs to perform a virtualization operation is a server corresponding to IP addresses 3, 4, and 5, the server corresponding to IP addresses 3, 4, and 5 is virtualized and converted into a virtual host 1, a virtual host 2, and a virtual host 3, and three virtual hosts with host IDs of VM00001, VM00004, and VM00007 and a host specification of 4-core 8G memory 300G disk are generated in the virtual host 1, and corresponding IP addresses are allocated to the virtual hosts VM00001, VM00004, and VM 00007; generating three virtual hosts with host IDs of VM00002, VM00005 and VM00008 and host specifications of a 4-core 8G memory 300G disk in the virtual host 2, and allocating corresponding IP addresses to the virtual hosts of VM00002, VM00005 and VM 00008; three virtual hosts with host IDs of VM00003, VM00006 and VM00009 and host specifications of 4-core 8G memory 300G disk are generated in the virtual parent machine 3, and corresponding IP addresses are allocated to the virtual hosts VM00003, VM00006 and VM 00009. The following table is a mapping relationship between the IP address of the virtual host and the host ID:
Figure BDA0001879793340000121
step S103, generating a corresponding DCN deployment scheme according to the generated IP address of the virtual host, the IP address of a server for deploying the physical host in the IP address allocation table and an application instance information table in the DCN template data;
in this embodiment, after the virtual host is generated in the corresponding server, the corresponding DCN deployment scheme is generated according to the generated IP address of the virtual host, the IP address of the server for deploying the physical host in the IP address allocation table, and the application instance information table in the DCN template data. Specifically, the generated IP addresses of the virtual hosts are acquired, the IP addresses of the servers for deploying the physical hosts are acquired from the IP address allocation table, then a mapping relation table between the host IDs and the IP addresses is created according to the generated IP addresses of the virtual hosts and the IP addresses of the servers for deploying the physical hosts, an application instance information table is recently acquired from the DCN template data, and a corresponding DCN deployment scheme is generated according to the application instance information table and the mapping relation table.
For example, if the IP addresses of the virtual hosts are IP address 6, IP address 7, IP address 8, IP address 9, IP address 10, IP address 11, IP address 12, IP address 13, and IP address 14, and the IP addresses of the servers deploying the physical hosts are IP address 1 and IP address 2, respectively, the mapping relationship table between the host IDs and the IP addresses is created as follows:
Figure BDA0001879793340000131
through the mapping relationship table and the application instance information table, a mapping relationship table of the application instance and the IP address can be obtained, and the mapping relationship table of the application instance and the IP address is as follows:
Figure BDA0001879793340000132
the mapping relation table between the application instance and the IP address is a DCN deployment scheme.
And step S104, executing corresponding application deployment operation according to the DCN deployment scheme.
In this embodiment, after generating the DCN deployment scheme, the DCN deployment device executes a corresponding application deployment operation according to the DCN deployment scheme, specifically, reads a DCN name from the DCN deployment request, calls a configuration management center interface, registers the DCN deployment scheme according to the DCN name, then calls a DCN deployment interface, acquires a corresponding DCN deployment scheme according to the DCN name in the DCN deployment request, executes a corresponding application deployment operation according to the DCN deployment scheme, that is, acquires a mapping relationship table between an application instance and an IP address from the DCN deployment scheme, and then deploys a corresponding application instance in a corresponding physical host or a corresponding virtual host according to the IP address in the mapping relationship table.
In this embodiment, when a DCN deployment request is monitored, according to a DCN template ID in the DCN deployment request, DCN template data is obtained, and according to the DCN template data, a host deployment table is generated, then according to the host deployment table, an IP address of a server for deploying a host is allocated, an IP address allocation table is generated, and according to the IP address allocation table, a virtual host is generated in a corresponding server, and finally according to the generated IP address of the virtual host, the IP address of the server for deploying a physical host in the IP address allocation table, and an application instance information table in the DCN template data, a corresponding DCN deployment scheme is generated, and according to the DCN deployment scheme, a corresponding application deployment operation is executed.
Further, based on the foregoing first implementation, a second embodiment of the DCN deployment method of the present invention is provided, and is different from the foregoing embodiments in that the specific generation manner of the virtual host deployment table may further be that the DCN deployment device acquires virtual host information from the host information table, and calculates a server resource required for deploying the virtual host according to a host specification in the virtual host information, that is, acquires a host specification of each virtual host from the virtual host information, and accumulates the host specifications of each virtual host to obtain the server resource required for deploying the virtual host, for example, the virtual host information is shown in the following table:
host ID The template ID Belonging application domain Specification of host Host type
VM00001 123 Loan field 300G disk of 4-core 8G memory Virtual host
VM00002 123 Loan field 4-core 8G memory 300G disk Virtual host
VM00003 123 Loan field 4-core 8G memory 300G disk Virtual host
VM00004 123 Loan field 300G disk of 4-core 8G memory Virtual host
VM00005 123 Loan field 300G disk of 4-core 8G memory Virtual host
VM00006 123 Loan field 4-core 8G memory 300G disk Virtual host
VM00007 123 Loan field 300G disk of 4-core 8G memory Virtual host
VM00008 123 Loan field 300G disk of 4-core 8G memory Virtual host
VM00009 123 Loan field 4-core 8G memory 300G disk Virtual host
The server resources required for deploying the virtual host, that is, the 4-core 8G memory 300G disk multiplied by 9 is a 36-core 72G memory 2700G disk, can be calculated through the virtual host information shown in the table.
After calculating the server resources required for deploying the virtual host, the DCN deployment device creates an initial virtual host deployment table with a host ID list item being blank according to the server resources and the preset server specification, that is, the server resources are divided by the preset server specification to obtain the number of servers required for deploying the virtual host, and creates a blank virtual host deployment table, and then registers a corresponding number of servers in the blank virtual host deployment table to create the initial virtual host deployment table with the host ID list item being blank. It should be noted that the preset server specification may be set by a person skilled in the art based on actual situations, and the present embodiment is not limited to this.
For example, if the preset server specification is 16-core 24G memory 1T disk and the required server resource is 36-core 72G memory 2700G disk, the number of servers required for deploying the virtual host is 3 through calculation, that is, the total server resource is 48-core 72G memory 3T disk, and the created initial virtual host deployment table with a blank host ID list item is as follows:
server Specification of server Host ID list
server3 16-core 24G memory 1T disk
server4 16-core 24G memory 1T disk
server5 16-core 24G memory 1T disk
After the initial virtual host deployment table is created, the DCN deployment device registers a corresponding host ID under a host ID list item of each server in the initial virtual host deployment table according to the host specification and the application instance information table in the virtual host information, so as to generate the virtual host deployment table. Specifically, the host ID and the host specification of each virtual host are read from the virtual host information, an instance name corresponding to the host ID of each virtual host is obtained from the application instance information table, and the corresponding host ID is registered under the host ID list item of each server in the initial virtual host deployment table according to the host specification of each virtual host, the instance name, and the server specification in the initial virtual host deployment table, so as to generate a virtual host deployment table, wherein the instance names corresponding to the host IDs registered under the same server host ID list item in the virtual host deployment table are different.
In specific implementation, the number of virtual hosts that can be deployed by each server may be determined according to the server specification and the host specification, and the host IDs of the virtual hosts are divided into host ID groups of corresponding numbers according to the number of virtual hosts that can be deployed by each server and the instance names corresponding to the host IDs of the virtual hosts, so as to form a host ID group set, where the instance names corresponding to the host IDs in the same host ID group are different, and then a group of host IDs is registered under the host ID list item of each server in the initial virtual host deployment table.
For example, the generated virtual host deployment table is shown as the following table:
Figure BDA0001879793340000151
Figure BDA0001879793340000161
in this embodiment, the present invention can simultaneously register each host ID in the virtual host deployment table, thereby realizing fast generation in the virtual host deployment table, and further improving the deployment efficiency of the DCN.
The invention also provides a DCN deployment device.
Referring to fig. 3, fig. 3 is a functional module schematic diagram of a first embodiment of a DCN deployment apparatus according to the present invention.
In this embodiment, the DCN deployment apparatus includes:
an obtaining module 101, configured to, when a DCN deployment request is monitored, obtain DCN template data according to a DCN template ID in the DCN deployment request;
the table generating module 102 is configured to generate a host deployment table according to the DCN template data;
the table generating module 102 is further configured to allocate an IP address of a server for deploying a host according to the host deployment table, and generate an IP address allocation table;
a virtual host generation module 103, configured to generate a virtual host in a corresponding server according to the IP address allocation table;
a scheme generating module 104, configured to generate a corresponding DCN deployment scheme according to the generated IP address of the virtual host, the IP address of the server in the IP address allocation table, where the server is used to deploy the physical host, and the application instance information table in the DCN template data;
the DCN deployment module 105 is configured to execute a corresponding application deployment operation according to the DCN deployment scheme.
Further, the table generating module 102 is further configured to:
acquiring a host information table and an application example information table from the DCN template data, and generating a physical host deployment table according to physical host information in the host information table;
generating a virtual host deployment table according to the virtual host information in the host information table and the application instance information table;
summarizing the physical host deployment table and the virtual host deployment table to generate a host deployment table.
Further, the table generating module 102 is further configured to:
the step of generating a virtual host deployment table according to the virtual host information in the host information table and the application instance information table comprises:
acquiring virtual host information from the host information table, and calculating server resources required by virtual host deployment according to host specifications in the virtual host information;
according to the server resources and the preset server specification, an initial virtual host deployment table with a host ID list item being blank is created;
and according to the host specification in the virtual host information and the application instance information table, registering a corresponding host ID under the host ID list item of each server in the initial virtual host deployment table to generate a virtual host deployment table.
Further, the table generating module 102 is further configured to:
reading the host ID and the host specification of each virtual host from the virtual host information, and acquiring the instance name corresponding to the host ID of each virtual host from the application instance information table;
and registering corresponding host IDs under host ID list items of all servers in the initial virtual host deployment table according to the host specification, the instance name and the server specification in the initial virtual host deployment table to generate a virtual host deployment table, wherein the instance names corresponding to the host IDs registered under the same server host ID list item in the virtual host deployment table are different.
Further, the scheme generation module 104 is further configured to:
acquiring the IP address of the generated virtual host, and acquiring the IP address of a server for deploying the physical host from the IP address allocation table;
according to the generated IP address of each virtual host and the IP address of the server for deploying the physical host, a mapping relation table between the ID of the host and the IP address is established;
and acquiring an application instance information table from the DCN template data, and generating a corresponding DCN deployment scheme according to the application instance information table and the mapping relation table.
The specific embodiment of the DCN deployment apparatus is basically the same as each embodiment of the DCN deployment method, and is not described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a DCN deployment program is stored on the computer-readable storage medium, and when executed by a processor, the DCN deployment program performs the following steps:
when a DCN deployment request is monitored, acquiring DCN template data according to a DCN template ID in the DCN deployment request, and generating a host deployment table according to the DCN template data;
according to the host deployment table, allocating an IP address of a server for deploying the host, generating an IP address allocation table, and according to the IP address allocation table, generating a virtual host in a corresponding server;
generating a corresponding DCN deployment scheme according to the generated IP address of the virtual host, the IP address of a server for deploying the physical host in the IP address allocation table and an application instance information table in the DCN template data;
and executing corresponding application deployment operation according to the DCN deployment scheme.
Further, when executed by the processor, the DCN deployment program further performs the following steps:
acquiring a host information table and an application example information table from the DCN template data, and generating a physical host deployment table according to physical host information in the host information table;
generating a virtual host deployment table according to the virtual host information in the host information table and the application instance information table;
summarizing the physical host deployment table and the virtual host deployment table to generate a host deployment table.
Further, when executed by the processor, the DCN deployment program further performs the following steps:
acquiring virtual host information from the host information table, and calculating server resources required by virtual host deployment according to host specifications in the virtual host information;
according to the server resources and the preset server specification, an initial virtual host deployment table with a host ID list item being blank is created;
and according to the host specification in the virtual host information and the application instance information table, registering a corresponding host ID under the host ID list item of each server in the initial virtual host deployment table to generate a virtual host deployment table.
Further, when executed by the processor, the DCN deployment program further performs the following steps:
reading the host ID and the host specification of each virtual host from the virtual host information, and acquiring the instance name corresponding to the host ID of each virtual host from the application instance information table;
according to the host specification of each virtual host, the instance name and the server specification in the initial virtual host deployment table, registering corresponding host ID under the host ID list item of each server in the initial virtual host deployment table to generate a virtual host deployment table, wherein the instance names corresponding to the host ID registered under the same server host ID list item in the virtual host deployment table are different.
Further, when executed by the processor, the DCN deployment program further performs the following steps:
acquiring the IP address of the generated virtual host, and acquiring the IP address of a server for deploying the physical host from the IP address allocation table;
creating a mapping relation table between the host ID and the IP address according to the generated IP address of each virtual host and the IP address of the server for deploying the physical host;
and acquiring an application instance information table from the DCN template data, and generating a corresponding DCN deployment scheme according to the application instance information table and the mapping relation table.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the DCN deployment method described above, and details are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. 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 (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (7)

1. A DCN deployment method for a data center node is characterized by comprising the following steps:
when a DCN deployment request is monitored, acquiring DCN template data according to a DCN template ID in the DCN deployment request, and generating a host deployment table according to the DCN template data;
according to the host deployment table, allocating an IP address of a server for deploying the host, generating an IP address allocation table, and according to the IP address allocation table, generating a virtual host in a corresponding server;
generating a corresponding DCN deployment scheme according to the generated IP address of the virtual host, the IP address of a server for deploying the physical host in the IP address allocation table and an application instance information table in the DCN template data;
executing corresponding application deployment operation according to the DCN deployment scheme;
the step of generating a host deployment table according to the DCN template data includes:
acquiring a host information table and an application example information table from the DCN template data, and generating a physical host deployment table according to physical host information in the host information table;
generating a virtual host deployment table according to the virtual host information in the host information table and the application instance information table;
summarizing the physical host deployment table and the virtual host deployment table to generate a host deployment table;
the step of generating a virtual host deployment table according to the virtual host information in the host information table and the application instance information table includes:
acquiring virtual host information from the host information table, and calculating server resources required by virtual host deployment according to host specifications in the virtual host information;
according to the server resources and the preset server specification, an initial virtual host deployment table with a host ID list item being blank is created;
according to the host specification in the virtual host information and the application instance information table, registering corresponding host IDs under host ID list items of all servers in the initial virtual host deployment table to generate a virtual host deployment table;
the step of generating a corresponding DCN deployment scheme according to the generated IP address of the virtual host, the IP address of the server for deploying the physical host in the IP address allocation table and the application instance information table in the DCN template data includes:
acquiring the IP address of the generated virtual host, and acquiring the IP address of a server for deploying the physical host from the IP address allocation table;
creating a mapping relation table between the host ID and the IP address according to the generated IP address of each virtual host and the IP address of the server for deploying the physical host;
and acquiring an application instance information table from the DCN template data, and generating a corresponding DCN deployment scheme according to the application instance information table and the mapping relation table.
2. The DCN deployment method of claim 1, wherein the step of registering a corresponding host ID under a host ID list item of each server in the initial vm deployment table according to the host specification in the vm information and the application instance information table to generate the vm deployment table comprises:
reading the host ID and the host specification of each virtual host from the virtual host information, and acquiring the instance name corresponding to the host ID of each virtual host from the application instance information table;
according to the host specification of each virtual host, the instance name and the server specification in the initial virtual host deployment table, registering corresponding host ID under the host ID list item of each server in the initial virtual host deployment table to generate a virtual host deployment table, wherein the instance names corresponding to the host ID registered under the same server host ID list item in the virtual host deployment table are different.
3. The DCN deployment method of claim 1, wherein the step of performing the corresponding application deployment operation according to the DCN deployment scenario comprises:
acquiring a mapping relation table of the application instance and the IP address from the DCN deployment scheme;
and deploying the corresponding application instance in the corresponding physical host or virtual host according to the IP address in the mapping relation table.
4. The DCN deployment method of claim 1, wherein the step of generating the virtual host in the corresponding server according to the IP address allocation table comprises:
acquiring an IP address of a server for deploying the virtual host from the IP address allocation table;
and generating the virtual host in the corresponding server according to the IP address.
5. A DCN deployment device, comprising:
the DCN deployment request processing module is used for processing a DCN deployment request sent by a DCN deployment module according to a DCN template ID in the DCN deployment request;
the table generating module is used for generating a host deployment table according to the DCN template data;
the table generating module is further configured to obtain a host information table and an application instance information table from the DCN template data, and generate a physical host deployment table according to physical host information in the host information table; generating a virtual host deployment table according to the virtual host information in the host information table and the application instance information table; summarizing the physical host deployment table and the virtual host deployment table to generate a host deployment table;
the table generating module is further configured to allocate an IP address of a server for deploying the host according to the host deployment table, and generate an IP address allocation table;
the table generating module is further configured to obtain virtual host information from the host information table, and calculate server resources required for deploying virtual hosts according to host specifications in the virtual host information; according to the server resources and the preset server specification, an initial virtual host deployment table with a host ID list item being blank is created; according to the host specification in the virtual host information and the application instance information table, registering corresponding host IDs under host ID list items of all servers in the initial virtual host deployment table to generate a virtual host deployment table;
the virtual host generating module is used for generating a virtual host in a corresponding server according to the IP address distribution table;
the scheme generation module is used for generating a corresponding DCN deployment scheme according to the generated IP address of the virtual host, the IP address of the server for deploying the physical host in the IP address allocation table and the application instance information table in the DCN template data;
the scheme generation module is further configured to acquire the generated IP address of the virtual host, and acquire the IP address of the server for deploying the physical host from the IP address allocation table; creating a mapping relation table between the host ID and the IP address according to the generated IP address of each virtual host and the IP address of the server for deploying the physical host; acquiring an application instance information table from the DCN template data, and generating a corresponding DCN deployment scheme according to the application instance information table and the mapping relation table;
and the DCN deployment module is used for executing corresponding application deployment operation according to the DCN deployment scheme.
6. A DCN deployment device, comprising: a memory, a processor, and a DCN deployment program stored on the memory and executable on the processor, the DCN deployment program, when executed by the processor, implementing the steps of the DCN deployment method as recited in any of claims 1 to 4.
7. A computer-readable storage medium, having stored thereon a DCN deployment program which, when executed by a processor, implements the steps of the DCN deployment method of any one of claims 1 to 4.
CN201811421289.9A 2018-11-26 2018-11-26 DCN deployment method, device, equipment and computer readable storage medium Active CN109582439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811421289.9A CN109582439B (en) 2018-11-26 2018-11-26 DCN deployment method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811421289.9A CN109582439B (en) 2018-11-26 2018-11-26 DCN deployment method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109582439A CN109582439A (en) 2019-04-05
CN109582439B true CN109582439B (en) 2023-04-07

Family

ID=65924644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811421289.9A Active CN109582439B (en) 2018-11-26 2018-11-26 DCN deployment method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109582439B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187895B (en) * 2019-05-24 2023-01-24 深圳前海微众银行股份有限公司 Operating system deployment method, device, equipment and computer-readable storage medium
CN113726916B (en) * 2020-05-25 2023-02-03 华为技术有限公司 Method for configuring IP address of network equipment and related equipment
CN112104534B (en) * 2020-09-22 2022-05-27 厦门狄耐克智能科技股份有限公司 Deployment method of intelligent household system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553741A (en) * 2015-12-28 2016-05-04 江苏省电力公司信息通信分公司 Automatic deployment method for application system based on cloud computing
CN105893115A (en) * 2016-04-05 2016-08-24 上海携程商务有限公司 Method and system for differential deployment of virtual machine
CN108390956A (en) * 2018-05-29 2018-08-10 郑州云海信息技术有限公司 A kind of method and system for virtual machine configuration internet protocol address
CN108572860A (en) * 2018-04-19 2018-09-25 国云科技股份有限公司 A kind of cloud platform application cluster automatic deployment method
CN108809722A (en) * 2018-06-13 2018-11-13 郑州云海信息技术有限公司 A kind of method, apparatus and storage medium of deployment Kubernetes clusters

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060245354A1 (en) * 2005-04-28 2006-11-02 International Business Machines Corporation Method and apparatus for deploying and instantiating multiple instances of applications in automated data centers using application deployment template
US20110004676A1 (en) * 2008-02-04 2011-01-06 Masahiro Kawato Virtual appliance deploying system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553741A (en) * 2015-12-28 2016-05-04 江苏省电力公司信息通信分公司 Automatic deployment method for application system based on cloud computing
CN105893115A (en) * 2016-04-05 2016-08-24 上海携程商务有限公司 Method and system for differential deployment of virtual machine
CN108572860A (en) * 2018-04-19 2018-09-25 国云科技股份有限公司 A kind of cloud platform application cluster automatic deployment method
CN108390956A (en) * 2018-05-29 2018-08-10 郑州云海信息技术有限公司 A kind of method and system for virtual machine configuration internet protocol address
CN108809722A (en) * 2018-06-13 2018-11-13 郑州云海信息技术有限公司 A kind of method, apparatus and storage medium of deployment Kubernetes clusters

Also Published As

Publication number Publication date
CN109582439A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN108399101B (en) Method, device and system for scheduling resources
US20110166952A1 (en) Facilitating dynamic construction of clouds
CN109582439B (en) DCN deployment method, device, equipment and computer readable storage medium
CN111666147B (en) Resource scheduling method, equipment, system and central server
CN107426323A (en) One kind is based on distributed resource service and Visualized Monitoring System and method
CN111163186B (en) ID generation method, device, equipment and storage medium
CN112087401A (en) Method and device for realizing service quality in distributed storage
CN110069265B (en) Service cluster upgrading method and device and storage medium
CN114615340A (en) Request processing method and device, computer equipment and storage device
CN112035244A (en) Deployment of virtual node clusters in a multi-tenant environment
US20130238673A1 (en) Information processing apparatus, image file creation method, and storage medium
CN112269628A (en) Resource scheduling system and method
CN111736761A (en) Data distribution method, device, storage system and computer readable storage medium
CN107679871B (en) List management method, device, system and computer readable storage medium
CN114745280B (en) Asset information management method, device, equipment and readable storage medium
CN116436968A (en) Service grid communication method, system, device and storage medium
CN111796934B (en) Task issuing method and device, storage medium and electronic equipment
CN115328611A (en) Virtual machine management method, device, server and readable storage medium
CN114461401A (en) Resource scheduling method and device, electronic equipment and storage medium
CN114385318A (en) Parallel testing method, device and equipment based on kubernets
CN114328650A (en) Database resource management method and device, computer equipment and storage medium
CN109492376B (en) Device access authority control method and device and bastion machine
CN106408269A (en) Signature processing method, signature center system and signature system
CN112380040A (en) Message processing method and device, electronic equipment and storage medium
CN112860398A (en) Data processing method, device, equipment and medium based on rule engine

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