[go: up one dir, main page]

CN103747107B - A kind of compatible cloud operating platform and its implementation - Google Patents

A kind of compatible cloud operating platform and its implementation Download PDF

Info

Publication number
CN103747107B
CN103747107B CN201410040366.1A CN201410040366A CN103747107B CN 103747107 B CN103747107 B CN 103747107B CN 201410040366 A CN201410040366 A CN 201410040366A CN 103747107 B CN103747107 B CN 103747107B
Authority
CN
China
Prior art keywords
server
virtual machine
information
management server
proxy server
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
CN201410040366.1A
Other languages
Chinese (zh)
Other versions
CN103747107A (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.)
Xi'an Radio-Ofcam Information Technology Co Ltd
Original Assignee
Xi'an Radio-Ofcam Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Radio-Ofcam Information Technology Co Ltd filed Critical Xi'an Radio-Ofcam Information Technology Co Ltd
Priority to CN201410040366.1A priority Critical patent/CN103747107B/en
Publication of CN103747107A publication Critical patent/CN103747107A/en
Application granted granted Critical
Publication of CN103747107B publication Critical patent/CN103747107B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种兼容式云操作平台及其实现方法,兼容式云操作平台包括同用户终端相连接的管理服务器集群,所述的管理服务器集群通过网络线缆经由局域网或者互联网同管理信息存储服务器集群以及代理服务器集群相连接,所述的存储服务器集群包括有两个以上的含有代理服务器集群的信息和用户终端的信息的管理信息存储服务器组成,并结合其实现方法可有效避免现有技术中的管理模块不能共存、不能满足高可用性、不支持虚拟机应用一键部署、不支持虚拟机资源监控和虚拟机应用监控以及不支持虚拟机与物理机同时管理的缺陷。

The invention discloses a compatible cloud operation platform and its implementation method. The compatible cloud operation platform includes a management server cluster connected to a user terminal, and the management server cluster stores management information through a network cable via a local area network or the Internet. The server cluster and the proxy server cluster are connected, and the storage server cluster includes more than two management information storage servers containing the information of the proxy server cluster and the information of the user terminal, and combined with its implementation method, it can effectively avoid the prior art The management modules in the system cannot coexist, cannot meet high availability, do not support one-click deployment of virtual machine applications, do not support virtual machine resource monitoring and virtual machine application monitoring, and do not support simultaneous management of virtual machines and physical machines.

Description

一种兼容式云操作平台及其实现方法A Compatible Cloud Operation Platform and Its Implementation Method

技术领域technical field

本发明属于云计算基础设施即服务和虚拟化技术领域,具体涉及一种兼容式云操作平台及其实现方法。The invention belongs to the technical field of cloud computing infrastructure as a service and virtualization, and in particular relates to a compatible cloud operation platform and an implementation method thereof.

背景技术Background technique

虚拟化技术能将计算机的硬件资源(包括CPU、RAM、硬盘和网络控制器)虚拟化成资源池,以创建功能齐全、可像“真实”计算机一样运行其自身操作系统和应用的虚拟机,每个虚拟机都包含一套完整的系统,因而不会有潜在冲突。虚拟化的工作原理是,直接在计算机硬件或主机操作平台上面插入一个精简的功能化模块,该功能化模块包含一个以动态和透明方式分配硬件资源的虚拟机监视器,不同的操作平台可以同时运行在单台物理机上,彼此之间共享硬件资源。由于是将整台计算机(包括CPU、内存、操作系统和网络设备)封装起来,因此虚拟机可与所有标准的x86操作平台、应用模块和设备驱动器完全兼容。可以同时在单台计算机上安全运行多个操作平台和应用模块,每个操作平台和应用模块都可以在需要时使用其所需的资源。Virtualization technology can virtualize computer hardware resources (including CPU, RAM, hard disk and network controller) into a resource pool to create a fully functional virtual machine that can run its own operating system and applications like a "real" computer. Each virtual machine contains a complete system, so there is no potential conflict. The working principle of virtualization is to directly insert a streamlined functional module on the computer hardware or host operating platform, which includes a virtual machine monitor that dynamically and transparently allocates hardware resources. Different operating platforms can simultaneously Run on a single physical machine and share hardware resources with each other. Because the whole computer (including CPU, memory, operating system and network equipment) is encapsulated, the virtual machine is fully compatible with all standard x86 operating platforms, application modules and device drivers. Multiple operating platforms and application modules can be safely run on a single computer at the same time, and each operating platform and application module can use the resources it needs when needed.

而针对现有的虚拟机技术的云操作平台大都实现了物理机的虚拟化和云管理,但也普遍存在有以下缺点:Most of the cloud operating platforms for the existing virtual machine technology have realized the virtualization and cloud management of physical machines, but they also generally have the following disadvantages:

1.大多支持单一的虚拟化管理模块或者多种虚拟化管理模块不能共存;1. Most of them support a single virtualization management module or multiple virtualization management modules cannot coexist;

2.单一物理节点管理或者多物理节点管理不能满足高可用性;2. Single physical node management or multi-physical node management cannot meet high availability;

3.不支持虚拟机应用一键部署;3. One-click deployment of virtual machine applications is not supported;

4.不支持虚拟机资源监控和虚拟机应用监控;4. Does not support virtual machine resource monitoring and virtual machine application monitoring;

5.不支持虚拟机与物理机同时管理。5. Simultaneous management of virtual machines and physical machines is not supported.

发明内容Contents of the invention

本发明目的在于提供一种兼容式云操作平台及其实现方法,解决现有技术中的管理模块不能共存、不能满足高可用性、不支持虚拟机应用一键部署、不支持虚拟机资源监控和虚拟机应用监控以及不支持虚拟机与物理机同时管理的缺陷。The purpose of the present invention is to provide a compatible cloud operation platform and its implementation method, which solves the problem that the management modules in the prior art cannot coexist, cannot meet high availability, do not support one-click deployment of virtual machine applications, do not support virtual machine resource monitoring and virtualization Machine application monitoring and defects that do not support simultaneous management of virtual machines and physical machines.

为达到上述目的,本发明采用如下技术方案:To achieve the above object, the present invention adopts the following technical solutions:

一种兼容式云操作平台,包括同用户终端相连接的管理服务器集群,所述的管理服务器集群通过网络线缆经由局域网或者互联网同管理信息存储服务器集群以及代理服务器集群相连接;所述的存储服务器集群包括有两个以上含有代理服务器集群信息和用户终端信息的管理信息存储服务器组成;所述代理服务器集群包括一个以上的根据地域信息划分的数据中心,每一个数据中心包括一个以上的根据配置信息划分的数据节点,每一个数据节点包括一个以上的根据用途信息划分的代理服务器组,每一个服务器组包括一个以上的代理服务器;代理服务器集群还同数据存储服务器组相连接;所述数据存储服务器组包括主存储服务器组和辅存储服务器组,主存储服务器组包含有一个以上的主存储服务器,辅存储服务器组包含有一个以上的辅存储服务器;所述的管理服务器集群即为兼容式云操作平台的管理节点,代理服务器集群即为兼容式云操作平台的代理节点或者计算节点。A compatible cloud operation platform, including a management server cluster connected to a user terminal, the management server cluster is connected to a management information storage server cluster and a proxy server cluster through a network cable via a local area network or the Internet; the storage The server cluster includes more than two management information storage servers containing proxy server cluster information and user terminal information; the proxy server cluster includes more than one data center divided according to regional information, and each data center includes more than one data center according to configuration Data nodes divided by information, each data node includes more than one proxy server group divided according to usage information, each server group includes more than one proxy server; the proxy server cluster is also connected with the data storage server group; the data storage The server group includes a main storage server group and an auxiliary storage server group, the main storage server group includes more than one main storage server, and the auxiliary storage server group includes more than one auxiliary storage server; the management server cluster is a compatible cloud The management node of the operating platform and the proxy server cluster are the proxy nodes or computing nodes of the compatible cloud operating platform.

一种兼容式云操作平台的实现方法,包括以下步骤:A method for realizing a compatible cloud operating platform, comprising the following steps:

步骤1:首先启动兼容式云操作平台,同兼容式云操作平台相连接的用户终端通过向管理服务器集群中指定的管理服务器发送带有注册信息的注册指令,管理服务器集群中指定的管理服务器进行该注册指令的处理,针对注册指令的处理包括将注册信息发送到存储服务器集群内指定的管理信息存储服务器上,管理信息存储服务器将该注册信息存储在其内部设定的数据存储空间;Step 1: First start the compatible cloud operating platform, and the user terminal connected to the compatible cloud operating platform sends a registration instruction with registration information to the designated management server in the management server cluster, and the designated management server in the management server cluster performs The processing of the registration instruction, the processing of the registration instruction includes sending the registration information to the designated management information storage server in the storage server cluster, and the management information storage server stores the registration information in its internally set data storage space;

步骤2:兼容式云操作平台相连接的代理服务器集群中的所有代理服务器向管理服务器集群中指定的管理服务器发送带有配置信息的注册指令,管理服务器集群中指定的管理服务器进行该注册指令的处理,针对注册指令的处理包括将配置信息发送到存储服务器集群内指定的管理信息存储服务器上,管理信息存储服务器将该配置信息存储在其内部设定的数据存储空间,使其与指定的管理服务器建立永久的网络连接;Step 2: All proxy servers in the proxy server cluster connected to the compatible cloud operating platform send a registration command with configuration information to the management server specified in the management server cluster, and the management server specified in the management server cluster performs the registration command. Processing, the processing for the registration instruction includes sending the configuration information to the specified management information storage server in the storage server cluster, and the management information storage server stores the configuration information in its internally set data storage space, making it consistent with the specified management information The server establishes a permanent network connection;

步骤3:用户终端向指定的管理服务器发送虚拟机模板或虚拟机镜像上传指令,指定的管理服务器同辅存储服务器组内指定的辅存储服务器建立网络连接,指定的管理服务器将用户要上传的虚拟机模板或虚拟机镜像通过网络连接上传到辅存储服务器组内指定的辅存储服务器中;Step 3: The user terminal sends a virtual machine template or virtual machine image upload command to the designated management server, and the designated management server establishes a network connection with the designated auxiliary storage server in the auxiliary storage server group, and the designated management server uploads the virtual The machine template or virtual machine image is uploaded to the designated auxiliary storage server in the auxiliary storage server group through the network connection;

步骤4:用户终端向指定的管理服务器发送建立虚拟机的资源申请指令,指定的管理服务器解析该建立虚拟机的资源申请指令得到用户终端的用户信息和资源申请信息,指定的管理服务器根据解析得到的资源申请信息,封装一个查询指令,指定的管理服务器将该查询指令发送给存储服务器集群内指定的管理信息存储服务器,指定的管理信息存储服务器执行该查询指令,执行该查询指令的结果是向指定的管理服务器返回能够满足建立虚拟机的资源申请指令要求的代理服务器集群中的任意一个代理服务器作为选定的代理服务器,指定的管理服务器同该选定的代理服务器建立网络连接;Step 4: The user terminal sends a resource application instruction for establishing a virtual machine to the designated management server, and the designated management server analyzes the resource application instruction for establishing a virtual machine to obtain user information and resource application information of the user terminal, and the designated management server obtains according to the analysis Resource application information, encapsulate a query command, the designated management server sends the query command to the designated management information storage server in the storage server cluster, the designated management information storage server executes the query command, and the result of executing the query command is sent to The designated management server returns any proxy server in the proxy server cluster that can meet the requirements of the resource application instruction for establishing the virtual machine as the selected proxy server, and the designated management server establishes a network connection with the selected proxy server;

然后指定的管理服务器将该建立虚拟机的资源申请指令发送给选定的代理服务器中执行,即选定的代理服务器分配自身的CPU、内存、网络资源以及主存储服务器组中指定的主存储器的存储资源以满足建立虚拟机的资源申请指令的需求,然后根据指定的辅存储服务器中存储的虚拟机模板或虚拟机镜像,由此完成了虚拟机的创建,并将虚拟机的创建的结果信息发送回指定的管理服务器,指定的管理服务器将该虚拟机的创建的结果信息存入指定的管理信息存储服务器,并将该虚拟机的创建的结果信息传送给用户终端。Then the designated management server sends the resource application instruction for establishing the virtual machine to the selected proxy server for execution, that is, the selected proxy server allocates its own CPU, memory, network resources and the designated main memory in the main storage server group. Store resources to meet the needs of resource application instructions for creating virtual machines, and then complete the creation of virtual machines according to the virtual machine template or virtual machine image stored in the specified auxiliary storage server, and send the result information of the virtual machine The information is sent back to the designated management server, and the designated management server stores the creation result information of the virtual machine into the designated management information storage server, and transmits the creation result information of the virtual machine to the user terminal.

所述步骤3中,用户终端向指定的管理服务器发送虚拟机模板或虚拟机镜像上传指令,指定的管理服务器解析该虚拟机模板或虚拟机镜像上传指令得到用户终端的用户信息,然后将该用户信息封装成为查询指令,接着将该查询指令向存储服务器集群内指定的管理信息存储服务器发送,所述的指定的管理信息存储服务器在接收到了查询指令后执行该指令得到查询结果,并将查询结果返回指定的管理服务器,指定的管理服务器接收到查询结果后,将该查询结果同用户终端的用户信息进行比较,判断是否具有操作权限;如果有操作权限,则指定的管理服务器同辅存储服务器组内指定的辅存储服务器建立网络连接,指定的管理服务器将用户要上传的虚拟机模板或虚拟机镜像通过网络连接上传到辅存储服务器组内指定的辅存储服务器中;如果没有操作权限,指定的管理服务器向用户终端发送无操作权限信息。In the step 3, the user terminal sends a virtual machine template or a virtual machine image upload instruction to the designated management server, and the designated management server parses the virtual machine template or virtual machine image upload instruction to obtain the user information of the user terminal, and then the user The information is encapsulated into a query command, and then the query command is sent to the designated management information storage server in the storage server cluster, and the designated management information storage server executes the command after receiving the query command to obtain the query result, and sends the query result Return to the specified management server. After receiving the query result, the specified management server compares the query result with the user information of the user terminal to determine whether it has the operation authority; The specified secondary storage server establishes a network connection, and the specified management server uploads the virtual machine template or virtual machine image to be uploaded by the user to the specified secondary storage server in the secondary storage server group through the network connection; if there is no operation authority, the specified The management server sends the information that there is no operation authority to the user terminal.

所述步骤4中,用户终端向指定的管理服务器发送建立虚拟机的资源申请指令,指定的管理服务器解析该建立虚拟机的资源申请指令得到用户终端的用户信息和资源申请信息,然后将该用户信息封装成为查询指令,接着将该查询指令向存储服务器集群内指定的管理信息存储服务器发送,所述的指定的管理信息存储服务器在接收到了查询指令后执行该指令得到查询结果,并将查询结果返回指定的管理服务器,指定的管理服务器接收到查询结果后,将该查询结果同用户终端的用户信息进行比较,判断是否具有操作权限;如果有操作权限,则指定的管理服务器根据解析得到的资源申请信息,继续执行后面操作;如果没有操作权限,指定的管理服务器向用户终端发送无操作权限信息。In the step 4, the user terminal sends a resource application instruction for establishing a virtual machine to the designated management server, and the designated management server analyzes the resource application instruction for establishing a virtual machine to obtain user information and resource application information of the user terminal, and then the user The information is encapsulated into a query command, and then the query command is sent to the designated management information storage server in the storage server cluster, and the designated management information storage server executes the command after receiving the query command to obtain the query result, and sends the query result Return to the specified management server. After receiving the query result, the specified management server compares the query result with the user information of the user terminal to determine whether it has the operation authority; Apply for information, and continue to perform subsequent operations; if there is no operation authority, the designated management server sends no operation authority information to the user terminal.

在步骤4中从代理服务器集群中选择一个代理服务器作为选定的代理服务器的过程是通过以下几种调度策略中的一种或多种实现的,具体包括以下几种调度策略:The process of selecting a proxy server from the proxy server cluster as the selected proxy server in step 4 is realized by one or more of the following scheduling strategies, specifically including the following scheduling strategies:

(1)主机标签优先策略(1) Host label priority policy

在创建虚拟机的时根据用户选择的相应计算方案,计算方案里规定了虚拟机的内存和CPU的大小,但是如果该计算方案里设置有主机标签,则规定用该计算方案创建的虚拟机需要运行在与该计算方案的标签一致的代理服务器上,如果该代理服务器资源不足,则向用户返回资源不足的响应,不能成功创建虚拟机;When creating a virtual machine, according to the corresponding computing plan selected by the user, the computing plan specifies the memory and CPU size of the virtual machine, but if the computing plan has a host label, it stipulates that the virtual machine created with this computing plan needs Running on a proxy server with the same label as the computing solution, if the proxy server has insufficient resources, it will return a response of insufficient resources to the user, and the virtual machine cannot be successfully created;

(2)资源利用最大化策略(2) Resource utilization maximization strategy

设X为某个代理服务器的可用内存(单位:M),Y为某个代理服务器的可用CPU(单位:MHz),Me为某个代理服务器的总内存(单位:M),m为某个代理服务器的内存利用率,n为某个代理服务器的CPU利用率,coreN为某个代理服务器的核心数,speedN为某个代理服务器的主频(单位:MHz),则:Let X be the available memory of a proxy server (unit: M), Y be the available CPU of a proxy server (unit: MHz), Me be the total memory of a proxy server (unit: M), and m be a The memory utilization rate of proxy server, n is the CPU utilization rate of a certain proxy server, coreN is the core number of a certain proxy server, and speedN is the main frequency (unit: MHz) of a certain proxy server, then:

X=Me*(1-m);X=Me*(1-m);

Y=coreN*speedN*(1-n);Y=coreN*speedN*(1-n);

设计算方案中要求的内存大小为UMe,CPU的核心数为coreU,CPU主频为speedU,则选择代理服务器的要求是:The memory size required in the calculation plan is UMe, the number of CPU cores is coreU, and the main frequency of the CPU is speedU. The requirements for selecting a proxy server are:

coreU<coreN;coreU<coreN;

coreU*speedU<Y;coreU*speedU<Y;

UMe<X;UMe<X;

根据以上三个要求查询代理服务器集群后返回一个结果集,如果该结果集小于1,则返回给用户终端资源不足无法创建虚拟机的响应;如果结果集等于1则将创建虚拟机的请求转发给该代理服务器去完成虚拟机的创建;如果结果集大于1则要根据资源利用率最大化策略进行代理服务器的选择,即按照m+n的大小对结果集中的代理服务器进行排序,选择m+n值最大的代理服务器作为创建虚拟机的宿主机;After querying the proxy server cluster according to the above three requirements, a result set is returned. If the result set is less than 1, a response that the user terminal resources are insufficient to create a virtual machine will be returned; if the result set is equal to 1, the request for creating a virtual machine will be forwarded to The proxy server is used to complete the creation of the virtual machine; if the result set is greater than 1, the proxy server must be selected according to the resource utilization maximization strategy, that is, the proxy servers in the result set are sorted according to the size of m+n, and m+n is selected The proxy server with the largest value is used as the host to create the virtual machine;

(3)CPU和内存均衡策略(3) CPU and memory balancing strategy

设X为某个代理服务器的可用内存(单位:M),Y为某个代理服务器的可用CPU(单位:MHz),Me为某个代理服务器的总内存(单位:M),m为某个代理服务器的内存利用率,n为某个代理服务器的CPU利用率,coreN为某个代理服务器的核心数,speedN为某个代理服务器的主频(单位:MHz),则:Let X be the available memory of a proxy server (unit: M), Y be the available CPU of a proxy server (unit: MHz), Me be the total memory of a proxy server (unit: M), and m be a The memory utilization rate of proxy server, n is the CPU utilization rate of a certain proxy server, coreN is the core number of a certain proxy server, and speedN is the main frequency (unit: MHz) of a certain proxy server, then:

X=Me*(1-m);X=Me*(1-m);

Y=coreN*speedN*(1-n);Y=coreN*speedN*(1-n);

设计算方案中要求的内存大小为UMe,CPU的核心数为coreU,CPU主频为speedU,则选择代理服务器的要求是:The memory size required in the calculation plan is UMe, the number of CPU cores is coreU, and the main frequency of the CPU is speedU. The requirements for selecting a proxy server are:

coreU<coreN;coreU<coreN;

coreU*speedU<Y;coreU*speedU<Y;

UMe<X;UMe<X;

同样根据以上三个要求去查询代理服务器集群会返回一个结果集,如果结果集小于1,则返回给用户终端资源不足无法创建虚拟机的响应;如果结果集等于1则将创建虚拟机的请求转发给该代理服务器去完成虚拟机的创建;如果结果集大于1则根据CPU和内存均衡策略进行代理服务器的选择,具体做法如下:Also according to the above three requirements, querying the proxy server cluster will return a result set. If the result set is less than 1, it will return to the user a response that the terminal resources are insufficient and cannot create a virtual machine; if the result set is equal to 1, the request to create a virtual machine will be forwarded. Give the proxy server to complete the creation of the virtual machine; if the result set is greater than 1, select the proxy server according to the CPU and memory balancing strategy. The specific method is as follows:

设:Q=(coreU*speedU)/Ume*100%;Suppose: Q=(coreU*speedU)/Ume*100%;

P=X*(1-Q)+Y*QP=X*(1-Q)+Y*Q

将结果集中所有代理服务器的P值按照从大到小排序,选择其中P值最大的代理服务器作为创建虚拟机的宿主机。The P values of all proxy servers in the result set are sorted from large to small, and the proxy server with the largest P value is selected as the host machine for creating the virtual machine.

与现有技术相比,本发明具有以下优点:Compared with the prior art, the present invention has the following advantages:

1、多种虚拟化管理程序共存,针对不同的虚拟化管理程序,开发不同的代理程序,调用虚拟化管理程序的接口,实现与系统的无差异对接,代理节点程序针对不同的虚拟化管理程序,调用其接口,实现虚拟机管理等基本功能的同时,为管理节点输出一致的接口供其调用,对上屏蔽了底层虚拟化管理程序的差异,系统中可以有多种虚拟化管理程序同时存在,提供了更强大的通用性。1. A variety of virtualization management programs coexist. For different virtualization management programs, different agent programs are developed to call the interface of the virtualization management program to realize the same connection with the system. The agent node program is aimed at different virtualization management programs. , to call its interface to realize basic functions such as virtual machine management, and at the same time output a consistent interface for the management node to call, shielding the difference of the underlying virtualization management program, and multiple virtualization management programs can exist in the system at the same time , providing greater versatility.

2、可跨地域的多物理节点分层管理,并且实现高可用,管理节点集成管理多个跨地域的数据中心的大量物理机,对其进行分层次管理,并且实现安全的网络隔离,单一管理节点最多管理5000个物理机。为了提高高可用性,还可以实现管理节点的集群部署,解决了管理节点的单点问题。2. Hierarchical management of cross-regional multi-physical nodes, and high availability, management nodes integrated management of a large number of physical machines in multiple cross-regional data centers, hierarchical management, and secure network isolation, single management A node can manage up to 5000 physical machines. In order to improve high availability, cluster deployment of management nodes can also be implemented, which solves the single point problem of management nodes.

3、支持虚拟机应用程序一键部署,传统云操作系统只实现了操作系统的部署,没有应用一键部署的相关实现,本系统实现了部署虚拟机操作系统的同时,可选择需要的应用一键部署,并提供一种应用多种版本的选择,在创建虚拟机的最后一步,可以选择要在创建虚拟机的同时部署的应用程序及版本号,虚拟机创建完成后将自动下载应用安装包及安装脚本进行应用的安装和配置,更快的为用户搭建使用环境,更实用。3. Support one-click deployment of virtual machine applications. The traditional cloud operating system only realizes the deployment of the operating system. Key deployment, and provide a choice of multiple versions of the application. In the last step of creating a virtual machine, you can choose the application and version number to be deployed while creating the virtual machine. After the virtual machine is created, the application installation package will be downloaded automatically And the installation script to install and configure the application, build a usage environment for users faster and more practical.

4、支持虚拟机资源监控和应用监控,传统云操作系统只能支持虚拟机所在宿主机的资源监控,没有实现对用户虚拟机的资源监控,更没有对用户在虚拟机上部署的应用运行情况的监控,我们系统从用户方便易用的角度出发,开发了针对虚拟机和虚拟机应用运行情况的监控程序,可根据用户选择是否启用,可监控系统的总体资源使用情况,可监控系统中正在运行的各进程的资源占用情况。4. Support virtual machine resource monitoring and application monitoring. The traditional cloud operating system can only support the resource monitoring of the host machine where the virtual machine is located. It does not realize the resource monitoring of the user virtual machine, let alone the running status of the application deployed by the user on the virtual machine. From the perspective of user convenience and ease of use, our system has developed a monitoring program for the running status of virtual machines and virtual machine applications. It can be enabled or disabled according to the user's choice. It can monitor the overall resource usage of the system and monitor the running status of the system. The resource usage of each running process.

5、支持同时管理虚拟机与物理机,传统云操作系统实现管理虚拟机的功能,无法对物理机进行监控和管理,本系统实现了同时对虚拟机和物理机的监控和管理,可以像管理虚拟机一样对物理机资源进行监控,可以实现对物理机的关机重启等操作。5. Support the simultaneous management of virtual machines and physical machines. The traditional cloud operating system realizes the function of managing virtual machines, but cannot monitor and manage physical machines. This system realizes the monitoring and management of virtual machines and physical machines at the same time, which can be managed like Like virtual machines, physical machine resources are monitored, and operations such as shutting down and restarting physical machines can be realized.

附图说明Description of drawings

图1为本发明的兼容式云操作平台的连接结构示意图。FIG. 1 is a schematic diagram of the connection structure of the compatible cloud operating platform of the present invention.

具体实施方式detailed description

下面结合附图和实施例对发明内容作进一步说明:Below in conjunction with accompanying drawing and embodiment, content of the invention will be further described:

参照图1所示,一种兼容式云操作平台,包括同用户终端相连接的管理服务器集群1,所述的管理服务器集群1通过网络线缆经由局域网或者互联网9同管理信息存储服务器集群2以及代理服务器集群3相连接,所述的存储服务器集群2包括有两个以上的含有代理服务器集群3的信息和用户终端的信息的管理信息存储服务器4组成,代理服务器集群3包括一个以上的根据地域信息划分的数据中心5,每一个数据中心5包括一个以上的根据配置信息划分的数据节点6,每一个数据节点6包括一个以上的根据用途信息划分的代理服务器组7,每一个服务器组7包括一个以上的代理服务器8,代理服务器集群3还同主存储服务器组10和辅存储服务器组11相连接,主存储服务器组10包含有一个以上的主存储服务器12,辅存储服务器组11包含有一个以上的辅存储服务器13,所述的管理服务器集群1也即为兼容式云操作平台的管理节点,代理服务器集群3也即为兼容式云操作平台的代理节点或者计算节点。Referring to Figure 1, a compatible cloud operation platform includes a management server cluster 1 connected to a user terminal, and the management server cluster 1 communicates with the management information storage server cluster 2 and the management information storage server cluster 2 through a network cable via a local area network or the Internet 9. The proxy server cluster 3 is connected, and the storage server cluster 2 includes more than two management information storage servers 4 containing the information of the proxy server cluster 3 and the information of the user terminal. The proxy server cluster 3 includes more than one geographically based Data center 5 divided by information, each data center 5 includes more than one data node 6 divided according to configuration information, each data node 6 includes more than one proxy server group 7 divided according to usage information, each server group 7 includes More than one proxy server 8, the proxy server cluster 3 is also connected with the main storage server group 10 and the auxiliary storage server group 11, the main storage server group 10 includes more than one main storage server 12, and the auxiliary storage server group 11 includes one The aforementioned auxiliary storage server 13, the management server cluster 1 is also the management node of the compatible cloud operation platform, and the proxy server cluster 3 is also the agent node or computing node of the compatible cloud operation platform.

所述的兼容式云操作平台的实现方法,步骤如下:The implementation method of the described compatible cloud operating platform, the steps are as follows:

步骤1:首先启动兼容式云操作平台,同兼容式云操作平台相连接的用户终端通过向管理服务器集群1中指定的管理服务器发送带有注册信息的注册指令,管理服务器集群1中指定的管理服务器进行该注册指令的处理,针对注册指令的处理包括将注册信息发送到存储服务器集群2内指定的管理信息存储服务器4上,管理信息存储服务器4将该注册信息存储在其内部设定的数据存储空间;Step 1: First start the compatible cloud operation platform, and the user terminal connected to the compatible cloud operation platform sends a registration instruction with registration information to the management server specified in the management server cluster 1, and the management server specified in the management server cluster 1 The server performs the processing of the registration instruction, and the processing of the registration instruction includes sending the registration information to the designated management information storage server 4 in the storage server cluster 2, and the management information storage server 4 stores the registration information in its internally set data storage;

步骤2:并且兼容式云操作平台相连接的代理服务器集群3中的所有代理服务器8向管理服务器集群1中指定的管理服务器发送带有配置信息的注册指令,管理服务器集群1中指定的管理服务器进行该注册指令的处理,针对注册指令的处理包括将配置信息发送到存储服务器集群2内指定的管理信息存储服务器4上,管理信息存储服务器4将该配置信息存储在其内部设定的数据存储空间,使其与指定的管理服务器建立永久的网络连接;Step 2: All proxy servers 8 in the proxy server cluster 3 connected to the compatible cloud operating platform send a registration instruction with configuration information to the management server specified in the management server cluster 1, and the specified management server in the management server cluster 1 Perform the processing of the registration instruction, the processing of the registration instruction includes sending the configuration information to the designated management information storage server 4 in the storage server cluster 2, and the management information storage server 4 stores the configuration information in its internally set data storage Space to establish a permanent network connection with the designated management server;

步骤3:用户终端向指定的管理服务器发送虚拟机模板或虚拟机镜像上传指令,指定的管理服务器解析该虚拟机模板或虚拟机镜像上传指令得到用户终端的用户信息,然后将该用户信息封装成为查询指令,接着将该查询指令向存储服务器集群2内指定的管理信息存储服务器4发送,所述的指定的管理信息存储服务器4在接收到了查询指令后执行该指令得到查询结果,并将查询结果返回指定的管理服务器,指定的管理服务器接收到查询结果后,将该查询结果同用户终端的用户信息进行比较,判断是否具有操作权限,如果有操作权限,指定的管理服务器同辅存储服务器组11内指定的辅存储服务器13建立网络连接,指定的管理服务器将用户要上传的虚拟机模板或虚拟机镜像通过网络连接上传到辅存储服务器组11内指定的辅存储服务器13中,如果没有操作权限,指定的管理服务器向用户终端发送无操作权限信息;Step 3: The user terminal sends a virtual machine template or virtual machine image upload instruction to the designated management server, and the designated management server parses the virtual machine template or virtual machine image upload instruction to obtain the user information of the user terminal, and then encapsulates the user information into query command, and then send the query command to the specified management information storage server 4 in the storage server cluster 2, and the specified management information storage server 4 executes the command to obtain the query result after receiving the query command, and sends the query result Return to the specified management server. After the specified management server receives the query result, it compares the query result with the user information of the user terminal to determine whether it has the operation authority. The designated auxiliary storage server 13 in the group establishes a network connection, and the designated management server uploads the virtual machine template or virtual machine image to be uploaded by the user to the designated auxiliary storage server 13 in the auxiliary storage server group 11 through the network connection. If there is no operation authority , the designated management server sends no operation authority information to the user terminal;

步骤4:用户终端向指定的管理服务器发送建立虚拟机的资源申请指令,指定的管理服务器解析该建立虚拟机的资源申请指令得到用户终端的用户信息和资源申请信息,然后将该用户信息封装成为查询指令,接着将该查询指令向存储服务器集群2内指定的管理信息存储服务器4发送,所述的指定的管理信息存储服务器4在接收到了查询指令后执行该指令得到查询结果,并将查询结果返回指定的管理服务器,指定的管理服务器接收到查询结果后,将该查询结果同用户终端的用户信息进行比较,判断是否具有操作权限;Step 4: The user terminal sends a resource application instruction for establishing a virtual machine to the designated management server, and the designated management server analyzes the resource application instruction for establishing a virtual machine to obtain user information and resource application information of the user terminal, and then encapsulates the user information into query command, and then send the query command to the specified management information storage server 4 in the storage server cluster 2, and the specified management information storage server 4 executes the command to obtain the query result after receiving the query command, and sends the query result Return to the designated management server, after receiving the query result, the designated management server compares the query result with the user information of the user terminal to determine whether it has the operation authority;

步骤5:如果有操作权限,指定的管理服务器根据解析得到的资源申请信息,封装一个查询指令,指定的管理服务器将该查询指令发送给存储服务器集群2内指定的管理信息存储服务器4,指定的管理信息存储服务器4执行该查询指令,执行该查询指令的结果是向指定的管理服务器返回能够满足建立虚拟机的资源申请指令要求的代理服务器集群3中的任意一个代理服务器8作为选定的代理服务器,指定的管理服务器同该选定的代理服务器建立网络连接,然后指定的管理服务器将该建立虚拟机的资源申请指令发送给选定的代理服务器中执行,即选定的代理服务器分配自身的CPU、内存、网络资源以及主存储服务器组10中指定的主存储器12的存储资源以满足建立虚拟机的资源申请指令的需求,然后根据指定的辅存储服务器13中存储的虚拟机模板或虚拟机镜像,由此完成了虚拟机的创建,并将虚拟机的创建的结果信息发送回指定的管理服务器,指定的管理服务器将该虚拟机的创建的结果信息存入指定的管理信息存储服务器4,并将该虚拟机的创建的结果信息传送给用户终端,如果没有操作权限,指定的管理服务器向用户终端发送无操作权限信息。Step 5: If there is operation authority, the designated management server encapsulates a query command according to the resource application information obtained by parsing, and the designated management server sends the query command to the designated management information storage server 4 in the storage server cluster 2, and the designated management server The management information storage server 4 executes the query command, and the result of executing the query command is to return to the designated management server any proxy server 8 in the proxy server cluster 3 that can meet the requirements of the resource application command for establishing a virtual machine as the selected proxy server, the designated management server establishes a network connection with the selected proxy server, and then the designated management server sends the resource application instruction for creating a virtual machine to the selected proxy server for execution, that is, the selected proxy server allocates its own CPU, memory, network resources, and the storage resources of the designated main memory 12 in the main storage server group 10 to meet the needs of resource application instructions for establishing a virtual machine, and then according to the virtual machine template or virtual machine stored in the designated secondary storage server 13 mirror image, thereby completing the creation of the virtual machine, and sending the result information of the creation of the virtual machine back to the designated management server, and the designated management server stores the result information of the virtual machine into the designated management information storage server 4, And transmit the creation result information of the virtual machine to the user terminal, if there is no operation authority, the designated management server sends no operation authority information to the user terminal.

进一步,在步骤5中从代理服务器集群中选择一个代理服务器作为选定的代理服务器的过程是通过以下几种调度策略中的一种或多种实现的,具体包括以下几种调度策略:Further, in step 5, the process of selecting a proxy server from the proxy server cluster as the selected proxy server is implemented by one or more of the following scheduling strategies, specifically including the following scheduling strategies:

(1)主机标签优先策略(1) Host label priority policy

在创建虚拟机的时根据用户选择的相应计算方案,计算方案里规定了虚拟机的内存和CPU的大小,但是如果该计算方案里设置有主机标签,则规定用该计算方案创建的虚拟机需要运行在与该计算方案的标签一致的代理服务器上,如果该代理服务器资源不足,则向用户返回资源不足的响应,不能成功创建虚拟机;When creating a virtual machine, according to the corresponding computing plan selected by the user, the computing plan specifies the memory and CPU size of the virtual machine, but if the computing plan has a host label, it stipulates that the virtual machine created with this computing plan needs Running on a proxy server with the same label as the computing solution, if the proxy server has insufficient resources, it will return a response of insufficient resources to the user, and the virtual machine cannot be successfully created;

(2)资源利用最大化策略(2) Resource utilization maximization strategy

设X为某个代理服务器的可用内存(单位:M),Y为某个代理服务器的可用CPU(单位:MHz),Me为某个代理服务器的总内存(单位:M),m为某个代理服务器的内存利用率,n为某个代理服务器的CPU利用率,coreN为某个代理服务器的核心数,speedN为某个代理服务器的主频(单位:MHz),则:Let X be the available memory of a proxy server (unit: M), Y be the available CPU of a proxy server (unit: MHz), Me be the total memory of a proxy server (unit: M), and m be a The memory utilization rate of proxy server, n is the CPU utilization rate of a certain proxy server, coreN is the core number of a certain proxy server, and speedN is the main frequency (unit: MHz) of a certain proxy server, then:

X=Me*(1-m);X=Me*(1-m);

Y=coreN*speedN*(1-n);Y=coreN*speedN*(1-n);

设计算方案中要求的内存大小为UMe,CPU的核心数为coreU,CPU主频为speedU,则选择代理服务器的要求是:The memory size required in the calculation plan is UMe, the number of CPU cores is coreU, and the main frequency of the CPU is speedU. The requirements for selecting a proxy server are:

coreU<coreN;coreU<coreN;

coreU*speedU<Y;coreU*speedU<Y;

UMe<X;UMe<X;

根据以上三个要求查询代理服务器集群后返回一个结果集,如果该结果集小于1,则返回给用户终端资源不足无法创建虚拟机的响应;如果结果集等于1则将创建虚拟机的请求转发给该代理服务器去完成虚拟机的创建;如果结果集大于1则要根据资源利用率最大化策略进行代理服务器的选择,即按照m+n的大小对结果集中的代理服务器进行排序,选择m+n值最大的代理服务器作为创建虚拟机的宿主机;After querying the proxy server cluster according to the above three requirements, a result set is returned. If the result set is less than 1, a response that the user terminal resources are insufficient to create a virtual machine will be returned; if the result set is equal to 1, the request for creating a virtual machine will be forwarded to The proxy server is used to complete the creation of the virtual machine; if the result set is greater than 1, the proxy server must be selected according to the resource utilization maximization strategy, that is, the proxy servers in the result set are sorted according to the size of m+n, and m+n is selected The proxy server with the largest value is used as the host to create the virtual machine;

该策略是为了将用户创建的虚拟机尽可能多的运行在同一个代理服务器上,直到该代理服务器资源耗尽,即达到饱和状态,这样会使代理服务器的负载集中,使空闲服务器处于休眠状态,节约运营成本。This strategy is to run as many virtual machines created by users on the same proxy server as possible until the proxy server resources are exhausted, that is, it reaches a saturated state, which will concentrate the load of the proxy server and make the idle server sleep , saving operating costs.

(3)CPU和内存均衡策略(3) CPU and memory balancing strategy

CPU和内存均衡策略是根据用户选择的计算方案中CPU与内存的配比决定其重要性,然后在可用结果集中选择一个最优解的策略,具体方法是:The CPU and memory balance strategy is based on the ratio of CPU and memory in the computing solution selected by the user to determine its importance, and then select an optimal solution strategy from the available result set. The specific method is:

设X为某个代理服务器的可用内存(单位:M),Y为某个代理服务器的可用CPU(单位:MHz),Me为某个代理服务器的总内存(单位:M),m为某个代理服务器的内存利用率,n为某个代理服务器的CPU利用率,coreN为某个代理服务器的核心数,speedN为某个代理服务器的主频(单位:MHz),则:Let X be the available memory of a proxy server (unit: M), Y be the available CPU of a proxy server (unit: MHz), Me be the total memory of a proxy server (unit: M), and m be a The memory utilization rate of proxy server, n is the CPU utilization rate of a certain proxy server, coreN is the core number of a certain proxy server, and speedN is the main frequency (unit: MHz) of a certain proxy server, then:

X=Me*(1-m);X=Me*(1-m);

Y=coreN*speedN*(1-n);Y=coreN*speedN*(1-n);

设计算方案中要求的内存大小为UMe,CPU的核心数为coreU,CPU主频为speedU,则选择代理服务器的要求是:The memory size required in the calculation plan is UMe, the number of CPU cores is coreU, and the main frequency of the CPU is speedU. The requirements for selecting a proxy server are:

coreU<coreN;coreU<coreN;

coreU*speedU<Y;coreU*speedU<Y;

UMe<X;UMe<X;

同样根据以上三个要求去查询代理服务器集群会返回一个结果集,如果结果集小于1,则返回给用户终端资源不足无法创建虚拟机的响应;如果结果集等于1则将创建虚拟机的请求转发给该代理服务器去完成虚拟机的创建;如果结果集大于1则根据CPU和内存均衡策略进行代理服务器的选择,具体做法如下:Also according to the above three requirements, querying the proxy server cluster will return a result set. If the result set is less than 1, it will return to the user a response that the terminal resources are insufficient and cannot create a virtual machine; if the result set is equal to 1, the request to create a virtual machine will be forwarded. Give the proxy server to complete the creation of the virtual machine; if the result set is greater than 1, select the proxy server according to the CPU and memory balancing strategy. The specific method is as follows:

设:Q=(coreU*speedU)/Ume*100%;Suppose: Q=(coreU*speedU)/Ume*100%;

P=X*(1-Q)+Y*QP=X*(1-Q)+Y*Q

将结果集中所有代理服务器的P值按照从大到小排序,选择其中P值最大的代理服务器作为创建虚拟机的宿主机。The P values of all proxy servers in the result set are sorted from large to small, and the proxy server with the largest P value is selected as the host machine for creating the virtual machine.

以上所述,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制,虽然本发明已以较佳实施例揭露如上,然而并非用以限定本发明,任何熟悉本专业的技术人员,在不脱离本发明技术方案范围内,当可利用上述揭示的技术内容做出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本发明技术方案内容,依据本发明的技术实质,在本发明的精神和原则之内,对以上实施例所作的任何简单的修改、等同替换与改进等,均仍属于本发明技术方案的保护范围之内。The above description is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Anyone familiar with this field Those skilled in the art, without departing from the scope of the technical solution of the present invention, may use the technical content disclosed above to make some changes or modify equivalent embodiments with equivalent changes, but as long as they do not depart from the technical solution of the present invention, according to the technical content of the present invention Within the spirit and principles of the present invention, any simple modifications, equivalent replacements and improvements made to the above embodiments still fall within the scope of protection of the technical solutions of the present invention.

Claims (5)

1.一种兼容式云操作平台,其特征在于:包括同用户终端相连接的管理服务器集群(1),所述的管理服务器集群(1)通过网络线缆经由局域网或者互联网(9)同管理信息存储服务器集群(2)以及代理服务器集群(3)相连接;所述的存储服务器集群(2)包括有两个以上含有代理服务器集群(3)信息和用户终端信息的管理信息存储服务器(4)组成;所述代理服务器集群(3)包括一个以上的根据地域信息划分的数据中心(5),每一个数据中心(5)包括一个以上的根据配置信息划分的数据节点(6),每一个数据节点(6)包括一个以上的根据用途信息划分的代理服务器组(7),每一个服务器组(7)包括一个以上的代理服务器(8);代理服务器集群(3)还同数据存储服务器组相连接;1. A compatible cloud operation platform, characterized in that: comprising a management server cluster (1) connected to a user terminal, the management server cluster (1) is managed through a network cable via a local area network or the Internet (9) The information storage server cluster (2) and the proxy server cluster (3) are connected; the storage server cluster (2) includes more than two management information storage servers (4) containing proxy server cluster (3) information and user terminal information ) form; the proxy server cluster (3) includes more than one data center (5) divided according to regional information, and each data center (5) includes more than one data node (6) divided according to configuration information, each The data node (6) includes more than one proxy server group (7) divided according to the purpose information, and each server group (7) includes more than one proxy server (8); the proxy server cluster (3) is also the same as the data storage server group connected; 所述数据存储服务器组包括主存储服务器组(10)和辅存储服务器组(11),主存储服务器组(10)包含有一个以上的主存储服务器(12),辅存储服务器组(11)包含有一个以上的辅存储服务器(13);The data storage server group includes a main storage server group (10) and an auxiliary storage server group (11), the main storage server group (10) includes more than one main storage server (12), and the auxiliary storage server group (11) includes There is more than one secondary storage server (13); 所述的管理服务器集群(1)即为兼容式云操作平台的管理节点,代理服务器集群(3)即为兼容式云操作平台的代理节点或者计算节点;The management server cluster (1) is the management node of the compatible cloud operation platform, and the proxy server cluster (3) is the agent node or computing node of the compatible cloud operation platform; 兼容式云操作平台的虚拟机实现过程如下:The virtual machine implementation process of the compatible cloud operating platform is as follows: 步骤1:用户终端通过向管理服务器集群(1)中指定的管理服务器发送带有注册信息的注册指令,管理服务器集群(1)中指定的管理服务器将注册信息发送到存储服务器集群(2)内指定的管理信息存储服务器(4)并将该注册信息存储在管理信息存储服务器(4)内部设定的数据存储空间;Step 1: The user terminal sends a registration instruction with registration information to the management server specified in the management server cluster (1), and the management server specified in the management server cluster (1) sends the registration information to the storage server cluster (2) Designate the management information storage server (4) and store the registration information in the data storage space set inside the management information storage server (4); 步骤2:代理服务器集群(3)中的所有代理服务器(8)向管理服务器集群(1)中指定的管理服务器发送带有配置信息的注册指令,管理服务器集群(1)中指定的管理服务器将配置信息发送到存储服务器集群(2)内指定的管理信息存储服务器(4)上,管理信息存储服务器(4)将该配置信息存储在其内部设定的数据存储空间,使该配置信息对应的代理服务器与指定的管理服务器建立永久的网连接;Step 2: all proxy servers (8) in the proxy server cluster (3) send a registration instruction with configuration information to the management server specified in the management server cluster (1), and the specified management server in the management server cluster (1) will The configuration information is sent to the designated management information storage server (4) in the storage server cluster (2), and the management information storage server (4) stores the configuration information in its internally set data storage space, so that the configuration information corresponds to The proxy server establishes a permanent network connection with the designated management server; 步骤3:用户终端向指定的管理服务器发送虚拟机模板或虚拟机镜像上传指令,指定的管理服务器同辅存储服务器组(11)内指定的辅存储服务器(13)建立网络连接,指定的管理服务器将用户要上传的虚拟机模板或虚拟机镜像通过网络连接上传到辅存储服务器组(11)内指定的辅存储服务器(13)中;Step 3: The user terminal sends a virtual machine template or virtual machine image upload instruction to the designated management server, and the designated management server establishes a network connection with the designated auxiliary storage server (13) in the auxiliary storage server group (11), and the designated management server Uploading the virtual machine template or virtual machine image to be uploaded by the user to the secondary storage server (13) specified in the secondary storage server group (11) through the network connection; 步骤4:用户终端向指定的管理服务器发送建立虚拟机的资源申请指令,指定的管理服务器解析该建立虚拟机的资源申请指令得到用户终端的用户信息和资源申请信息,指定的管理服务器根据解析得到的资源申请信息,封装一个查询指令,指定的管理服务器将该查询指令发送给存储服务器集群(2)内指定的管理信息存储服务器(4),指定的管理信息存储服务器(4)执行该查询指令,向指定的管理服务器返回能够满足建立虚拟机的资源申请指令要求的代理服务器集群(3)中的任意一个代理服务器(8)作为选定的代理服务器,指定的管理服务器同该选定的代理服务器建立网络连接;指定的管理服务器将该建立虚拟机的资源申请指令发送给选定的代理服务器中执行,完成了虚拟机的创建,并将虚拟机的创建的结果信息发送回指定的管理服务器,指定的管理服务器将该虚拟机的创建的结果信息存入指定的管理信息存储服务器(4),并将该虚拟机的创建的结果信息传送给用户终端。Step 4: The user terminal sends a resource application instruction for establishing a virtual machine to the designated management server, and the designated management server analyzes the resource application instruction for establishing a virtual machine to obtain user information and resource application information of the user terminal, and the designated management server obtains according to the analysis resource application information, encapsulate a query command, the designated management server sends the query command to the designated management information storage server (4) in the storage server cluster (2), and the designated management information storage server (4) executes the query command , returning to the designated management server any proxy server (8) in the proxy server cluster (3) that can meet the requirements of the resource application instruction for establishing a virtual machine as the selected proxy server, and the designated management server is the same as the selected proxy server The server establishes a network connection; the designated management server sends the resource application command for establishing a virtual machine to the selected proxy server for execution, completes the creation of the virtual machine, and sends the result information of the virtual machine back to the designated management server The designated management server stores the creation result information of the virtual machine into the designated management information storage server (4), and transmits the creation result information of the virtual machine to the user terminal. 2.一种权利要求1所述的兼容式云操作平台的实现方法,其特征在于包括以下步骤:2. A method for realizing the compatible cloud operating platform according to claim 1, characterized in that it comprises the following steps: 步骤1:首先启动兼容式云操作平台,同兼容式云操作平台相连接的用户终端通过向管理服务器集群(1)中指定的管理服务器发送带有注册信息的注册指令,管理服务器集群(1)中指定的管理服务器进行该注册指令的处理,针对注册指令的处理包括将注册信息发送到存储服务器集群(2)内指定的管理信息存储服务器(4)上,管理信息存储服务器(4)将该注册信息存储在其内部设定的数据存储空间;Step 1: First start the compatible cloud operation platform, and the user terminal connected to the compatible cloud operation platform sends a registration instruction with registration information to the management server specified in the management server cluster (1), and the management server cluster (1) The management server specified in performs the processing of the registration instruction, and the processing of the registration instruction includes sending the registration information to the designated management information storage server (4) in the storage server cluster (2), and the management information storage server (4) sends the Registration information is stored in its internally set data storage space; 步骤2:兼容式云操作平台相连接的代理服务器集群(3)中的所有代理服务器(8)向管理服务器集群(1)中指定的管理服务器发送带有配置信息的注册指令,管理服务器集群(1)中指定的管理服务器进行该注册指令的处理,针对注册指令的处理包括将配置信息发送到存储服务器集群(2)内指定的管理信息存储服务器(4)上,管理信息存储服务器(4)将该配置信息存储在其内部设定的数据存储空间,使该配置信息对应的代理服务器与指定的管理服务器建立永久的网连接;Step 2: All proxy servers (8) in the proxy server cluster (3) connected to the compatible cloud operating platform send registration instructions with configuration information to the management server specified in the management server cluster (1), and the management server cluster ( The management server specified in 1) performs the processing of the registration instruction, and the processing of the registration instruction includes sending the configuration information to the management information storage server (4) specified in the storage server cluster (2), and the management information storage server (4) Store the configuration information in its internally set data storage space, and make the proxy server corresponding to the configuration information establish a permanent network connection with the designated management server; 步骤3:用户终端向指定的管理服务器发送虚拟机模板或虚拟机镜像上传指令,指定的管理服务器同辅存储服务器组(11)内指定的辅存储服务器(13)建立网络连接,指定的管理服务器将用户要上传的虚拟机模板或虚拟机镜像通过网络连接上传到辅存储服务器组(11)内指定的辅存储服务器(13)中;Step 3: The user terminal sends a virtual machine template or virtual machine image upload instruction to the designated management server, and the designated management server establishes a network connection with the designated auxiliary storage server (13) in the auxiliary storage server group (11), and the designated management server Uploading the virtual machine template or virtual machine image to be uploaded by the user to the secondary storage server (13) specified in the secondary storage server group (11) through the network connection; 步骤4:用户终端向指定的管理服务器发送建立虚拟机的资源申请指令,指定的管理服务器解析该建立虚拟机的资源申请指令得到用户终端的用户信息和资源申请信息,指定的管理服务器根据解析得到的资源申请信息,封装一个查询指令,指定的管理服务器将该查询指令发送给存储服务器集群(2)内指定的管理信息存储服务器(4),指定的管理信息存储服务器(4)执行该查询指令,执行该查询指令的结果是向指定的管理服务器返回能够满足建立虚拟机的资源申请指令要求的代理服务器集群(3)中的任意一个代理服务器(8)作为选定的代理服务器,指定的管理服务器同该选定的代理服务器建立网络连接;Step 4: The user terminal sends a resource application instruction for establishing a virtual machine to the designated management server, and the designated management server analyzes the resource application instruction for establishing a virtual machine to obtain user information and resource application information of the user terminal, and the designated management server obtains according to the analysis resource application information, encapsulate a query command, the designated management server sends the query command to the designated management information storage server (4) in the storage server cluster (2), and the designated management information storage server (4) executes the query command , the result of executing the query command is to return to the specified management server any proxy server (8) in the proxy server cluster (3) that can meet the requirements of the resource application command for establishing a virtual machine as the selected proxy server, and the specified management server The server establishes a network connection with the selected proxy server; 然后指定的管理服务器将该建立虚拟机的资源申请指令发送给选定的代理服务器中执行,即选定的代理服务器分配自身的CPU、内存、网络资源以及主存储服务器组(10)中指定的主存储器(12)的存储资源以满足建立虚拟机的资源申请指令的需求,然后根据指定的辅存储服务器(13)中存储的虚拟机模板或虚拟机镜像,由此完成了虚拟机的创建,并将虚拟机的创建的结果信息发送回指定的管理服务器,指定的管理服务器将该虚拟机的创建的结果信息存入指定的管理信息存储服务器(4),并将该虚拟机的创建的结果信息传送给用户终端。Then the designated management server sends the resource application instruction of setting up the virtual machine to the selected proxy server for execution, that is, the selected proxy server allocates its own CPU, internal memory, network resources and primary storage server group (10) specified The storage resources of the main memory (12) meet the requirements of the resource application instruction for establishing a virtual machine, and then according to the virtual machine template or virtual machine image stored in the designated secondary storage server (13), the creation of the virtual machine is thus completed, And send back the result information of the creation of the virtual machine to the designated management server, the designated management server stores the result information of the creation of the virtual machine into the designated management information storage server (4), and stores the result information of the creation of the virtual machine The information is transmitted to the user terminal. 3.根据权利要求2所述的兼容式云操作平台的实现方法,其特征在于:所述步骤3中,用户终端向指定的管理服务器发送虚拟机模板或虚拟机镜像上传指令,指定的管理服务器解析该虚拟机模板或虚拟机镜像上传指令得到用户终端的用户信息,然后将该用户信息封装成为查询指令,接着将该查询指令向存储服务器集群(2)内指定的管理信息存储服务器(4)发送,所述的指定的管理信息存储服务器(4)在接收到了查询指令后执行该指令得到查询结果,并将查询结果返回指定的管理服务器,指定的管理服务器接收到查询结果后,将该查询结果同用户终端的用户信息进行比较,判断是否具有操作权限;如果有操作权限,则指定的管理服务器同辅存储服务器组(11)内指定的辅存储服务器(13)建立网络连接,指定的管理服务器将用户要上传的虚拟机模板或虚拟机镜像通过网络连接上传到辅存储服务器组(11)内指定的辅存储服务器(13)中;如果没有操作权限,指定的管理服务器向用户终端发送无操作权限信息。3. The implementation method of the compatible cloud operation platform according to claim 2, characterized in that: in the step 3, the user terminal sends a virtual machine template or a virtual machine image upload instruction to the designated management server, and the designated management server Analyzing the virtual machine template or virtual machine image upload instruction to obtain the user information of the user terminal, then packaging the user information into a query instruction, and then sending the query instruction to the designated management information storage server (4) in the storage server cluster (2) sending, the designated management information storage server (4) executes the query after receiving the query command to obtain the query result, and returns the query result to the designated management server, and the designated management server receives the query result and sends the query The result is compared with the user information of the user terminal to determine whether it has operation authority; if there is operation authority, the designated management server establishes a network connection with the designated auxiliary storage server (13) in the auxiliary storage server group (11), and the designated management server The server uploads the virtual machine template or virtual machine image that the user wants to upload to the designated secondary storage server (13) in the secondary storage server group (11) through the network connection; if there is no operation authority, the designated management server sends an invalid Operation authority information. 4.根据权利要求2所述的兼容式云操作平台的实现方法,其特征在于:所述步骤4中,用户终端向指定的管理服务器发送建立虚拟机的资源申请指令,指定的管理服务器解析该建立虚拟机的资源申请指令得到用户终端的用户信息和资源申请信息,然后将该用户信息封装成为查询指令,接着将该查询指令向存储服务器集群(2)内指定的管理信息存储服务器(4)发送,所述的指定的管理信息存储服务器(4)在接收到了查询指令后执行该指令得到查询结果,并将查询结果返回指定的管理服务器,指定的管理服务器接收到查询结果后,将该查询结果同用户终端的用户信息进行比较,判断是否具有操作权限;4. The implementation method of the compatible cloud operating platform according to claim 2, characterized in that: in step 4, the user terminal sends a resource application instruction for establishing a virtual machine to the designated management server, and the designated management server analyzes the Create a resource application command for a virtual machine to obtain user information and resource application information of the user terminal, then encapsulate the user information into a query command, and then send the query command to the designated management information storage server (4) in the storage server cluster (2) sending, the designated management information storage server (4) executes the query after receiving the query command to obtain the query result, and returns the query result to the designated management server, and the designated management server receives the query result and sends the query The result is compared with the user information of the user terminal to determine whether it has the operation authority; 如果有操作权限,则指定的管理服务器根据解析得到的资源申请信息,继续执行后面操作,指定的管理信息存储服务器(4)向指定的管理服务器返回能够满足建立虚拟机的资源申请指令要求的代理服务器集群(3)中的任意一个代理服务器(8)作为选定的代理服务器,指定的管理服务器同该选定的代理服务器建立网络连接;然后指定的管理服务器将该建立虚拟机的资源申请指令发送给选定的代理服务器中执行,完成虚拟机的创建,并将虚拟机创建的结果信息发送回指定的管理服务器,指定的管理服务器将该虚拟机的创建的结果信息存入指定的管理信息存储服务器(4),并将该虚拟机创建的结果信息传送给用户终端;If there is an operation authority, then the designated management server continues to perform subsequent operations according to the resource application information obtained by parsing, and the designated management information storage server (4) returns to the designated management server an agent that can meet the requirements of the resource application instruction for establishing a virtual machine Any proxy server (8) in the server cluster (3) is used as the selected proxy server, and the designated management server sets up a network connection with the selected proxy server; then the designated management server will set up the resource application instruction of the virtual machine Send to the selected proxy server for execution, complete the creation of the virtual machine, and send the result information of the virtual machine creation back to the designated management server, and the designated management server will store the result information of the virtual machine into the designated management information storage server (4), and transmit the result information created by the virtual machine to the user terminal; 如果没有操作权限,指定的管理服务器向用户终端发送无操作权限信息。If there is no operation authority, the designated management server sends no operation authority information to the user terminal. 5.根据权利要求2所述的兼容式云操作平台的实现方法,其特征在于:在步骤4中从代理服务器集群(3)中选择一个代理服务器(8)作为选定的代理服务器的过程是通过以下几种调度策略中的一种或多种实现的,具体包括以下几种调度策略:5. the realization method of compatible cloud operating platform according to claim 2 is characterized in that: in step 4, the process of selecting a proxy server (8) as the selected proxy server from the proxy server cluster (3) is It is realized through one or more of the following scheduling strategies, including the following scheduling strategies: (1)主机标签优先策略(1) Host label priority strategy 在创建虚拟机时根据用户选择的相应计算方案,计算方案里规定了虚拟机的内存和CPU的大小,但是如果该计算方案里设置有主机标签,则规定用该计算方案创建的虚拟机需要运行在与该计算方案的标签一致的代理服务器上,如果该代理服务器资源不足,则向用户返回资源不足的响应,不能成功创建虚拟机;When creating a virtual machine, according to the corresponding computing plan selected by the user, the computing plan stipulates the memory and CPU size of the virtual machine, but if the computing plan has a host label, it is stipulated that the virtual machine created with this computing plan needs to run On the proxy server with the same label as the computing scheme, if the proxy server has insufficient resources, a response of insufficient resources will be returned to the user, and the virtual machine cannot be successfully created; (2)资源利用最大化策略(2) Resource utilization maximization strategy 设X为某个代理服务器的可用内存(单位:M),Y为某个代理服务器的可用CPU(单位:MHz),Me为某个代理服务器的总内存(单位:M),m为某个代理服务器的内存利用率,n为某个代理服务器的CPU利用率,coreN为某个代理服务器的核心数,speedN为某个代理服务器的主频(单位:MHz),则:Let X be the available memory of a proxy server (unit: M), Y be the available CPU of a proxy server (unit: MHz), Me be the total memory of a proxy server (unit: M), and m be a The memory utilization rate of proxy server, n is the CPU utilization rate of a certain proxy server, coreN is the core number of a certain proxy server, and speedN is the main frequency (unit: MHz) of a certain proxy server, then: X=Me*(1-m);X=Me*(1-m); Y=coreN*speedN*(1-n);Y=coreN*speedN*(1-n); 设计算方案中要求的内存大小为UMe,CPU的核心数为coreU,CPU主频为speedU,则选择代理服务器的要求是:The memory size required in the calculation plan is UMe, the number of CPU cores is coreU, and the main frequency of the CPU is speedU. The requirements for selecting a proxy server are: coreU<coreN;coreU<coreN; coreU*speedU<Y;coreU*speedU<Y; UMe<X;UMe<X; 根据以上三个要求查询代理服务器集群后返回一个结果集,如果该结果集小于1,则返回给用户终端资源不足无法创建虚拟机的响应;如果结果集等于1则将创建虚拟机的请求转发给该代理服务器去完成虚拟机的创建;如果结果集大于1则要根据资源利用率最大化策略进行代理服务器的选择,即按照m+n的大小对结果集中的代理服务器进行排序,选择m+n值最大的代理服务器作为创建虚拟机的宿主机;After querying the proxy server cluster according to the above three requirements, a result set is returned. If the result set is less than 1, a response that the user terminal resources are insufficient to create a virtual machine will be returned; if the result set is equal to 1, the request for creating a virtual machine will be forwarded to The proxy server is used to complete the creation of the virtual machine; if the result set is greater than 1, the proxy server must be selected according to the resource utilization maximization strategy, that is, the proxy servers in the result set are sorted according to the size of m+n, and m+n is selected The proxy server with the largest value is used as the host to create the virtual machine; (3)CPU和内存均衡策略(3) CPU and memory balancing strategy 设X为某个代理服务器的可用内存(单位:M),Y为某个代理服务器的可用CPU(单位:MHz),Me为某个代理服务器的总内存(单位:M),m为某个代理服务器的内存利用率,n为某个代理服务器的CPU利用率,coreN为某个代理服务器的核心数,speedN为某个代理服务器的主频(单位:MHz),则:Let X be the available memory of a proxy server (unit: M), Y be the available CPU of a proxy server (unit: MHz), Me be the total memory of a proxy server (unit: M), and m be a The memory utilization rate of proxy server, n is the CPU utilization rate of a certain proxy server, coreN is the core number of a certain proxy server, and speedN is the main frequency (unit: MHz) of a certain proxy server, then: X=Me*(1-m);X=Me*(1-m); Y=coreN*speedN*(1-n);Y=coreN*speedN*(1-n); 设计算方案中要求的内存大小为UMe,CPU的核心数为coreU,CPU主频为speedU,则选择代理服务器的要求是:The memory size required in the calculation plan is UMe, the number of CPU cores is coreU, and the main frequency of the CPU is speedU. The requirements for selecting a proxy server are: coreU<coreN;coreU<coreN; coreU*speedU<Y;coreU*speedU<Y; UMe<X;UMe<X; 同样根据以上三个要求去查询代理服务器集群会返回一个结果集,如果结果集小于1,则返回给用户终端资源不足无法创建虚拟机的响应;如果结果集等于1则将创建虚拟机的请求转发给该代理服务器去完成虚拟机的创建;如果结果集大于1则根据CPU和内存均衡策略进行代理服务器的选择,具体做法如下:Similarly, querying the proxy server cluster according to the above three requirements will return a result set. If the result set is less than 1, it will return to the user terminal a response that the virtual machine cannot be created due to insufficient resources; if the result set is equal to 1, the request to create a virtual machine will be forwarded. Give the proxy server to complete the creation of the virtual machine; if the result set is greater than 1, select the proxy server according to the CPU and memory balancing strategy. The specific method is as follows: 设:Q=(coreU*speedU)/Ume*100%;Suppose: Q=(coreU*speedU)/Ume*100%; P=X*(1-Q)+Y*QP=X*(1-Q)+Y*Q 将结果集中所有代理服务器的P值按照从大到小排序,选择其中P值最大的代理服务器作为创建虚拟机的宿主机。The P values of all proxy servers in the result set are sorted from large to small, and the proxy server with the largest P value is selected as the host machine for creating the virtual machine.
CN201410040366.1A 2014-01-27 2014-01-27 A kind of compatible cloud operating platform and its implementation Active CN103747107B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410040366.1A CN103747107B (en) 2014-01-27 2014-01-27 A kind of compatible cloud operating platform and its implementation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410040366.1A CN103747107B (en) 2014-01-27 2014-01-27 A kind of compatible cloud operating platform and its implementation

Publications (2)

Publication Number Publication Date
CN103747107A CN103747107A (en) 2014-04-23
CN103747107B true CN103747107B (en) 2017-03-15

Family

ID=50504093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410040366.1A Active CN103747107B (en) 2014-01-27 2014-01-27 A kind of compatible cloud operating platform and its implementation

Country Status (1)

Country Link
CN (1) CN103747107B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219329A (en) * 2014-09-28 2014-12-17 浪潮软件集团有限公司 Method for deploying service through content distribution in cluster server
CN105912403B (en) * 2016-04-14 2019-08-06 聚好看科技股份有限公司 The method for managing resource and device of Docker container
CN106790354B (en) * 2016-11-15 2020-04-14 上海东土远景工业科技有限公司 Communication method and device for preventing data congestion
CN108073426B (en) * 2017-03-29 2021-07-06 北京青云科技股份有限公司 A software management method, device and system based on cloud computing
CN107135274A (en) * 2017-06-20 2017-09-05 郑州云海信息技术有限公司 Storage management method and device for a distributed cluster system
CN107426320A (en) * 2017-07-31 2017-12-01 郑州云海信息技术有限公司 Information processing method and information processing system for Openstack
CN108388433B (en) * 2017-12-28 2021-09-17 深圳创新科软件技术有限公司 Management platform deployment method of super-fusion system
CN108429768A (en) * 2018-05-29 2018-08-21 新华三云计算技术有限公司 Cloud data analysis service management system, method and cloud server
KR101987661B1 (en) * 2018-07-19 2019-06-11 나무기술 주식회사 Cluster resource allocating and managing method on cloud platform
CN109298898B (en) * 2018-08-24 2022-04-26 深圳职业技术学院 Method and device for automatic configuration of cloud computing resources
CN109669846B (en) * 2018-12-14 2022-04-01 北京金山云网络技术有限公司 Management information query method, device and computer readable medium
CN115001990B (en) * 2022-05-25 2024-07-30 济南浪潮数据技术有限公司 Cross-region openstack cluster management method and system based on declarative API
CN119718598A (en) * 2023-09-26 2025-03-28 杭州阿里云飞天信息技术有限公司 Resource object processing and register access method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1738244A (en) * 2004-08-17 2006-02-22 北京亿阳巨龙智能网技术有限公司 Method for setting application server by proxy server in soft switching system
CN101060663A (en) * 2006-04-21 2007-10-24 中兴通讯股份有限公司 A method for realizing the dynamic reconstruction service of cluster system
CN102185900A (en) * 2011-04-18 2011-09-14 北京新媒传信科技有限公司 Application service platform system and method for developing application services
CN202077062U (en) * 2011-04-18 2011-12-14 北京新媒传信科技有限公司 Application service platform system
CN102427480A (en) * 2011-12-31 2012-04-25 北京新媒传信科技有限公司 Application access method in multi-application service platform system
CN202218272U (en) * 2011-09-15 2012-05-09 广东金智慧物联网科技有限公司 Real standard integrated system of thing networking based on cloud calculates

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1738244A (en) * 2004-08-17 2006-02-22 北京亿阳巨龙智能网技术有限公司 Method for setting application server by proxy server in soft switching system
CN101060663A (en) * 2006-04-21 2007-10-24 中兴通讯股份有限公司 A method for realizing the dynamic reconstruction service of cluster system
CN102185900A (en) * 2011-04-18 2011-09-14 北京新媒传信科技有限公司 Application service platform system and method for developing application services
CN202077062U (en) * 2011-04-18 2011-12-14 北京新媒传信科技有限公司 Application service platform system
CN202218272U (en) * 2011-09-15 2012-05-09 广东金智慧物联网科技有限公司 Real standard integrated system of thing networking based on cloud calculates
CN102427480A (en) * 2011-12-31 2012-04-25 北京新媒传信科技有限公司 Application access method in multi-application service platform system

Also Published As

Publication number Publication date
CN103747107A (en) 2014-04-23

Similar Documents

Publication Publication Date Title
CN103747107B (en) A kind of compatible cloud operating platform and its implementation
US11714671B2 (en) Creating virtual machine groups based on request
US20240264871A1 (en) Storage transactions with predictable latency
US11669372B2 (en) Flexible allocation of compute resources
CN111542064B (en) Container arrangement management system and arrangement method for wireless access network
US10908936B2 (en) System and method for network function virtualization resource management
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
US11301303B2 (en) Resource pool processing to determine to create new virtual resource pools and storage devices based on currebt pools and devices not meeting SLA requirements
CN107222531B (en) Container cloud resource scheduling method
WO2017080391A1 (en) Network service deployment method and device
CN108429768A (en) Cloud data analysis service management system, method and cloud server
CN103870314A (en) Method and system for simultaneously operating different types of virtual machines by single node
CN104506620A (en) Extensible automatic computing service platform and construction method for same
CN103401917A (en) Hybrid cloud computing system based on cloud bus and realization method of hybrid cloud computing system
CN104503832B (en) A kind of scheduling virtual machine system and method for fair and efficiency balance
WO2015165095A1 (en) Method for creating virtual base station, and base station cloud device
WO2022143714A1 (en) Server system, and virtual machine creation method and apparatus
CN107370796A (en) Intelligent learning system based on Hyper TF
CN110795202B (en) A resource allocation method and device for a virtualized cluster resource management system
CN116800616B (en) Management method and related device of virtualized network equipment
CN113992688B (en) Distributed unit cloud deployment method, device, storage medium and system
WO2021022947A1 (en) Method for deploying virtual machine and related device
WO2025077279A1 (en) Server management method, device and apparatus, non-volatile readable storage medium, and electronic device
US11870669B2 (en) At-scale telemetry using interactive matrix for deterministic microservices performance
CN112087311B (en) Virtual network function VNF deployment method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 710065 Shaanxi city of Xi'an province high tech Zone Branch Road, No. 168 West Technology Park C building room 620

Applicant after: XI'AN RADIO-OFCAM INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 710065 Shaanxi city of Xi''an province high tech Zone Branch Road, No. 168 West Technology Park C building room 620

Applicant before: XI'AN RADIOCOM SYSTEMS Co.,Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A compatible cloud operating platform and its implementation method

Granted publication date: 20170315

Pledgee: Pudong Development Bank of Shanghai Limited by Share Ltd. Xi'an branch

Pledgor: XI'AN RADIO-OFCAM INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2024610000331

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20170315

Pledgee: Pudong Development Bank of Shanghai Limited by Share Ltd. Xi'an branch

Pledgor: XI'AN RADIO-OFCAM INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2024610000331