CN105025104A - A cloud desktop scheduling method and system - Google Patents

A cloud desktop scheduling method and system Download PDF

Info

Publication number
CN105025104A
CN105025104A CN201510437300.0A CN201510437300A CN105025104A CN 105025104 A CN105025104 A CN 105025104A CN 201510437300 A CN201510437300 A CN 201510437300A CN 105025104 A CN105025104 A CN 105025104A
Authority
CN
China
Prior art keywords
physical host
migrated
cloud desktop
cloud
load
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510437300.0A
Other languages
Chinese (zh)
Inventor
陈光新
朱波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510437300.0A priority Critical patent/CN105025104A/en
Publication of CN105025104A publication Critical patent/CN105025104A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a cloud desktop scheduling method and system. The method includes monitoring operation states and performance of a plurality of physical hosts and a plurality of cloud desktops in real time. When that the physical hosts meet failures is detected, the cloud desktops of the physical hosts meeting failures are transferred to the physical hosts not meeting failures by adopting a predetermined scheduling strategy. The scheduling strategy is predetermined based on the detected operation performance of the physical hosts and the cloud desktops. By adopting the scheme provided by the invention, when the physical hosts meet failures, dynamic transfer of the cloud desks can be performed timely, so that high availability of the cloud desks is ensured.

Description

一种云桌面调度方法和系统A cloud desktop scheduling method and system

技术领域technical field

本发明涉及云桌面系统中桌面应用技术,尤其涉及一种云桌面调度方法和系统。The invention relates to desktop application technology in a cloud desktop system, in particular to a cloud desktop scheduling method and system.

背景技术Background technique

随着云计算技术的不断成熟,云计算逐步成为业界的发展热点,云桌面纷纷投入到政府、高校、商业等等多个领域进行使用。在云桌面系统中,如何保证云桌面的高效使用,保证用户的高可用连接是整个云桌面系统中的重要组成部分。但是在云桌面的迁移过程中涉及到桌面系统的内存、存储以及用户的关联等操作,如何正确处理桌面的动态迁移,使用户能够快速高效的使用桌面是云桌面系统中的重要研究内容之一。With the continuous maturity of cloud computing technology, cloud computing has gradually become a development hotspot in the industry, and cloud desktops have been put into use in many fields such as government, universities, and commerce. In the cloud desktop system, how to ensure the efficient use of the cloud desktop and ensure the high-availability connection of users is an important part of the entire cloud desktop system. However, the migration process of the cloud desktop involves operations such as the memory, storage, and user association of the desktop system. How to correctly handle the dynamic migration of the desktop so that users can use the desktop quickly and efficiently is one of the important research contents in the cloud desktop system. .

发明内容Contents of the invention

为了解决上述问题,本发明提出了一种云桌面调度方法和系统,能够在物理主机出现故障时,及时对云桌面进行动态迁移,保证云桌面的高可用性。In order to solve the above problems, the present invention proposes a cloud desktop scheduling method and system, which can dynamically migrate the cloud desktop in time when a physical host fails, so as to ensure high availability of the cloud desktop.

为了达到上述目的,本发明提出了一种云桌面调度方法,多个云桌面分别运行在多个物理主机上,该方法包括:In order to achieve the above object, the present invention proposes a cloud desktop scheduling method, in which multiple cloud desktops run on multiple physical hosts respectively, the method comprising:

实时监测多个物理主机和多个云桌面的运行状态和性能。Real-time monitoring of the running status and performance of multiple physical hosts and multiple cloud desktops.

当监测到物理主机出现故障时,根据预先设置的调度策略将运行在出现故障的物理主机上的云桌面迁移到未出现故障的物理主机上。When a failure of a physical host is detected, the cloud desktop running on the failed physical host will be migrated to a non-faulty physical host according to the preset scheduling strategy.

其中,调度策略是根据监测到的多个物理主机和多个云桌面的性能预先设置的。Wherein, the scheduling strategy is preset according to the monitored performance of multiple physical hosts and multiple cloud desktops.

优选地,该方法还包括:Preferably, the method also includes:

当监测到物理主机的负载量大于或等于预设的负载阈值时,根据预先设置的调度策略将运行在负载量大于或等于预设的负载阈值的物理主机上的云桌面迁移到负载量小于预设的负载阈值的物理主机上。When it is detected that the load of the physical host is greater than or equal to the preset load threshold, the cloud desktop running on the physical host with the load greater than or equal to the preset load threshold will be migrated to the cloud desktop with the load less than the preset load according to the preset scheduling policy. Set the load threshold on the physical host.

优选地,该方法还包括:Preferably, the method also includes:

当运行在出现故障的物理主机上的云桌面被迁移到未出现故障的物理主机上,或者当运行在负载量大于或等于预设的负载阈值的物理主机上的云桌面被迁移到负载量小于预设的负载阈值的物理主机上时,保持被迁移的云桌面的可用性和数据不丢失。When a cloud desktop running on a failed physical host is migrated to a non-faulty physical host, or when a cloud desktop running on a physical host with a load greater than or equal to a preset load threshold is migrated to a load less than When the preset load threshold is on the physical host, the availability and data loss of the migrated cloud desktop will be maintained.

优选地,保持被迁移的云桌面的可用性和数据不丢失包括:Preferably, maintaining the availability and data loss of the migrated cloud desktop includes:

当被迁移的云桌面运行的物理主机出现故障时,获取出现故障的物理主机在出现故障前保存的被迁移的云桌面的运行数据,根据该运行数据,以及调度策略中与出现故障的物理主机相对应的未出现故障的物理主机上预先存储的被迁移的云桌面的相关数据,在未出现故障的物理主机上继续运行被迁移的云桌面;或者,When the physical host on which the migrated cloud desktop is running fails, obtain the running data of the migrated cloud desktop saved by the failed physical host before the failure, and according to the running data, and the scheduling policy and the failed physical host The relevant data of the migrated cloud desktop that is pre-stored on the corresponding non-faulty physical host continues to run the migrated cloud desktop on the non-failure physical host; or,

当被迁移的云桌面运行的物理主机的负载量大于或等于预设的负载阈值时,获取负载量大于或等于预设的负载阈值的物理主机上运行的将要被迁移的云桌面的运行数据,根据该运行数据,以及调度策略中与负载量大于或等于预设的负载阈值的物理主机相对应的负载量小于预设的负载阈值的物理主机上预先存储的被迁移的云桌面的相关数据,在负载量小于预设的负载阈值的物理主机上继续运行被迁移的云桌面。When the load of the physical host on which the migrated cloud desktop runs is greater than or equal to the preset load threshold, obtain the running data of the cloud desktop to be migrated running on the physical host whose load is greater than or equal to the preset load threshold, According to the operation data, and the related data of the migrated cloud desktops stored in advance on the physical host whose load is greater than or equal to the preset load threshold corresponding to the load of the scheduling policy is less than the preset load threshold, Continue to run the migrated cloud desktop on the physical host whose load is less than the preset load threshold.

为了达到上述目的,本发明还提出了一种云桌面调度系统,多个云桌面分别运行在多个物理主机上,该系统包括:监测模块和迁移模块。In order to achieve the above object, the present invention also proposes a cloud desktop scheduling system, in which multiple cloud desktops run on multiple physical hosts respectively, and the system includes: a monitoring module and a migration module.

监测模块,用于实时监测多个物理主机和多个云桌面的运行状态和性能。The monitoring module is used to monitor the running status and performance of multiple physical hosts and multiple cloud desktops in real time.

迁移模块,用于当监测到物理主机出现故障时,根据预先设置的调度策略将运行在出现故障的物理主机上的云桌面迁移到未出现故障的物理主机上。The migration module is used for migrating the cloud desktop running on the failed physical host to a non-faulty physical host according to a preset scheduling policy when a failure of the physical host is detected.

其中,调度策略是根据监测到的多个物理主机和多个云桌面的性能预先设置的。Wherein, the scheduling strategy is preset according to the monitored performance of multiple physical hosts and multiple cloud desktops.

优选地,迁移模块还用于:Preferably, the migration module is also used to:

当监测到物理主机的负载量大于或等于预设的负载阈值时,根据预先设置的调度策略将运行在负载量大于或等于预设的负载阈值的物理主机上的云桌面迁移到负载量小于预设的负载阈值的物理主机上。When it is detected that the load of the physical host is greater than or equal to the preset load threshold, the cloud desktop running on the physical host with the load greater than or equal to the preset load threshold will be migrated to the cloud desktop with the load less than the preset load according to the preset scheduling policy. Set the load threshold on the physical host.

优选地,该系统还包括:保持模块。Preferably, the system further comprises: a holding module.

当运行在出现故障的物理主机上的云桌面被迁移到未出现故障的物理主机上,或者当运行在负载量大于或等于预设的负载阈值的物理主机上的云桌面被迁移到负载量小于预设的负载阈值的物理主机上时,保持被迁移的云桌面的可用性和数据不丢失。When a cloud desktop running on a failed physical host is migrated to a non-faulty physical host, or when a cloud desktop running on a physical host with a load greater than or equal to a preset load threshold is migrated to a load less than When the preset load threshold is on the physical host, the availability and data loss of the migrated cloud desktop will be maintained.

优选地,保持模块保持被迁移的云桌面的可用性和数据不丢失包括:Preferably, keeping the availability and data loss of the migrated cloud desktop by the keeping module includes:

当被迁移的云桌面运行的物理主机出现故障时,获取出现故障的物理主机在出现故障前保存的被迁移的云桌面的运行数据,根据该运行数据,以及调度策略中与出现故障的物理主机相对应的未出现故障的物理主机上预先存储的被迁移的云桌面的相关数据,在未出现故障的物理主机上继续运行被迁移的云桌面;或者,When the physical host on which the migrated cloud desktop is running fails, obtain the running data of the migrated cloud desktop saved by the failed physical host before the failure, and according to the running data, and the scheduling policy and the failed physical host The relevant data of the migrated cloud desktop that is pre-stored on the corresponding non-faulty physical host continues to run the migrated cloud desktop on the non-failure physical host; or,

当被迁移的云桌面运行的物理主机的负载量大于或等于预设的负载阈值时,获取负载量大于或等于预设的负载阈值的物理主机上运行的将要被迁移的云桌面的运行数据,根据该运行数据,以及调度策略中与负载量大于或等于预设的负载阈值的物理主机相对应的负载量小于预设的负载阈值的物理主机上预先存储的被迁移的云桌面的相关数据,在负载量小于预设的负载阈值的物理主机上继续运行被迁移的云桌面。When the load of the physical host on which the migrated cloud desktop runs is greater than or equal to the preset load threshold, obtain the running data of the cloud desktop to be migrated running on the physical host whose load is greater than or equal to the preset load threshold, According to the operation data, and the related data of the migrated cloud desktops stored in advance on the physical host whose load is greater than or equal to the preset load threshold corresponding to the load of the scheduling policy is less than the preset load threshold, Continue to run the migrated cloud desktop on the physical host whose load is less than the preset load threshold.

与现有技术相比,本发明包括:实时监测多个物理主机和多个云桌面的运行状态和性能。当监测到物理主机出现故障时,根据预先设置的调度策略将运行在出现故障的物理主机上的云桌面迁移到未出现故障的物理主机上。其中,调度策略是根据监测到的多个物理主机和多个云桌面的运行性能预先设置的。通过本发明的方案,能够在物理主机出现故障时,及时对云桌面进行动态迁移,保证云桌面的高可用性。Compared with the prior art, the present invention includes: real-time monitoring of the operating status and performance of multiple physical hosts and multiple cloud desktops. When a failure of a physical host is detected, the cloud desktop running on the failed physical host will be migrated to a non-faulty physical host according to the preset scheduling strategy. Wherein, the scheduling strategy is preset according to the monitored operating performance of multiple physical hosts and multiple cloud desktops. Through the solution of the present invention, when a physical host fails, the cloud desktop can be dynamically migrated in time to ensure high availability of the cloud desktop.

附图说明Description of drawings

下面对本发明实施例中的附图进行说明,实施例中的附图是用于对本发明的进一步理解,与说明书一起用于解释本发明,并不构成对本发明保护范围的限制。The accompanying drawings in the embodiments of the present invention are described below. The accompanying drawings in the embodiments are used for further understanding of the present invention and are used together with the description to explain the present invention, and do not constitute a limitation to the protection scope of the present invention.

图1为本发明的云桌面调度方法流程图;Fig. 1 is a flow chart of the cloud desktop scheduling method of the present invention;

图2为本发明的云桌面调度系统组成框图。FIG. 2 is a block diagram of the cloud desktop scheduling system of the present invention.

具体实施方式Detailed ways

为了便于本领域技术人员的理解,下面结合附图对本发明作进一步的描述,并不能用来限制本发明的保护范围。In order to facilitate the understanding of those skilled in the art, the present invention will be further described below in conjunction with the accompanying drawings, which cannot be used to limit the protection scope of the present invention.

本发明的发明构思是:检测到发生故障的物理主机,自动的将正在运行的云桌面从故障物理机迁移到其他未出现故障的物理机上。在物理主机资源负载过高时,也可以将运行在该物理主机上的云桌面迁移到负载较低的物理主机上,实现云桌面的高可用。The inventive concept of the present invention is to detect a failed physical host, and automatically migrate the running cloud desktop from the failed physical machine to other non-faulty physical machines. When the resource load of the physical host is too high, the cloud desktop running on the physical host can also be migrated to a physical host with a lower load to achieve high availability of the cloud desktop.

为了达到上述目的,本发明提出了一种云桌面调度方法,多个云桌面分别运行在多个物理主机上,如图1所示,该方法包括:In order to achieve the above object, the present invention proposes a cloud desktop scheduling method, in which multiple cloud desktops run on multiple physical hosts respectively, as shown in Figure 1, the method includes:

S101、实时监测多个物理主机和多个云桌面的运行状态和性能。S101. Monitor the running status and performance of multiple physical hosts and multiple cloud desktops in real time.

在本发明实施例中,为了能及时发现云桌面系统出现的故障,对云桌面系统中的多个物理主机以及分别运行在多个物理主机上的多个云桌面实施实时监测策略。在本发明方案中,并不限制采用的监测方法和监测装置,而且,我们可以对多个物理主机进行统一监测,也可以对每个物理主机分别监测。In the embodiment of the present invention, in order to detect failures in the cloud desktop system in time, a real-time monitoring strategy is implemented for multiple physical hosts in the cloud desktop system and multiple cloud desktops respectively running on multiple physical hosts. In the scheme of the present invention, the monitoring method and monitoring device used are not limited, and we can monitor multiple physical hosts in a unified manner, or monitor each physical host separately.

S102、当监测到物理主机出现故障时,根据预先设置的调度策略将运行在出现故障的物理主机上的云桌面迁移到未出现故障的物理主机上。其中,调度策略是根据监测到的多个物理主机和多个云桌面的性能预先设置的。S102. When a failure of the physical host is detected, migrate the cloud desktop running on the failed physical host to a non-faulty physical host according to a preset scheduling policy. Wherein, the scheduling strategy is preset according to the monitored performance of multiple physical hosts and multiple cloud desktops.

在本发明实施例中,基于对云桌面系统中的多个物理主机以及分别运行在多个物理主机上的多个云桌面实施的实时监测策略,我们会根据各个物理主机以及各个云桌面的监测数据对各个物理主机以及各个云桌面的运行状态和性能做出评估,并根据该评估结果预先制定一个调度策略,该调度策略中至少包括当某一个物理主机出现故障时,可以调度到哪个或哪几个物理主机上,并预先在这些物理主机上存储可能出现故障的物理主机上运行的云桌面的相关数据。In the embodiment of the present invention, based on the real-time monitoring strategy implemented for multiple physical hosts in the cloud desktop system and multiple cloud desktops running on multiple physical hosts, we will monitor each physical host and each cloud desktop The data evaluates the running status and performance of each physical host and each cloud desktop, and pre-establishes a scheduling strategy based on the evaluation results. The scheduling strategy includes at least which one or which can be scheduled when a certain physical host fails. Several physical hosts, and pre-store on these physical hosts the relevant data of the cloud desktop running on the physical host that may fail.

优选地,该方法还包括:Preferably, the method also includes:

当监测到物理主机的负载量大于或等于预设的负载阈值时,根据预先设置的调度策略将运行在负载量大于或等于预设的负载阈值的物理主机上的云桌面迁移到负载量小于预设的负载阈值的物理主机上。When it is detected that the load of the physical host is greater than or equal to the preset load threshold, the cloud desktop running on the physical host with the load greater than or equal to the preset load threshold will be migrated to the cloud desktop with the load less than the preset load according to the preset scheduling policy. Set the load threshold on the physical host.

在本发明实施例中,对于每一个物理主机会预选设置一个负载阈值,当物理主机上的负载量大于或等于这个负载阈值时,该物理主机出现故障的几率就会大幅度增加,因此,为了减轻物理主机的负载,避免物理主机频繁出现故障,我们会将负载量大于或等于负载阈值的物理主机上的云桌面迁移到负载量小于负载阈值的物理主机上,当然,该迁移操作也是基于预先制定的调度策略进行的,这里调度策略的制定如上所述,在此不再赘述。另外,本发明方案中的负载阈值对于不同的物理主机来说,可以相同,也可以不同,具体根据每个物理主机的自身性能而定。In the embodiment of the present invention, a load threshold is pre-selected for each physical host. When the load on the physical host is greater than or equal to the load threshold, the probability of failure of the physical host will increase significantly. Therefore, for To reduce the load on the physical host and avoid frequent failures of the physical host, we will migrate the cloud desktops on the physical host whose load is greater than or equal to the load threshold to the physical host whose load is less than the load threshold. The formulation of the scheduling strategy is carried out, and the formulation of the scheduling strategy is as described above, and will not be repeated here. In addition, the load thresholds in the solution of the present invention may be the same or different for different physical hosts, depending on the performance of each physical host.

优选地,该方法还包括:Preferably, the method also includes:

当运行在出现故障的物理主机上的云桌面被迁移到未出现故障的物理主机上,或者当运行在负载量大于或等于预设的负载阈值的物理主机上的云桌面被迁移到负载量小于预设的负载阈值的物理主机上时,保持被迁移的云桌面的可用性和数据不丢失。When a cloud desktop running on a failed physical host is migrated to a non-faulty physical host, or when a cloud desktop running on a physical host with a load greater than or equal to a preset load threshold is migrated to a load less than When the preset load threshold is on the physical host, the availability and data loss of the migrated cloud desktop will be maintained.

在本发明实施例中,为了进一步实现云桌面的高可用性,在云桌面的迁移过程中必须保持云桌面的可用性和数据不丢失,即,实现热迁移。具体实现方案如下:In the embodiment of the present invention, in order to further realize the high availability of the cloud desktop, it is necessary to maintain the availability of the cloud desktop and not lose data during the migration process of the cloud desktop, that is, implement hot migration. The specific implementation plan is as follows:

优选地,保持被迁移的云桌面的可用性和数据不丢失包括:Preferably, maintaining the availability and data loss of the migrated cloud desktop includes:

当被迁移的云桌面运行的物理主机出现故障时,获取出现故障的物理主机在出现故障前保存的被迁移的云桌面的运行数据,根据该运行数据,以及调度策略中与出现故障的物理主机相对应的未出现故障的物理主机上预先存储的被迁移的云桌面的相关数据,在未出现故障的物理主机上继续运行被迁移的云桌面;或者,When the physical host on which the migrated cloud desktop is running fails, obtain the running data of the migrated cloud desktop saved by the failed physical host before the failure, and according to the running data, and the scheduling policy and the failed physical host The relevant data of the migrated cloud desktop that is pre-stored on the corresponding non-faulty physical host continues to run the migrated cloud desktop on the non-failure physical host; or,

当被迁移的云桌面运行的物理主机的负载量大于或等于预设的负载阈值时,获取负载量大于或等于预设的负载阈值的物理主机上运行的将要被迁移的云桌面的运行数据,根据该运行数据,以及调度策略中与负载量大于或等于预设的负载阈值的物理主机相对应的负载量小于预设的负载阈值的物理主机上预先存储的被迁移的云桌面的相关数据,在负载量小于预设的负载阈值的物理主机上继续运行被迁移的云桌面。When the load of the physical host on which the migrated cloud desktop runs is greater than or equal to the preset load threshold, obtain the running data of the cloud desktop to be migrated running on the physical host whose load is greater than or equal to the preset load threshold, According to the operation data, and the related data of the migrated cloud desktops stored in advance on the physical host whose load is greater than or equal to the preset load threshold corresponding to the load of the scheduling policy is less than the preset load threshold, Continue to run the migrated cloud desktop on the physical host whose load is less than the preset load threshold.

为了达到上述目的,本发明还提出了一种云桌面调度系统01,多个云桌面分别运行在多个物理主机上,如图2所示,该系统包括:监测模块02和迁移模块03。In order to achieve the above purpose, the present invention also proposes a cloud desktop scheduling system 01, in which multiple cloud desktops run on multiple physical hosts respectively, as shown in FIG. 2 , the system includes: a monitoring module 02 and a migration module 03.

监测模块02,用于实时监测多个物理主机和多个云桌面的运行状态和性能。The monitoring module 02 is used to monitor the operating status and performance of multiple physical hosts and multiple cloud desktops in real time.

迁移模块03,用于当监测到物理主机出现故障时,根据预先设置的调度策略将运行在出现故障的物理主机上的云桌面迁移到未出现故障的物理主机上。The migration module 03 is used for migrating the cloud desktop running on the failed physical host to a non-faulty physical host according to a preset scheduling policy when a failure of the physical host is detected.

其中,调度策略是根据监测到的多个物理主机和多个云桌面的性能预先设置的。Wherein, the scheduling strategy is preset according to the monitored performance of multiple physical hosts and multiple cloud desktops.

优选地,迁移模块03还用于:Preferably, migration module 03 is also used for:

当监测到物理主机的负载量大于或等于预设的负载阈值时,根据预先设置的调度策略将运行在负载量大于或等于预设的负载阈值的物理主机上的云桌面迁移到负载量小于预设的负载阈值的物理主机上。When it is detected that the load of the physical host is greater than or equal to the preset load threshold, the cloud desktop running on the physical host with the load greater than or equal to the preset load threshold will be migrated to the cloud desktop with the load less than the preset load according to the preset scheduling policy. Set the load threshold on the physical host.

优选地,该系统还包括:保持模块04。Preferably, the system further includes: a holding module 04 .

当运行在出现故障的物理主机上的云桌面被迁移到未出现故障的物理主机上,或者当运行在负载量大于或等于预设的负载阈值的物理主机上的云桌面被迁移到负载量小于预设的负载阈值的物理主机上时,保持被迁移的云桌面的可用性和数据不丢失。When a cloud desktop running on a failed physical host is migrated to a non-faulty physical host, or when a cloud desktop running on a physical host with a load greater than or equal to a preset load threshold is migrated to a load less than When the preset load threshold is on the physical host, the availability and data loss of the migrated cloud desktop will be maintained.

优选地,保持模块04保持被迁移的云桌面的可用性和数据不丢失包括:Preferably, maintaining module 04 to maintain availability and data loss of the migrated cloud desktop includes:

当被迁移的云桌面运行的物理主机出现故障时,获取出现故障的物理主机在出现故障前保存的被迁移的云桌面的运行数据,根据该运行数据,以及调度策略中与出现故障的物理主机相对应的未出现故障的物理主机上预先存储的被迁移的云桌面的相关数据,在未出现故障的物理主机上继续运行被迁移的云桌面;或者,When the physical host on which the migrated cloud desktop is running fails, obtain the running data of the migrated cloud desktop saved by the failed physical host before the failure, and according to the running data, and the scheduling policy and the failed physical host The relevant data of the migrated cloud desktop that is pre-stored on the corresponding non-faulty physical host continues to run the migrated cloud desktop on the non-failure physical host; or,

当被迁移的云桌面运行的物理主机的负载量大于或等于预设的负载阈值时,获取负载量大于或等于预设的负载阈值的物理主机上运行的将要被迁移的云桌面的运行数据,根据该运行数据,以及调度策略中与负载量大于或等于预设的负载阈值的物理主机相对应的负载量小于预设的负载阈值的物理主机上预先存储的被迁移的云桌面的相关数据,在负载量小于预设的负载阈值的物理主机上继续运行被迁移的云桌面。When the load of the physical host on which the migrated cloud desktop runs is greater than or equal to the preset load threshold, obtain the running data of the cloud desktop to be migrated running on the physical host whose load is greater than or equal to the preset load threshold, According to the operation data, and the related data of the migrated cloud desktops stored in advance on the physical host whose load is greater than or equal to the preset load threshold corresponding to the load of the scheduling policy is less than the preset load threshold, Continue to run the migrated cloud desktop on the physical host whose load is less than the preset load threshold.

与现有技术相比,本发明包括:实时监测多个物理主机和多个云桌面的运行状态和性能。当监测到物理主机出现故障时,根据预先设置的调度策略将运行在出现故障的物理主机上的云桌面迁移到未出现故障的物理主机上。其中,调度策略是根据监测到的多个物理主机和多个云桌面的运行性能预先设置的。通过本发明的方案,能够在物理主机出现故障时,及时对云桌面进行动态迁移,保证云桌面的高可用性。Compared with the prior art, the present invention includes: real-time monitoring of the operating status and performance of multiple physical hosts and multiple cloud desktops. When a failure of a physical host is detected, the cloud desktop running on the failed physical host will be migrated to a non-faulty physical host according to the preset scheduling strategy. Wherein, the scheduling strategy is preset according to the monitored operating performance of multiple physical hosts and multiple cloud desktops. Through the solution of the present invention, when a physical host fails, the cloud desktop can be dynamically migrated in time to ensure high availability of the cloud desktop.

需要说明的是,以上所述的实施例仅是为了便于本领域的技术人员理解而已,并不用于限制本发明的保护范围,在不脱离本发明的发明构思的前提下,本领域技术人员对本发明所做出的任何显而易见的替换和改进等均在本发明的保护范围之内。It should be noted that the above-described embodiments are only for the convenience of those skilled in the art to understand, and are not intended to limit the protection scope of the present invention. Any obvious replacements and improvements made by the invention are within the protection scope of the present invention.

Claims (8)

1.一种云桌面调度方法,多个云桌面分别运行在多个物理主机上,其特征在于,所述方法包括:1. A cloud desktop scheduling method, a plurality of cloud desktops run respectively on a plurality of physical hosts, it is characterized in that the method comprises: 实时监测多个所述物理主机和多个所述云桌面的运行状态和性能;Real-time monitoring of the operating status and performance of a plurality of said physical hosts and a plurality of said cloud desktops; 当监测到所述物理主机出现故障时,根据预先设置的调度策略将运行在出现故障的所述物理主机上的所述云桌面迁移到未出现故障的所述物理主机上;When it is detected that the physical host fails, the cloud desktop running on the failed physical host is migrated to the non-faulted physical host according to a preset scheduling strategy; 其中,所述调度策略是根据监测到的多个所述物理主机和多个所述云桌面的所述性能预先设置的。Wherein, the scheduling policy is preset according to the monitored performances of the plurality of physical hosts and the plurality of cloud desktops. 2.如权利要求1所述的云桌面调度方法,其特征在于,所述方法还包括:2. The cloud desktop scheduling method according to claim 1, wherein the method further comprises: 当监测到所述物理主机的负载量大于或等于预设的负载阈值时,根据预先设置的所述调度策略将运行在负载量大于或等于预设的负载阈值的所述物理主机上的所述云桌面迁移到负载量小于预设的所述负载阈值的所述物理主机上。When it is detected that the load of the physical host is greater than or equal to the preset load threshold, according to the preset scheduling policy, the physical host whose load is greater than or equal to the preset load threshold will run the The cloud desktop is migrated to the physical host whose load is less than the preset load threshold. 3.如权利要求1或2所述的云桌面分配方法,其特征在于,所述方法还包括:3. The cloud desktop distribution method according to claim 1 or 2, wherein the method further comprises: 当运行在出现故障的所述物理主机上的所述云桌面被迁移到未出现故障的所述物理主机上,或者当运行在负载量大于或等于预设的所述负载阈值的所述物理主机上的所述云桌面被迁移到负载量小于预设的所述负载阈值的所述物理主机上时,保持被迁移的所述云桌面的可用性和数据不丢失。When the cloud desktop running on the failed physical host is migrated to the non-faulty physical host, or when running on the physical host whose load is greater than or equal to the preset load threshold When the cloud desktop on the computer is migrated to the physical host whose load is less than the preset load threshold, the availability and data of the migrated cloud desktop will not be lost. 4.如权利要求3所述的云桌面分配方法,其特征在于,所述保持被迁移的所述云桌面的可用性和数据不丢失包括:4. The method for allocating cloud desktops according to claim 3, wherein the maintaining the availability and data loss of the migrated cloud desktops comprises: 当被迁移的所述云桌面运行的物理主机出现故障时,获取出现故障的所述物理主机在出现故障前保存的被迁移的所述云桌面的运行数据,根据所述运行数据,以及所述调度策略中与出现故障的所述物理主机相对应的未出现故障的所述物理主机上预先存储的被迁移的所述云桌面的相关数据,在未出现故障的所述物理主机上继续运行被迁移的所述云桌面;或者,When the physical host on which the migrated cloud desktop runs fails, obtain the running data of the migrated cloud desktop saved by the failed physical host before the failure, according to the running data, and the The related data of the migrated cloud desktop that is pre-stored on the non-failure physical host corresponding to the non-failure physical host in the scheduling policy continues to run on the non-failure physical host. Migrated cloud desktops; or, 当被迁移的所述云桌面运行的物理主机的负载量大于或等于预设的所述负载阈值时,获取负载量大于或等于预设的所述负载阈值的所述物理主机上运行的将要被迁移的所述云桌面的运行数据,根据所述运行数据,以及所述调度策略中与负载量大于或等于预设的负载阈值的所述物理主机相对应的负载量小于预设的所述负载阈值的所述物理主机上预先存储的被迁移的所述云桌面的相关数据,在负载量小于预设的所述负载阈值的所述物理主机上继续运行被迁移的所述云桌面。When the load of the migrated physical host running on the cloud desktop is greater than or equal to the preset load threshold, the acquired load running on the physical host whose load is greater than or equal to the preset load threshold will be The migrated operating data of the cloud desktop, according to the operating data, and the load corresponding to the physical host whose load is greater than or equal to a preset load threshold in the scheduling policy is smaller than the preset load The relevant data of the migrated cloud desktop is pre-stored on the physical host of the threshold, and the migrated cloud desktop continues to run on the physical host whose load is less than the preset load threshold. 5.一种云桌面调度系统,多个云桌面分别运行在多个物理主机上,其特征在于,所述系统包括:监测模块和迁移模块;5. A cloud desktop dispatching system, a plurality of cloud desktops run respectively on a plurality of physical hosts, characterized in that the system comprises: a monitoring module and a migration module; 所述监测模块,用于实时监测多个所述物理主机和多个所述云桌面的运行状态和性能;The monitoring module is used to monitor the operating status and performance of multiple physical hosts and multiple cloud desktops in real time; 所述迁移模块,用于当监测到所述物理主机出现故障时,根据预先设置的调度策略将运行在出现故障的所述物理主机上的所述云桌面迁移到未出现故障的所述物理主机上;The migration module is configured to migrate the cloud desktop running on the failed physical host to the non-faulty physical host according to a preset scheduling strategy when it is detected that the physical host fails superior; 其中,所述调度策略是根据监测到的多个所述物理主机和多个所述云桌面的所述性能预先设置的。Wherein, the scheduling policy is preset according to the monitored performances of the plurality of physical hosts and the plurality of cloud desktops. 6.如权利要求5所述的云桌面调度系统,其特征在于,所述迁移模块还用于:6. The cloud desktop scheduling system according to claim 5, wherein the migration module is also used for: 当监测到所述物理主机的负载量大于或等于预设的负载阈值时,根据预先设置的所述调度策略将运行在负载量大于或等于预设的负载阈值的所述物理主机上的所述云桌面迁移到负载量小于预设的所述负载阈值的所述物理主机上。When it is detected that the load of the physical host is greater than or equal to the preset load threshold, according to the preset scheduling policy, the physical host whose load is greater than or equal to the preset load threshold will run the The cloud desktop is migrated to the physical host whose load is less than the preset load threshold. 7.如权利要求5或6所述的云桌面分配系统,其特征在于,所述系统还包括:保持模块;7. The cloud desktop distribution system as claimed in claim 5 or 6, wherein the system further comprises: a maintenance module; 当运行在出现故障的所述物理主机上的所述云桌面被迁移到未出现故障的所述物理主机上,或者当运行在负载量大于或等于预设的负载阈值的所述物理主机上的所述云桌面被迁移到负载量小于预设的所述负载阈值的所述物理主机上时,保持被迁移的所述云桌面的可用性和数据不丢失。When the cloud desktop running on the failed physical host is migrated to the non-faulty physical host, or when the cloud desktop running on the physical host whose load is greater than or equal to a preset load threshold When the cloud desktop is migrated to the physical host whose load is less than the preset load threshold, the availability and data of the migrated cloud desktop are not lost. 8.如权利要求7所述的云桌面分配方法,其特征在于,所述保持模块保持被迁移的所述云桌面的可用性和数据不丢失包括:8. The method for allocating cloud desktops according to claim 7, wherein the maintenance module maintains availability and data loss of the migrated cloud desktops comprising: 当被迁移的所述云桌面运行的物理主机出现故障时,获取出现故障的所述物理主机在出现故障前保存的被迁移的所述云桌面的运行数据,根据所述运行数据,以及所述调度策略中与出现故障的所述物理主机相对应的未出现故障的所述物理主机上预先存储的被迁移的所述云桌面的相关数据,在未出现故障的所述物理主机上继续运行被迁移的所述云桌面;或者,When the physical host on which the migrated cloud desktop runs fails, obtain the running data of the migrated cloud desktop saved by the failed physical host before the failure, according to the running data, and the The related data of the migrated cloud desktop that is pre-stored on the non-failure physical host corresponding to the non-failure physical host in the scheduling policy continues to run on the non-failure physical host. Migrated cloud desktops; or, 当被迁移的所述云桌面运行的物理主机的负载量大于或等于预设的所述负载阈值时,获取负载量大于或等于预设的所述负载阈值的所述物理主机上运行的将要被迁移的所述云桌面的运行数据,根据所述运行数据,以及所述调度策略中与负载量大于或等于预设的负载阈值的所述物理主机相对应的负载量小于预设的所述负载阈值的所述物理主机上预先存储的被迁移的所述云桌面的相关数据,在负载量小于预设的所述负载阈值的所述物理主机上继续运行被迁移的所述云桌面。When the load of the migrated physical host running on the cloud desktop is greater than or equal to the preset load threshold, the acquired load running on the physical host whose load is greater than or equal to the preset load threshold will be The migrated operating data of the cloud desktop, according to the operating data, and the load corresponding to the physical host whose load is greater than or equal to a preset load threshold in the scheduling policy is smaller than the preset load The relevant data of the migrated cloud desktop is pre-stored on the physical host of the threshold, and the migrated cloud desktop continues to run on the physical host whose load is less than the preset load threshold.
CN201510437300.0A 2015-07-23 2015-07-23 A cloud desktop scheduling method and system Pending CN105025104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510437300.0A CN105025104A (en) 2015-07-23 2015-07-23 A cloud desktop scheduling method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510437300.0A CN105025104A (en) 2015-07-23 2015-07-23 A cloud desktop scheduling method and system

Publications (1)

Publication Number Publication Date
CN105025104A true CN105025104A (en) 2015-11-04

Family

ID=54414798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510437300.0A Pending CN105025104A (en) 2015-07-23 2015-07-23 A cloud desktop scheduling method and system

Country Status (1)

Country Link
CN (1) CN105025104A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411581A (en) * 2016-09-19 2017-02-15 广州云晫信息科技有限公司 Disaster recovery and dynamic transfer system of cloud desktop system
CN106921706A (en) * 2015-12-25 2017-07-04 英业达科技有限公司 User data transferring system and its method based on customer location
CN110225088A (en) * 2019-05-09 2019-09-10 厦门网宿有限公司 A kind of cloud desktop management method and system
CN112235373A (en) * 2020-09-30 2021-01-15 北京联众国际通信有限公司 Cloud desktop scheduling system based on application AI and scheduling method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140156958A1 (en) * 2012-11-30 2014-06-05 International Business Machines Corporation Common contiguous memory region optimized virtual machine migration within a workgroup
CN103957231A (en) * 2014-03-18 2014-07-30 成都盛思睿信息技术有限公司 Virtual machine distributed task scheduling method under cloud calculating platform
CN104270416A (en) * 2014-09-12 2015-01-07 杭州华为数字技术有限公司 Load balancing control method and management node
CN104268004A (en) * 2014-10-17 2015-01-07 浪潮电子信息产业股份有限公司 Virtual machine migration method under cloud computing operating system
CN104539716A (en) * 2015-01-04 2015-04-22 国网四川省电力公司信息通信公司 Cloud desktop management system desktop virtual machine dispatching control system and method
CN104750541A (en) * 2015-04-22 2015-07-01 成都睿峰科技有限公司 Virtual machine migration method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140156958A1 (en) * 2012-11-30 2014-06-05 International Business Machines Corporation Common contiguous memory region optimized virtual machine migration within a workgroup
CN103957231A (en) * 2014-03-18 2014-07-30 成都盛思睿信息技术有限公司 Virtual machine distributed task scheduling method under cloud calculating platform
CN104270416A (en) * 2014-09-12 2015-01-07 杭州华为数字技术有限公司 Load balancing control method and management node
CN104268004A (en) * 2014-10-17 2015-01-07 浪潮电子信息产业股份有限公司 Virtual machine migration method under cloud computing operating system
CN104539716A (en) * 2015-01-04 2015-04-22 国网四川省电力公司信息通信公司 Cloud desktop management system desktop virtual machine dispatching control system and method
CN104750541A (en) * 2015-04-22 2015-07-01 成都睿峰科技有限公司 Virtual machine migration method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921706A (en) * 2015-12-25 2017-07-04 英业达科技有限公司 User data transferring system and its method based on customer location
CN106411581A (en) * 2016-09-19 2017-02-15 广州云晫信息科技有限公司 Disaster recovery and dynamic transfer system of cloud desktop system
CN110225088A (en) * 2019-05-09 2019-09-10 厦门网宿有限公司 A kind of cloud desktop management method and system
CN112235373A (en) * 2020-09-30 2021-01-15 北京联众国际通信有限公司 Cloud desktop scheduling system based on application AI and scheduling method thereof

Similar Documents

Publication Publication Date Title
US10324814B2 (en) Faster reconstruction of segments using a spare memory unit
US9690663B2 (en) Allocation of replica-sets in a storage cluster
US10884645B2 (en) Virtual machine hot migration method, host machine and storage medium
US9075856B2 (en) Systems and methods for distributing replication tasks within computing clusters
US10205675B2 (en) Dynamically adjusting resources to meet service level objectives
US10430238B1 (en) Programmatically applying labels to nodes in cluster orchestration platforms
CN115543696B (en) Disk array reconstruction task acceleration method, system, storage medium and equipment
US20130219390A1 (en) Cloud server and method for creating virtual machines
WO2012033773A2 (en) Controlled automatic healing of data-center services
WO2017114325A1 (en) Fault processing method, device and system
CN104111867B (en) A kind of virtual machine (vm) migration device and method
US8595192B1 (en) Systems and methods for providing high availability to instance-bound databases
CN105025104A (en) A cloud desktop scheduling method and system
CN105243004A (en) Failure resource detection method and apparatus
US10713129B1 (en) System and method for identifying and configuring disaster recovery targets for network appliances
US10223016B2 (en) Power management for distributed storage systems
CN107453932A (en) A kind of distributed memory system management method and its device
CN104123183A (en) Cluster assignment dispatching method and device
US11392423B2 (en) Method for running a quorum-based system by dynamically managing the quorum
US10447800B2 (en) Network cache deduplication analytics based compute cluster load balancer
WO2017041671A1 (en) Method and apparatus for recovering fault
US8621260B1 (en) Site-level sub-cluster dependencies
CN103118121B (en) Application method of high availability cluster in virtualization technology
US10140022B2 (en) Method and apparatus of subsidiary volume management
US9430338B2 (en) Method and computing device for recording log entries

Legal Events

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

Application publication date: 20151104

RJ01 Rejection of invention patent application after publication