CN104598291A - Recovery method and system of nuclear power service system virtual server resources - Google Patents
Recovery method and system of nuclear power service system virtual server resources Download PDFInfo
- Publication number
- CN104598291A CN104598291A CN201410723355.3A CN201410723355A CN104598291A CN 104598291 A CN104598291 A CN 104598291A CN 201410723355 A CN201410723355 A CN 201410723355A CN 104598291 A CN104598291 A CN 104598291A
- Authority
- CN
- China
- Prior art keywords
- application
- virtual server
- lease
- module
- usage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明实施例公开了一种核电业务系统虚拟服务器资源的回收方法及系统,所述方法通过自动监视虚拟服务器的租期和应用资源使用情况来决定是否自动回收虚拟服务器。本发明通过监控虚拟服务器租期的传统方式和通过监控虚拟服务器实际使用情况的创新方法,结合自动质询的通知功能,实现了核电业务系统虚拟服务器资源的自动化回收,有效降低了核电业务系统运维的复杂度、减少了运维的工作量、节省了硬件成本。同时,本发明还提供了一种通过分析核电业务系统的特性来确定虚拟服务器实际使用情况的方法,通过该方法能有效得出虚拟服务器的实际使用情况。
The embodiment of the invention discloses a method and system for recovering virtual server resources of a nuclear power business system. The method determines whether to automatically recover the virtual server by automatically monitoring the lease period of the virtual server and the use of application resources. The present invention realizes the automatic recycling of virtual server resources of the nuclear power business system by means of the traditional method of monitoring the lease period of the virtual server and the innovative method of monitoring the actual usage of the virtual server, combined with the notification function of automatic inquiry, and effectively reduces the operation and maintenance of the nuclear power business system complexity, reducing the workload of operation and maintenance, and saving hardware costs. At the same time, the present invention also provides a method for determining the actual usage of the virtual server by analyzing the characteristics of the nuclear power business system, through which the actual usage of the virtual server can be effectively obtained.
Description
技术领域technical field
本发明涉及核电技术领域,尤其涉及一种核电业务系统虚拟服务器资源的回收方法及系统。The invention relates to the technical field of nuclear power, in particular to a method and system for recovering virtual server resources of a nuclear power business system.
背景技术Background technique
在核电业务系统中,传统的X86服务器的体系结构使其在同一时间只能运行一个操作系统。通过抽象化物理硬件的操作系统和应用资源,现今核电业务系统服务器虚拟化摆脱了X86服务器传统的一对一体系结构模式,实现了更加经济高效、更敏捷、更简单的服务器环境。借助服务器虚拟化,多个操作系统能够以虚拟机方式运行在一个物理服务器上,每个虚拟机均可访问底层服务器计算资源。In the nuclear power business system, the architecture of the traditional X86 server can only run one operating system at a time. By abstracting the operating system and application resources of physical hardware, the server virtualization of today's nuclear power business system gets rid of the traditional one-to-one architecture model of X86 servers, and realizes a more cost-effective, more agile, and simpler server environment. With server virtualization, multiple operating systems can run on a physical server as virtual machines, and each virtual machine can access the computing resources of the underlying server.
核电业务系统服务器虚拟化释放出了当今X86服务器的强大潜能。然而,大多数虚拟服务器的容量利用率依旧不高;同时存在着无实际使用却依旧占用物理服务器资源的现象,导致虚拟服务器数量剧增,运维人员很难一一确认核电业务系统虚机服务器的实际使用情况。这不仅浪费服务器的资源还增加了服务器维护的成本。The server virtualization of nuclear power business system has unleashed the powerful potential of today's X86 servers. However, the capacity utilization rate of most virtual servers is still not high; at the same time, there is a phenomenon that physical server resources are still occupied without actual use, resulting in a sharp increase in the number of virtual servers, and it is difficult for operation and maintenance personnel to confirm the virtual machine servers of the nuclear power business system one by one actual usage. This not only wastes server resources but also increases server maintenance costs.
在现有技术中,针对上述技术问题,大部分虚拟化厂商都支持针对虚拟机的定时任务,根据预先设定要的流程定时执行相应的操作。以主流的虚机化厂商VMWare公司的虚拟化操作系统ESX为例,它支持十种任务类型:启动、关闭虚拟机,克隆、部署、迁移、创建虚拟机,创建虚拟机快照,添加主机,更改电源,检查配合的合规性,更改资源池或虚拟机资源设置。也就是说,现有的回收虚拟机方法只能定时的强制关闭、移除虚拟机,无法自动判断租期内的服务器是否在使用,也无法主动询问用户是否还需使用或续租即将到期的服务器。In the prior art, to address the above technical problems, most virtualization vendors support timing tasks for virtual machines, and execute corresponding operations regularly according to preset processes. Take ESX, the virtualization operating system of the mainstream virtual machine manufacturer VMWare, as an example. It supports ten types of tasks: start and shut down virtual machines, clone, deploy, migrate, create virtual machines, create virtual machine snapshots, add hosts, change Power, check fit compliance, change resource pool or virtual machine resource settings. That is to say, the existing method of reclaiming virtual machines can only forcefully shut down and remove virtual machines at regular intervals, and cannot automatically determine whether the server is in use during the lease period, nor can it actively ask the user whether it still needs to be used or the lease renewal is about to expire server.
发明内容Contents of the invention
本发明实施例所要解决的技术问题在于,针对现有核电业务系统中回收虚拟服务器资源的方法只能定时的强制关闭、移除虚拟机,无法自动判断租期内的虚拟服务器是否在使用,也无法主动询问用户是否还需使用或续租即将到期的虚拟服务器的缺陷,提供一种核电业务系统虚拟服务器资源的回收方法及系统。The technical problem to be solved by the embodiments of the present invention is that the method for recycling virtual server resources in the existing nuclear power business system can only forcefully shut down and remove the virtual machine at regular intervals, and cannot automatically determine whether the virtual server in the lease period is in use or not. A method and system for recycling virtual server resources of a nuclear power business system are provided due to the defect that users cannot actively ask whether they still need to use or renew a virtual server that is about to expire.
为了解决上述技术问题,本发明实施例提供了一种核电业务系统虚拟服务器资源的回收方法,包括以下步骤:In order to solve the above technical problems, an embodiment of the present invention provides a method for recycling virtual server resources of a nuclear power business system, including the following steps:
S1.获取申请信息,所述申请信息包括申请人ID、租期和应用类型,并同时转步骤S2A和S2B;S1. Obtain application information, said application information includes applicant ID, lease term and application type, and go to steps S2A and S2B at the same time;
S2A.根据所述申请信息中的租期,监控租期是否到期;若未到期则继续监控租期,否则转步骤S3A;S2A. According to the lease term in the application information, monitor whether the lease term expires; if not, continue to monitor the lease term, otherwise go to step S3A;
S3A.发送邮件询问申请人是否续租;若收到续租及新租期的反馈信息则返回步骤S2A,否则转步骤S4;S3A. Send an email to ask the applicant whether to renew the lease; if the feedback information of renewal and new lease term is received, return to step S2A, otherwise go to step S4;
S2B.监控应用资源使用情况;若第一预定天数内应用资源使用情况连续低于阈值则转步骤S3B,否则继续监控应用资源使用情况;S2B. Monitor the application resource usage; if the application resource usage is continuously lower than the threshold within the first predetermined number of days, go to step S3B, otherwise continue to monitor the application resource usage;
S3B.发送邮件询问申请人主管应用资源是否使用及应用资源使用情况低的原因;若接收到应用资源仍在使用及应用资源使用情况低的原因的反馈信息则返回步骤S2B,否则转步骤S4;S3B. Send an email to ask whether the applicant's supervisor uses the application resources and the reasons for the low usage of the application resources; if the feedback information is received that the application resources are still in use and the reasons for the low usage of the application resources, return to step S2B, otherwise go to step S4;
S4.按日期和申请人进行编号,备份虚拟服务器硬盘文件;S4. Numbering by date and applicant, backing up the hard disk file of the virtual server;
S5.关闭并从物理主机移除虚拟服务器。S5. Shutting down and removing the virtual server from the physical host.
优选地,所述步骤S2A还包括以下操作:每日计算距离租期所剩天数;当所剩天数少于或等于第二预定天数时,发送邮件询问申请人是否续租,若续租则重新获取新的租期。Preferably, the step S2A also includes the following operations: calculating the remaining days from the lease period every day; when the remaining days are less than or equal to the second predetermined number of days, sending an email to ask the applicant whether to renew the lease, and if so, to renew the lease Get a new lease term.
优选地,所述应用类型包括Web Services业务和Windows/Unix/LinuxServices业务;所述Web Services业务的阈值由虚拟服务器CPU使用率和网站用户访问数量预设值决定,所述Windows/Unix/Linux Services业务的阈值由虚拟服务器使用量预设值决定。Preferably, the application type includes Web Services business and Windows/Unix/Linux Services business; the threshold of the Web Services business is determined by the virtual server CPU usage and the preset value of the number of website user visits, and the Windows/Unix/Linux Services The business threshold is determined by the virtual server usage preset value.
优选地,所述应用资源使用情况通过以下公式来计算:Preferably, the application resource usage is calculated by the following formula:
其中,函数Fn(t)为t时刻应用资源n的使用情况;i为函数涉及的维度数,所述维度包括:CPU资源利用率、内存利用率、磁盘利用率和访问量;λni为每个维度的敏感系数,用于反映不同应用场景下对各维度的重视程度,默认为1;πni(t)为t时刻应用资源n对维度i的使用率;T为计算应用资源使用情况的周期。Wherein, the function F n (t) is the utilization of the application resource n at time t; i is the number of dimensions involved in the function, and the dimensions include: CPU resource utilization, memory utilization, disk utilization and access volume; λ ni is The sensitivity coefficient of each dimension is used to reflect the importance of each dimension in different application scenarios, and the default is 1; π ni (t) is the usage rate of application resource n on dimension i at time t; T is the usage of computing application resources cycle.
优选地,在所述步骤S2B中,通过改变应用资源的生命周期来触发邮件发送;所述应用资源的生命周期通过下列公式来确定:Preferably, in the step S2B, the email sending is triggered by changing the life cycle of the application resource; the life cycle of the application resource is determined by the following formula:
其中,τn(t)为t时刻应用资源n的生命周期,τn_initial为应用资源n的租期,Fn为应用资源n的阈值。Wherein, τ n (t) is the life cycle of the application resource n at time t, τ n_initial is the lease period of the application resource n, and F n is the threshold of the application resource n.
相应地,本发明还提供了一种核电业务系统虚拟服务器资源的回收系统,包括:申请模块、租期监控模块、应用监控模块、通知模块、备份模块和回收模块;其中,Correspondingly, the present invention also provides a recovery system for virtual server resources of a nuclear power business system, including: an application module, a lease period monitoring module, an application monitoring module, a notification module, a backup module and a recovery module; wherein,
所述申请模块用于提供虚拟服务器申请服务并获取申请信息,所述申请信息包括申请人ID、租期和应用类型;The application module is used to provide a virtual server application service and obtain application information, the application information includes applicant ID, lease term and application type;
所述租期监控模块用于根据申请人申请的租期,监控租期是否到期;The lease term monitoring module is used to monitor whether the lease term expires according to the lease term applied by the applicant;
所述应用监控模块用于监控应用资源使用情况并将应用资源使用情况与应用资源使用阈值相比,以获得应用资源使用情况监控结果;The application monitoring module is used to monitor the application resource usage and compare the application resource usage with the application resource usage threshold to obtain the application resource usage monitoring result;
所述通知模块进一步包括第一通知子模块和第二通知子模块;其中,所述第一通知子模块用于根据所述租期监控模块的监控情况向申请人发送续租询问邮件并接受申请人的反馈信息,所述第二通知子模块用于根据所述应用监控模块的监控结果向申请人主管发送应用资源是否使用及应用资源情况低的原因并接受申请人主管的反馈信息;The notification module further includes a first notification submodule and a second notification submodule; wherein, the first notification submodule is used to send a lease renewal inquiry email to the applicant according to the monitoring situation of the lease monitoring module and accept the application Feedback information from people, the second notification sub-module is used to send to the applicant supervisor whether the application resource is used and the reason why the application resource is low according to the monitoring result of the application monitoring module, and accept the feedback information from the applicant supervisor;
所述备份模块用于根据所述通知模块的控制指令按日期和申请人进行编号,备份虚拟服务器硬盘文件;The backup module is used to number according to the date and the applicant according to the control instruction of the notification module, and back up the hard disk file of the virtual server;
所述回收模块用于根据所述备份模块的控制指令关闭并从物理主机移除虚拟服务器。The recycling module is used to close and remove the virtual server from the physical host according to the control instruction of the backup module.
优选地,所述租期监控模块还剩余天数计算子模块;所述剩余天数计算子模块用于每日计算距离租期所剩天数;当所剩天数少于或等于第二预定天数时,所述租期监控模块触发所述通知模块发送邮件询问申请人是否续租,若续租则重新获取申请人申请的租期。Preferably, the lease period monitoring module also has a remaining days calculation submodule; the remaining days calculation submodule is used to calculate the remaining days from the lease period every day; when the remaining days are less than or equal to the second predetermined number of days, the The lease period monitoring module triggers the notification module to send an email to ask the applicant whether to renew the lease, and if the lease is renewed, the lease period applied by the applicant is obtained again.
优选地,所述应用类型包括Web Services业务和Windows/Unix/LinuxServices业务;所述Web Services业务的阈值由虚拟服务器CPU使用率和网站用户访问数量预设值决定,所述Windows/Unix/Linux Services业务的阈值由虚拟服务器使用量预设值决定。Preferably, the application type includes Web Services business and Windows/Unix/Linux Services business; the threshold of the Web Services business is determined by the virtual server CPU usage and the preset value of the number of website user visits, and the Windows/Unix/Linux Services The business threshold is determined by the virtual server usage preset value.
优选地,所述应用资源使用情况通过以下公式来计算:Preferably, the application resource usage is calculated by the following formula:
其中,函数Fn(t)为t时刻应用资源n的使用情况;i为函数涉及的维度数,所述维度包括:CPU资源利用率、内存利用率、磁盘利用率和访问量;λni为每个维度的敏感系数,用于反映不同应用场景下对各维度的重视程度,默认为1;πni(t)为t时刻应用资源n对维度i的使用率;T为计算应用资源使用情况的周期。Wherein, the function F n (t) is the usage of the application resource n at time t; i is the number of dimensions involved in the function, and the dimensions include: CPU resource utilization, memory utilization, disk utilization and access volume; λ ni is The sensitivity coefficient of each dimension is used to reflect the importance of each dimension in different application scenarios, and the default is 1; π ni (t) is the usage rate of application resource n on dimension i at time t; T is the usage of computing application resources cycle.
优选地,所述应用监控模块还用于通过改变应用资源的生命周期来触发所述第二通知模块;所述应用资源的生命周期通过下列公式来确定:Preferably, the application monitoring module is also configured to trigger the second notification module by changing the life cycle of the application resource; the life cycle of the application resource is determined by the following formula:
其中,τn(t)为t时刻应用资源n的生命周期,τn_initial为应用资源n的租期,Fn为应用资源n的阈值。Wherein, τ n (t) is the life cycle of the application resource n at time t, τ n_initial is the lease period of the application resource n, and F n is the threshold of the application resource n.
实施本发明实施例,具有如下有益效果:本发明通过监控虚拟服务器租期的传统方式和通过监控虚拟服务器实际使用率的创新方法,结合自动质询的通知功能,实现了核电业务系统虚拟服务器资源的自动化回收,有效降低了核电业务系统运维的复杂度、减少了运维的工作量、节省了硬件成本。同时,本发明还提供了一种通过分析核电业务系统的特性来确定虚拟服务器实际使用率的方法,通过该方法能有效得出虚拟服务器的实际使用率。Implementing the embodiment of the present invention has the following beneficial effects: the present invention realizes the virtual server resources of the nuclear power business system through the traditional method of monitoring the lease period of the virtual server and the innovative method of monitoring the actual utilization rate of the virtual server, combined with the notification function of automatic inquiry. Automated recycling effectively reduces the complexity of operation and maintenance of the nuclear power business system, reduces the workload of operation and maintenance, and saves hardware costs. At the same time, the present invention also provides a method for determining the actual utilization rate of the virtual server by analyzing the characteristics of the nuclear power business system, through which the actual utilization rate of the virtual server can be effectively obtained.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明提供的第一实施例核电业务系统虚拟服务器资源的回收方法流程图;Fig. 1 is a flowchart of a method for recovering virtual server resources of a nuclear power business system according to the first embodiment provided by the present invention;
图2是本发明提供的第二实施例流核电业务系统虚拟服务器资源的回收系统结构方框图;Fig. 2 is the structural block diagram of the recycling system of the virtual server resource of the stream nuclear power business system of the second embodiment provided by the present invention;
图3是本发明提供的第三实施例核电业务系统虚拟服务器资源的回收系统数据库结构字段示意图。Fig. 3 is a schematic diagram of the structure fields of the database structure of the nuclear power business system virtual server resource recycling system according to the third embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
请参见图1,图1是本发明提供的第一实施例核电业务系统虚拟服务器资源的回收方法流程图。如图1所示,本实施例提供的核电业务系统虚拟服务器资源的回收方法包括以下步骤:Please refer to FIG. 1 . FIG. 1 is a flowchart of a method for recovering virtual server resources of a nuclear power business system according to a first embodiment of the present invention. As shown in FIG. 1 , the method for recovering virtual server resources of a nuclear power business system provided in this embodiment includes the following steps:
S1.获取申请信息,所述申请信息包括申请人ID、租期和应用类型,并同时转步骤S2A和S2B;S1. Obtain application information, said application information includes applicant ID, lease term and application type, and go to steps S2A and S2B at the same time;
优选地,申请人通过门户网站申请虚拟服务器并通过申请模块提交申请信息;在本发明提供的一个优选实施例中,应用类型主要包括两类:Web Services业务和Windows/Unix/Linux Services业务;Preferably, the applicant applies for a virtual server through the portal website and submits the application information through the application module; in a preferred embodiment provided by the present invention, the application types mainly include two types: Web Services business and Windows/Unix/Linux Services business;
S2A.根据所述申请信息中的租期,监控租期是否到期;若未到期则继续监控租期,否则转步骤S3A;S2A. According to the lease term in the application information, monitor whether the lease term expires; if not, continue to monitor the lease term, otherwise go to step S3A;
S3A.发送邮件询问申请人是否续租;若收到续租及新租期的反馈信息则返回步骤S2A,否则转步骤S4;S3A. Send an email to ask the applicant whether to renew the lease; if the feedback information of renewal and new lease term is received, return to step S2A, otherwise go to step S4;
在申请人续租后,租期监控模块会重新接收申请人申请的租期,并按照新的租期继续监控租期是否到期;如果申请人不续租或者在规定期限内未回应通知模块发出的询问邮件,那么通知模块就会触发备份模块进行备份,进而自动回收虚拟服务器资源;After the applicant renews the lease, the lease term monitoring module will re-accept the lease term applied by the applicant, and continue to monitor whether the lease term expires according to the new lease term; if the applicant does not renew the lease or does not respond to the notification module within the specified time limit Inquiry email sent, the notification module will trigger the backup module to back up, and then automatically reclaim the virtual server resources;
S2B.监控应用资源使用情况;若第一预定天数内应用资源使用情况连续低于阈值则转步骤S3B,否则继续监控应用资源使用情况;S2B. Monitor the application resource usage; if the application resource usage is continuously lower than the threshold within the first predetermined number of days, go to step S3B, otherwise continue to monitor the application resource usage;
在本发明提供的一个优选实施例中,第一预定天数为3周;如果连续3周应用监控模块都监控到应用资源的使用情况低于阈值,也就是说应用资源的使用不满足最低要求,那么应用监控模块就会触发通知模块去询问申请人主管是否在使用该虚拟服务器以及应用资源使用情况偏低的原因;在本发明提供的一个优选实施例中,Web Services业务的阈值由虚拟服务器CPU使用率和网站用户访问数量预设值决定,所述Windows/Unix/Linux Services业务的阈值由虚拟服务器使用量预设值决定;In a preferred embodiment provided by the present invention, the first predetermined number of days is 3 weeks; if the application monitoring module monitors that the usage of application resources is lower than the threshold for 3 consecutive weeks, that is to say, the usage of application resources does not meet the minimum requirements, Then the application monitoring module will trigger the notification module to ask whether the applicant supervisor is using the virtual server and the reason why the application resource usage is low; in a preferred embodiment provided by the present invention, the threshold of Web Services business is determined by the virtual server CPU The utilization rate and the preset value of the number of website user visits are determined, and the threshold of the Windows/Unix/Linux Services business is determined by the preset value of the virtual server usage;
S3B.发送邮件询问申请人主管应用资源是否使用及应用资源使用情况低的原因;若接收到应用资源仍在使用及应用资源使用情况低的原因的反馈信息则返回步骤S2B,否则转步骤S4;S3B. Send an email to ask whether the applicant's supervisor uses the application resources and the reasons for the low usage of the application resources; if the feedback information is received that the application resources are still in use and the reasons for the low usage of the application resources, return to step S2B, otherwise go to step S4;
在这一步骤中,如果申请人主管反馈应用资源未使用或反馈在使用但未回复应用资源使用情况低的原因或者是在规定期限内未回应通知模块发送的询问邮件,通知模块都会触发备份模块进行备份,进而自动回收虚拟服务器;In this step, if the applicant supervisor feedbacks that the application resource is not in use or feedback is in use but does not respond to the reason for the low application resource usage or fails to respond to the inquiry email sent by the notification module within the specified time limit, the notification module will trigger the backup module Make backups and then automatically recycle virtual servers;
S4.按日期和申请人进行编号,备份虚拟服务器硬盘文件;S4. Numbering by date and applicant, backing up the hard disk file of the virtual server;
S5.关闭并从物理主机移除虚拟服务器。S5. Shutting down and removing the virtual server from the physical host.
本实施例通过监控虚拟服务器租期的传统方式和通过监控虚拟服务器实际使用率的创新方法,结合自动质询的通知功能,实现了核电业务系统虚拟服务器资源的自动化回收,有效降低了核电业务系统运维的复杂度、减少了运维的工作量、节省了硬件成本。In this embodiment, through the traditional method of monitoring the lease period of the virtual server and the innovative method of monitoring the actual utilization rate of the virtual server, combined with the notification function of the automatic inquiry, the automatic recovery of the virtual server resources of the nuclear power business system is realized, which effectively reduces the operational cost of the nuclear power business system. Dimension complexity, reducing the workload of operation and maintenance, saving hardware costs.
在本发明提供的另一个优选实施例中,步骤S2A还包括以下操作:每日计算距离租期所剩天数;当所剩天数少于或等于第二预定天数时,发送邮件询问申请人是否续租并告知申请人距离租期所剩天数,若续租则重新获取申请人申请的租期。优选地,第二预定天数为2周。通过实施本实施例,可实现提前通知申请人租期所剩天数,从而让申请人有足够的时间考虑是否续租以及为申请人申请续租提供足够长的可操作时间,进而不影响虚拟服务器的正常使用。In another preferred embodiment provided by the present invention, step S2A also includes the following operations: calculate the remaining days from the lease period every day; when the remaining days are less than or equal to the second predetermined number of days, send an email to ask the applicant whether to continue The applicant will be notified of the number of days left before the lease period. If the lease is renewed, the lease period applied by the applicant will be obtained again. Preferably, the second predetermined number of days is 2 weeks. Through the implementation of this embodiment, the applicant can be notified in advance of the remaining days of the lease, so that the applicant has enough time to consider whether to renew the lease and provide enough operational time for the applicant to apply for renewal without affecting the virtual server. normal use.
请参见图2,图2是本发明提供的第二实施例核电业务系统虚拟服务器资源的回收系统结构方框图。如图2所示,本实施例提供的核电业务系统虚拟服务器资源的回收系统100包括:申请模块1、租期监控模块2、应用监控模块3、通知模块4、备份模块5和回收模块6。Please refer to FIG. 2 . FIG. 2 is a structural block diagram of a recovery system for virtual server resources of a nuclear power business system according to a second embodiment of the present invention. As shown in FIG. 2 , the nuclear power business system virtual server resource recovery system 100 provided in this embodiment includes: an application module 1 , a lease period monitoring module 2 , an application monitoring module 3 , a notification module 4 , a backup module 5 and a recovery module 6 .
其中,申请模块1用于提供虚拟服务器申请服务并获取申请人提交的申请信息,所述申请信息包括申请人ID、租期和应用类型。优选地,申请人通过门户网站申请虚拟服务器,并通过申请模块1将申请信息提交至系统100。应用类型主要包括两类,即Web Services业务和Windows/Unix/Linux Services业务。Wherein, the application module 1 is used to provide a virtual server application service and obtain application information submitted by the applicant, and the application information includes the applicant ID, lease term and application type. Preferably, the applicant applies for a virtual server through the portal website, and submits the application information to the system 100 through the application module 1 . Application types mainly include two types, namely Web Services business and Windows/Unix/Linux Services business.
租期监控模块2用于根据申请人申请的租期,监控租期是否到期。优选地,租期监控模块2每天都检测一次申请人的租期是否到期,如果到期了,那么就出发通知模块4以邮件的方式通知客户,如果未到期,则继续监控租期。The lease term monitoring module 2 is used to monitor whether the lease term expires according to the lease term applied by the applicant. Preferably, the lease term monitoring module 2 detects once a day whether the applicant's lease term has expired, and if it expires, the notification module 4 will notify the client by email, and if it has not expired, continue to monitor the lease term.
应用监控模块3用于监控应用资源使用情况并将应用资源使用情况与应用资源使用阈值相比,以获得应用资源使用情况监控结果。优选地,应用监控模块3每天检测一次用户的应用资源使用情况,并将应用资源使用情况与阈值相比较,如果连续3周的应用资源使用情况都低于阈值,也就是说应用资源的使用不满足最低要求,那么应用监控模块3就会触发通知模块4去询问申请人主管是否在使用该虚拟服务器以及应用资源使用情况偏低的原因。在本发明提供的一个优选实施例中,Web Services业务的阈值由虚拟服务器CPU使用率和网站用户访问数量预设值决定,所述Windows/Unix/Linux Services业务的阈值由虚拟服务器使用量预设值决定。The application monitoring module 3 is used to monitor the application resource usage and compare the application resource usage with the application resource usage threshold to obtain the application resource usage monitoring result. Preferably, the application monitoring module 3 detects the user's application resource usage once a day, and compares the application resource usage with a threshold. If the application resource usage for 3 consecutive weeks is lower than the threshold, that is to say, the application resource usage is not enough. If the minimum requirements are met, then the application monitoring module 3 will trigger the notification module 4 to ask whether the applicant supervisor is using the virtual server and why the application resource usage is low. In a preferred embodiment provided by the present invention, the threshold of the Web Services business is determined by the virtual server CPU usage rate and the preset value of the number of website user visits, and the threshold of the Windows/Unix/Linux Services business is preset by the virtual server usage Value decides.
通知模块4进一步包括第一通知子模块41(图2中未示出)和第二通知子模块42(图2中未示出)。其中,第一通知子模块41用于根据租期监控模块2的监控情况向申请人发送续租询问邮件并接受申请人的反馈信息,第二通知子模块42用于根据应用监控模块3的监控结果向申请人主管发送应用资源是否使用及应用资源情况低的原因并接受申请人的反馈信息。在申请人续租后,第一通知子模块41会将申请人申请的租期发送给租期监控模块2,租期监控模块2重新接收申请人申请的租期,并按照新的租期继续监控租期是否到期;如果申请人不续租或者在规定期限内未回应第一通知子模块41发出的询问邮件,那么第一通知子模块41就会触发备份模块5进行备份,进而自动回收虚拟服务器资源。同样,在申请人主管反馈应用资源在使用及使用情况低的原因后,第二通知子模块42会将该信息反馈给应用监控模块3使其继续正常监控应用使用情况。如果申请人主管反馈给第二通知子模块42应用资源未使用或反馈在使用但未回复应用资源使用情况低的原因或者是在规定期限内未回应第二通知子模块42发送的询问邮件,第二通知子模块42都会触发备份模块5进行备份,进而自动回收虚拟服务器。The notification module 4 further includes a first notification submodule 41 (not shown in FIG. 2 ) and a second notification submodule 42 (not shown in FIG. 2 ). Among them, the first notification sub-module 41 is used to send the renewal inquiry mail to the applicant according to the monitoring situation of the lease monitoring module 2 and accept the applicant's feedback information, and the second notification sub-module 42 is used to send the renewal inquiry email to the applicant according to the monitoring situation of the application monitoring module 3. As a result, send the applicant's supervisor whether the application resources are used and the reasons for the low application resources, and accept the applicant's feedback information. After the applicant renews the lease, the first notification sub-module 41 will send the lease period applied by the applicant to the lease period monitoring module 2, and the lease period monitoring module 2 will receive the lease period applied by the applicant again, and continue the process according to the new lease period. Monitor whether the lease term expires; if the applicant does not renew the lease or does not respond to the inquiry email sent by the first notification sub-module 41 within the specified time limit, then the first notification sub-module 41 will trigger the backup module 5 to perform backup, and then automatically recycle Virtual server resources. Similarly, after the applicant's supervisor feeds back the reasons for the low usage of application resources, the second notification sub-module 42 will feed back the information to the application monitoring module 3 so that it can continue to monitor the application usage normally. If the applicant’s supervisor feeds back to the second notification sub-module 42 that the application resource is not in use or is in use but does not reply the reason for the low usage of the application resource or fails to respond to the inquiry email sent by the second notification sub-module 42 within the specified time limit, the Both notification sub-modules 42 will trigger the backup module 5 to perform backup, and then automatically recover the virtual server.
备份模块5用于根据通知模块4的控制指令按日期和申请人进行编号,备份虚拟服务器硬盘文件。The backup module 5 is used for numbering by date and applicant according to the control instruction of the notification module 4, and backing up the hard disk files of the virtual server.
回收模块6用于根据备份模块5的控制指令关闭并从物理主机移除虚拟服务器。具体地,备份模块5完成备份后即触发回收模块6回收虚拟服务器资源。The recycling module 6 is used to shut down and remove the virtual server from the physical host according to the control instruction of the backup module 5 . Specifically, after the backup module 5 completes the backup, it triggers the recovery module 6 to recover virtual server resources.
本实施例通过监控虚拟服务器租期的传统方式和通过监控虚拟服务器实际使用率的创新方法,结合自动质询的通知功能,实现了核电业务系统虚拟服务器资源的自动化回收,有效降低了核电业务系统运维的复杂度、减少了运维的工作量、节省了硬件成本。In this embodiment, through the traditional method of monitoring the lease period of the virtual server and the innovative method of monitoring the actual utilization rate of the virtual server, combined with the notification function of the automatic inquiry, the automatic recovery of the virtual server resources of the nuclear power business system is realized, which effectively reduces the operational cost of the nuclear power business system. Dimension complexity, reducing the workload of operation and maintenance, saving hardware costs.
在本发明提供的另一优选实施例中,租期监控模块2还包括剩余天数计算子模块21(图2中未示出)。剩余天数计算模块21用于每日计算距离租期所剩天数。当所剩天数少于或等于第二预定天数时,优选第二预定天数为2周,剩余天数计算子模块21触发第一通知子模块41发送邮件询问申请人是否续租并告知申请人距离租期所剩天数。若申请人续租则重新获取申请人申请的租期。通过实施本实施例,可实现提前通知申请人租期所剩天数,从而让申请人有足够的时间考虑是否续租以及为申请人申请续租提供足够长的可操作时间,进而不影响虚拟服务器的正常使用。In another preferred embodiment provided by the present invention, the lease term monitoring module 2 further includes a remaining days calculation sub-module 21 (not shown in FIG. 2 ). The remaining days calculation module 21 is used to calculate the remaining days from the lease period every day. When the number of remaining days is less than or equal to the second predetermined number of days, preferably the second predetermined number of days is 2 weeks, the remaining days calculation submodule 21 triggers the first notification submodule 41 to send an email to ask the applicant whether to renew the lease and inform the applicant of the distance from the lease. days remaining in the period. If the applicant renews the lease, the lease period applied by the applicant will be obtained again. Through the implementation of this embodiment, the applicant can be notified in advance of the remaining days of the lease, so that the applicant has enough time to consider whether to renew the lease and provide enough operational time for the applicant to apply for renewal without affecting the virtual server. normal use.
请参见图3,图3是本发明提供的第三实施例核电业务系统虚拟服务器资源的回收系统数据库结构字段示意图。如图3所示,本实施例提供的数据库结构字段包括两列,左边第一列表示字段属性,第二列表示字段的名称。ID是申请人的ID号,其属性为主键,用来表示唯一申请人。SID是唯一申请人主管的ID号。租期为申请人申请的虚拟服务器的租约期限。业务类型包括两类,一类是Web Services业务,另一类是Windows/Unix/Linux Services业务。阈值1表示Web Services业务的阈值,该阈值由虚拟服务器CPU使用率和网站用户访问数量预设值决定。阈值2表示Windows/Unix/Linux Services业务的阈值,该阈值由服务使用量预设值决定。Please refer to FIG. 3 . FIG. 3 is a schematic diagram of structure fields of the database structure of the virtual server resource recycling system of the nuclear power business system according to the third embodiment of the present invention. As shown in FIG. 3 , the database structure field provided by this embodiment includes two columns, the first column on the left indicates the attribute of the field, and the second column indicates the name of the field. ID is the ID number of the applicant, and its attribute is the primary key, which is used to represent the unique applicant. The SID is the ID number of the unique applicant supervisor. The lease term is the lease term of the virtual server applied by the applicant. Business types include two types, one is Web Services business, and the other is Windows/Unix/Linux Services business. Threshold 1 represents the threshold of the Web Services business, which is determined by the virtual server CPU usage and the preset value of the number of website user visits. Threshold 2 indicates the threshold of Windows/Unix/Linux Services business, which is determined by the preset value of service usage.
在本发明提供的一个优选实施例中,应用资源使用阈值,即阈值1或阈值2用Fn表示,n表示应用资源编号。而应用资源n在t时刻的应用资源使用情况可用函数Fn(t)表示,Fn(t)的计算公式如下:In a preferred embodiment provided by the present invention, the application resource usage threshold, that is, threshold 1 or threshold 2 is represented by Fn , and n represents the application resource number. The application resource usage of application resource n at time t can be expressed by the function F n (t), and the calculation formula of F n (t) is as follows:
其中,i为函数涉及的维度数,所述维度包括:CPU资源利用率、内存利用率、磁盘利用率和访问量;λni为每个维度的敏感系数,用于反映不同应用场景下对各维度的重视程度,默认为1;πni(t)为t时刻应用资源n对维度i的使用率;T为计算应用资源使用情况的周期,例如每天计算一次,那么为前一天;若每周计算一次,则T为一周。本积分函数积分时间区域的实际含义为:本次积分为从上一次积分完成时刻到本次积分这一刻内,维度i的资源使用情况。Among them, i is the number of dimensions involved in the function, and the dimensions include: CPU resource utilization, memory utilization, disk utilization and access volume; λ ni is the sensitivity coefficient of each dimension, which is used to reflect the sensitivity of each dimension in different application scenarios. The importance of the dimension, the default is 1; π ni (t) is the usage rate of application resource n on dimension i at time t; T is the cycle for calculating the usage of application resources, for example, once a day, then it is the previous day; if every week Calculate once, then T is one week. The actual meaning of the integration time area of this integration function is: this integration is the resource usage of dimension i from the last integration completion time to the current integration moment.
通过实施本实施例,应用监控模块3就可以非常容易地计算任何时刻,如某一个月、某一周、某一天或某一个小时等,虚拟机服务器应用资源的使用情况。基于上述方法计算的应用资源的使用情况,应用监控模块3就能通过改变应用资源的生命周期来触发第二通知模块42。具体地,如果在任意时刻t,如第25天,都监测到资源n在周期T内(优选3周)的使用情况低于其阈值Fn,那么就可以让其生命周期等于t,即25天,也就是说,监测当天即其生命结束的时间,那么第二通知模块42就会询问申请人主管是否在使用该资源以及使用情况低的原因。如果监测到其使用情况不低于阈值Fn,那么就维持期正常的生命周期不改变,而资源n的正常生命周期即申请人所申请的租期。用公式表示如下:By implementing this embodiment, the application monitoring module 3 can easily calculate the usage of virtual machine server application resources at any time, such as a certain month, a certain week, a certain day or a certain hour. Based on the usage of the application resource calculated by the above method, the application monitoring module 3 can trigger the second notification module 42 by changing the life cycle of the application resource. Specifically, if at any time t, such as the 25th day, it is monitored that the usage of resource n within a period T (preferably 3 weeks) is lower than its threshold F n , then its life cycle can be equal to t, that is, 25 days, that is to say, the monitoring day is the time when its life ends, then the second notification module 42 will ask whether the applicant's supervisor is using the resource and why the usage is low. If it is detected that its usage is not lower than the threshold F n , then the normal life cycle of the maintenance period will not change, and the normal life cycle of resource n is the lease period applied by the applicant. The formula is as follows:
其中,τn(t)为t时刻应用资源n的生命周期,τn_initial为应用资源n的租期,Fn为应用资源n的阈值。本实施例提供了一种非常简单的利用监测到的应用资源使用情况,通过改变其生命周期来触发通知模块质询申请人主管的方法。Wherein, τ n (t) is the life cycle of the application resource n at time t, τ n_initial is the lease period of the application resource n, and F n is the threshold of the application resource n. This embodiment provides a very simple method of using the monitored application resource usage to trigger the notification module to challenge the applicant's supervisor by changing its life cycle.
上述描述涉及各种模块。这些模块通常包括硬件和/或硬件与软件的组合(例如固化软件)。这些模块还可以包括包含指令(例如,软件指令)的计算机可读介质(例如,永久性介质),当处理器执行这些指令时,就可以执行本发明的各种功能性特点。相应地,除非明确要求,本发明的范围不受实施例中明确提到的模块中的特定硬件和/或软件特性的限制。作为非限制性例子,本发明在实施例中可以由一种或多种处理器(例如微处理器、数字信号处理器、基带处理器、微控制器)执行软件指令(例如存储在非永久性存储器和/或永久性存储器)。另外,本发明还可以用专用集成电路(ASIC)和/或其他硬件元件执行。需要指出的是,上文对各种模块的描述中,分割成这些模块,是为了说明清楚。然而,在实际实施中,各种模块的界限可以是模糊的。例如,本文中的任意或所有功能性模块可以共享各种硬件和/或软件元件。又例如,本文中的任何和/或所有功能模块可以由共有的处理器执行软件指令来全部或部分实施。另外,由一个或多个处理器执行的各种软件子模块可以在各种软件模块间共享。相应地,除非明确要求,本发明的范围不受各种硬件和/或软件元件间强制性界限的限制。The above description refers to various modules. These modules typically include hardware and/or a combination of hardware and software (eg, firmware). These modules may also include computer-readable media (eg, non-transitory media) containing instructions (eg, software instructions) that, when executed by a processor, perform various functional features of the present invention. Accordingly, the scope of the present invention is not limited by specific hardware and/or software characteristics in modules explicitly mentioned in the embodiments unless explicitly required. As a non-limiting example, in an embodiment of the present invention, one or more processors (such as microprocessors, digital signal processors, baseband processors, microcontrollers) execute software instructions (such as stored in non-permanent memory and/or permanent storage). Additionally, the present invention may also be implemented using Application Specific Integrated Circuits (ASICs) and/or other hardware components. It should be pointed out that, in the above description of various modules, the division into these modules is for the sake of clarity. However, in actual implementations, the boundaries of various modules can be blurred. For example, any or all of the functional modules herein may share various hardware and/or software elements. For another example, any and/or all functional modules herein may be fully or partially implemented by a shared processor executing software instructions. Additionally, various software sub-modules executed by one or more processors may be shared among the various software modules. Accordingly, the scope of the present invention should not be limited by mandatory boundaries between various hardware and/or software elements unless explicitly claimed.
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。What is disclosed above is only a preferred embodiment of the present invention, and of course it cannot limit the scope of rights of the present invention. Those of ordinary skill in the art can understand all or part of the process for realizing the above embodiments, and according to the rights of the present invention The equivalent changes required still belong to the scope covered by the invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410723355.3A CN104598291B (en) | 2014-12-02 | 2014-12-02 | A kind of recovery method and system of nuclear power operation system virtual server resource |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410723355.3A CN104598291B (en) | 2014-12-02 | 2014-12-02 | A kind of recovery method and system of nuclear power operation system virtual server resource |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104598291A true CN104598291A (en) | 2015-05-06 |
| CN104598291B CN104598291B (en) | 2018-11-16 |
Family
ID=53124109
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410723355.3A Active CN104598291B (en) | 2014-12-02 | 2014-12-02 | A kind of recovery method and system of nuclear power operation system virtual server resource |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104598291B (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106067852A (en) * | 2016-06-08 | 2016-11-02 | 智者四海(北京)技术有限公司 | The monitoring method and device of server usage amount |
| CN108932166A (en) * | 2018-07-25 | 2018-12-04 | 浪潮电子信息产业股份有限公司 | Resource use control method, device and equipment under cloud management platform architecture |
| CN109508226A (en) * | 2018-11-20 | 2019-03-22 | 郑州云海信息技术有限公司 | A kind of management method of the virtual machine life cycle based on openstack |
| CN111736961A (en) * | 2020-08-18 | 2020-10-02 | 鹏城实验室 | Method and device for releasing virtual machine, storage medium and electronic device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6601110B2 (en) * | 1998-03-17 | 2003-07-29 | Sun Microsystems, Inc. | System and method for translating file-level operations in a non-door-based operating system to door invocations on a door server |
| CN101663646A (en) * | 2006-12-22 | 2010-03-03 | 惠普发展公司,有限责任合伙企业 | Computer system and its control method |
| CN102270157A (en) * | 2011-07-25 | 2011-12-07 | 浪潮(北京)电子信息产业有限公司 | Server resource allocation system and method |
-
2014
- 2014-12-02 CN CN201410723355.3A patent/CN104598291B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6601110B2 (en) * | 1998-03-17 | 2003-07-29 | Sun Microsystems, Inc. | System and method for translating file-level operations in a non-door-based operating system to door invocations on a door server |
| CN101663646A (en) * | 2006-12-22 | 2010-03-03 | 惠普发展公司,有限责任合伙企业 | Computer system and its control method |
| CN102270157A (en) * | 2011-07-25 | 2011-12-07 | 浪潮(北京)电子信息产业有限公司 | Server resource allocation system and method |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106067852A (en) * | 2016-06-08 | 2016-11-02 | 智者四海(北京)技术有限公司 | The monitoring method and device of server usage amount |
| CN108932166A (en) * | 2018-07-25 | 2018-12-04 | 浪潮电子信息产业股份有限公司 | Resource use control method, device and equipment under cloud management platform architecture |
| CN108932166B (en) * | 2018-07-25 | 2020-01-10 | 苏州浪潮智能科技有限公司 | Resource use control method, device and equipment under cloud management platform architecture |
| CN109508226A (en) * | 2018-11-20 | 2019-03-22 | 郑州云海信息技术有限公司 | A kind of management method of the virtual machine life cycle based on openstack |
| CN109508226B (en) * | 2018-11-20 | 2021-10-29 | 郑州云海信息技术有限公司 | A management method of virtual machine life cycle based on openstack |
| CN111736961A (en) * | 2020-08-18 | 2020-10-02 | 鹏城实验室 | Method and device for releasing virtual machine, storage medium and electronic device |
| CN111736961B (en) * | 2020-08-18 | 2020-12-01 | 鹏城实验室 | Method and device for releasing virtual machine, storage medium and electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104598291B (en) | 2018-11-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9977704B1 (en) | Automated backup and replication of virtual machine data centers | |
| US10152382B2 (en) | Method and system for monitoring virtual machine cluster | |
| US8959509B1 (en) | Techniques for virtual machine backup scheduling | |
| US9424021B2 (en) | Capturing updates to applications and operating systems | |
| CN103246589B (en) | Multithread monitoring method and device | |
| US9128627B1 (en) | Method and system for virtual machine backup | |
| US20150089505A1 (en) | Systems and methods for fault tolerant batch processing in a virtual environment | |
| EP3226153B1 (en) | Impact analysis-based task redoing method, impact analysis calculation apparatus and one-click reset apparatus | |
| US10353786B2 (en) | Virtualization substrate management device, virtualization substrate management system, virtualization substrate management method, and recording medium for recording virtualization substrate management program | |
| CN104598291B (en) | A kind of recovery method and system of nuclear power operation system virtual server resource | |
| US9838332B1 (en) | Dynamically meeting slas without provisioning static capacity | |
| WO2016045439A1 (en) | Vnfm disaster-tolerant protection method and device, nfvo and storage medium | |
| CN104199753A (en) | Virtual machine application service failure recovery system and method | |
| CN106020931A (en) | Heat-based cloud application deployment scheme | |
| CN105589756A (en) | Batch processing cluster system and method | |
| US12147316B2 (en) | Event-based data synchronization | |
| US10237266B2 (en) | Privileged shared account password sanitation | |
| CN115562911A (en) | Virtual machine data backup method, device, system, electronic equipment and storage medium | |
| CN110268378B (en) | Method for creating data backup, storage medium and virtual server | |
| US8914680B2 (en) | Resolution of system hang due to filesystem corruption | |
| US20210049240A1 (en) | Highly available policy agent for backup and restore operations | |
| CN103902401A (en) | Virtual machine fault tolerance method and device based on monitoring | |
| US11922199B2 (en) | Associating security tags to continuous data protection checkpoints/snapshots/point-in-time images | |
| CN111090491B (en) | Virtual machine task state recovery method and device and electronic equipment | |
| WO2017107828A1 (en) | Method and device for processing data after restart of node |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |