TWI778597B - Deployment method of remote desktop gateways, computer device, and storage medium - Google Patents

Deployment method of remote desktop gateways, computer device, and storage medium Download PDF

Info

Publication number
TWI778597B
TWI778597B TW110114826A TW110114826A TWI778597B TW I778597 B TWI778597 B TW I778597B TW 110114826 A TW110114826 A TW 110114826A TW 110114826 A TW110114826 A TW 110114826A TW I778597 B TWI778597 B TW I778597B
Authority
TW
Taiwan
Prior art keywords
time
classification model
remote desktop
virtual machine
preset
Prior art date
Application number
TW110114826A
Other languages
Chinese (zh)
Other versions
TW202242860A (en
Inventor
蔡佩蓉
徐正達
Original Assignee
新加坡商鴻運科股份有限公司
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 新加坡商鴻運科股份有限公司 filed Critical 新加坡商鴻運科股份有限公司
Priority to TW110114826A priority Critical patent/TWI778597B/en
Application granted granted Critical
Publication of TWI778597B publication Critical patent/TWI778597B/en
Publication of TW202242860A publication Critical patent/TW202242860A/en

Links

Images

Abstract

The present application provides a deployment method of remote desktop gateways, a computer device, and a storage medium. The deployment method of remote desktop gateways includes: obtaining application data of virtual machines(VMs) in the remote desktop gateways(RDGWs), the application data including historical data and real-time data; training a neural network with the historical data to obtain a target classification model; inputting the real-time data into the target classification model to obtain a classification result of the real-time data; deploying the VMs to a designated RDGW based on the classification result; and adding RDGW or recycling existing RDGWs based on the real-time data. The application can assist in the elastic scaling and deployment of resources and save resources while meeting resource requirements.

Description

遠端桌面閘道的調配方法、電腦裝置及儲存介質 Deployment method, computer device and storage medium of remote desktop gateway

本發明涉及電腦技術領域,尤其涉及一種遠端桌面閘道的調配方法、電腦裝置及儲存介質。 The present invention relates to the field of computer technology, and in particular, to a method for configuring a remote desktop gateway, a computer device and a storage medium.

在虛擬化技術的使用過程中,通常會出現遠端桌面閘道資源不足或資源過剩的問題。如何確保遠端桌面閘道資源中隨時都有合適的數量,以處理目前的流量需求,以及如何即時發現並解決遠端桌面閘道資源的浪費現象,是電腦技術領域面臨的一個問題。 In the process of using the virtualization technology, the problem of insufficient or excessive resources of the remote desktop gateway usually occurs. How to ensure that there is an appropriate amount of remote desktop gateway resources at all times to handle current traffic demands, and how to instantly discover and solve the waste of remote desktop gateway resources are problems faced by the computer technology field.

鑒於以上內容,有必要提供一種遠端桌面閘道的調配方法、電腦裝置及儲存介質,能夠實現對資源的彈性伸縮調配,在滿足資源需求的同時節省資源。 In view of the above content, it is necessary to provide a remote desktop gateway allocation method, computer device and storage medium, which can realize elastic scaling and allocation of resources and save resources while meeting resource requirements.

所述遠端桌面閘道的調配方法包括:獲取遠端桌面閘道中虛擬機器的應用資料,所述應用資料包括歷史資料和即時資料;利用所述歷史資料訓練神經網路,獲得目標分類模型;將所述即時資料輸入所述目標分類模型,獲得所述即時資料的分類結果;基於所述分類結果,將所述虛擬機器調配給指定的遠程桌面閘道;及基於所述即時資料,新增遠程桌面閘道或回收已有的遠程桌面閘道。 The method for deploying the remote desktop gateway includes: acquiring application data of a virtual machine in the remote desktop gateway, where the application data includes historical data and real-time data; using the historical data to train a neural network to obtain a target classification model; Input the real-time data into the target classification model to obtain a classification result of the real-time data; based on the classification result, allocate the virtual machine to a designated remote desktop gateway; and based on the real-time data, add a new Remote desktop gateway or recycle existing remote desktop gateway.

可選地,所述方法還包括:監控所述虛擬機器,獲得所述應用資 料;及將所述應用資料儲存在預設的資料庫中。 Optionally, the method further includes: monitoring the virtual machine, obtaining the application information and storing the application data in a preset database.

可選地,所述歷史資料包括:登入所述虛擬機器的用戶的身份標識號ID、用戶登入所述虛擬機器的時間b1、用戶登出所述虛擬機器的時間e1;所述即時資料包括所述虛擬機器的使用狀態,所述虛擬機器的使用狀態包括未使用的狀態、已被登入的狀態和正被執行登入操作中的狀態;當所述虛擬機器的使用狀態為所述已被登入的狀態或所述正被執行登入操作中的狀態時,所述即時資料還包括對所述虛擬機器執行登入操作的用戶的ID、該用戶對所述虛擬機器執行登入操作的時間b2。 Optionally, the historical data includes: the identification number ID of the user logging in to the virtual machine, the time b1 when the user logs in to the virtual machine, and the time e1 when the user logs out of the virtual machine; the real-time data includes all The usage state of the virtual machine, the usage state of the virtual machine includes an unused state, a logged-in state, and a state in which a login operation is being performed; when the virtual machine's usage state is the logged-in state Or when the login operation is being performed, the real-time data further includes the ID of the user who performs the login operation on the virtual machine, and the time b2 when the user performs the login operation on the virtual machine.

可選地,所述方法還包括:從所述資料庫中獲取所述歷史資料作為訓練樣本,訓練所述神經網路獲得分類模型;及對所述分類模型進行至少一次反覆運算更新,直至所述分類模型符合預設的要求,獲得所述目標分類模型。 Optionally, the method further includes: acquiring the historical data from the database as a training sample, training the neural network to obtain a classification model; and performing at least one iteration of updating the classification model until all The classification model meets the preset requirements, and the target classification model is obtained.

可選地,所述對所述分類模型進行至少一次反覆運算更新包括:判斷上一次反覆運算更新後的分類模型是否符合所述預設的要求;當所述上一次反覆運算更新後的分類模型符合所述預設的要求時,將所述上一次反覆運算更新後的分類模型作為所述目標分類模型;當所述上一次反覆運算更新後的分類模型不符合所述預設的要求時,從所述資料庫中獲取更新後的歷史資料作為訓練樣本,在所述上一次反覆運算更新後的分類模型的基礎上繼續訓練所述神經網路,獲得當前更新的分類模型,對所述當前更新的分類模型進行下一次反覆運算更新。 Optionally, performing at least one iterative operation update on the classification model includes: judging whether the classification model after the last iterative operation update meets the preset requirements; when the classification model after the last iterative operation update meets the preset requirements; When meeting the preset requirements, the classification model updated by the last repeated operation is used as the target classification model; when the classification model updated by the last repeated operation does not meet the preset requirements, Obtain the updated historical data from the database as a training sample, continue to train the neural network on the basis of the updated classification model after the last repeated operation, and obtain the currently updated classification model. The updated classification model is updated for the next iteration.

可選地,所述將所述即時資料輸入所述目標分類模型,獲得所述即時資料的分類結果包括:當所述即時資料指示所述虛擬機器的狀態為正被執行登入操作中的狀態時,將對所述虛擬機器執行登入操作的用戶的ID以及該用戶對所述虛擬機器執行登入操作的時間b2輸入所述目標分類模型;利用所述目標分類模型,預測所述用戶登出所述虛擬機器的時間e2;將所述時間e2與預設數量的時間段中的每一個時間段的範圍進行比對,將處於 同一時間段內的所述e2對應的用戶的ID歸為一類,共獲得所述預設數量的分類結果。 Optionally, inputting the real-time data into the target classification model, and obtaining a classification result of the real-time data includes: when the real-time data indicates that the state of the virtual machine is a state in which a login operation is being performed. , the ID of the user who will perform the login operation on the virtual machine and the time b2 when the user performs the login operation on the virtual machine are input into the target classification model; using the target classification model, it is predicted that the user logs out of the virtual machine The time e2 of the virtual machine; comparing the time e2 with the range of each time period in the preset number of time periods, it will be in the The IDs of the users corresponding to the e2 in the same time period are classified into one category, and the preset number of classification results are obtained in total.

可選地,所述基於所述分類結果,將所述虛擬機器調配給指定的遠端桌面閘道包括:將屬於同一類的所述用戶的ID正在執行登入操作的虛擬機器,調配給所述指定的遠程桌面閘道。 Optionally, the allocating the virtual machine to the specified remote desktop gateway based on the classification result includes: allocating the virtual machine whose ID of the user belonging to the same class is performing the login operation to the virtual machine. The specified remote desktop gateway.

可選地,所述基於所述即時資料,新增遠端桌面閘道或回收已有的遠端桌面閘道包括:分析所述即時資料;當確定已有的遠端桌面閘道的儲存器平均使用率都超出預設的閾值時,發出新增警示並新增一個或多個遠端桌面閘道;或當確定任一已有的遠端桌面閘道中的所有虛擬機器的使用狀態都為未使用的狀態時,發出回收警示並對所述任一已有的遠端桌面閘道進行回收。 Optionally, the adding a remote desktop gateway or recycling an existing remote desktop gateway based on the real-time data includes: analyzing the real-time data; when determining the storage of the existing remote desktop gateway. When the average usage exceeds the preset threshold, a new alert is issued and one or more remote desktop gateways are added; or when it is determined that the usage status of all virtual machines in any existing remote desktop gateway is When not in use, a recycling warning is issued and any existing remote desktop gateway is recycled.

所述電腦可讀儲存介質儲存有至少一個指令,所述至少一個指令被處理器執行時實現所述遠端桌面閘道的調配方法。 The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by the processor, implements the method for provisioning the remote desktop gateway.

所述電腦裝置包括儲存器和至少一個處理器,所述儲存器中儲存有至少一個指令,所述至少一個指令被所述至少一個處理器執行時實現所述遠端桌面閘道的調配方法。 The computer device includes a memory and at least one processor, the memory stores at least one instruction, and when the at least one instruction is executed by the at least one processor, implements the method for provisioning the remote desktop gateway.

相較於習知技術,所述遠端桌面閘道的調配方法、電腦裝置及儲存介質,能夠實現對資源的彈性伸縮調配,在滿足資源需求的同時節省資源。 Compared with the prior art, the deployment method of the remote desktop gateway, the computer device and the storage medium can realize elastic scaling and deployment of resources, and save resources while meeting resource requirements.

3:電腦裝置 3: Computer device

32:處理器 32: Processor

31:儲存器 31: Storage

301:監控系統 301: Monitoring System

302:調配系統 302: Allocation system

303:報警系統 303: Alarm system

S1~S4:步驟 S1~S4: Steps

為了更清楚地說明本申請實施例或習知技術中的技術方案,下面將對實施例或習知技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本申請的實施例,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據提供的附圖獲得其他的附圖。 In order to more clearly illustrate the technical solutions in the embodiments of the present application or in the prior art, the following briefly introduces the accompanying 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 It is an embodiment of the present application. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without any creative effort.

圖1是本申請較佳實施例的遠端桌面閘道的調配方法的應用環境圖。 FIG. 1 is an application environment diagram of a method for configuring a remote desktop gateway according to a preferred embodiment of the present application.

圖2是本申請較佳實施例的遠端桌面閘道的調配方法的流程圖。 FIG. 2 is a flowchart of a method for configuring a remote desktop gateway according to a preferred embodiment of the present application.

圖3是本申請較佳實施例的遠端桌面閘道的調配方法的應用示意圖。 FIG. 3 is an application schematic diagram of a method for deploying a remote desktop gateway according to a preferred embodiment of the present application.

圖4是本申請較佳實施例的電腦裝置的架構圖。 FIG. 4 is a structural diagram of a computer device according to a preferred embodiment of the present application.

為了能夠更清楚地理解本申請的上述目的、特徵和優點,下面結合附圖和具體實施例對本申請進行詳細描述。需要說明的是,在不衝突的情況下,本申請的實施例及實施例中的特徵可以相互組合。 In order to more clearly understand the above objects, features and advantages of the present application, the present application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments may be combined with each other in the case of no conflict.

在下面的描述中闡述了很多具體細節以便於充分理解本申請,所描述的實施例僅僅是本申請一部分實施例,而不是全部的實施例。基於本申請中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本申請保護的範圍。 In the following description, many specific details are set forth to facilitate a full understanding of the present application, and the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

除非另有定義,本文所使用的所有的技術和科學術語與屬於本申請的技術領域的技術人員通常理解的含義相同。本文中在本申請的說明書中所使用的術語只是為了描述具體的實施例的目的,不是旨在於限制本申請。 Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein in the specification of the application are for the purpose of describing specific embodiments only, and are not intended to limit the application.

圖1是本申請較佳實施例的遠端桌面閘道的調配方法的應用環境圖。如圖1所示,為虛擬機器(Virtual Machine,VM)與遠端桌面閘道(Remote Desktop Gateway,RDGW)之間的連接關係,下文將結合圖2所示的方法流程圖進行詳細描述。 FIG. 1 is an application environment diagram of a method for configuring a remote desktop gateway according to a preferred embodiment of the present application. As shown in FIG. 1 , it is a connection relationship between a virtual machine (Virtual Machine, VM) and a remote desktop gateway (Remote Desktop Gateway, RDGW). The following will describe in detail with reference to the method flowchart shown in FIG. 2 .

參閱圖2所示,為本申請較佳實施例的遠端桌面閘道的調配方法的流程圖。 Referring to FIG. 2 , it is a flowchart of a method for configuring a remote desktop gateway according to a preferred embodiment of the present application.

在本實施例中,所述遠端桌面閘道的調配方法可以應用於電腦裝置(例如圖4所示的電腦裝置3)中,對於需要進行遠端桌面閘道的調配的電腦裝置,可以直接在電腦裝置上集成本申請的方法所提供的用於遠端桌面閘道的調配的功能,或者以軟體開發套件(Software Development Kit,SDK)的形式運行在電腦裝置上。 In this embodiment, the method for deploying the remote desktop gateway can be applied to a computer device (for example, the computer device 3 shown in FIG. 4 ). The function for provisioning the remote desktop gateway provided by the method of the present application is integrated on the computer device, or runs on the computer device in the form of a software development kit (Software Development Kit, SDK).

如圖2所示,所述遠端桌面閘道的調配方法具體包括以下步驟,根據不同的需求,該流程圖中步驟的順序可以改變,某些步驟可以省略。 As shown in FIG. 2 , the method for configuring the remote desktop gateway specifically includes the following steps. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

步驟S1、監控系統301獲取遠端桌面閘道中虛擬機器的應用資料,所述應用資料包括歷史資料和即時資料。 Step S1, the monitoring system 301 acquires application data of the virtual machine in the remote desktop gateway, and the application data includes historical data and real-time data.

在一個實施例中,每個所述遠端桌面閘道都有自己的編號,不同的RDGW擁有不同的編號,例如,RDGW1、RDGW2等;每個所述虛擬機器都有自己的編號,不同的VM擁有不同的編號,例如,VM1、VM2等。 In one embodiment, each remote desktop gateway has its own number, and different RDGWs have different numbers, for example, RDGW1, RDGW2, etc.; each of the virtual machines has its own number, and different RDGWs have different numbers. VMs have different numbers, eg VM1, VM2, etc.

在一個實施例中,回應用戶的登入操作,所述VM透過所述RDGW被登入的用戶所使用,例如圖1所示,一個VM被分配給一個RDGW,一個RDGW中可以包含不超過預設數量(例如,50個)的VM。 In one embodiment, in response to a user's login operation, the VM is used by the logged-in user through the RDGW. For example, as shown in FIG. 1 , one VM is allocated to one RDGW, and one RDGW may contain no more than a preset number of (eg, 50) of VMs.

在一個實施例中,每個用戶都有自己的身份標識號(Identity document,ID),不同的用戶擁有不同的ID,例如,用戶A、用戶B等。 In one embodiment, each user has its own identity document (ID), and different users have different IDs, for example, user A, user B, and so on.

在一個實施例中,例如圖3所示,監控系統301監控所述VM,獲得所述應用資料;及將所述應用資料儲存在預設的資料庫中。所述歷史資料包括:登入所述VM的用戶的ID、用戶登入所述VM的時間b1、用戶登出所述VM時間e1;所述即時資料包括所述VM的使用狀態,所述VM的使用狀態包括未使用的狀態、已被登入的狀態和正被執行登入操作中的狀態,所述未使用的狀態包括未被執行登錄操作以及未被登入的狀態,所述已被登入的狀態包括已被執行登入操作且已被成功登入(驗證透過,例如,用戶輸入的ID和密碼被判定為正確)並使用的狀態,所述正被執行登入操作中的狀態包括用戶正執行登入操作(例如,正在輸入ID)且還未成 功登入(例如,還未輸入密碼)的狀態;當所述VM的使用狀態為所述已被登入的狀態或所述正被執行登入操作中的狀態時,所述即時資料還包括對所述VM執行登入操作的用戶的ID、該用戶對所述VM執行登入操作的時間b2。 In one embodiment, as shown in FIG. 3 , the monitoring system 301 monitors the VM, obtains the application data, and stores the application data in a preset database. The historical data includes: the ID of the user logging in to the VM, the time b1 when the user logs in to the VM, and the time e1 when the user logs out of the VM; the real-time data includes the usage status of the VM, the usage of the VM The status includes an unused status, a logged-in status, and a status in the process of performing a login operation. The unused status includes a status of not performing a login operation and an The status in which the login operation is performed and has been successfully logged in (authentication is passed, for example, the ID and password entered by the user are determined to be correct) and used, and the status in the login operation being performed includes that the user is performing the login operation (for example, the Enter ID) and not yet The status of successful login (for example, the password has not been entered); when the usage status of the VM is the logged-in status or the status of the login operation being performed, the real-time data also includes a The ID of the user who performed the login operation of the VM, and the time b2 when the user performed the login operation to the VM.

在一個實施例中,所述歷史資料包括:歷史工作日的工作時間中用戶使用所述VM的資料。需要說明的是,歷史非工作日(例如,週末、假期等)內的資料因不具代表性,不被記錄在所述歷史資料內。 In one embodiment, the historical data includes: data on the user's use of the VM during working hours on historical working days. It should be noted that the data in historical non-working days (for example, weekends, holidays, etc.) are not recorded in the historical data because they are not representative.

步驟S2、電腦裝置利用所述歷史資料訓練神經網路,獲得目標分類模型。 Step S2, the computer device uses the historical data to train a neural network to obtain a target classification model.

在一個實施例中,例如圖3所示,電腦裝置從所述資料庫中獲取所述歷史資料作為訓練樣本,訓練所述神經網路獲得分類模型;及對所述分類模型進行至少一次反覆運算更新,直至所述分類模型符合預設的要求,獲得所述目標分類模型。所述對所述分類模型進行至少一次反覆運算更新包括:判斷上一次反覆運算更新後的分類模型是否符合所述預設的要求;當所述上一次反覆運算更新後的分類模型符合所述預設的要求時,將所述上一次反覆運算更新後的分類模型作為所述目標分類模型;當所述上一次反覆運算更新後的分類模型不符合所述預設的要求時,從所述資料庫中獲取更新後的歷史資料作為訓練樣本,在所述上一次反覆運算更新後的分類模型的基礎上繼續訓練所述神經網路,獲得當前更新的分類模型,對所述當前更新的分類模型進行下一次反覆運算更新。 In one embodiment, as shown in FIG. 3 , the computer device obtains the historical data from the database as a training sample, trains the neural network to obtain a classification model; and performs at least one repeated operation on the classification model Update until the classification model meets the preset requirements, and obtain the target classification model. The performing at least one iterative operation update on the classification model includes: judging whether the classification model updated by the last iterative operation meets the preset requirements; when the classification model updated by the last repeated operation meets the preset requirements; When setting the requirements, the classification model updated by the last repeated operation is used as the target classification model; when the classification model updated by the last repeated operation does not meet the preset requirements, from the data Obtain the updated historical data in the library as a training sample, continue to train the neural network on the basis of the updated classification model after the last repeated operation, obtain the currently updated classification model, and analyze the currently updated classification model. Do the next iterative update.

在一個實施例中,所述預設的要求中包含預設數量的時間段,所述預設數量的時間段中的每個時間段可以包含預設的時間長度,所述預設數量可以包括:將工作時間按照所述預設的時間長度進行分割後的數量。例如,將從9:00至18:00的工作時間按照每20分鐘為一個時間段進行分割,獲得27個時間段,例如,17:00至17:20等。 In one embodiment, the preset requirement includes a preset number of time periods, each of the preset number of time periods may include a preset time length, and the preset number may include : The number of working hours divided according to the preset time length. For example, the working time from 9:00 to 18:00 is divided into a time period every 20 minutes to obtain 27 time periods, for example, 17:00 to 17:20 and so on.

在一個實施例中,所述判斷上一次反覆運算更新後的分類模型是 否符合所述預設的要求包括:將所述歷史資料中任一用戶登入VM的ID以及登入所述VM的時間b10,輸入所述上一次反覆運算更新後的分類模型;獲得所述任一用戶登出所述VM的預測時間e20;將所述預測時間e20與所述歷史資料中所述任一用戶的登出所述VM的時間e10進行比較,判斷所述預測時間e20與所述時間e10是否處於所述預設數量的時間段中的同一時間段的範圍內,獲得判斷結果;當所述判斷結果為是時,確定所述上一次反覆運算更新後的分類模型符合所述預設的要求;當所述判斷結果為否時,確定所述上一次反覆運算更新後的分類模型不符合所述預設的要求。 In one embodiment, it is judged that the classification model updated by the last repeated operation is Whether or not it meets the preset requirements includes: inputting the ID of any user in the historical data to log in to the VM and the time b10 for logging in to the VM, and inputting the classification model after the last repeated operation and updating; obtaining the any of the The predicted time e20 when the user logs out of the VM; compare the predicted time e20 with the time e10 of any user in the historical data to log out of the VM, and determine the predicted time e20 and the time Whether e10 is within the range of the same time period in the preset number of time periods, a judgment result is obtained; when the judgment result is yes, it is determined that the classification model updated by the last repeated operation conforms to the preset requirements; when the judgment result is no, it is determined that the classification model updated by the last repeated operation does not meet the preset requirements.

步驟S3、監控系統301將所述即時資料輸入所述目標分類模型,獲得所述即時資料的分類結果。 Step S3, the monitoring system 301 inputs the real-time data into the target classification model, and obtains a classification result of the real-time data.

在一個實施例中,例如圖3所示,監控系統301將所述資料庫中的所述即時資料輸入所述目標分類模型,當所述即時資料指示所述VM的狀態為正被執行登入操作中的狀態時,電腦裝置將對所述VM執行登入操作的用戶的ID、該用戶對所述VM執行登入操作的時間b2輸入所述目標分類模型;所述目標分類模型預測所述用戶登出所述VM的時間e2;目標分類模型將所述時間e2與預設數量的時間段中的每一個時間段的範圍進行比對,將處於同一時間段內的所述e2對應的用戶的ID歸為一類,共獲得所述預設數量的分類結果。例如,用戶A在13:16時透過RDGW1對VM1執行登入操作,所述目標分類模型預測用戶A的登出時間為17:05;在14:27時,用戶C透過RDGW2對VM2執行登入操作,所述目標分類模型預測用戶C的登出時間為17:15;目標分類模型確定用戶A和用戶C都會在時間段17:00至17:20內登出,將用戶A和用戶C歸為一類。 In one embodiment, as shown in FIG. 3 , the monitoring system 301 inputs the real-time data in the database into the target classification model, when the real-time data indicates that the status of the VM is being logged in In the state of , the computer device will input the ID of the user who performs the login operation on the VM and the time b2 when the user performs the login operation on the VM into the target classification model; the target classification model predicts that the user logs out The time e2 of the VM; the target classification model compares the time e2 with the range of each time period in a preset number of time periods, and classifies the IDs of the users corresponding to the e2 in the same time period. For one category, the preset number of classification results are obtained. For example, user A logs in to VM1 through RDGW1 at 13:16, and the target classification model predicts that user A's logout time is 17:05; at 14:27, user C logs in to VM2 through RDGW2, The target classification model predicts that the logout time of user C is 17:15; the target classification model determines that both user A and user C will log out within the time period from 17:00 to 17:20, and classify user A and user C into one category .

步驟S4、目標分類模型基於所述分類結果,將所述虛擬機器調配給指定的遠程桌面閘道;及調配系統302基於所述即時資料,新增遠端桌面閘道或回收已有的遠程桌面閘道。 Step S4, the target classification model allocates the virtual machine to a designated remote desktop gateway based on the classification result; and the allocation system 302 adds a new remote desktop gateway or recycles an existing remote desktop based on the real-time data gateway.

在一個實施例中,例如圖3所示,目標分類模型將屬於同一類的 所述用戶的ID正在執行登入操作的VM,調配給所述指定的RDGW。所述指定的RDGW可以是屬於同一類的所述用戶的ID登入並使用的RDGW。例如,14:27時,用戶A在透過RDGW1登入並使用VM1,用戶C透過RDGW2對VM2執行登入操作,目標分類模型確定用戶C和用戶A屬於同一類,將用戶C正在登入執行操作的VM2分配給用戶A登入並使用的RDGW1。 In one embodiment, such as shown in Figure 3, the target classification model will belong to the same class of The VM whose user ID is performing the login operation is allocated to the specified RDGW. The designated RDGW may be an RDGW logged in and used by the user's ID belonging to the same class. For example, at 14:27, user A is logging in through RDGW1 and using VM1, and user C performs a login operation to VM2 through RDGW2. The target classification model determines that user C and user A belong to the same category, and assigns the VM2 that user C is logging in to perform operations on. RDGW1 is given to user A to log in and use.

在一個實施例中,例如圖3所示,報警系統303分析所述即時資料,所述分析包括:判斷已有的RDGW的儲存器平均使用率是否都超出預設的閾值(例如,70%),例如,判斷已有的RDGW在預設的評判週期(例如3分鐘)內儲存器的平均使用率是否都大於70%,已有的RDGW為RDGW1和RDGW2,RDGW1在3分鐘內的儲存器平均使用率為80%,RDGW2在3分鐘內的儲存器平均使用率為70%,那麼已有的RDGW的儲存器平均使用率都超出預設的閾值70%;以及判斷是否存在一已有的RDGW中的所有VM的使用狀態都為未使用的狀態;當確定已有的RDGW的儲存器平均使用率都超出預設的閾值時,向調配系統302發出新增警示,調配系統302新增一個或多個RDGW;及當確定任一已有的遠端桌面閘道中的所有VM的使用狀態都為未使用的狀態時,向調配系統302發出回收警示,調配系統302對所述任一已有的RDGM進行回收。例如,當確定已有的RDGW的儲存器平均使用率都超過70%時,電腦裝置發出新增警示,並新增新的RDGW;當17:20時,RDGW1中的所有用戶都已登出VM,電腦裝置回收RDGW1。 In one embodiment, such as shown in FIG. 3 , the alarm system 303 analyzes the real-time data, and the analysis includes: judging whether the average storage usage of the existing RDGW exceeds a preset threshold (for example, 70%) For example, to determine whether the average usage rate of the storage of the existing RDGWs within a preset evaluation period (for example, 3 minutes) is greater than 70%, the existing RDGWs are RDGW1 and RDGW2, and the average storage capacity of RDGW1 within 3 minutes is The usage rate is 80%, and the average usage rate of RDGW2 within 3 minutes is 70%, then the average usage rate of existing RDGWs exceeds the preset threshold of 70%; and it is determined whether there is an existing RDGW The usage states of all VMs in the RDGW are in the unused state; when it is determined that the average usage rate of the storage of the existing RDGW exceeds the preset threshold, a new alert is issued to the deployment system 302, and the deployment system 302 adds a new or multiple RDGWs; and when it is determined that the usage status of all VMs in any existing remote desktop gateway is in an unused state, a recycling alert is issued to the provisioning system 302, and the provisioning system 302 responds to the any existing remote desktop gateways. RDGM is recycled. For example, when it is determined that the average storage usage of the existing RDGWs exceeds 70%, the computer device will issue a new alert and add a new RDGW; at 17:20, all users in RDGW1 have logged out of the VM , the computer device recycles RDGW1.

上述圖2-3詳細介紹了本申請的遠端桌面閘道的調配方法,下面結合圖4,對實現所述遠端桌面閘道的調配方法的硬體裝置架構進行介紹。 2-3 above describe the deployment method of the remote desktop gateway of the present application in detail, and the following describes the hardware device architecture for implementing the deployment method of the remote desktop gateway with reference to FIG. 4 .

應該瞭解,所述實施例僅為說明之用,在專利申請範圍上並不受此結構的限制。 It should be understood that the embodiments are only used for illustration, and are not limited by this structure in the scope of the patent application.

參閱圖4所示,為本申請較佳實施例提供的電腦裝置的結構示意 圖。在本申請較佳實施例中,所述電腦裝置3包括儲存器31、至少一個處理器32。本領域技術人員應該瞭解,圖4示出的電腦裝置的結構並不構成本申請實施例的限定,既可以是匯流排型結構,也可以是星形結構,所述電腦裝置3還可以包括比圖示更多或更少的其他硬體或者軟體,或者不同的部件佈置。 Referring to FIG. 4, it is a schematic structural diagram of a computer device according to a preferred embodiment of the present application picture. In a preferred embodiment of the present application, the computer device 3 includes a storage 31 and at least one processor 32 . Those skilled in the art should understand that the structure of the computer device shown in FIG. 4 does not constitute a limitation of the embodiments of the present application, and may be either a busbar type structure or a star structure. More or less other hardware or software, or different component arrangements are shown.

在一些實施例中,所述電腦裝置3包括一種能夠按照事先設定或儲存的指令,自動進行數值計算和/或資訊處理的終端,其硬體包括但不限於微處理器、專用積體電路、可程式設計閘陣列、數位訊號處理器及嵌入式設備等。 In some embodiments, the computer device 3 includes a terminal capable of automatically performing numerical calculations and/or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, dedicated integrated circuits, Programmable gate arrays, digital signal processors and embedded devices, etc.

需要說明的是,所述電腦裝置3僅為舉例,其他現有的或今後可能出現的電子產品如可適應於本申請,也應包含在本申請的保護範圍以內,並以引用方式包含於此。 It should be noted that the computer device 3 is only an example, and other existing or future electronic products, if applicable to the present application, should also be included within the protection scope of the present application, and are incorporated herein by reference.

在一些實施例中,所述儲存器31用於儲存程式碼和各種資料。例如,所述儲存器31可以用於儲存所述預設的資料庫,還可以儲存安裝在所述電腦裝置3中的監控系統301、調配系統302和報警系統303,並在電腦裝置3的運行過程中實現高速、自動地完成程式或資料的存取。所述儲存器31包括唯讀儲存器(Read-Only Memory,ROM)、可程式設計唯讀儲存器(Programmable Read-Only Memory,PROM)、可抹除可程式設計唯讀儲存器(Erasable Programmable Read-Only Memory,EPROM)、一次可程式設計唯讀儲存器(One-time Programmable Read-Only Memory,OTPROM)、電子抹除式可複寫唯讀儲存器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、唯讀光碟(Compact Disc Read-Only Memory,CD-ROM)或其他光碟儲存器、磁碟儲存器、磁帶儲存器、或者任何其他能夠用於攜帶或儲存資料的電腦可讀的儲存介質。 In some embodiments, the storage 31 is used to store code and various data. For example, the storage 31 can be used to store the preset database, and can also store the monitoring system 301 , the deployment system 302 and the alarm system 303 installed in the computer device 3 , and the computer device 3 is running In the process, the program or data access can be completed at high speed and automatically. The storage 31 includes a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), and an Erasable Programmable Read-Only Memory (Erasable Programmable Read). -Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM) , Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable storage medium that can be used to carry or store data.

在一些實施例中,所述至少一個處理器32可以由積體電路組成,例如可以由單個封裝的積體電路所組成,也可以是由多個相同功能或不同 功能封裝的積體電路所組成,包括一個或者多個中央處理器(Central Processing unit,CPU)、微處理器、數位訊號處理晶片、圖形處理器及各種控制晶片的組合等。所述至少一個處理器32是所述電腦裝置3的控制核心(Control Unit),利用各種介面和線路連接整個電腦裝置3的各個部件,透過運行或執行儲存在所述儲存器31內的程式或者模組,以及調用儲存在所述儲存器31內的資料,以執行電腦裝置3的各種功能和處理資料,例如執行遠端桌面閘道的調配的功能。 In some embodiments, the at least one processor 32 may be composed of an integrated circuit, for example, may be composed of a single packaged integrated circuit, or may be composed of a plurality of the same function or different It is composed of functionally packaged integrated circuits, including one or more central processing units (CPUs), microprocessors, digital signal processing chips, graphics processors, and combinations of various control chips. The at least one processor 32 is the control core (Control Unit) of the computer device 3, and uses various interfaces and lines to connect the various components of the entire computer device 3, by running or executing the program stored in the storage 31 or module, and call the data stored in the storage 31 to execute various functions of the computer device 3 and process data, such as the function of configuring the remote desktop gateway.

在一些實施例中,所述監控系統301運行於電腦裝置3中。所述監控系統301可以包括多個由程式碼段所組成的功能模組。所述監控系統301中的各個程式段的程式碼可以儲存於電腦裝置3的儲存器31中,並由至少一個處理器32所執行,以實現步驟S1中的獲取遠端桌面閘道RDGW中虛擬機器VM的應用資料的功能。 In some embodiments, the monitoring system 301 runs in the computer device 3 . The monitoring system 301 may include a plurality of functional modules composed of program code segments. The code of each program segment in the monitoring system 301 can be stored in the storage 31 of the computer device 3 and executed by at least one processor 32 to realize the acquisition of virtual data in the remote desktop gateway RDGW in step S1. The function of the application profile of the machine VM.

在一些實施例中,所述調配系統302運行於電腦裝置3中。所述調配系統302可以包括多個由程式碼段所組成的功能模組。所述調配系統302中的各個程式段的程式碼可以儲存於電腦裝置3的儲存器31中,並由至少一個處理器32所執行,以實現步驟S4中的新增RDGM或回收所述RDGW的功能。 In some embodiments, the dispensing system 302 runs on the computer device 3 . The deployment system 302 may include a plurality of functional modules composed of code segments. The code of each program segment in the deployment system 302 can be stored in the memory 31 of the computer device 3 and executed by at least one processor 32 to realize the addition of RDGM in step S4 or the recycling of the RDGW. Function.

在一些實施例中,所述報警系統303運行於電腦裝置3中。所述報警系統303可以包括多個由程式碼段所組成的功能模組。所述報警系統303中的各個程式段的程式碼可以儲存於電腦裝置3的儲存器31中,並由至少一個處理器32所執行,以實現步驟S4中的發出新增警示和發出回收警示的功能。本實施例中,監控系統301、調配系統302或報警系統303根據其所執行的功能,可以分別被劃分為多個功能模組。本申請所稱的模組是指一種能夠被至少一個處理器所執行並且能夠完成固定功能的一系列電腦程式段,其儲存在儲存器中。 In some embodiments, the alarm system 303 runs in the computer device 3 . The alarm system 303 may include a plurality of functional modules composed of program code segments. The code of each program segment in the alarm system 303 can be stored in the memory 31 of the computer device 3 and executed by at least one processor 32, so as to realize the process of issuing a new alert and issuing a recycling alert in step S4. Function. In this embodiment, the monitoring system 301 , the deployment system 302 or the alarm system 303 can be divided into a plurality of functional modules respectively according to the functions performed by them. The module referred to in this application refers to a series of computer program segments that can be executed by at least one processor and can perform fixed functions, and are stored in a memory.

儘管未示出,所述電腦裝置3還可以包括給各個部件供電的電源 (比如電池),優選的,電源可以透過電源管理裝置與所述至少一個處理器32邏輯相連,從而透過電源管理裝置實現管理充電、放電、以及功耗管理等功能。電源還可以包括一個或一個以上的直流或交流電源、再充電裝置、電源故障檢測電路、電源轉換器或者逆變器、電源狀態指示器等任意元件。所述電腦裝置3還可以包括多種感測器、藍牙模組、Wi-Fi模組等,在此不再贅述。 Although not shown, the computer device 3 may also include a power supply for powering the various components (For example, a battery), preferably, a power source can be logically connected to the at least one processor 32 through a power management device, so that functions such as charging, discharging, and power consumption management can be implemented through the power management device. The power supply may also include one or more of a DC or AC power source, a recharging device, a power failure detection circuit, a power converter or inverter, a power supply status indicator, or any other element. The computer device 3 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

應該瞭解,所述實施例僅為說明之用,在專利申請範圍上並不受此結構的限制。 It should be understood that the embodiments are only used for illustration, and are not limited by this structure in the scope of the patent application.

上述以軟體功能模組的形式實現的集成的單元,可以儲存在一個電腦可讀取儲存介質中。上述軟體功能模組儲存在一個儲存介質中,包括若干指令用以使得一台電腦裝置(可以是伺服器、個人電腦等)或處理器(processor)執行本申請各個實施例所述方法的部分。 The above-mentioned integrated units implemented in the form of software function modules can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes several instructions for causing a computer device (which may be a server, a personal computer, etc.) or a processor (processor) to execute parts of the methods described in the various embodiments of the present application.

在進一步的實施例中,結合圖4,所述至少一個處理器32可執行所述電腦裝置3的操作裝置以及安裝的各類應用程式(如所述監控系統301、所述調配系統302和所述報警系統303)、程式碼等,例如,上述的各個模組。 In a further embodiment, referring to FIG. 4 , the at least one processor 32 can execute the operating device of the computer device 3 and various types of installed applications (such as the monitoring system 301 , the deployment system 302 and all the installed applications). The alarm system 303), program codes, etc., for example, the above-mentioned modules.

所述儲存器31中儲存有程式碼,且所述至少一個處理器32可調用所述儲存器31中儲存的程式碼以執行相關的功能。儲存在所述儲存器31中的程式碼可以由所述至少一個處理器32所執行,從而實現所述各個模組的功能以達到遠端桌面閘道的調配的目的。 The storage 31 stores program codes, and the at least one processor 32 can call the program codes stored in the storage 31 to execute related functions. The program codes stored in the storage 31 can be executed by the at least one processor 32, so as to realize the functions of the various modules to achieve the purpose of deployment of the remote desktop gateway.

在本申請的一個實施例中,所述儲存器31儲存一個或多個指令(即至少一個指令),所述至少一個指令被所述至少一個處理器32所執行以實現圖2所示的遠端桌面閘道的調配的目的。 In one embodiment of the present application, the storage 31 stores one or more instructions (ie, at least one instruction), and the at least one instruction is executed by the at least one processor 32 to implement the remote control shown in FIG. 2 . The purpose of the deployment of the terminal desktop gateway.

在本申請所提供的幾個實施例中,應該理解到,所揭露的裝置和方法,可以透過其它的方式實現。例如,以上所描述的裝置實施例僅僅是示意性的,例如,所述模組的劃分,僅僅為一種邏輯功能劃分,實際實現 時可以有另外的劃分方式。 In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and the actual implementation There may be other divisions.

所述作為分離部件說明的模組可以是或者也可以不是物理上分開的,作為模組顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部模組來實現本實施例方案的目的。 The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they can be located in one place or distributed to multiple networks. on the unit. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申請各個實施例中的各功能模組可以集成在一個處理單元中,也可以是各個單元單獨物理存在,也可以兩個或兩個以上單元集成在一個單元中。上述集成的單元既可以採用硬體的形式實現,也可以採用硬體加軟體功能模組的形式實現。 In addition, each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.

對於本領域技術人員而言,顯然本申請不限於上述示範性實施例的細節,而且在不背離本申請的精神或基本特徵的情況下,能夠以其他的具體形式實現本申請。因此,無論從哪一點來看,均應將實施例看作是示範性的,而且是非限制性的,本申請的範圍由所附請求項而不是上述說明限定,因此旨在將落在請求項的等同要件的含義和範圍內的所有變化涵括在本申請內。不應將請求項中的任何附圖標記視為限制所涉及的請求項。此外,顯然“包括”一詞不排除其他單元或,單數不排除複數。裝置請求項中陳述的多個單元或裝置也可以由一個單元或裝置透過軟體或者硬體來實現。第一,第二等詞語用來表示名稱,而並不表示任何特定的順序。 It will be apparent to those skilled in the art that the present application is not limited to the details of the above-described exemplary embodiments, but that the present application can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application. Accordingly, the embodiments are to be regarded in all respects as illustrative and not restrictive, and the scope of this application is defined by the appended claims rather than the foregoing description, and is therefore intended to fall within the scope of the claims. All changes within the meaning and scope of the equivalents of , are included in this application. Any reference sign in a claim should not be construed as limiting the claim to which it relates. Furthermore, it is clear that the word "comprising" does not exclude other units or, and the singular does not exclude the plural. Multiple units or means stated in the device claim may also be implemented by one unit or means through software or hardware. The terms first, second, etc. are used to denote names and do not denote any particular order.

最後所應說明的是,以上實施例僅用以說明本申請的技術方案而非限制,儘管參照以上較佳實施例對本申請進行了詳細說明,本領域的普通技術人員應當理解,可以對本申請的技術方案進行修改或等同替換,而不脫離本申請技術方案的精神和範圍。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application rather than limitations. Although the present application has been described in detail with reference to the above preferred embodiments, those of ordinary skill in the art should The technical solutions can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present application.

S1~S4:步驟 S1~S4: Steps

Claims (6)

一種遠端桌面閘道的調配方法,應用於電腦裝置,其中,所述方法包括:根據遠端桌面閘道的編號與虛擬機器的編號,從所述遠端桌面閘道獲得所述遠端桌面閘道中虛擬機器的應用資料,所述應用資料包括歷史資料和即時資料;利用所述歷史資料作為訓練樣本訓練神經網路獲得分類模型,對所述分類模型進行至少一次反覆運算更新,直至所述分類模型符合預設的要求,將符合預設的要求的所述分類模型確定為目標分類模型,其中,所述預設的要求包含預設數量的時間段,所述預設數量的時間段中的每個時間段包含預設的時間長度,所述預設數量包括將工作時間按照所述預設的時間長度進行分割後的數量;將所述即時資料輸入所述目標分類模型,獲得所述即時資料的分類結果,包括:當所述即時資料指示所述虛擬機器的狀態為正被執行登入操作中的狀態時,將對所述虛擬機器執行登入操作的用戶的身份標識號ID以及該用戶對所述虛擬機器執行登入操作的時間b2輸入所述目標分類模型;利用所述目標分類模型,預測所述用戶登出所述虛擬機器的時間e2;將所述時間e2與所述預設數量的時間段中的每一個時間段的範圍進行比對,將處於同一時間段內的所述e2對應的用戶的ID歸為一類,獲得所述預設數量的分類結果;基於所述分類結果,將所述虛擬機器調配給指定的遠程桌面閘道,包括:將屬於同一類的所述用戶的ID正在執行登入操作的虛擬機器,調配給所述指定的遠程桌面閘道;及基於所述即時資料,新增遠程桌面閘道或回收已有的遠程桌面閘道,包括:當確定已有的遠端桌面閘道的儲存器平均使用率都超出預設的閾值時,發出新增警示並新增一個或多個遠端桌面閘道;或當確定任一已有的遠端桌面閘道中的所有虛擬機器的使用狀態都為未使用的狀態時,發出回收警示並對所述任一 已有的遠端桌面閘道進行回收。 A method for deploying a remote desktop gateway, applied to a computer device, wherein the method comprises: obtaining the remote desktop from the remote desktop gateway according to the serial number of the remote desktop gateway and the serial number of the virtual machine The application data of the virtual machine in the gateway, the application data includes historical data and real-time data; use the historical data as a training sample to train a neural network to obtain a classification model, and perform at least one repeated operation update on the classification model until the The classification model meets the preset requirements, and the classification model that meets the preset requirements is determined as the target classification model, wherein the preset requirements include a preset number of time periods, among which the preset number of time periods Each time period of the time period includes a preset time length, and the preset number includes the number after dividing the working time according to the preset time length; input the real-time data into the target classification model, and obtain the The classification result of the real-time data, including: when the real-time data indicates that the state of the virtual machine is a state in which a login operation is being performed, the identification number ID of the user who will perform the login operation on the virtual machine and the user The time b2 of performing the login operation on the virtual machine is input into the target classification model; using the target classification model, predict the time e2 when the user logs out of the virtual machine; compare the time e2 with the preset number Compare the range of each time period in the time period, classify the IDs of the users corresponding to the e2 in the same time period into one category, and obtain the preset number of classification results; based on the classification results, Allocating the virtual machine to a designated remote desktop gateway includes: allocating a virtual machine whose ID of the user belonging to the same class is performing a login operation to the designated remote desktop gateway; and based on the real-time Data, adding a remote desktop gateway or recycling an existing remote desktop gateway, including: when it is determined that the average storage usage of the existing remote desktop gateway exceeds the preset threshold, a new warning is issued and a new One or more remote desktop gateways are added; or when it is determined that the use status of all virtual machines in any existing remote desktop gateway is an unused state, a recycling warning is issued and any one of the The existing remote desktop gateway is recycled. 如請求項1所述的遠端桌面閘道的調配方法,其中,所述方法還包括:監控所述虛擬機器,獲得所述應用資料;及將所述應用資料儲存在預設的資料庫中。 The method for provisioning a remote desktop gateway according to claim 1, wherein the method further comprises: monitoring the virtual machine to obtain the application data; and storing the application data in a preset database . 如請求項1所述的遠端桌面閘道的調配方法,其中,所述歷史資料包括:登入所述虛擬機器的用戶的身份標識號ID、用戶登入所述虛擬機器的時間b1、用戶登出所述虛擬機器的時間e1;所述即時資料包括所述虛擬機器的使用狀態,所述虛擬機器的使用狀態包括未使用的狀態、已被登入的狀態和正被執行登入操作中的狀態;當所述虛擬機器的使用狀態為所述已被登入的狀態或所述正被執行登入操作中的狀態時,所述即時資料還包括對所述虛擬機器執行登入操作的用戶的ID、該用戶對所述虛擬機器執行登入操作的時間b2。 The method for deploying a remote desktop gateway according to claim 1, wherein the historical data includes: the identification number ID of the user who logs in to the virtual machine, the time b1 when the user logs in to the virtual machine, and the user logs out. The time e1 of the virtual machine; the real-time data includes the use state of the virtual machine, and the use state of the virtual machine includes the unused state, the logged-in state, and the state in which the login operation is being performed; When the use state of the virtual machine is the logged-in state or the state of being logged in, the real-time data further includes the ID of the user who performs the login operation on the virtual machine, the user's The time b2 at which the virtual machine performs the login operation. 如請求項2所述的遠端桌面閘道的調配方法,其中,所述對所述分類模型進行至少一次反覆運算更新包括:判斷上一次反覆運算更新後的分類模型是否符合所述預設的要求,包括:將所述歷史資料中任一用戶登入VM的ID以及登入所述VM的時間b10,輸入所述上一次反覆運算更新後的分類模型;獲得所述任一用戶登出所述VM的預測時間e20;將所述預測時間e20與所述歷史資料中所述任一用戶的登出所述VM的時間e10進行比較,判斷所述預測時間e20與所述時間e10是否處於所述預設數量的時間段中的同一時間段的範圍內,獲得判斷結果;當所述判斷結果為是時,確定所述上一次反覆運算更新後的分類模型符合所述預設的要求;當所述判斷結果為否時,確定所述上一次反覆運算更新後的分類模型不符合所述預設的要求;當所述上一次反覆運算更新後的分類模型符合所述預設的要求時,將所述上一次反覆運算更新後的分類模型作為所述目標分類模型; 當所述上一次反覆運算更新後的分類模型不符合所述預設的要求時,從所述資料庫中獲取更新後的歷史資料作為訓練樣本,在所述上一次反覆運算更新後的分類模型的基礎上繼續訓練所述神經網路,獲得當前更新的分類模型,對所述當前更新的分類模型進行下一次反覆運算更新。 The method for deploying a remote desktop gateway according to claim 2, wherein the performing at least one iterative operation update on the classification model comprises: judging whether the classification model after the last iterative operation and update conforms to the preset The requirements include: inputting the ID of any user in the historical data to log in to the VM and the time b10 of logging in to the VM, and inputting the classification model updated by the last repeated operation; obtaining the logout of the VM by the any user the predicted time e20; compare the predicted time e20 with the time e10 when any user logs out of the VM in the historical data, and determine whether the predicted time e20 and the time e10 are within the predicted time e10. Within the range of the same time period in the set number of time periods, the judgment result is obtained; when the judgment result is yes, it is determined that the classification model updated by the last repeated operation meets the preset requirements; when the When the judgment result is no, it is determined that the classification model updated by the last repeated operation does not meet the preset requirements; when the classification model updated by the last repeated operation meets the preset requirements, all The classification model after the above-mentioned iterative operation update last time is used as the target classification model; When the classification model updated by the last repeated operation does not meet the preset requirements, the updated historical data is obtained from the database as a training sample, and the classification model after the last repeated operation is updated. Continue to train the neural network on the basis of , obtain the currently updated classification model, and perform the next iterative operation update on the currently updated classification model. 一種電腦可讀儲存介質,其中,所述電腦可讀儲存介質儲存有至少一個指令,所述至少一個指令被處理器執行時實現如請求項1至4中任意一項所述的遠程桌面閘道的調配方法。 A computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, implements the remote desktop gateway as described in any one of claim items 1 to 4 allocation method. 一種電腦裝置,其中,所述電腦裝置包括儲存器和至少一個處理器,所述儲存器中儲存有至少一個指令,所述至少一個指令被所述至少一個處理器執行時實現如請求項1至4中任意一項所述的遠程桌面閘道的調配方法。 A computer device, wherein the computer device includes a memory and at least one processor, the memory stores at least one instruction, and when the at least one instruction is executed by the at least one processor, the implementation of claim 1 to The deployment method of the remote desktop gateway described in any one of 4.
TW110114826A 2021-04-23 2021-04-23 Deployment method of remote desktop gateways, computer device, and storage medium TWI778597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110114826A TWI778597B (en) 2021-04-23 2021-04-23 Deployment method of remote desktop gateways, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110114826A TWI778597B (en) 2021-04-23 2021-04-23 Deployment method of remote desktop gateways, computer device, and storage medium

Publications (2)

Publication Number Publication Date
TWI778597B true TWI778597B (en) 2022-09-21
TW202242860A TW202242860A (en) 2022-11-01

Family

ID=84958318

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110114826A TWI778597B (en) 2021-04-23 2021-04-23 Deployment method of remote desktop gateways, computer device, and storage medium

Country Status (1)

Country Link
TW (1) TWI778597B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW491972B (en) * 1999-08-31 2002-06-21 Andersen Consulting Llp System, method, and article of manufacture for electronic merchandising in an e-commerce application framework
CN102446121A (en) * 2010-10-12 2012-05-09 思杰系统有限公司 Allocating virtual machines according to user-specific virtual machine metrics
US20170063908A1 (en) * 2015-08-31 2017-03-02 Splunk Inc. Sharing Model State Between Real-Time and Batch Paths in Network Security Anomaly Detection
US20190349441A1 (en) * 2015-12-18 2019-11-14 Bitly, Inc. Systems and methods for content audience analysis via encoded links
CN112313919A (en) * 2018-05-04 2021-02-02 思杰系统有限公司 System and method for watermarking using an embedded browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW491972B (en) * 1999-08-31 2002-06-21 Andersen Consulting Llp System, method, and article of manufacture for electronic merchandising in an e-commerce application framework
CN102446121A (en) * 2010-10-12 2012-05-09 思杰系统有限公司 Allocating virtual machines according to user-specific virtual machine metrics
US20170063908A1 (en) * 2015-08-31 2017-03-02 Splunk Inc. Sharing Model State Between Real-Time and Batch Paths in Network Security Anomaly Detection
US20190349441A1 (en) * 2015-12-18 2019-11-14 Bitly, Inc. Systems and methods for content audience analysis via encoded links
CN112313919A (en) * 2018-05-04 2021-02-02 思杰系统有限公司 System and method for watermarking using an embedded browser

Also Published As

Publication number Publication date
TW202242860A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
US10915369B2 (en) Reward-based admission controller for resource requests in the cloud
US9959146B2 (en) Computing resources workload scheduling
US20170286252A1 (en) Workload Behavior Modeling and Prediction for Data Center Adaptation
US9396008B2 (en) System and method for continuous optimization of computing systems with automated assignment of virtual machines and physical machines to hosts
CN102541634B (en) Inserted by the detection of background virtual machine
Soualhia et al. Predicting scheduling failures in the cloud: A case study with google clusters and hadoop on amazon EMR
US20160139949A1 (en) Virtual machine resource management system and method thereof
CN109992350B (en) Migration method and device for virtual machines in resource pool of cloud computing system
US20200104189A1 (en) Workload placement with forecast
EP3652644A1 (en) Data centre utilisation forecasting system and method
Wang et al. Energy utilization task scheduling for mapreduce in heterogeneous clusters
US9875169B2 (en) Modeling real capacity consumption changes using process-level data
US10394612B2 (en) Methods and systems to evaluate data center performance and prioritize data center objects and anomalies for remedial actions
CN114490089A (en) Cloud computing resource automatic adjusting method and device, computer equipment and storage medium
US11119879B2 (en) Detection of resource bottlenecks in execution of workflow tasks using provenance data
Chamas et al. Two-phase virtual machine placement algorithms for cloud computing: An experimental evaluation under uncertainty
CN109992408B (en) Resource allocation method, device, electronic equipment and storage medium
US11797370B2 (en) Optimized diagnostics plan for an information handling system
CN115242637B (en) Remote desktop gateway allocation method, computer device and storage medium
US11677680B2 (en) Dynamic allocation of bandwidth to virtual network ports
TWI778597B (en) Deployment method of remote desktop gateways, computer device, and storage medium
CN112580816A (en) Machine learning training resource management
US20230168929A1 (en) Resource optimization for reclamation of resources
CN115277398A (en) Cluster network configuration method and device
Khair et al. Dynamic and elastic monitoring of VMs in cloud environment

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent