技术领域Technical Field
本申请涉及计算机技术领域,尤其涉及一种虚拟机流量控制方法、装置、电子设备及存储介质。The present application relates to the field of computer technology, and in particular to a virtual machine traffic control method, device, electronic device and storage medium.
背景技术Background Art
目前,一个宿主机常常可以支持多个虚拟机,每个虚拟机都能为宿主机提供固态硬盘(Solid State Disk,简称:SSD)存储服务,为了确保每个虚拟机的I/O的服务质量(Quality of Service,简称:Qos),如何对各个虚拟机进行流量控制成为了重点研究内容。At present, a host machine can often support multiple virtual machines, and each virtual machine can provide solid-state disk (SSD) storage services for the host machine. In order to ensure the I/O quality of service (QoS) of each virtual machine, how to control the flow of each virtual machine has become a key research topic.
在现有技术中,通常由虚拟机的物理服务端上部署的虚拟机管理工具,对该物理服务端虚拟出去的每个虚拟机的流量进行监控,进而根据监控结果,控制每个虚拟机的流量。In the prior art, a virtual machine management tool deployed on a physical server of a virtual machine usually monitors the traffic of each virtual machine virtualized from the physical server, and then controls the traffic of each virtual machine based on the monitoring result.
但是,在用户同时部署不同服务类型的多个虚拟机的情况下,用户对不同虚拟机的性能要求是不同,而现有技术的流量控制结果较为固定,无法满足用户实际的控制需求。However, when a user deploys multiple virtual machines of different service types at the same time, the user has different performance requirements for different virtual machines, and the flow control results of the prior art are relatively fixed and cannot meet the actual control needs of the user.
发明内容Summary of the invention
本申请提供一种虚拟机流量控制方法、装置、电子设备及存储介质,以解决现有技术的虚拟机流量控制结果普适性低等缺陷。The present application provides a virtual machine traffic control method, device, electronic device and storage medium to solve the defects of the virtual machine traffic control results in the prior art such as low universality.
本申请第一个方面提供一种虚拟机流量控制方法,应用于宿主机,所述方法包括:The first aspect of the present application provides a virtual machine traffic control method, which is applied to a host machine, and the method includes:
获取当前部署的各个虚拟机的虚拟磁盘所对应的物理磁盘的属性信息;Obtaining the property information of the physical disk corresponding to the virtual disk of each currently deployed virtual machine;
按照用户虚拟机流量控制需求,根据各所述虚拟磁盘所对应的物理磁盘的属性信息,为各所述虚拟磁盘分配流量使用额度;According to the user virtual machine traffic control requirements, and based on the attribute information of the physical disk corresponding to each virtual disk, a traffic usage quota is allocated to each virtual disk;
当任一所述虚拟磁盘的流量使用额度耗尽时,阻止该虚拟磁盘向对应的物理磁盘发送读写任务,以停止该虚拟磁盘的读写服务。When the traffic usage quota of any of the virtual disks is exhausted, the virtual disk is prevented from sending read and write tasks to the corresponding physical disk, so as to stop the read and write service of the virtual disk.
可选的,所述为各所述虚拟磁盘分配流量使用额度,包括:Optionally, allocating a traffic usage quota to each virtual disk includes:
按照预设的额度更新周期,循环为各所述虚拟磁盘分配流量使用额度。According to the preset quota update cycle, the traffic usage quota is cyclically allocated to each of the virtual disks.
可选的,所述虚拟磁盘包括虚拟磁盘处理器,用于向物理磁盘发送读写任务,所述阻止该虚拟磁盘向对应的物理磁盘发送读写任务,包括:Optionally, the virtual disk includes a virtual disk processor, which is used to send read and write tasks to the physical disk, and preventing the virtual disk from sending read and write tasks to the corresponding physical disk includes:
在该虚拟磁盘待发送的读写任务上设置阻止标识,以使所述虚拟磁盘处理器不向所述物理磁盘发送该读写任务。A blocking flag is set on the read/write task to be sent by the virtual disk, so that the virtual disk processor does not send the read/write task to the physical disk.
可选的,在为各所述虚拟磁盘分配流量使用额度之后,所述方法还包括:Optionally, after allocating traffic usage quotas to each of the virtual disks, the method further includes:
监控各所述虚拟磁盘接收到的读写任务信息;Monitoring the read and write task information received by each of the virtual disks;
针对每个所述虚拟磁盘,根据该虚拟磁盘接收到的读写任务信息,确定该虚拟磁盘的流量使用值;For each of the virtual disks, determining a traffic usage value of the virtual disk according to the read and write task information received by the virtual disk;
当该虚拟磁盘的流量使用值达到所述流量使用额度时,确定该虚拟磁盘的流量使用额度耗尽。When the traffic usage value of the virtual disk reaches the traffic usage quota, it is determined that the traffic usage quota of the virtual disk is exhausted.
可选的,所述流量使用额度分为读写操作次数额度、读吞吐量额度和写吞吐量额度三种类型。Optionally, the traffic usage quota is divided into three types: read and write operation times quota, read throughput quota and write throughput quota.
可选的,所述虚拟磁盘的流量使用值包括IOPS累计值、读总吐量累计值和写吞吐量累计值三种指标,所述方法还包括:Optionally, the traffic usage value of the virtual disk includes three indicators: IOPS cumulative value, total read throughput cumulative value, and write throughput cumulative value. The method further includes:
若该虚拟磁盘的IOPS累计值、读总吐量累计值和写吞吐量累计值中的任一指标达到对应类型的额度,则确定该虚拟磁盘的流量使用值达到所述流量使用额度。If any one of the IOPS cumulative value, the total read throughput cumulative value, and the write throughput cumulative value of the virtual disk reaches the quota of the corresponding type, it is determined that the traffic usage value of the virtual disk reaches the traffic usage quota.
可选的,所述物理磁盘的属性信息至少包括所述物理磁盘的IOPS上限值和带宽。Optionally, the attribute information of the physical disk includes at least an IOPS upper limit value and a bandwidth of the physical disk.
本申请第二个方面提供一种虚拟机流量控制装置,应用于宿主机,所述装置包括:A second aspect of the present application provides a virtual machine traffic control device, which is applied to a host machine, and the device includes:
获取模块,用于获取当前部署的各个虚拟机的虚拟磁盘所对应的物理磁盘的属性信息;The acquisition module is used to obtain the property information of the physical disk corresponding to the virtual disk of each currently deployed virtual machine;
管理模块,用于按照用户虚拟机流量控制需求,根据各所述虚拟磁盘所对应的物理磁盘的属性信息,为各所述虚拟磁盘分配流量使用额度;A management module, configured to allocate a traffic usage quota to each virtual disk according to the traffic control requirements of the user virtual machine and the attribute information of the physical disk corresponding to each virtual disk;
控制模块,用于当任一所述虚拟磁盘的流量使用额度耗尽时,阻止该虚拟磁盘向对应的物理磁盘发送读写任务,以停止该虚拟磁盘的读写服务。The control module is used to prevent any virtual disk from sending read and write tasks to the corresponding physical disk when the traffic usage quota of any virtual disk is exhausted, so as to stop the read and write service of the virtual disk.
可选的,所述管理模块,具体用于:Optionally, the management module is specifically used to:
按照预设的额度更新周期,循环为各所述虚拟磁盘分配流量使用额度。According to the preset quota update cycle, the traffic usage quota is cyclically allocated to each of the virtual disks.
可选的,所述虚拟磁盘包括虚拟磁盘处理器,用于向物理磁盘发送读写任务,所述控制模块,具体用于:Optionally, the virtual disk includes a virtual disk processor, which is used to send read and write tasks to the physical disk, and the control module is specifically used to:
在该虚拟磁盘待发送的读写任务上设置阻止标识,以使所述虚拟磁盘处理器不向所述物理磁盘发送该读写任务。A blocking flag is set on the read/write task to be sent by the virtual disk, so that the virtual disk processor does not send the read/write task to the physical disk.
可选的,所述管理模块,还用于:Optionally, the management module is further used to:
监控各所述虚拟磁盘接收到的读写任务信息;Monitoring the read and write task information received by each of the virtual disks;
针对每个所述虚拟磁盘,根据该虚拟磁盘接收到的读写任务信息,确定该虚拟磁盘的流量使用值;For each of the virtual disks, determining a traffic usage value of the virtual disk according to the read and write task information received by the virtual disk;
当该虚拟磁盘的流量使用值达到所述流量使用额度时,确定该虚拟磁盘的流量使用额度耗尽。When the traffic usage value of the virtual disk reaches the traffic usage quota, it is determined that the traffic usage quota of the virtual disk is exhausted.
可选的,所述流量使用额度分为读写操作次数额度、读吞吐量额度和写吞吐量额度三种类型。Optionally, the traffic usage quota is divided into three types: read and write operation times quota, read throughput quota and write throughput quota.
可选的,所述虚拟磁盘的流量使用值包括IOPS累计值、读总吐量累计值和写吞吐量累计值三种指标,所述管理模块,还用于:Optionally, the traffic usage value of the virtual disk includes three indicators: IOPS cumulative value, total read throughput cumulative value and write throughput cumulative value. The management module is further used to:
若该虚拟磁盘的IOPS累计值、读总吐量累计值和写吞吐量累计值中的任一指标达到对应类型的额度,则确定该虚拟磁盘的流量使用值达到所述流量使用额度。If any one of the IOPS cumulative value, the total read throughput cumulative value, and the write throughput cumulative value of the virtual disk reaches the quota of the corresponding type, it is determined that the traffic usage value of the virtual disk reaches the traffic usage quota.
可选的,所述物理磁盘的属性信息至少包括所述物理磁盘的IOPS上限值和带宽。Optionally, the attribute information of the physical disk includes at least an IOPS upper limit value and a bandwidth of the physical disk.
本申请第三个方面提供一种电子设备,包括:至少一个处理器和存储器;A third aspect of the present application provides an electronic device, comprising: at least one processor and a memory;
所述存储器存储计算机执行指令;The memory stores computer-executable instructions;
所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如上第一个方面以及第一个方面各种可能的设计所述的方法。The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method described in the first aspect and various possible designs of the first aspect.
本申请第四个方面提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一个方面以及第一个方面各种可能的设计所述的方法。A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the method described in the first aspect and various possible designs of the first aspect are implemented.
本申请技术方案,具有如下优点:The technical solution of this application has the following advantages:
本申请提供一种虚拟机流量控制方法、装置、电子设备及存储介质,该方法包括:获取当前部署的各个虚拟机的虚拟磁盘所对应的物理磁盘的属性信息;按照用户虚拟机流量控制需求,根据各虚拟磁盘所对应的物理磁盘的属性信息,为各虚拟磁盘分配流量使用额度;当任一虚拟磁盘的流量使用额度耗尽时,阻止该虚拟磁盘向对应的物理磁盘发送读写任务,以停止该虚拟磁盘的读写服务。上述方案提供的方法,通过在宿主机一侧,按照用户虚拟机流量控制需求和物理磁盘的属性信息,对其部署的虚拟机的虚拟磁盘的进行流量控制,使虚拟机流量控制结果即满足用户控制需求,也能匹配物理磁盘的实际能力,保证了该宿主机的虚拟机流量控制结果的适用性。The present application provides a virtual machine traffic control method, device, electronic device and storage medium, the method comprising: obtaining the attribute information of the physical disk corresponding to the virtual disk of each currently deployed virtual machine; allocating traffic usage quota to each virtual disk according to the user virtual machine traffic control requirements and the attribute information of the physical disk corresponding to each virtual disk; when the traffic usage quota of any virtual disk is exhausted, preventing the virtual disk from sending read and write tasks to the corresponding physical disk to stop the read and write service of the virtual disk. The method provided by the above scheme controls the traffic of the virtual disk of the deployed virtual machine on the host side according to the user virtual machine traffic control requirements and the attribute information of the physical disk, so that the virtual machine traffic control result not only meets the user control requirements, but also matches the actual capacity of the physical disk, thereby ensuring the applicability of the virtual machine traffic control result of the host.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.
图1为本申请实施例基于的虚拟机流量控制系统的结构示意图;FIG1 is a schematic diagram of the structure of a virtual machine traffic control system based on an embodiment of the present application;
图2为本申请实施例提供的虚拟机流量控制方法的流程示意图;FIG2 is a flow chart of a virtual machine traffic control method provided in an embodiment of the present application;
图3为本申请实施例提供的虚拟机流量控制装置的结构示意图;FIG3 is a schematic diagram of the structure of a virtual machine traffic control device provided in an embodiment of the present application;
图4为本申请实施例提供的电子设备的结构示意图。FIG. 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。The above drawings have shown clear embodiments of the present application, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present application to those skilled in the art by referring to specific embodiments.
具体实施方式DETAILED DESCRIPTION
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
此外,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。在以下各实施例的描述中,“多个”的含义是两个以上,除非另有明确具体的限定。In addition, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following embodiments, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
在现有技术中,通常由虚拟机的物理服务端上部署的虚拟机管理工具,对该物理服务端虚拟出去的每个虚拟机的流量进行监控,进而根据监控结果,控制每个虚拟机的流量。但是,在用户同时部署不同服务类型的多个虚拟机的情况下,用户对不同虚拟机的性能要求是不同,而现有技术的流量控制结果较为固定,无法满足用户实际的控制需求。In the prior art, a virtual machine management tool deployed on the physical server of the virtual machine usually monitors the traffic of each virtual machine virtualized from the physical server, and then controls the traffic of each virtual machine according to the monitoring result. However, when a user deploys multiple virtual machines of different service types at the same time, the user has different performance requirements for different virtual machines, and the traffic control results of the prior art are relatively fixed and cannot meet the actual control needs of the user.
针对上述问题,本申请实施例提供的虚拟机流量控制方法、装置、电子设备及存储介质,通过获取当前部署的各个虚拟机的虚拟磁盘所对应的物理磁盘的属性信息;按照用户虚拟机流量控制需求,根据各虚拟磁盘所对应的物理磁盘的属性信息,为各虚拟磁盘分配流量使用额度;当任一虚拟磁盘的流量使用额度耗尽时,阻止该虚拟磁盘向对应的物理磁盘发送读写任务,以停止该虚拟磁盘的读写服务。上述方案提供的方法,通过在宿主机一侧,按照用户虚拟机流量控制需求和物理磁盘的属性信息,对其部署的虚拟机的虚拟磁盘的进行流量控制,使虚拟机流量控制结果即满足用户控制需求,也能匹配物理磁盘的实际能力,保证了该宿主机的虚拟机流量控制结果的适用性。In response to the above problems, the virtual machine traffic control method, device, electronic device and storage medium provided in the embodiments of the present application obtain the attribute information of the physical disk corresponding to the virtual disk of each currently deployed virtual machine; according to the user virtual machine traffic control requirements, according to the attribute information of the physical disk corresponding to each virtual disk, the traffic usage quota is allocated to each virtual disk; when the traffic usage quota of any virtual disk is exhausted, the virtual disk is prevented from sending read and write tasks to the corresponding physical disk to stop the read and write service of the virtual disk. The method provided by the above scheme controls the traffic of the virtual disk of the deployed virtual machine on the host side according to the user virtual machine traffic control requirements and the attribute information of the physical disk, so that the virtual machine traffic control result not only meets the user control requirements, but also matches the actual capacity of the physical disk, thereby ensuring the applicability of the virtual machine traffic control result of the host.
下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本发明实施例进行描述。The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
首先,对本申请所基于的虚拟机流量控制系统的结构进行说明:First, the structure of the virtual machine traffic control system on which this application is based is described:
本申请实施例提供的虚拟机流量控制方法、装置、电子设备及存储介质,适用于对部署在宿主机的虚拟机进行流量控制。如图1所示,为本申请实施例基于的虚拟机流量控制系统的结构示意图,主要包括多个虚拟机、数据采集装置和用于对虚拟机进行流量控制的虚拟机流量控制装置,其中,该虚拟机流量控制系统部署在宿主机。具体地,可以利用数据采集装置各个虚拟机的虚拟磁盘所对应的物理磁盘的属性信息和用户输入的虚拟机流量控制需求,然后再将采集到的数据发送到虚拟机流量控制装置,以使该虚拟机流量控制装置能够根据这些数据,对虚拟机进行流量控制。The virtual machine flow control method, device, electronic device and storage medium provided in the embodiments of the present application are suitable for flow control of virtual machines deployed on a host machine. As shown in Figure 1, it is a structural schematic diagram of the virtual machine flow control system based on the embodiments of the present application, which mainly includes multiple virtual machines, a data acquisition device and a virtual machine flow control device for flow control of virtual machines, wherein the virtual machine flow control system is deployed on the host machine. Specifically, the attribute information of the physical disk corresponding to the virtual disk of each virtual machine of the data acquisition device and the virtual machine flow control requirements input by the user can be used, and then the collected data can be sent to the virtual machine flow control device, so that the virtual machine flow control device can control the flow of the virtual machine according to these data.
本申请实施例提供了一种虚拟机流量控制方法,应用于宿主机,用于对部署在宿主机的虚拟机进行流量控制。本申请实施例的执行主体为电子设备,比如服务器、台式电脑、笔记本电脑、平板电脑及其他可用于对虚拟机进行流量控制的电子设备。The embodiment of the present application provides a virtual machine flow control method, which is applied to a host machine and is used to control the flow of a virtual machine deployed on the host machine. The execution subject of the embodiment of the present application is an electronic device, such as a server, a desktop computer, a laptop computer, a tablet computer, and other electronic devices that can be used to control the flow of a virtual machine.
如图2所示,为本申请实施例提供的虚拟机流量控制方法的流程示意图,该方法包括:As shown in FIG. 2 , a flow chart of a virtual machine traffic control method provided in an embodiment of the present application is shown, and the method includes:
步骤201,获取当前部署的各个虚拟机的虚拟磁盘所对应的物理磁盘的属性信息。Step 201: Acquire the property information of the physical disk corresponding to the virtual disk of each currently deployed virtual machine.
其中,物理磁盘的属性信息用于表征该物理磁盘的I/O服务能力,属性信息至少包括物理磁盘的IOPS上限值和带宽等相关信息。The attribute information of the physical disk is used to characterize the I/O service capability of the physical disk, and the attribute information at least includes relevant information such as the IOPS upper limit and bandwidth of the physical disk.
步骤202,按照用户虚拟机流量控制需求,根据各虚拟磁盘所对应的物理磁盘的属性信息,为各虚拟磁盘分配流量使用额度。Step 202: Allocate traffic usage quota to each virtual disk according to the traffic control requirements of the user virtual machine and the attribute information of the physical disk corresponding to each virtual disk.
需要说明的是,用户输入的虚拟机流量控制需求反映了各虚拟机在宿主机中的使用频率和重要程度等信息。It should be noted that the virtual machine traffic control requirements input by the user reflect information such as the usage frequency and importance of each virtual machine in the host machine.
具体地,首先可以按照用户虚拟机流量控制需求,确定各虚拟机在流量使用额度分配方面的权重,然后再结合各虚拟磁盘所对应的物理磁盘的属性信息,为当前宿主机上部署的各虚拟磁盘分配流量使用额度。Specifically, first, the weight of each virtual machine in the allocation of traffic usage quota can be determined according to the user virtual machine traffic control requirements, and then the traffic usage quota can be allocated to each virtual disk deployed on the current host machine in combination with the attribute information of the physical disk corresponding to each virtual disk.
步骤203,当任一虚拟磁盘的流量使用额度耗尽时,阻止该虚拟磁盘向对应的物理磁盘发送读写任务,以停止该虚拟磁盘的读写服务。Step 203: When the traffic usage quota of any virtual disk is exhausted, the virtual disk is prevented from sending read and write tasks to the corresponding physical disk to stop the read and write service of the virtual disk.
需要说明的是,在实际的网络环境中,若虚拟机出现超负荷运行,如接收的I/O任务超出了物理磁盘的实际服务能力等,将降低该虚拟机在宿主机中的I/O服务质量Qos。It should be noted that in an actual network environment, if a virtual machine is overloaded, such as the received I/O tasks exceed the actual service capacity of the physical disk, the I/O service quality Qos of the virtual machine in the host will be reduced.
具体地,当某虚拟机在运行一段时间后,耗尽了之前为其分配的流量使用额度,此时为了避免出现超负荷运行等情况,可以阻断该虚拟磁盘向对应的物理磁盘发送读写任务(I/O任务),使该虚拟机无法向物理磁盘发送I/O任务,也就停止了该虚拟磁盘的读写服务。Specifically, when a virtual machine has exhausted the traffic usage quota previously allocated to it after running for a period of time, in order to avoid overload and other situations, the virtual disk can be blocked from sending read and write tasks (I/O tasks) to the corresponding physical disk, making it impossible for the virtual machine to send I/O tasks to the physical disk, thereby stopping the read and write services of the virtual disk.
在上述实施例的基础上,作为一种可实施的方式,在一实施例中,可以按照预设的额度更新周期,循环为各虚拟磁盘分配流量使用额度。Based on the above embodiment, as an implementable manner, in one embodiment, the traffic usage quota can be cyclically allocated to each virtual disk according to a preset quota update cycle.
具体地,在确定待为各虚拟机分配的流量使用额度的同时,还需要确定额度更新周期,后续按照该额度更新周期,循环为各虚拟磁盘分配流量使用额度。具体可以采用令牌桶技术,实现流量使用额度的循环分配。Specifically, when determining the traffic usage quota to be allocated to each virtual machine, it is also necessary to determine the quota update cycle, and then cyclically allocate traffic usage quotas to each virtual disk according to the quota update cycle. Specifically, token bucket technology can be used to achieve cyclic allocation of traffic usage quotas.
具体地,在一实施例中,虚拟磁盘包括虚拟磁盘处理器,用于向物理磁盘发送读写任务,具体可以在该虚拟磁盘待发送的读写任务上设置阻止标识,以使虚拟磁盘处理器不向物理磁盘发送该读写任务。Specifically, in one embodiment, the virtual disk includes a virtual disk processor for sending read and write tasks to the physical disk. Specifically, a blocking flag can be set on the read and write tasks to be sent by the virtual disk so that the virtual disk processor does not send the read and write tasks to the physical disk.
需要说明的是,虚拟磁盘在得到I/O任务后,将I/O任务添加到任务提交队列,以准备以队列的方式向物理磁盘发送I/O任务。It should be noted that after obtaining the I/O task, the virtual disk adds the I/O task to the task submission queue to prepare to send the I/O task to the physical disk in a queue manner.
具体地,在确定某虚拟磁盘的流量使用额度耗尽时,可以在其任务提交队列的标记位,添加阻止标识,以阻止该任务提交队列的发送操作,即不发送到对应的物理磁盘。Specifically, when it is determined that the traffic usage quota of a virtual disk is exhausted, a blocking flag can be added to the mark bit of its task submission queue to prevent the sending operation of the task submission queue, that is, not sending to the corresponding physical disk.
在上述实施例的基础上,作为一种可实施的方式,在一实施例中,在为各虚拟磁盘分配流量使用额度之后,方法还包括:Based on the above embodiment, as an implementable manner, in one embodiment, after allocating traffic usage quota to each virtual disk, the method further includes:
步骤301,监控各虚拟磁盘接收到的读写任务信息;Step 301, monitoring the read and write task information received by each virtual disk;
步骤302,针对每个虚拟磁盘,根据该虚拟磁盘接收到的读写任务信息,确定该虚拟磁盘的流量使用值;Step 302, for each virtual disk, determine the traffic usage value of the virtual disk according to the read and write task information received by the virtual disk;
步骤303,当该虚拟磁盘的流量使用值达到流量使用额度时,确定该虚拟磁盘的流量使用额度耗尽。Step 303: When the traffic usage value of the virtual disk reaches the traffic usage quota, it is determined that the traffic usage quota of the virtual disk is exhausted.
具体地,可以通过监控各虚拟磁盘接收到的读写任务信息,确定虚拟机在当前额度更新周期内的流量消耗情况,并确定其对应的流量使用值,在监控读写任务信息的过程中,比较虚拟磁盘的流量使用值和流量使用额度之间的关系,当该虚拟磁盘的流量使用值达到流量使用额度时,确定该虚拟磁盘的流量使用额度耗尽。Specifically, by monitoring the read and write task information received by each virtual disk, the traffic consumption of the virtual machine during the current quota update cycle and its corresponding traffic usage value can be determined. In the process of monitoring the read and write task information, the relationship between the traffic usage value and the traffic usage quota of the virtual disk is compared. When the traffic usage value of the virtual disk reaches the traffic usage quota, it is determined that the traffic usage quota of the virtual disk is exhausted.
其中,流量使用额度分为读写操作次数额度、读吞吐量额度和写吞吐量额度三种类型。Among them, traffic usage quotas are divided into three types: read and write operation quotas, read throughput quotas, and write throughput quotas.
相应地,虚拟磁盘的流量使用值包括IOPS累计值、读总吐量累计值和写吞吐量累计值三种指标,若该虚拟磁盘的IOPS累计值、读总吐量累计值和写吞吐量累计值中的任一指标达到对应类型的额度,则确定该虚拟磁盘的流量使用值达到流量使用额度。Correspondingly, the traffic usage value of the virtual disk includes three indicators: IOPS cumulative value, total read throughput cumulative value and write throughput cumulative value. If any of the indicators among the IOPS cumulative value, total read throughput cumulative value and write throughput cumulative value of the virtual disk reaches the quota of the corresponding type, it is determined that the traffic usage value of the virtual disk reaches the traffic usage quota.
示例性的,假定令牌更新时间(额度更新周期)为5ms,如果一个虚拟机的虚拟磁盘的流量使用额度中的读写操作次数额度为500K,读吞吐量额度为5000M/s,写吞吐量额度为4000M/s,则在一个额度更新周期(例如5ms)中,可以使用的令牌数量(流量使用额度)为2500IOPS,25000M度吞吐量,20000M写吞吐量。在实际应用中,这些流量使用额度参数可以基于物理磁盘的虚拟磁盘控制通道的私有Admin管理命令对各个虚拟磁盘进行设置,并且只有物理磁盘的虚拟磁盘控制通道具备这个设置权限。For example, assuming that the token update time (quota update cycle) is 5ms, if the read and write operation quota in the traffic usage quota of a virtual disk of a virtual machine is 500K, the read throughput quota is 5000M/s, and the write throughput quota is 4000M/s, then in a quota update cycle (e.g. 5ms), the number of tokens (traffic usage quota) that can be used is 2500IOPS, 25000M throughput, and 20000M write throughput. In actual applications, these traffic usage quota parameters can be set for each virtual disk based on the private Admin management command of the virtual disk control channel of the physical disk, and only the virtual disk control channel of the physical disk has this setting authority.
进一步地,在对虚拟机进行流量控制的过程中,各虚拟机独立进行Token(令牌)的维护,即每当收到一个I/O请求时,IOPS令牌数减1,read/write Thoughput Token(读/写总吐量)也减去请求的长度。Token先到达者(流量使用额度先耗尽者),停止服务,直到这个时间片(额度更新周期)结束。新的时间片到达时,将重新进行令牌资源的初始化分配,即重新为各虚拟磁盘分配流量使用额度。Furthermore, in the process of flow control for virtual machines, each virtual machine independently maintains the token, that is, every time an I/O request is received, the number of IOPS tokens is reduced by 1, and the read/write throughput token is also reduced by the length of the request. The one whose token arrives first (the one whose traffic usage quota is exhausted first) stops serving until the end of this time slice (quota update cycle). When a new time slice arrives, the token resources will be re-initialized, that is, the traffic usage quota will be re-allocated to each virtual disk.
示例性的,在监控各虚拟磁盘接收到的读写任务信息时,可以基于各虚拟机的虚拟磁盘处理器DM对虚拟磁盘的读写任务进行计数,因此涉及信息同步问题,假设用户虚拟机流量控制需求对读写任务计数的精度要求不高,因此采用每个CPU(虚拟磁盘处理器)独享一个变量的方式来处理,即虚拟磁盘处理器中的一个DM实例给虚拟磁盘保留一个Random,如IOPS令牌计数、读总吞吐量令牌计数和读总吞吐量令牌计数中的任意一个。Exemplarily, when monitoring the read and write task information received by each virtual disk, the read and write tasks of the virtual disk can be counted based on the virtual disk processor DM of each virtual machine, which involves information synchronization issues. Assuming that the user virtual machine traffic control requirements do not require high accuracy in the read and write task counting, each CPU (virtual disk processor) is treated as having an exclusive variable, that is, a DM instance in the virtual disk processor reserves a Random for the virtual disk, such as any one of the IOPS token count, the total read throughput token count, and the total read throughput token count.
进一步地,对于每个DM实例,在对虚拟磁盘的读写任务进行计数的过程中,每当收到一个SQM请求(I/O任务)之后,进行计数更新,且只更新自己CPU的令牌计数。更新完成后,同时获取其他DM实例的变量,进行累加,以根据累加结果,确定当前虚拟磁盘的流量使用额度是否用完。用完后进行反馈控制,关掉当前的虚拟磁盘VF的I/O服务SQ。为了能够支持1个虚拟磁盘控制通道PF+127VF,虚拟磁盘控制器有8个DM,需要1024个数组,每个数组3个元素对应3种令牌值;还需要有128个数组用于存放定时更新令牌桶的令牌reload值(重置值),同样每个数组有个3个元素,即读写操作次数额度、读吞吐量额度和写吞吐量额度,也称最大IOPS令牌值、最大读读吞吐量令牌值和最大写吞吐量令牌值。Furthermore, for each DM instance, in the process of counting the read and write tasks of the virtual disk, each time an SQM request (I/O task) is received, the count is updated, and only the token count of its own CPU is updated. After the update is completed, the variables of other DM instances are obtained at the same time and accumulated to determine whether the traffic usage quota of the current virtual disk is used up according to the accumulated results. After it is used up, feedback control is performed to turn off the I/O service SQ of the current virtual disk VF. In order to support 1 virtual disk control channel PF+127VF, the virtual disk controller has 8 DMs, requiring 1024 arrays, each with 3 elements corresponding to 3 token values; 128 arrays are also required to store the token reload value (reset value) of the timed update token bucket, and each array also has 3 elements, namely the read and write operation quota, the read throughput quota and the write throughput quota, also known as the maximum IOPS token value, the maximum read-read throughput token value and the maximum write throughput token value.
需要说明的是,在一个DM收到SQM请求后,获取不同SQ(I/O服务)命令中的对应SQE字段,根据物理SQ到虚拟SQ的映射表映射得到对应的VF,给这个(DM,VF)组合的元素累加额度值,加完之后,判断这个VF在所有DM上的额度累加值是否超过对应的令牌额度值,若是,则关掉这个VF的所有SQ。当到达令牌桶更新时间(额度更新周期)时,每个DM分别收到时间中断,每个DM更新自己CPU上的数据结构,使对应变量(指标)的累加值清零。其中,每个DM实例可以设置有一个定时器,在定时器中断中置位所有DM的reload flag(重置标识),DM在循环中检测reload flag做reset重置操作即将当前每个VF的流量使用值量进行清零。It should be noted that after a DM receives an SQM request, it obtains the corresponding SQE field in different SQ (I/O service) commands, maps the corresponding VF according to the mapping table from physical SQ to virtual SQ, and adds the quota value to the elements of this (DM, VF) combination. After the addition, it determines whether the accumulated quota value of this VF on all DMs exceeds the corresponding token quota value. If so, all SQs of this VF are turned off. When the token bucket update time (quota update cycle) is reached, each DM receives a time interrupt respectively, and each DM updates the data structure on its own CPU to clear the accumulated value of the corresponding variable (indicator). Among them, each DM instance can be set with a timer, and the reload flag (reset flag) of all DMs is set in the timer interrupt. The DM detects the reload flag in the loop and performs a reset operation to clear the current traffic usage value of each VF.
进一步地,虚拟磁盘的每一个SQ对应一个32bit寄存器,称为SQEARBCTL,其中有一个bit为SKIP(标记位),当置为1时,此SQ不再参与命令分发的仲裁,即此SQ中的命令不会再发相应的固件。当该虚拟磁盘的流量使用额度用完时DM找到这个VF对应的所有SQ,将SKIPbit置为1,关掉后续的请求。到时间片结束时,DM将要重新设置每一个VF对应的SQEARBCTL的SKIP bit。Furthermore, each SQ of the virtual disk corresponds to a 32-bit register called SQEARBCTL, which has a bit for SKIP (mark bit). When it is set to 1, this SQ no longer participates in the arbitration of command distribution, that is, the commands in this SQ will no longer send the corresponding firmware. When the traffic usage quota of the virtual disk is used up, the DM finds all the SQs corresponding to this VF, sets the SKIP bit to 1, and turns off subsequent requests. At the end of the time slice, the DM will reset the SKIP bit of the SQEARBCTL corresponding to each VF.
需要进一步说明的是,当分配的流量使用额度比较小时,可能存在比较大的误差,原因是流量控制是通过开关队列的方式进行流量限定的,但是在设定流量使用额度比较小时,将频繁进行流量使用额度重置的操作,在操作的过程中,漏进来的I/O任务对当前误差的影响就比较明显,为了减小这个误差,可以通过减少开关的次数,来减少漏入的I/O任务。It should be further explained that when the allocated traffic usage quota is relatively small, there may be a relatively large error. The reason is that traffic control limits traffic by switching queues. However, when the set traffic usage quota is relatively small, the traffic usage quota will be frequently reset. During the operation, the impact of the leaked I/O tasks on the current error is more obvious. In order to reduce this error, the number of switches can be reduced to reduce the leaked I/O tasks.
具体地,当流量使用额度小于某个阈值时,可以增大额度更新周期,在实际测试中发现100ms是一个相对比较好的额度更新周期。Specifically, when the traffic usage quota is less than a certain threshold, the quota update period can be increased. In actual tests, it was found that 100ms is a relatively good quota update period.
本申请实施例提供的虚拟机流量控制方法,通过获取当前部署的各个虚拟机的虚拟磁盘所对应的物理磁盘的属性信息;按照用户虚拟机流量控制需求,根据各虚拟磁盘所对应的物理磁盘的属性信息,为各虚拟磁盘分配流量使用额度;当任一虚拟磁盘的流量使用额度耗尽时,阻止该虚拟磁盘向对应的物理磁盘发送读写任务,以停止该虚拟磁盘的读写服务。上述方案提供的方法,通过在宿主机一侧,按照用户虚拟机流量控制需求和物理磁盘的属性信息,对其部署的虚拟机的虚拟磁盘的进行流量控制,使虚拟机流量控制结果即满足用户控制需求,也能匹配物理磁盘的实际能力,保证了该宿主机的虚拟机流量控制结果的适用性。并且,通过使用令牌桶技术进行不同I/O任务的流量控制,保证了虚拟磁盘性能隔离性。The virtual machine traffic control method provided in the embodiment of the present application obtains the attribute information of the physical disk corresponding to the virtual disk of each currently deployed virtual machine; according to the user virtual machine traffic control requirements, according to the attribute information of the physical disk corresponding to each virtual disk, the traffic usage quota is allocated to each virtual disk; when the traffic usage quota of any virtual disk is exhausted, the virtual disk is prevented from sending read and write tasks to the corresponding physical disk to stop the read and write service of the virtual disk. The method provided by the above scheme controls the traffic of the virtual disk of the deployed virtual machine on the host side according to the user virtual machine traffic control requirements and the attribute information of the physical disk, so that the virtual machine traffic control result not only meets the user control requirements, but also matches the actual capacity of the physical disk, thereby ensuring the applicability of the virtual machine traffic control result of the host. In addition, by using token bucket technology to control the traffic of different I/O tasks, the performance isolation of virtual disks is guaranteed.
本申请实施例提供了一种虚拟机流量控制装置,应用于宿主机,用于执行上述实施例提供的虚拟机流量控制方法。An embodiment of the present application provides a virtual machine traffic control device, which is applied to a host machine and is used to execute the virtual machine traffic control method provided in the above embodiment.
如图3所示,为本申请实施例提供的虚拟机流量控制装置的结构示意图。该虚拟机流量控制装置30包括:获取模块301、管理模块302和控制模块303。As shown in FIG3 , it is a schematic diagram of the structure of a virtual machine traffic control device provided in an embodiment of the present application. The virtual machine traffic control device 30 comprises: an acquisition module 301 , a management module 302 and a control module 303 .
其中,获取模块,用于获取当前部署的各个虚拟机的虚拟磁盘所对应的物理磁盘的属性信息;管理模块,用于按照用户虚拟机流量控制需求,根据各虚拟磁盘所对应的物理磁盘的属性信息,为各虚拟磁盘分配流量使用额度;控制模块,用于当任一虚拟磁盘的流量使用额度耗尽时,阻止该虚拟磁盘向对应的物理磁盘发送读写任务,以停止该虚拟磁盘的读写服务。Among them, the acquisition module is used to obtain the attribute information of the physical disk corresponding to the virtual disk of each currently deployed virtual machine; the management module is used to allocate traffic usage quota to each virtual disk according to the attribute information of the physical disk corresponding to each virtual disk in accordance with the user virtual machine traffic control requirements; the control module is used to prevent the virtual disk from sending read and write tasks to the corresponding physical disk when the traffic usage quota of any virtual disk is exhausted, so as to stop the read and write service of the virtual disk.
具体地,在一实施例中,管理模块,具体用于:Specifically, in one embodiment, the management module is specifically used to:
按照预设的额度更新周期,循环为各虚拟磁盘分配流量使用额度。According to the preset quota update cycle, the traffic usage quota is cyclically allocated to each virtual disk.
具体地,在一实施例中,虚拟磁盘包括虚拟磁盘处理器,用于向物理磁盘发送读写任务,控制模块,具体用于:Specifically, in one embodiment, the virtual disk includes a virtual disk processor, which is used to send read and write tasks to the physical disk, and a control module, which is specifically used to:
在该虚拟磁盘待发送的读写任务上设置阻止标识,以使虚拟磁盘处理器不向物理磁盘发送该读写任务。A blocking flag is set on the read/write task to be sent by the virtual disk, so that the virtual disk processor does not send the read/write task to the physical disk.
具体地,在一实施例中,管理模块,还用于:Specifically, in one embodiment, the management module is further used to:
监控各虚拟磁盘接收到的读写任务信息;Monitor the read and write task information received by each virtual disk;
针对每个虚拟磁盘,根据该虚拟磁盘接收到的读写任务信息,确定该虚拟磁盘的流量使用值;For each virtual disk, determine the traffic usage value of the virtual disk according to the read and write task information received by the virtual disk;
当该虚拟磁盘的流量使用值达到流量使用额度时,确定该虚拟磁盘的流量使用额度耗尽。When the traffic usage value of the virtual disk reaches the traffic usage quota, it is determined that the traffic usage quota of the virtual disk is exhausted.
具体地,在一实施例中,流量使用额度分为读写操作次数额度、读吞吐量额度和写吞吐量额度三种类型。Specifically, in one embodiment, the traffic usage quota is divided into three types: read and write operation times quota, read throughput quota and write throughput quota.
具体地,在一实施例中,虚拟磁盘的流量使用值包括IOPS累计值、读总吐量累计值和写吞吐量累计值三种指标,管理模块,还用于:Specifically, in one embodiment, the traffic usage value of the virtual disk includes three indicators: IOPS cumulative value, total read throughput cumulative value, and write throughput cumulative value. The management module is also used to:
若该虚拟磁盘的IOPS累计值、读总吐量累计值和写吞吐量累计值中的任一指标达到对应类型的额度,则确定该虚拟磁盘的流量使用值达到流量使用额度。If any of the IOPS cumulative value, the total read throughput cumulative value, and the write throughput cumulative value of the virtual disk reaches the quota of the corresponding type, it is determined that the traffic usage value of the virtual disk reaches the traffic usage quota.
具体地,在一实施例中,物理磁盘的属性信息至少包括物理磁盘的IOPS上限值和带宽。Specifically, in one embodiment, the attribute information of the physical disk includes at least the IOPS upper limit and bandwidth of the physical disk.
关于本实施例中的虚拟机流量控制装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the virtual machine traffic control device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
本申请实施例提供的虚拟机流量控制装置,用于执行上述实施例提供的虚拟机流量控制方法,其实现方式与原理相同,不再赘述。The virtual machine traffic control device provided in the embodiment of the present application is used to execute the virtual machine traffic control method provided in the above embodiment. Its implementation method and principle are the same and will not be repeated here.
本申请实施例提供了一种电子设备,用于执行上述实施例提供的虚拟机流量控制方法。An embodiment of the present application provides an electronic device for executing the virtual machine traffic control method provided in the above embodiment.
如图4所示,为本申请实施例提供的电子设备的结构示意图。该电子设备40包括:至少一个处理器41和存储器42。As shown in FIG4 , it is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 40 includes: at least one processor 41 and a memory 42 .
存储器存储计算机执行指令;至少一个处理器执行存储器存储的计算机执行指令,使得至少一个处理器执行如上实施例提供的虚拟机流量控制方法。The memory stores computer-executable instructions; at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the virtual machine traffic control method provided in the above embodiment.
本申请实施例提供的一种电子设备,用于执行上述实施例提供的虚拟机流量控制方法,其实现方式与原理相同,不再赘述。An electronic device provided in an embodiment of the present application is used to execute the virtual machine traffic control method provided in the above embodiment. Its implementation method and principle are the same and will not be repeated here.
本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当处理器执行计算机执行指令时,实现如上任一实施例提供的虚拟机流量控制方法。An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a virtual machine traffic control method provided in any of the above embodiments is implemented.
本申请实施例的包含计算机可执行指令的存储介质,可用于存储前述实施例中提供的虚拟机流量控制方法的计算机执行指令,其实现方式与原理相同,不再赘述。The storage medium containing computer executable instructions in the embodiment of the present application can be used to store computer executable instructions of the virtual machine traffic control method provided in the aforementioned embodiment. Its implementation method and principle are the same and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210087444.8ACN114443228B (en) | 2022-01-25 | 2022-01-25 | Virtual machine traffic control method, device, electronic device and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210087444.8ACN114443228B (en) | 2022-01-25 | 2022-01-25 | Virtual machine traffic control method, device, electronic device and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN114443228A CN114443228A (en) | 2022-05-06 |
| CN114443228Btrue CN114443228B (en) | 2024-10-18 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210087444.8AActiveCN114443228B (en) | 2022-01-25 | 2022-01-25 | Virtual machine traffic control method, device, electronic device and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN114443228B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110198243A (en)* | 2019-06-11 | 2019-09-03 | 深信服科技股份有限公司 | A kind of method for network access and relevant device of virtual machine |
| CN110661824A (en)* | 2018-06-28 | 2020-01-07 | 阿里巴巴集团控股有限公司 | Flow regulation and control method and device for servers in distributed cluster |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW201250464A (en)* | 2011-06-01 | 2012-12-16 | Hon Hai Prec Ind Co Ltd | System and method for monitoring virtual machines |
| US20190089637A1 (en)* | 2017-09-21 | 2019-03-21 | Microsoft Technology Licensing, Llc | Virtualizing dcb settings for virtual network adapters |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110661824A (en)* | 2018-06-28 | 2020-01-07 | 阿里巴巴集团控股有限公司 | Flow regulation and control method and device for servers in distributed cluster |
| CN110198243A (en)* | 2019-06-11 | 2019-09-03 | 深信服科技股份有限公司 | A kind of method for network access and relevant device of virtual machine |
| Publication number | Publication date |
|---|---|
| CN114443228A (en) | 2022-05-06 |
| Publication | Publication Date | Title |
|---|---|---|
| US11886731B2 (en) | Hot data migration method, apparatus, and system | |
| CN109936511B (en) | Token obtaining method, device, server, terminal equipment and medium | |
| US10747451B2 (en) | Auto allocation of storage system resources to heterogeneous categories of resource consumer | |
| US10534542B2 (en) | Dynamic core allocation for consistent performance in a non-preemptive scheduling environment | |
| JP5510556B2 (en) | Method and system for managing virtual machine storage space and physical hosts | |
| EP3036625B1 (en) | Virtual hadoop manager | |
| CN107851039B (en) | System and method for resource management | |
| CN110661824B (en) | Flow control method of server in distributed cluster and storage medium | |
| US20140130055A1 (en) | Systems and methods for provisioning of storage for virtualized applications | |
| US20140173620A1 (en) | Resource allocation method and resource management platform | |
| US10394606B2 (en) | Dynamic weight accumulation for fair allocation of resources in a scheduler hierarchy | |
| CN108009006A (en) | The dispatching method and device of I/O requests | |
| US10545791B2 (en) | Methods to apply IOPS and MBPS limits independently using cross charging and global cost synchronization | |
| CN104335182A (en) | Method and device for eliminating single point of failure of cloud-based application | |
| US10305974B2 (en) | Ranking system | |
| CN110297698B (en) | A multi-priority dynamic current limiting method, device, server and storage medium | |
| CN114442910A (en) | Method, electronic device and computer program product for managing storage system | |
| CN114448909B (en) | Network card queue polling method and device based on ovs, computer equipment and medium | |
| CN114443228B (en) | Virtual machine traffic control method, device, electronic device and storage medium | |
| CN114816766B (en) | A computing resource allocation method and related components | |
| CN108874316A (en) | Method, apparatus, equipment and the readable storage medium storing program for executing of storage resource centralized management | |
| CN118075355A (en) | Task request scheduling method, device, program, electronic equipment and storage medium | |
| CN117149401A (en) | Resource scheduling method, device and equipment | |
| US20240104468A1 (en) | Maintenance background task regulation using feedback from instrumented waiting points | |
| CN113419673B (en) | Method, system, medium and device for RBD access storage cluster |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | Address after:215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province Patentee after:Suzhou Yuannao Intelligent Technology Co.,Ltd. Country or region after:China Address before:215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province Patentee before:SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Country or region before:China |