CN116320031A - Server response method, device and medium - Google Patents
Server response method, device and medium Download PDFInfo
- Publication number
- CN116320031A CN116320031A CN202310200532.9A CN202310200532A CN116320031A CN 116320031 A CN116320031 A CN 116320031A CN 202310200532 A CN202310200532 A CN 202310200532A CN 116320031 A CN116320031 A CN 116320031A
- Authority
- CN
- China
- Prior art keywords
- server
- response
- idle
- user
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Computer And Data Communications (AREA)
Abstract
本申请公开了一种服务器响应方法、设备及介质,属于服务器管理技术领域。在用户设备的任务申请服务器资源之后,确定服务器的空闲响应设备以及各个空闲响应设备的设备性能,在所有空闲响应设备中为其分配设备性能最佳的目标响应设备,通过目标响应设备执行用户设备上申请服务器资源的任务。从而,在不影响用户使用的前提下,通过优化后的调度策略,为用户提供最佳性能的响应设备,即优先为用户设备分配性能最优的响应设备,让响应设备发挥最大的性能,提供最优的用户体验。通过对服务器响应设备的调度管理,充分发挥响应设备的性能。
The application discloses a server response method, equipment and medium, belonging to the technical field of server management. After the task of the user equipment applies for server resources, determine the idle response equipment of the server and the equipment performance of each idle response equipment, assign the target response equipment with the best equipment performance among all idle response equipment, and execute the user equipment through the target response equipment The task of applying for server resources. Therefore, on the premise of not affecting the user's use, through the optimized scheduling strategy, the user is provided with the response device with the best performance, that is, the response device with the best performance is preferentially assigned to the user device, so that the response device can exert the maximum performance and provide Optimal user experience. Through the scheduling management of the server's response equipment, the performance of the response equipment can be fully utilized.
Description
技术领域technical field
本申请涉及服务器管理领域,尤其涉及一种服务器响应方法、服务器响应设备及计算机可读存储介质。The present application relates to the field of server management, in particular to a server response method, a server response device and a computer-readable storage medium.
背景技术Background technique
目前,随着移动端用户对移动端体验的不断提升,越来越多移动端用户乐于使用如手机设备等移动设备实现各种大型任务如玩游戏,同时随着任务场景越来越复杂,如游戏的特效越来越炫,对移动设备的硬件配置要求越来越高,意味着为了实现大型任务如为了体验一款新游戏,需要换一部新手机或者需要占用更多的设备资源,这严重制约了任务推广和手机用户的体验,为了解决这些问题,云应用应运而生。At present, with the continuous improvement of mobile terminal users' mobile terminal experience, more and more mobile terminal users are willing to use mobile devices such as mobile devices to perform various large-scale tasks such as playing games. The special effects of games are getting more and more dazzling, and the hardware configuration requirements of mobile devices are getting higher and higher, which means that in order to achieve large-scale tasks such as experiencing a new game, you need to change to a new mobile phone or need to occupy more device resources. Seriously restricting the promotion of tasks and the experience of mobile phone users, in order to solve these problems, cloud applications came into being.
云应用如云游戏通常是在机房中部署服务器,这些服务器管理一组高配置的移动端设备如Android设备作为响应设备,通过串流功能将游戏等场景显示到用户手机,同时支持将用户手机的操作传输到服务器上完成交互,这样用户可以使用低配置的手机或者使用较少的手机资源体验一些比较大、比较新的应用和游戏。比如用户使用云游戏时向服务器申请资源,服务器会分配一台Android设备和用户手机完成串流功能和游戏交互。Cloud applications such as cloud games usually deploy servers in the computer room. These servers manage a group of high-configuration mobile devices such as Android devices as response devices, and display scenes such as games to user mobile phones through the streaming function. The operation is transmitted to the server to complete the interaction, so that the user can use a mobile phone with low configuration or use less mobile phone resources to experience some relatively large and relatively new applications and games. For example, when a user uses a cloud game to apply for resources from the server, the server will allocate an Android device and the user's mobile phone to complete the streaming function and game interaction.
发明内容Contents of the invention
本申请的主要目的在于提供一种服务器响应方法、服务器响应设备及计算机可读存储介质,旨在解决常规技术中对响应设备的管理混乱导致无法充分发挥响应设备的性能的技术问题。The main purpose of this application is to provide a server response method, a server response device and a computer-readable storage medium, aiming to solve the technical problem in conventional technologies that the performance of the response device cannot be fully utilized due to chaotic management of the response device.
为实现上述目的,本申请提供一种服务器响应方法,所述方法包括:In order to achieve the above purpose, the present application provides a server response method, the method comprising:
在接收到用户设备对服务器资源的申请请求之后,确定服务器的空闲响应设备以及所述空闲响应设备的设备性能;After receiving the application request of the user equipment for server resources, determine the idle response equipment of the server and the equipment performance of the idle response equipment;
为所述用户设备分配所述空闲响应设备中设备性能最佳的目标响应设备,通过所述目标响应设备执行所述用户设备上的任务。Allocating a target response device with the best device performance among the idle response devices to the user equipment, and using the target response device to execute tasks on the user equipment.
示例性的,表征所述设备性能的指标包括响应设备的CPU占用率、内存使用情况、剩余可用的存储器空间和已运行时间,所述确定服务器的空闲响应设备的设备性能的步骤,包括:Exemplarily, the indicators characterizing the performance of the device include CPU occupancy rate, memory usage, remaining available memory space and elapsed running time of the responding device, and the step of determining the device performance of the idle responding device of the server includes:
通过一项或多项所述指标以及所述指标对应的预设权重确定服务器的空闲响应设备的设备性能。The device performance of the idle response device of the server is determined through one or more of the indicators and the preset weights corresponding to the indicators.
示例性的,所述通过所述目标响应设备执行所述用户设备上申请服务器资源的任务的步骤之后,包括:Exemplarily, after the step of performing the task of applying for server resources on the user equipment through the target responding equipment, it includes:
在接收到用户设备对已申请的服务器资源的所有任务的释放请求之后,调整所述目标响应设备为空闲响应设备。After receiving the user equipment's release request for all the tasks of the applied server resources, adjusting the target responding device to be an idle responding device.
示例性的,所述方法,还包括:Exemplarily, the method further includes:
统计预设第一时长内用户设备对服务器资源的申请次数或释放次数;Counting the number of applications or releases of server resources by the user equipment within the preset first period of time;
若所述申请次数或所述释放次数大于预设第一次数,则在预设第二时长内禁止响应所述用户设备的任务对服务器资源的申请请求或释放请求。If the number of applications or the number of releases is greater than the first preset number, it is forbidden to respond to the application request or release request of the server resource by the task of the user equipment within a preset second time period.
示例性的,所述方法,还包括:Exemplarily, the method further includes:
基于预测模型重启服务器的空闲响应设备;其中,所述预测模型为根据用户使用服务器的各历史时间段内空闲响应设备的数量和申请服务器资源的用户设备的数量所建立的预测模型;Restarting the idle response device of the server based on the prediction model; wherein, the prediction model is a prediction model established according to the number of idle response devices and the number of user devices applying for server resources in each historical time period when the user uses the server;
或者,确定用户使用率低于预设使用率的目标时间段,在所述目标时间段重启服务器的空闲响应设备。Or, determine a target time period in which the user usage rate is lower than a preset usage rate, and restart the idle response device of the server during the target time period.
示例性的,所述基于预测模型重启服务器的空闲响应设备的步骤,还包括:Exemplarily, the step of restarting the idle response device of the server based on the predictive model further includes:
根据预测模型获取得到当前时间段的空闲响应设备的第一预测数量和申请服务器资源的用户设备的第二预测数量;Obtaining the first predicted number of idle response devices in the current time period and the second predicted number of user equipments applying for server resources according to the prediction model;
基于所述第一预测数量和所述第二预测数量确定所述当前时间段的最佳重启数量,对设备性能最差所述最佳重启数量的空闲响应设备同时进行重启。Determine the optimal restart number in the current time period based on the first predicted number and the second predicted number, and simultaneously restart idle responding devices with the worst device performance and the optimal restart number.
示例性的,所述在所述目标时间段重启服务器的空闲响应设备的步骤,包括:Exemplarily, the step of restarting the idle response device of the server during the target time period includes:
确定所述目标时间段内正在使用服务器资源的用户设备数量;determining the number of user equipments that are using server resources within the target time period;
比较所述用户设备数量与预设冗余数量;comparing the number of user equipments with a preset redundancy number;
若所述用户设备数量不超过预设冗余数量,则重启设备性能最差的空闲响应设备。If the number of user equipments does not exceed the preset redundancy number, restart the idle response equipment with the worst equipment performance.
示例性的,所述确定所述用户设备数量与预设冗余数量之间的大小的步骤之后,还包括:Exemplarily, after the step of determining the size between the number of user equipments and the preset redundancy number, it further includes:
若所述用户设备数量超过预设冗余数量,则推迟预设第三时长后重新确定所述用户设备数量与预设冗余数量之间的大小,并统计推迟次数;If the number of user equipments exceeds the preset redundancy number, re-determine the size between the number of user equipments and the preset redundancy number after delaying the preset third period of time, and count the number of delays;
若所述推迟次数大于预设第二次数,则取消重启设备性能最差的空闲响应设备。If the number of postponements is greater than the preset second number of times, cancel restarting the idle response device with the worst device performance.
本申请还提供一种服务器响应设备,所述服务器响应设备包括:存储器、处理器、及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的服务器响应方法的步骤。The present application also provides a server response device, the server response device includes: a memory, a processor, and a computer program stored on the memory and operable on the processor, the computer program is processed by the When the server executes, it implements the steps of the server response method described above.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的服务器响应方法的步骤。The present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned server response method are implemented.
本申请还提供一种服务器响应装置,所述服务器响应装置包括:The present application also provides a server response device, and the server response device includes:
确定模块,用于在接收到用户设备对服务器资源的申请请求之后,确定服务器的空闲响应设备以及所述空闲响应设备的设备性能;A determining module, configured to determine the idle response device of the server and the device performance of the idle response device after receiving the user equipment's application request for server resources;
分配模块,用于为所述用户设备分配所述空闲响应设备中设备性能最佳的目标响应设备,通过所述目标响应设备执行所述用户设备上的任务。An allocating module, configured to allocate, to the user equipment, a target responding device with the best device performance among the idle responding devices, and execute tasks on the user equipment through the target responding device.
本申请公开了一种服务器响应方法、服务器响应设备及计算机可读存储介质,在接收到用户设备对服务器资源的申请请求之后,确定服务器的空闲响应设备以及所述空闲响应设备的设备性能;为所述用户设备分配所述空闲响应设备中设备性能最佳的目标响应设备,通过所述目标响应设备执行所述用户设备上的任务。The present application discloses a server response method, a server response device, and a computer-readable storage medium. After receiving a user device's application request for server resources, determine the server's idle response device and the device performance of the idle response device; The user equipment allocates a target response device with the best device performance among the idle response devices, and executes a task on the user equipment through the target response device.
在用户设备的任务申请服务器资源之后,确定服务器的空闲响应设备以及各个空闲响应设备的设备性能,在所有空闲响应设备中为其分配设备性能最佳的目标响应设备,通过目标响应设备执行用户设备上申请服务器资源的任务。从而,在不影响用户使用的前提下,通过优化后的调度策略,为用户提供最佳性能的响应设备,即优先为用户设备分配性能最优的响应设备,让响应设备发挥最大的性能,提供最优的用户体验。通过对服务器响应设备的调度管理,充分发挥响应设备的性能。After the task of the user equipment applies for server resources, determine the idle response equipment of the server and the equipment performance of each idle response equipment, assign the target response equipment with the best equipment performance among all idle response equipment, and execute the user equipment through the target response equipment The task of applying for server resources. Therefore, on the premise of not affecting the user's use, through the optimized scheduling strategy, the user is provided with the response device with the best performance, that is, the response device with the best performance is preferentially assigned to the user device, so that the response device can exert the maximum performance and provide Optimal user experience. Through the scheduling management of the server's response equipment, the performance of the response equipment can be fully utilized.
附图说明Description of drawings
图1是本申请实施例方案涉及的硬件运行环境的运行设备的结构示意图;Fig. 1 is a schematic structural diagram of the operating equipment of the hardware operating environment involved in the embodiment of the present application;
图2为本申请实施例方案涉及的服务器响应方法一实施例的流程示意图;FIG. 2 is a schematic flowchart of an embodiment of a server response method involved in the embodiment of the present application;
图3为本申请实施例方案涉及的服务器响应方法另一实施例的流程示意图;FIG. 3 is a schematic flowchart of another embodiment of the server response method involved in the solution of the embodiment of the present application;
图4为本申请实施例方案涉及的服务器响应方法另一实施例的流程示意图;FIG. 4 is a schematic flowchart of another embodiment of the server response method involved in the solution of the embodiment of the present application;
图5为本申请实施例方案涉及的服务器响应装置的示意图。Fig. 5 is a schematic diagram of a server responding device involved in the solution of the embodiment of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
参照图1,图1为本申请实施例方案涉及的硬件运行环境的运行设备结构示意图。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of the operating equipment of the hardware operating environment involved in the solution of the embodiment of the present application.
如图1所示,该运行设备可以包括:处理器1001,例如中央处理器(CentralProcessing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(WIreless-FIdelity,WI-FI)接口)。存储器1005可以是高速的随机存取存储器(RandomAccess Memory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the running device may include: a
本领域技术人员可以理解,图1中示出的结构并不构成对运行设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation on the operating equipment, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、数据存储模块、网络通信模块、用户接口模块以及计算机程序。As shown in FIG. 1 ,
在图1所示的运行设备中,网络接口1004主要用于与其他设备进行数据通信;用户接口1003主要用于与用户进行数据交互;本申请运行设备中的处理器1001、存储器1005可以设置在运行设备中,所述运行设备通过处理器1001调用存储器1005中存储的计算机程序,并执行以下操作:In the running device shown in Figure 1, the
在接收到用户设备对服务器资源的申请请求之后,确定服务器的空闲响应设备以及所述空闲响应设备的设备性能;After receiving the application request of the user equipment for server resources, determine the idle response equipment of the server and the equipment performance of the idle response equipment;
为所述用户设备分配所述空闲响应设备中设备性能最佳的目标响应设备,通过所述目标响应设备执行所述用户设备上的任务。Allocating a target response device with the best device performance among the idle response devices to the user equipment, and using the target response device to execute tasks on the user equipment.
在一实施例中,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:In one embodiment, the
表征所述设备性能的指标包括响应设备的CPU占用率、内存使用情况、剩余可用的存储器空间和已运行时间,所述确定服务器的空闲响应设备的设备性能的步骤,包括:The indicators characterizing the performance of the device include the CPU occupancy rate of the responding device, the memory usage, the remaining available memory space and the running time, and the step of determining the device performance of the idle responding device of the server includes:
通过一项或多项所述指标以及所述指标对应的预设权重确定服务器的空闲响应设备的设备性能。The device performance of the idle response device of the server is determined through one or more of the indicators and the preset weights corresponding to the indicators.
在一实施例中,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:In one embodiment, the
所述通过所述目标响应设备执行所述用户设备上申请服务器资源的任务的步骤之后,包括:After the step of executing the task of applying for server resources on the user equipment through the target responding equipment, it includes:
在接收到用户设备对已申请的服务器资源的所有任务的释放请求之后,调整所述目标响应设备为空闲响应设备。After receiving the user equipment's release request for all the tasks of the applied server resources, adjusting the target responding device to be an idle responding device.
在一实施例中,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:In one embodiment, the
所述方法,还包括:The method also includes:
统计预设第一时长内用户设备对服务器资源的申请次数或释放次数;Counting the number of applications or releases of server resources by the user equipment within the preset first period of time;
若所述申请次数或所述释放次数大于预设第一次数,则在预设第二时长内禁止响应所述用户设备的任务对服务器资源的申请请求或释放请求。If the number of applications or the number of releases is greater than the first preset number, it is forbidden to respond to the application request or release request of the server resource by the task of the user equipment within a preset second time period.
在一实施例中,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:In one embodiment, the
所述方法,还包括:The method also includes:
基于预测模型重启服务器的空闲响应设备;其中,所述预测模型为根据用户使用服务器的各历史时间段内空闲响应设备的数量和申请服务器资源的用户设备的数量所建立的预测模型;Restarting the idle response device of the server based on the prediction model; wherein, the prediction model is a prediction model established according to the number of idle response devices and the number of user devices applying for server resources in each historical time period when the user uses the server;
或者,确定用户使用率低于预设使用率的目标时间段,在所述目标时间段重启服务器的空闲响应设备。Or, determine a target time period in which the user usage rate is lower than a preset usage rate, and restart the idle response device of the server during the target time period.
在一实施例中,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:In one embodiment, the
所述基于预测模型重启服务器的空闲响应设备的步骤,还包括:The step of restarting the idle response device of the server based on the predictive model also includes:
根据预测模型获取得到当前时间段的空闲响应设备的第一预测数量和申请服务器资源的用户设备的第二预测数量;Obtaining the first predicted number of idle response devices in the current time period and the second predicted number of user equipments applying for server resources according to the prediction model;
基于所述第一预测数量和所述第二预测数量确定所述当前时间段的最佳重启数量,对设备性能最差所述最佳重启数量的空闲响应设备同时进行重启。Determine the optimal restart number in the current time period based on the first predicted number and the second predicted number, and simultaneously restart idle responding devices with the worst device performance and the optimal restart number.
在一实施例中,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:In one embodiment, the
所述在所述目标时间段重启服务器的空闲响应设备的步骤,包括:The step of restarting the idle response device of the server in the target time period includes:
确定所述目标时间段内正在使用服务器资源的用户设备数量;determining the number of user equipments that are using server resources within the target time period;
比较所述用户设备数量与预设冗余数量;comparing the number of user equipments with a preset redundancy number;
若所述用户设备数量不超过预设冗余数量,则重启设备性能最差的空闲响应设备。If the number of user equipments does not exceed the preset redundancy number, restart the idle response equipment with the worst equipment performance.
在一实施例中,处理器1001可以调用存储器1005中存储的计算机程序,还执行以下操作:In one embodiment, the
所述确定所述用户设备数量与预设冗余数量之间的大小的步骤之后,还包括:After the step of determining the size between the number of user equipments and the preset redundancy number, it also includes:
若所述用户设备数量超过预设冗余数量,则推迟预设第三时长后重新确定所述用户设备数量与预设冗余数量之间的大小,并统计推迟次数;If the number of user equipments exceeds the preset redundancy number, re-determine the size between the number of user equipments and the preset redundancy number after delaying the preset third period of time, and count the number of delays;
若所述推迟次数大于预设第二次数,则取消重启设备性能最差的空闲响应设备。If the number of postponements is greater than the preset second number of times, cancel restarting the idle response device with the worst device performance.
本申请实施例提供了一种服务器响应方法,参照图2,在服务器响应方法的一实施例中,所述方法包括:The embodiment of the present application provides a server response method. Referring to FIG. 2, in an embodiment of the server response method, the method includes:
步骤S10,在接收到用户设备对服务器资源的申请请求之后,确定服务器的空闲响应设备以及所述空闲响应设备的设备性能。Step S10, after receiving the application request of the server resource from the user equipment, determine the idle response equipment of the server and the equipment performance of the idle response equipment.
在用户设备对服务器资源的申请请求中至少包括用户设备的唯一设备标识信息,以及用户设备上申请资源的任务的唯一任务标识信息,服务器根据申请请求中至少携带的唯一设备标识信息和唯一任务标识信息对其对应的响应设备进行管理和分配。The user equipment’s application request for server resources includes at least the unique device identification information of the user equipment and the unique task identification information of the task applying for resources on the user equipment, and the server according to at least the unique equipment identification information and the unique task identification carried in the application request Information is managed and distributed to its corresponding responding devices.
其中,一台用户设备上的不同任务可以发出多个对应不同任务的申请请求,同时,为该用户设备分配唯一一台响应设备,在该响应设备上运行用户设备上对应的多个任务。在本实施例中,一台用户设备映射唯一一台响应设备,在该唯一的响应设备上运行该用户设备的多个任务,每一台响应设备都能响应任意申请请求的最大需求,每一个任务的需求都可以由其中任意一台响应设备执行和处理,一个任务不会拆分为多个子任务至多个响应设备分别执行。Wherein, different tasks on one user equipment can send multiple application requests corresponding to different tasks, and at the same time, a unique response device is assigned to the user equipment, and multiple corresponding tasks on the user equipment are run on the response device. In this embodiment, one user equipment is mapped to only one responding device, and multiple tasks of the user equipment are run on the unique responding device, and each responding device can respond to the maximum demand of any application request. The requirements of a task can be executed and processed by any one of the response devices, and a task will not be split into multiple subtasks to be executed separately by multiple response devices.
发出申请请求的任务可以是游戏软件,办公软件或者其它可以映射至响应设备运行的软件,在本实施例中,对发起申请请求的任务软件不做限定。The task that sends the application request can be game software, office software or other software that can be mapped to the running software of the responding device. In this embodiment, the task software that initiates the application request is not limited.
用户设备可以是安卓设备,IOS设备或者其它类型移动端操作系统的设备,在本实施例中,对用户设备的操作系统不做限定。另外,在本实施例中,对用户设备与服务器之间的通信方法不做限定。The user equipment may be an Android device, an IOS device or other types of mobile terminal operating systems. In this embodiment, the operating system of the user equipment is not limited. In addition, in this embodiment, the communication method between the user equipment and the server is not limited.
在本实施例中,预先为服务器配置有响应设备,作为承载用户设备上的任务的映射对象设备。其中,服务器的空闲响应设备是指接收到申请请求时,未执行已有申请请求对应的任务的响应设备,当时处于空闲状态的响应设备。In this embodiment, the server is pre-configured with a response device as a mapping object device carrying tasks on the user equipment. Wherein, the idle response device of the server refers to a response device that does not execute a task corresponding to an existing application request when receiving an application request, and is in an idle state at that time.
示例性的,表征所述设备性能的指标包括响应设备的CPU占用率、内存使用情况、剩余可用的存储器空间和已运行时间,所述确定服务器的空闲响应设备的设备性能的步骤,包括:Exemplarily, the indicators characterizing the performance of the device include CPU occupancy rate, memory usage, remaining available memory space and elapsed running time of the responding device, and the step of determining the device performance of the idle responding device of the server includes:
通过一项或多项所述指标以及所述指标对应的预设权重确定服务器的空闲响应设备的设备性能。The device performance of the idle response device of the server is determined through one or more of the indicators and the preset weights corresponding to the indicators.
对于空闲响应设备的分配策略而言,需要根据空闲响应设备的设备性能确定在接收到申请请求时待分配的目标响应设备。其中,表征响应设备的设备性能的指标包括但不限于响应设备的CPU占用率、内存使用情况、可用的存储器空间和已运行时间,在确定服务器的空闲响应设备的设备性能时,通过一项或多项前述指标确定服务器的空闲响应设备的设备性能。在本实施例中,不限定具体的确定方法。在一实施例中,首先选择确定设备性能的指标,如选择响应设备的CPU占用率和剩余可用的存储器空间两项指标,然后确定这两项指标预先设定的权重,在该实施例中,CPU占用率的权重为70%,剩余可用的存储器空间的权重为30%,因此,根据各空闲响应设备的CPU占用率和剩余可用的存储器空间以及各自对应的权重,得到所有空闲响应设备的权重得分,由权重得分作为各空闲响应设备的设备性能。最终基于各空闲响应设备的权重得分,确定权重得分最高的空闲响应设备为目标响应设备性能。For the allocation strategy of the idle responding device, it is necessary to determine the target responding device to be allocated when the application request is received according to the device performance of the idle responding device. Among them, the indicators characterizing the device performance of the responding device include but are not limited to the CPU usage rate, memory usage, available memory space and elapsed running time of the responding device. When determining the device performance of the idle responding device of the server, one or more A number of the aforementioned metrics determine the device performance of the server's idle response device. In this embodiment, a specific determination method is not limited. In one embodiment, first select the indicators for determining the performance of the device, such as selecting the two indicators of the CPU occupancy rate of the responding device and the remaining available memory space, and then determine the preset weights of these two indicators. In this embodiment, The weight of the CPU usage is 70%, and the weight of the remaining available memory space is 30%. Therefore, according to the CPU usage of each idle response device, the remaining available memory space and their corresponding weights, the weights of all idle response devices are obtained Score, the weighted score is used as the device performance of each idle responding device. Finally, based on the weight scores of each idle response device, the idle response device with the highest weight score is determined as the target response device performance.
步骤S20,为所述用户设备分配所述空闲响应设备中设备性能最佳的目标响应设备,通过所述目标响应设备执行所述用户设备上的任务。Step S20, assigning a target response device with the best device performance among the idle response devices to the user equipment, and using the target response device to execute tasks on the user equipment.
在确定接收到申请请求时各空闲响应设备的设备性能之后,根据设备性能在各空闲响应设备确定得到设备性能最佳的目标响应设备,然后通过该目标响应设备执行用户设备上申请服务器资源的任务。从而将本地设备的硬件和软件均对应映射到服务器机房的设备上。After determining the device performance of each idle response device when the application request is received, determine the target response device with the best device performance in each idle response device according to the device performance, and then execute the task of applying for server resources on the user device through the target response device . In this way, the hardware and software of the local device are correspondingly mapped to the devices in the server room.
在一应用场景中,用户使用安卓设备执行云游戏时向服务器申请资源,服务器会分配一台安卓的目标响应设备和用户的安卓设备通过串流功能完成游戏交互。In an application scenario, the user applies for resources to the server when using an Android device to execute a cloud game, and the server will allocate an Android target response device and the user's Android device to complete the game interaction through the streaming function.
由于服务器的特点,需要其响应设备长期不间断且高性能的运行,而响应设备操作系统在前述运行环境下的碎片化、缓存等固有问题,会导致长期运行的响应设备的设备性能逐渐下降,从而出现丢帧、卡顿的现象,影响了用户的云体验。Due to the characteristics of the server, its response equipment needs to run uninterrupted and high-performance for a long time, and the inherent problems such as fragmentation and caching of the operating system of the response device in the aforementioned operating environment will cause the device performance of the long-running response device to gradually decline. As a result, frame loss and freezes occur, which affects the user's cloud experience.
由于响应设备的特点导致无法做到长期不间断、高性能运行,因此需要寻找一种折中的方案,在不影响用户使用的前提下,让响应设备发挥最大的性能。通过本实施例可以对服务器上的设备进行排序管理,优先为用户分配性能最优的响应设备,为用户提供最高的设备性能。Due to the characteristics of the response device, it is impossible to achieve long-term uninterrupted and high-performance operation. Therefore, it is necessary to find a compromise solution to allow the response device to exert its maximum performance without affecting the user's use. Through this embodiment, the devices on the server can be sorted and managed, and the responding device with the best performance is preferentially assigned to the user, so as to provide the user with the highest device performance.
在本实施例中,在接收到用户设备对服务器资源的申请请求之后,确定服务器的空闲响应设备以及所述空闲响应设备的设备性能;为所述用户设备分配所述空闲响应设备中设备性能最佳的目标响应设备,通过所述目标响应设备执行所述用户设备上的任务。In this embodiment, after receiving the application request of the user equipment for server resources, determine the idle response equipment of the server and the equipment performance of the idle response equipment; A preferred target response device, through which the task on the user device is performed.
在用户设备的任务申请服务器资源之后,确定服务器的空闲响应设备以及各个空闲响应设备的设备性能,在所有空闲响应设备中为其分配设备性能最佳的目标响应设备,通过目标响应设备执行用户设备上申请服务器资源的任务。从而,在不影响用户使用的前提下,通过优化后的调度策略,为用户提供最佳性能的响应设备,即优先为用户设备分配性能最优的响应设备,让响应设备发挥最大的性能,提供最优的用户体验。通过对服务器响应设备的调度管理,充分发挥响应设备的性能。After the task of the user equipment applies for server resources, determine the idle response equipment of the server and the equipment performance of each idle response equipment, assign the target response equipment with the best equipment performance among all idle response equipment, and execute the user equipment through the target response equipment The task of applying for server resources. Therefore, on the premise of not affecting the user's use, through the optimized scheduling strategy, the user is provided with the response device with the best performance, that is, the response device with the best performance is preferentially assigned to the user device, so that the response device can exert the maximum performance and provide Optimal user experience. Through the scheduling management of the server's response equipment, the performance of the response equipment can be fully utilized.
在本申请服务器响应方法的另一实施例中,所述通过所述目标响应设备执行所述用户设备上申请服务器资源的任务的步骤之后,包括:In another embodiment of the server response method of the present application, after the step of performing the task of applying for server resources on the user equipment through the target response device, it includes:
在接收到用户设备对已申请的服务器资源的所有任务的释放请求之后,调整所述目标响应设备为空闲响应设备。After receiving the user equipment's release request for all the tasks of the applied server resources, adjusting the target responding device to be an idle responding device.
在目标响应设备执行用户设备上申请服务器资源的任务的过程中,如果用户设备对其已申请的所有任务的均发出释放请求,则对应该用户设备的目标响应设备便同步结束所有已映射的任务,从而将该用户设备对应的目标响应设备调整为空闲响应设备,使其重新成为空闲响应设备,并使其在空闲响应设备中重新进行排序,使其位于其设备性能所在的空闲响应设备队列位置处之后,重新在新的空闲响应设备队列中为新的用户设备分配设备性能最佳的目标响应设备。When the target response device executes the task of applying for server resources on the user device, if the user device sends a release request for all the tasks it has applied for, the target response device corresponding to the user device will synchronously end all mapped tasks , so as to adjust the target responding device corresponding to the user equipment to be an idle responding device, make it become an idle responding device again, and reorder it in the idle responding device, so that it is located in the queue position of the idle responding device where its device performance is located After processing, re-allocate the target responding device with the best device performance for the new user equipment in the new idle responding device queue.
示例性的,所述方法,还包括:Exemplarily, the method further includes:
统计预设第一时长内用户设备对服务器资源的申请次数或释放次数;Counting the number of applications or releases of server resources by the user equipment within the preset first period of time;
若所述申请次数或所述释放次数大于预设第一次数,则在预设第二时长内禁止响应所述用户设备的任务对服务器资源的申请请求或释放请求。If the number of applications or the number of releases is greater than the first preset number, it is forbidden to respond to the application request or release request of the server resource by the task of the user equipment within a preset second time period.
如果在预设第一时长内如1分钟内统计到某个用户设备对服务器资源的申请次数或释放次数大于预设第一次数如10次,即收到超过预设第一次数的申请次数或释放次数,则确定对应的用户设备为异常设备,异常原因可能是网络波动或者恶意攻击等,此时,在预设第二时长内如10分钟内禁止响应该异常设备的任务对服务器资源的申请请求或释放请求。If within the preset first time period, such as 1 minute, it is counted that the number of application or release times of a user device for server resources is greater than the preset first number, such as 10 times, that is, the application that exceeds the preset first number is received times or release times, it is determined that the corresponding user device is an abnormal device, and the reason for the abnormality may be network fluctuations or malicious attacks. application request or release request.
在本实施例中,提出一种服务器资源的释放方法以及服务器资源的保护方法,通过在接收到用户设备对所有任务的释放请求之后,调整该用户设备对应的目标响应设备为空闲响应设备,并统计一段时间内用户设备的申请次数或释放次数,在基于申请次数或释放次数确定用户设备为异常设备后,在一段时间内禁用该异常设备。从而,进一步管理响应设备,在保证安全响应的前提下充分发挥响应设备的性能。In this embodiment, a server resource release method and a server resource protection method are proposed. After receiving the release request of the user equipment for all tasks, the target responding device corresponding to the user equipment is adjusted to be an idle responding device, and Count the number of applications or releases of user equipment within a period of time, and disable the abnormal equipment within a period of time after determining that the user equipment is an abnormal device based on the number of applications or releases. Therefore, the response device is further managed, and the performance of the response device is fully utilized on the premise of ensuring a safe response.
在本申请服务器响应方法的另一实施例中,所述方法,还包括:In another embodiment of the server response method of the present application, the method further includes:
基于预测模型重启服务器的空闲响应设备;其中,所述预测模型为根据用户使用服务器的各历史时间段内空闲响应设备的数量和申请服务器资源的用户设备的数量所建立的预测模型;Restarting the idle response device of the server based on the prediction model; wherein, the prediction model is a prediction model established according to the number of idle response devices and the number of user devices applying for server resources in each historical time period when the user uses the server;
在对服务器上的空闲响应设备进行排序并优先为用户任务分配性能最优的目标响应设备的同时,结合本实施例中提出的重启策略,对空闲响应设备进行重启,使其处于最佳的设备性能的状态,从而在不影响用户使用的基础上,为用户提供最高的性能。While sorting the idle response devices on the server and assigning the target response device with the best performance to the user task first, combined with the restart strategy proposed in this embodiment, the idle response device is restarted to make it the best device The status of performance, so as to provide users with the highest performance without affecting their use.
在一实施例中,可以先根据各历史时间段内用户使用服务器的空闲响应设备的数量和申请服务器资源的用户设备的数量建立一个预测模型,通过该预测模型预测得到的当前时间段的空闲响应设备的数量和申请服务器资源的用户设备的数量,重启服务器的空闲响应设备。在本实施例中,对其进行训练的输入数据为不同时间段,对其进行训练的输出数据为不同时间段对应的空闲响应设备的数量和申请服务器资源的用户设备的数量,对预测模型的具体类型和训练过程不做限定。In one embodiment, a prediction model can be established based on the number of idle response devices used by users in the server and the number of user devices applying for server resources in each historical time period, and the idle response in the current time period can be predicted through the prediction model The number of devices and the number of user devices applying for server resources, restarting the idle response device of the server. In this embodiment, the input data for training is different time periods, the output data for training is the number of idle response devices corresponding to different time periods and the number of user equipment applying for server resources, and the prediction model The specific type and training process are not limited.
示例性的,参照图3,所述基于预测模型重启服务器的空闲响应设备的步骤,还包括:Exemplarily, referring to FIG. 3, the step of restarting the idle response device of the server based on the predictive model further includes:
步骤P1,根据预测模型获取得到当前时间段的空闲响应设备的第一预测数量和申请服务器资源的用户设备的第二预测数量;Step P1, obtaining the first predicted number of idle response devices and the second predicted number of user equipments applying for server resources in the current time period according to the prediction model;
步骤P2,基于所述第一预测数量和所述第二预测数量确定所述当前时间段的最佳重启数量,对设备性能最差所述最佳重启数量的空闲响应设备同时进行重启。Step P2: Determine an optimal restart number in the current time period based on the first predicted number and the second predicted number, and simultaneously restart idle responding devices with the worst device performance and the optimal restart number.
在根据预测模型预测得到当前时间段空闲响应设备的第一预测数量和申请服务器资源的用户设备的第二预测数量之后,根据第一预测数量和第二预测数量确定当前时间段的最佳重启数量。在一实施例中,在第一预测数量小于第二预测数量时,所有空闲响应设备均需要被应用,不重启空闲响应设备;在第一预测数量不小于第二预测数量时,确定当前时间段的最佳重启数量为第一预测数量和第二预测数量的差值,对差值对应的设备性能最差的空闲响应设备同时进行重启,从而在不影响用户使用的前提下,一次重启多个空闲响应设备,最大效率的重启空闲响应设备,最终充分发挥响应设备的性能。After obtaining the first predicted number of idle response devices in the current time period and the second predicted number of user equipment applying for server resources according to the prediction model, determine the optimal number of restarts in the current time period according to the first predicted number and the second predicted number . In one embodiment, when the first predicted number is less than the second predicted number, all idle response devices need to be used, and idle response devices are not restarted; when the first predicted number is not less than the second predicted number, determine the current time period The optimal number of restarts is the difference between the first predicted number and the second predicted number, and the idle response device with the worst device performance corresponding to the difference is restarted at the same time, so that multiple restarts can be made at a time without affecting the user's use. Idle response equipment, restart the idle response equipment with maximum efficiency, and finally give full play to the performance of the response equipment.
或者,确定用户使用率低于预设使用率的目标时间段,在所述目标时间段重启服务器的空闲响应设备。Or, determine a target time period in which the user usage rate is lower than a preset usage rate, and restart the idle response device of the server during the target time period.
在另一实施例中,可以先确定用户使用率低于预设使用率的目标时间段,即确定非空闲响应设备数量大于预设数值的目标时间段例如凌晨3点,因此,为了给用户提供最佳体验,设定每天定时在目标时间段重启服务器的空闲响应设备。In another embodiment, it is possible to first determine the target time period when the user usage rate is lower than the preset usage rate, that is, determine the target time period when the number of non-idle responding devices is greater than the preset value, such as 3 o'clock in the morning. Therefore, in order to provide users with For the best experience, set an idle response device that restarts the server at the target time every day at regular intervals.
示例性的,参照图4,所述在所述目标时间段重启服务器的空闲响应设备的步骤,包括:Exemplarily, referring to FIG. 4, the step of restarting the idle response device of the server during the target time period includes:
步骤Q1,确定所述目标时间段内正在使用服务器资源的用户设备数量;Step Q1, determining the number of user equipments that are using server resources within the target time period;
步骤Q2,比较所述用户设备数量与预设冗余数量;Step Q2, comparing the number of user equipments with a preset redundancy number;
步骤Q3A,若所述用户设备数量不超过预设冗余数量,则重启设备性能最差的空闲响应设备。Step Q3A, if the number of user equipments does not exceed the preset redundancy number, restart the idle response equipment with the worst equipment performance.
在目标时间段重启空闲响应设备的过程中,首先,确定目标时间段内正在使用服务器资源的用户设备的数量,以及预设冗余数量。其中,预设冗余数量是指为了避免新用户到来时服务器无法提供可用的响应设备,从而设定的目标响应设备的最大数量,如每一时刻最多存在6台目标响应设备、最少需要存在3台空闲响应设备。然后,判断目标时间段的用户设备数量和预设冗余数量的大小。如果此时正在使用服务器资源的用户设备数量没有超过预设冗余数量,也即如果正在运行映射任务的目标响应设备的数量没有超过预设冗余数量,也即如果确定此时空闲响应设备的数量足够多,则可以重启设备性能最差的空闲响应设备。从而,防止在重启过程中,没有能响应新用户的剩余的空闲响应设备。In the process of restarting the idle responding device in the target time period, firstly, the number of user devices using server resources in the target time period and the preset redundancy quantity are determined. Among them, the preset redundancy number refers to the maximum number of target response devices set to prevent the server from being unable to provide available response devices when a new user arrives. For example, there are at most 6 target response devices at each moment, and at least 3 idle response device. Then, determine the size of the number of user equipments in the target time period and the preset redundancy number. If the number of user devices using server resources at this time does not exceed the preset redundancy number, that is, if the number of target response devices that are running the mapping task does not exceed the preset redundancy number, that is, if it is determined that the number of idle response devices at this time If there are enough of them, the idle responding device with the worst device performance can be restarted. Thereby, it is prevented that during the restart process, there are no remaining idle responding devices that can respond to the new user.
示例性的,参照图4,所述确定所述用户设备数量与预设冗余数量之间的大小的步骤之后,还包括:Exemplarily, referring to FIG. 4, after the step of determining the size between the number of user equipments and the preset redundancy number, it further includes:
步骤Q3B1,若所述用户设备数量超过预设冗余数量,则推迟预设第三时长后重新确定所述用户设备数量与预设冗余数量之间的大小,并统计推迟次数;Step Q3B1, if the number of user equipment exceeds the preset redundant number, re-determine the size between the number of user equipment and the preset redundant number after delaying the preset third period of time, and count the number of delays;
步骤Q3B2,若所述推迟次数大于预设第二次数,则取消重启设备性能最差的空闲响应设备。Step Q3B2, if the number of delays is greater than the preset second number of times, cancel restarting the idle responding device with the worst device performance.
如果此时正在使用服务器资源的用户设备数量超过预设冗余数量,也即如果正在运行映射任务的目标响应设备的数量超过预设冗余数量,也即如果确定此时空闲响应设备的数量太少,则需要推迟预设第三时长如半小时后重新确定用户设备数量与预设冗余数量之间的大小,并统计推迟次数。而如果推迟次数大于预设第二次数如5次,则取消重启设备性能最差的空闲响应设备,第二日再重启响应设备。If the number of user devices using server resources at this time exceeds the preset redundancy number, that is, if the number of target response devices that are running the mapping task exceeds the preset redundancy number, that is, if it is determined that the number of idle response devices is too large at this time If it is less, it is necessary to postpone the preset third time, such as half an hour, to re-determine the size between the number of user equipment and the preset redundancy number, and count the number of delays. And if the number of delays is greater than the preset second number of times, such as 5 times, the idle response device with the worst performance of the restart device is cancelled, and the response device is restarted the next day.
在本实施例中,提供一种重启响应设备的方法,通过预测模型或者在目标时间段内重启响应设备,将长期不间断高性能运行的、性能下降严重的响应设备重新刷新为最佳设备性能,通过重启策略管理响应设备,充分调用响应设备的性能。In this embodiment, a method for restarting a responding device is provided, by using a predictive model or restarting a responding device within a target time period, and re-refreshing a responding device with long-term uninterrupted high-performance operation and severe performance degradation to the best device performance , manage the response device through the restart policy, and fully invoke the performance of the response device.
参照图5,此外,本申请实施例还提供一种服务器响应装置,所述服务器响应装置包括:Referring to Figure 5, in addition, the embodiment of the present application also provides a server response device, the server response device includes:
确定模块M1,用于在接收到用户设备对服务器资源的申请请求之后,确定服务器的空闲响应设备以及所述空闲响应设备的设备性能;The determination module M1 is configured to determine the idle response equipment of the server and the equipment performance of the idle response equipment after receiving the application request of the server resource from the user equipment;
分配模块M2,用于为所述用户设备分配所述空闲响应设备中设备性能最佳的目标响应设备,通过所述目标响应设备执行所述用户设备上的任务。The assignment module M2 is configured to assign to the user equipment a target response device with the best device performance among the idle response devices, and execute tasks on the user equipment through the target response device.
示例性的,表征所述设备性能的指标包括响应设备的CPU占用率、内存使用情况、剩余可用的存储器空间和已运行时间,所述确定模块还用于:Exemplarily, the indicators characterizing the performance of the device include CPU usage, memory usage, remaining available memory space and elapsed running time of the responding device, and the determining module is further configured to:
通过一项或多项所述指标以及所述指标对应的预设权重确定服务器的空闲响应设备的设备性能。The device performance of the idle response device of the server is determined through one or more of the indicators and the preset weights corresponding to the indicators.
示例性的,所述服务器响应装置包括调整模块,用于:Exemplarily, the server response device includes an adjustment module, configured to:
所述通过所述目标响应设备执行所述用户设备上申请服务器资源的任务的步骤之后:After the step of executing the task of applying for server resources on the user equipment through the target responding device:
在接收到用户设备对已申请的服务器资源的所有任务的释放请求之后,调整所述目标响应设备为空闲响应设备。After receiving the user equipment's release request for all the tasks of the applied server resources, adjusting the target responding device to be an idle responding device.
示例性的,所述服务器响应装置包括禁止模块,用于:Exemplarily, the server response device includes a prohibition module, configured to:
统计预设第一时长内用户设备对服务器资源的申请次数或释放次数;Counting the number of applications or releases of server resources by the user equipment within the preset first period of time;
若所述申请次数或所述释放次数大于预设第一次数,则在预设第二时长内禁止响应所述用户设备的任务对服务器资源的申请请求或释放请求。If the number of applications or the number of releases is greater than the first preset number, it is forbidden to respond to the application request or release request of the server resource by the task of the user equipment within a preset second time period.
示例性的,所述服务器响应装置包括重启模块,用于:Exemplarily, the server response device includes a restart module, configured to:
基于预测模型重启服务器的空闲响应设备;其中,所述预测模型为根据用户使用服务器的各历史时间段内空闲响应设备的数量和申请服务器资源的用户设备的数量所建立的预测模型;Restarting the idle response device of the server based on the prediction model; wherein, the prediction model is a prediction model established according to the number of idle response devices and the number of user devices applying for server resources in each historical time period when the user uses the server;
或者,确定用户使用率低于预设使用率的目标时间段,在所述目标时间段重启服务器的空闲响应设备。Or, determine a target time period in which the user usage rate is lower than a preset usage rate, and restart the idle response device of the server during the target time period.
示例性的,所述重启模块还用于:Exemplarily, the restart module is also used for:
根据预测模型获取得到当前时间段的空闲响应设备的第一预测数量和申请服务器资源的用户设备的第二预测数量;Obtaining the first predicted number of idle response devices in the current time period and the second predicted number of user equipments applying for server resources according to the prediction model;
基于所述第一预测数量和所述第二预测数量确定所述当前时间段的最佳重启数量,对设备性能最差所述最佳重启数量的空闲响应设备同时进行重启。Determine the optimal restart number in the current time period based on the first predicted number and the second predicted number, and simultaneously restart idle responding devices with the worst device performance and the optimal restart number.
示例性的,所述重启模块还用于:Exemplarily, the restart module is also used for:
确定所述目标时间段内正在使用服务器资源的用户设备数量;determining the number of user equipments that are using server resources within the target time period;
比较所述用户设备数量与预设冗余数量;comparing the number of user equipments with a preset redundancy number;
若所述用户设备数量不超过预设冗余数量,则重启设备性能最差的空闲响应设备。If the number of user equipments does not exceed the preset redundancy number, restart the idle response equipment with the worst equipment performance.
示例性的,所述重启模块还用于:Exemplarily, the restart module is also used for:
所述确定所述用户设备数量与预设冗余数量之间的大小的步骤之后:After the step of determining the size between the number of user equipments and the preset redundancy number:
若所述用户设备数量超过预设冗余数量,则推迟预设第三时长后重新确定所述用户设备数量与预设冗余数量之间的大小,并统计推迟次数;If the number of user equipments exceeds the preset redundancy number, re-determine the size between the number of user equipments and the preset redundancy number after delaying the preset third period of time, and count the number of delays;
若所述推迟次数大于预设第二次数,则取消重启设备性能最差的空闲响应设备。If the number of postponements is greater than the preset second number of times, cancel restarting the idle response device with the worst device performance.
本申请提供的服务器响应装置,采用上述实施例中的服务器响应方法,解决常规技术中对响应设备的管理混乱导致无法充分发挥响应设备的性能的技术问题。与常规技术相比,本申请实施例提供的服务器响应装置的有益效果与上述实施例提供的服务器响应方法的有益效果相同,且该服务器响应装置中的其他技术特征与上述实施例方法公开的特征相同,在此不做赘述。The server response device provided by the present application adopts the server response method in the above-mentioned embodiments to solve the technical problem in the conventional technology that the performance of the response device cannot be fully utilized due to chaotic management of the response device. Compared with the conventional technology, the beneficial effect of the server response device provided by the embodiment of the present application is the same as that of the server response method provided by the above embodiment, and other technical features of the server response device are the same as those disclosed by the method of the above embodiment The same, and will not be repeated here.
此外,本申请实施例还提供一种服务器响应设备,所述服务器响应设备包括:存储器、处理器、及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的服务器响应方法的步骤。In addition, an embodiment of the present application also provides a server response device, the server response device includes: a memory, a processor, and a computer program stored in the memory and operable on the processor, the computer program When executed by the processor, the steps of the above-mentioned server response method are realized.
此外,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的服务器响应方法的步骤。In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned server response method are implemented.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, as used herein, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or system comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对常规技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the conventional technology, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), several instructions are included to enable a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent protection scope of the present application in the same way.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310200532.9A CN116320031A (en) | 2023-03-03 | 2023-03-03 | Server response method, device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310200532.9A CN116320031A (en) | 2023-03-03 | 2023-03-03 | Server response method, device and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116320031A true CN116320031A (en) | 2023-06-23 |
Family
ID=86791870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310200532.9A Pending CN116320031A (en) | 2023-03-03 | 2023-03-03 | Server response method, device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116320031A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170517A (en) * | 2018-01-08 | 2018-06-15 | 武汉斗鱼网络科技有限公司 | A kind of container allocation method, apparatus, server and medium |
CN108737573A (en) * | 2018-06-28 | 2018-11-02 | 郑州云海信息技术有限公司 | A kind of distributed storage cluster and its service response control method, device and equipment |
CN109614231A (en) * | 2018-12-04 | 2019-04-12 | 广东亿迅科技有限公司 | Idle server resource discovery method, device, computer equipment and storage medium |
CN110311987A (en) * | 2019-07-24 | 2019-10-08 | 中南民族大学 | Node scheduling method, apparatus, equipment and the storage medium of microserver |
CN113886162A (en) * | 2021-10-21 | 2022-01-04 | 统信软件技术有限公司 | Computing equipment performance test method, computing equipment and storage medium |
CN115633039A (en) * | 2022-09-28 | 2023-01-20 | 深圳壹账通智能科技有限公司 | Communication establishing method, load balancing device, equipment and storage medium |
-
2023
- 2023-03-03 CN CN202310200532.9A patent/CN116320031A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170517A (en) * | 2018-01-08 | 2018-06-15 | 武汉斗鱼网络科技有限公司 | A kind of container allocation method, apparatus, server and medium |
CN108737573A (en) * | 2018-06-28 | 2018-11-02 | 郑州云海信息技术有限公司 | A kind of distributed storage cluster and its service response control method, device and equipment |
CN109614231A (en) * | 2018-12-04 | 2019-04-12 | 广东亿迅科技有限公司 | Idle server resource discovery method, device, computer equipment and storage medium |
CN110311987A (en) * | 2019-07-24 | 2019-10-08 | 中南民族大学 | Node scheduling method, apparatus, equipment and the storage medium of microserver |
CN113886162A (en) * | 2021-10-21 | 2022-01-04 | 统信软件技术有限公司 | Computing equipment performance test method, computing equipment and storage medium |
CN115633039A (en) * | 2022-09-28 | 2023-01-20 | 深圳壹账通智能科技有限公司 | Communication establishing method, load balancing device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9442763B2 (en) | Resource allocation method and resource management platform | |
US20230039191A1 (en) | Throttling queue for a request scheduling and processing system | |
CN112783659B (en) | Resource allocation method, device, computer equipment and storage medium | |
US20190324819A1 (en) | Distributed-system task assignment method and apparatus | |
CN109936604B (en) | Resource scheduling method, device and system | |
EP3073374B1 (en) | Thread creation method, service request processing method and related device | |
CN105743995B (en) | System and method for transplantable high-availability deployment and management of container cluster | |
US8195798B2 (en) | Application server scalability through runtime restrictions enforcement in a distributed application execution system | |
CN109726005B (en) | Method, server system and computer readable medium for managing resources | |
US10884667B2 (en) | Storage controller and IO request processing method | |
CN113986497B (en) | Queue scheduling method, device and system based on multi-tenant technology | |
CN112073532B (en) | Resource allocation method and device | |
CN111857992B (en) | Method and device for allocating linear resources in Radosgw module | |
CN109729113B (en) | Method, server system and computer program product for managing dedicated processing resources | |
WO2016202154A1 (en) | Gpu resource allocation method and system | |
US11709707B2 (en) | Low latency distributed counters for quotas | |
CN114598706A (en) | Elastic scaling method of storage system based on serverless function | |
KR20220125176A (en) | Apparatus and Method for Auto-Scaling Service Shared in Cloud | |
CN118502906A (en) | Task scheduling method, device, equipment, storage medium and program product | |
CN116320031A (en) | Server response method, device and medium | |
CN117632462A (en) | Task resource scheduling method and server | |
CN110955522B (en) | Resource management method and system for coordination performance isolation and data recovery optimization | |
CN115168057B (en) | Resource scheduling method and device based on k8s cluster | |
CN116860402A (en) | Lock resource scheduling method and device | |
CN120596256A (en) | Resource scheduling system, method and electronic equipment applied to storage and computing integrated system |
Legal Events
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 |