CN114490071A - Resource scheduling method, device, equipment and medium based on cloud game - Google Patents
Resource scheduling method, device, equipment and medium based on cloud game Download PDFInfo
- Publication number
- CN114490071A CN114490071A CN202210111516.8A CN202210111516A CN114490071A CN 114490071 A CN114490071 A CN 114490071A CN 202210111516 A CN202210111516 A CN 202210111516A CN 114490071 A CN114490071 A CN 114490071A
- Authority
- CN
- China
- Prior art keywords
- screening
- machine room
- host
- target
- strategy
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application discloses a resource scheduling method, device, equipment and medium based on a cloud game, which comprises the following steps: the method comprises the steps that a scheduling request which is sent by a service end and is based on a cloud game and comprises scheduling requirements is obtained through a preset service interface in butt joint with a cloud platform, and a target machine room is determined by utilizing a target machine room screening strategy based on the scheduling requirements in the scheduling request; determining a target host screening strategy based on a scheduling requirement in a scheduling request, and determining a target host from the target machine room by using the target host screening strategy; and sending the target host to a service end so that the service end can be connected with the target host by using the connection information. Through the technical scheme, the machine room screening strategy and the host screening strategy which are more systematic and fit with user requirements can be adopted to schedule the target host, the rationality of cloud edge computing node resource scheduling based on cloud games is improved, and the satisfaction of both a server side and a service side is further improved.
Description
Technical Field
The invention relates to the technical field of cloud games, in particular to a resource scheduling method, device, equipment and medium based on a cloud game.
Background
With the development of 5G networks, encoding and decoding technologies and software and hardware technologies, innovative services such as cloud game systems gradually enter the field of view of the public, and certain development is achieved. The cloud game is different from the traditional game, is an implementation mode based on cloud computing, cloud control, rendering and network transmission, and enables computing power to be increased, and the game is really operated at a host end of a cloud edge computing node instead of a local client end of a user. The key point is how to quickly allocate computing resources meeting requirements to users, the server side hopes to reasonably allocate cloud hosts to the users as much as possible, and the user side hopes to allocate high-performance hosts meeting the requirements to the users at the highest speed.
Therefore, in the host resource scheduling process of cloud edge computing nodes based on a cloud game, how to provide a resource scheduling method which can more comprehensively and reasonably meet user requirements is a problem to be solved in the field, and therefore the user experience of a service end can be improved, and reasonable allocation of resources of a service end can be ensured.
Disclosure of Invention
In view of this, an object of the present invention is to provide a resource scheduling method, device, equipment and medium based on a cloud game, which can improve the efficiency of cloud game resource scheduling, improve the user experience of a service end, and ensure the reasonable allocation of server resources. The specific scheme is as follows:
in a first aspect, the application discloses a resource scheduling method based on a cloud game, comprising:
the method comprises the steps that a scheduling request which is based on a cloud game and contains scheduling requirements and sent by a service end is obtained through a preset service interface in butt joint with a cloud platform;
determining a target machine room by using a target machine room screening strategy based on the scheduling requirement in the scheduling request; the target machine room screening strategy comprises one of a strategy for screening machine rooms based on a system, a screening strategy based on a specified machine room and a strategy for screening machine rooms randomly; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on time delay and a screening strategy based on position priority;
determining a target host screening strategy based on a scheduling requirement in a scheduling request, and determining a target host from the target machine room by using the target host screening strategy; the target host screening strategy comprises one of a strategy based on a system screening host and a strategy based on a random screening host; the system screening host-based policy comprises one or more of a force specification priority-based screening policy and an affiliate priority-based screening policy;
and sending the connection information of the target host to a service end so that the service end can be connected with the target host by using the connection information.
Optionally, the obtaining, through a preset service interface that is in butt joint with the cloud platform, the scheduling request that is sent by the service end and is based on the cloud game and includes a scheduling requirement includes:
and acquiring a scheduling request which is based on the cloud game and contains scheduling requirements and is sent by a service end through an API gateway interface butted with the cloud platform.
Optionally, the determining the target machine room by using the target machine room screening policy based on the scheduling requirement in the scheduling request includes:
judging whether a corresponding appointed machine room exists in the scheduling requirement in the scheduling request;
if the dispatching requirement has a corresponding designated machine room, judging whether the designated machine room has available resources, if so, determining the target machine room screening strategy as a screening strategy based on the designated machine room, and determining the designated machine room as the target machine room;
and if the dispatching requirement does not have a corresponding designated machine room, determining a target machine room screening strategy based on the dispatching request, and determining the target machine room according to the target machine room screening strategy.
Optionally, if there is no corresponding designated machine room in the scheduling requirement, determining a target machine room screening policy based on the scheduling request, and determining a target machine room according to the target machine room screening policy, including:
if the dispatching requirement does not have a corresponding designated machine room, determining a current machine room selection mode; the machine room selection mode comprises a mode of screening the machine room by using a system or a mode of randomly screening the machine room;
if the current machine room selection mode is a mode of using a system to screen machine rooms, determining a target machine room screening strategy from the strategies based on the system to screen machine rooms;
and if the current machine room selection mode is a mode of randomly screening the machine rooms, determining the target machine room screening strategy as a strategy based on the randomly screened machine rooms.
Optionally, the determining a target host screening policy based on the scheduling requirement in the scheduling request includes:
determining a current host selection mode based on a scheduling requirement in the scheduling request; the host selection mode comprises a mode of screening the host by using a system or a mode of randomly screening the host;
if the current host selection mode is a mode of using a system to screen the host, determining a target host screening strategy from the strategies based on the system to screen the host;
and if the current host selection mode is a mode of randomly screening the host, determining the target host screening strategy as a random host screening-based strategy.
Optionally, after determining the target host screening policy based on the scheduling requirement in the scheduling request and determining the target host from the target machine room by using the target host screening policy, the method further includes:
and starting the target host by using an intelligent platform management interface, and carrying out network setting on the target host according to the pre-acquired network setting information.
Optionally, the sending the connection information of the target host to a service end so that the service end connects with the target host by using the connection information includes:
inquiring the corresponding external network IP, port information and token information of the target host;
and sending the external network IP, the port information and the token information to a service end so that the service end can be connected with the target host by using the external network IP, the port information and the token information.
In a second aspect, the present application discloses a resource scheduling apparatus based on a cloud game, including:
the request acquisition module is used for acquiring a scheduling request based on the cloud game sent by a service end through a preset service interface in butt joint with the cloud platform;
the machine room determining module is used for determining a target machine room by utilizing a target machine room screening strategy based on the scheduling request; the target machine room screening strategy comprises one of a strategy for screening machine rooms based on a system, a screening strategy based on a specified machine room and a strategy for screening machine rooms randomly; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on time delay and a screening strategy based on position priority;
the host determination module is used for determining a target host screening strategy based on the scheduling requirement in the scheduling request and determining a target host from the target machine room by using the target host screening strategy; the target host screening strategy comprises one of a strategy based on a system screening host and a strategy based on a random screening host; the system screening host-based policy comprises one or more of a force specification priority-based screening policy and an affiliate priority-based screening policy;
and the information sending module is used for sending the connection information of the target host to a service end so that the service end can be connected with the target host by using the connection information.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the resource scheduling method based on the cloud game.
In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the cloud game based resource scheduling method disclosed in the foregoing.
The scheduling request which is sent by a service end and is based on a cloud game and comprises scheduling requirements is obtained through a preset service interface which is in butt joint with a cloud platform, and the target machine room is determined by utilizing a target machine room screening strategy based on the scheduling requirements in the scheduling request; the target machine room screening strategy comprises one of a strategy for screening machine rooms based on a system, a screening strategy based on a specified machine room and a strategy for screening machine rooms randomly; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on time delay and a screening strategy based on position priority, and a target host is determined from the target machine room by utilizing the screening strategy of the target host based on the scheduling requirement in the scheduling request; the target host screening strategy comprises one of a strategy based on a system screening machine room and a strategy based on a random screening host; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on computing power specification priority and a screening strategy based on attribution party priority, and the connection information of the target host is sent to a service end, so that the service end can be connected with the target host by using the connection information. According to the method, the scheduling requirements are analyzed in the obtained scheduling request, and the scheduling requirements are utilized to perform machine room screening and host screening from the platform, so that the target host connected with the service end is determined.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a resource scheduling method based on a cloud game provided in the present application;
FIG. 2 is a schematic view of a machine room screening process provided herein;
FIG. 3 is a schematic view of a machine room screening process provided herein;
fig. 4 is a schematic diagram of a resource scheduling process provided in the present application;
fig. 5 is a flowchart of a specific resource scheduling method based on a cloud game according to the present application;
FIG. 6 is an overall flow chart provided herein;
fig. 7 is a schematic structural diagram of a resource scheduling apparatus based on a cloud game according to the present application;
fig. 8 is a block diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, the host resource scheduling process of the cloud edge computing node based on the cloud game only takes the host performance as the scheduling condition, and the comprehensiveness and rationality of resource scheduling are lacked. In the application, the target host is scheduled based on the machine room screening strategy and the host screening strategy which are more suitable for user requirements, so that the rationality of resource scheduling of the cloud edge computing node is improved, and the satisfaction of both a server side and a service side is further improved.
The embodiment of the invention discloses a resource scheduling method based on a cloud game, which is described with reference to fig. 1 and comprises the following steps:
step S11: and acquiring a scheduling request which is sent by a service end, is based on the cloud game and comprises a scheduling requirement through a preset service interface butted with the cloud platform.
In this embodiment, the preset service interface in butt joint with the cloud platform is used for information interaction between the service end and the platform, and the scheduling request sent by the service end can be acquired through the preset service interface. It can be understood that, when a user generates a call demand on a resource host based on a cloud game, the scheduling request is sent out as a scheduling request based on the resource host based on the cloud game, and the scheduling request includes the scheduling demand of the user. It should be noted that the specific manner when the user initiates the request to the cloud game resource host includes, but is not limited to, a manner of initiating the request through a web page or APP (i.e., Application).
The preset service interface in this embodiment includes, but is not limited to, an API Gateway (API Gateway) interface, and in this embodiment, the service end is a user end, the target host is a cloud game resource host used for being called in a current scheduling request in a resource pool, and the target machine room is a cloud game resource machine room determined from a cloud game resource machine room for storing the cloud game resource host and used for determining the target host therefrom.
Step S12: determining a target machine room by using a target machine room screening strategy based on the scheduling requirement in the scheduling request; the target machine room screening strategy comprises one of a strategy for screening machine rooms based on a system, a screening strategy based on a specified machine room and a strategy for screening machine rooms randomly; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on time delay and a screening strategy based on position priority.
It can be understood that, when the cloud platform center side receives the scheduling request containing the scheduling requirement, the scheduling request is analyzed, and a target host for calling is selected from a resource pool based on the scheduling request. It can be understood that, before selecting a target host, the target machine room is selected first in the present application, so that after the target machine room is determined, the target host is selected from the target machine room, and this step is completed in the selection process of the target machine room.
In this embodiment, the determining the target machine room by using the target machine room screening policy based on the scheduling requirement in the scheduling request may include: judging whether a corresponding appointed machine room exists in the scheduling requirement in the scheduling request; if the dispatching requirement has a corresponding designated machine room, judging whether the designated machine room has available resources, if so, determining the target machine room screening strategy as a screening strategy based on the designated machine room, and determining the designated machine room as the target machine room; and if the dispatching requirement does not have a corresponding designated machine room, determining a target machine room screening strategy based on the dispatching request, and determining the target machine room according to the target machine room screening strategy.
It can be understood that the scheduling requirement of some users may be to call the cloud game resource host in a designated machine room, in this case, the available resources in the designated machine room are firstly queried, if the available resources exist in the designated machine room, the target machine room screening policy is determined as the screening policy based on the designated machine room, the designated machine room is taken as the target machine room, and the cloud game resource host corresponding to the queried available resources is determined as the target host, which indicates that the requirement of the designated machine room of the user can be met; and if the available resources do not exist in the appointed machine room, returning information representing the unavailable resources to the service end.
In this embodiment, if there is no corresponding designated machine room in the scheduling requirement, determining a target machine room screening policy based on the scheduling request, and determining a target machine room according to the target machine room screening policy may include: if the dispatching requirement does not have a corresponding designated machine room, determining a current machine room selection mode; the machine room selection mode comprises a mode of screening the machine room by using a system or a mode of randomly screening the machine room; if the current machine room selection mode is a mode of using a system to screen machine rooms, determining a target machine room screening strategy from the strategies based on the system to screen machine rooms; and if the current machine room selection mode is a mode of randomly screening the machine rooms, determining the target machine room screening strategy as a strategy based on the randomly screened machine rooms.
It will be appreciated that, if some users do not have scheduling requirements associated with a given room, the system will select other policies from the room screening policy library in addition to the screening policy based on the given room. In this case, the system will determine the current machine room selection mode of the target machine room according to the scheduling requirement, and if the current machine room selection mode is a mode of using the system to screen the machine room, in a first specific implementation mode which may exist, the system determines that the current target machine room screening strategy is a time delay-based machine room screening strategy based on the user requirement, and preferentially selects the machine room which has the lowest time delay and satisfies the resources used by the current scheduling request as the target machine room corresponding to the current scheduling request; in a second specific embodiment, the system determines, based on user requirements, that a current target machine room screening policy is a location priority-based screening policy, and then obtains information of a user end region or an operator by analyzing an IP Address (i.e., an Internet Protocol Address) of a service end, thereby determining a machine room priority according to the information of the user end region or the operator, and defaults to select a machine room with a high priority and meeting resources used by a current scheduling request as a target machine room; and if the current machine room selection mode is a mode of randomly screening the machine rooms, determining the target machine room screening strategy as a random machine room-based random screening strategy, and randomly determining the target machine room by the system from all cloud game resource machine rooms of which the available resources meet the resources used by the current scheduling request.
Fig. 2 is a schematic diagram of a machine room screening process, which shows that it is determined whether a user has an assigned machine room according to a scheduling requirement, if yes, it is determined whether available resources exist in the assigned machine room, if no available resources exist, a service side is notified that no available resources exist, and the process is ended; if the user does not have the designated machine room, determining a machine room selection mode, if the machine room selection mode determined based on the scheduling request is a mode of system machine room screening, screening out the available machine room with the highest priority according to the strategy after selecting the corresponding screening strategy, and taking the available machine room as the target machine room to enter a host screening process; if the random machine room screening mode is selected, an available machine room is randomly selected to serve as a target machine room and enter a host screening process.
Step S13: determining a target host screening strategy based on a scheduling requirement in a scheduling request, and determining a target host from the target machine room by using the target host screening strategy; the target host screening strategy comprises one of a strategy based on a system screening host and a strategy based on a random screening host; the system screening host-based policy comprises one or more of a force specification priority-based screening policy and an affiliate priority-based screening policy;
this step is completed by the process of determining the target host from the target machine room, and in this embodiment, the target host screening policy is determined from the host screening policy library, and finally, the target host is determined from the target machine room based on the target host screening policy.
In this embodiment, the determining a target host screening policy based on the scheduling requirement in the scheduling request may include: determining a current host selection mode based on a scheduling requirement in the scheduling request; the host selection mode comprises a mode of screening the host by using a system or a mode of randomly screening the host; if the current host selection mode is a mode of using a system to screen the host, determining a target host screening strategy from the strategies based on the system to screen the host; and if the current host selection mode is a mode of randomly screening the host, determining the target host screening strategy as a random-screening-main-based strategy.
In this embodiment, the system may determine a host selection manner of a current target host according to a scheduling requirement, and if the current host selection manner is a manner of using the system to screen a host, in a first specific implementation manner that may exist, the system determines, based on a user requirement, that a current target host screening policy is a screening policy based on an algorithmic specification priority, determines a target computational specification based on the scheduling requirement, and preferentially selects a host that meets the user computational specification requirement and satisfies resources used by a current scheduling request as a target host corresponding to the current scheduling request, where the computational specification mainly includes two types, namely a CPU (Central Processing Unit ) and a GPU (Graphics Processing Unit, Graphics Processing Unit); in a second specific embodiment, the system determines that the current target host screening policy is based on the priority of the affiliate based on the user requirement, and then preferentially selects the host which is the same affiliate as the user and satisfies the resource used by the current scheduling request as the target host; and if the current host selection mode is a mode of using a random screening host, determining the target host screening strategy as a random host screening-based strategy, and randomly determining the target host from all cloud game resource hosts of which the available resources meet the resources used by the current scheduling request by the system.
Fig. 3 is a schematic diagram of a host screening process, which shows that after a target machine room is selected, a host selection mode is determined, and if the host selection mode is determined as a mode for screening the host by the system, an available host with the highest priority is screened according to a policy after a few selection policies are selected, and the available host is determined as the target host; if the mode of randomly screening the host is selected, an available host is randomly selected, the available host is determined as a target host, and finally, connection information used by the target host for connecting the service side is returned to the user side.
Step S14: and sending the connection information of the target host to a service end so that the service end can be connected with the target host by using the connection information.
It can be understood that after the target host is determined, the connection information mapped by the target host needs to be sent to the service end, so that the device of the user is connected with the target host through the received connection information and performs application of the cloud game. It should be noted that a series of host screening and host scheduling processes performed after a user initiates a scheduling request are very rapid, and are not aware of the user, which improves the user experience.
Fig. 4 is a schematic diagram of a resource scheduling process, which shows that a service side transmits information through an API interface by initiating a scheduling request, then screens hosts in a resource pool by using a scheduling service preset by a platform to obtain a target host, and finally returns information of the target host to the service side, so that the service side can apply cloud games and other services.
In the embodiment, a scheduling request which is sent by a service end and is based on a cloud game and comprises scheduling requirements is obtained through a preset service interface which is in butt joint with a cloud platform, and a target machine room is determined by using a target machine room screening strategy based on the scheduling requirements in the scheduling request; the target machine room screening strategy comprises one of a strategy for screening machine rooms based on a system, a screening strategy based on a specified machine room and a strategy for screening machine rooms randomly; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on time delay and a screening strategy based on position priority, and a target host is determined from the target machine room by utilizing the screening strategy of the target host based on the scheduling requirement in the scheduling request; the target host screening strategy comprises one of a strategy based on a system screening machine room and a strategy based on a random screening host; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on computing power specification priority and a screening strategy based on attribution party priority, and the connection information of the target host is sent to a service end, so that the service end can be connected with the target host by using the connection information. According to the method, the scheduling requirements are analyzed in the obtained scheduling request, and the scheduling requirements are utilized to perform machine room screening and host screening from the platform, so that the target host connected with the service end is determined.
Fig. 5 is a flowchart of a specific resource scheduling method based on a cloud game according to the present application. Referring to fig. 5, the method includes:
step S21: and acquiring a scheduling request which is based on the cloud game and contains scheduling requirements and is sent by a service end through an API gateway interface butted with the cloud platform.
In this embodiment, after the scheduling request is acquired, the scheduling request is authenticated by using an IDC (Internet Data Center) preset by a cloud platform, and subsequent steps are performed after the authentication is passed.
Step S22: determining a target machine room by using a target machine room screening strategy based on the scheduling requirement in the scheduling request; the target machine room screening strategy comprises one of a strategy for screening machine rooms based on a system, a screening strategy based on a specified machine room and a strategy for screening machine rooms randomly; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on time delay and a screening strategy based on position priority.
It will be appreciated that this step is completed with the step of target room screening, which is performed in the IDCs on the center side of the platform.
Step S23: determining a target host screening strategy based on a scheduling requirement in a scheduling request, and determining a target host from the target machine room by using the target host screening strategy; the target host screening strategy comprises one of a strategy based on a system screening host and a strategy based on a random screening host; the system-based screening of the host includes one or more of an algorithm specification priority-based screening policy and an affiliate priority-based screening policy.
It is understood that this step is completed with the step of target host screening, which is performed in the edge side of the platform.
Fig. 6 is an overall flowchart illustrating the overall process of system resource scheduling as follows: after the received service order, a machine room screening process is carried out on the IDC, a target host is determined after a host screening process is carried out on the edge side, the target host is scheduled, and the connection information of the target host is returned so that the service side can be used for being connected with the target host.
Step S24: and starting the target host by using an intelligent platform management interface, and carrying out network setting on the target host according to the pre-acquired network setting information.
It is understood that the method for opening the target host includes, but is not limited to, a method using an IPMI (Intelligent Platform Management Interface) Interface.
Step S25: and inquiring the external network IP, port information and token information corresponding to the target host.
Step S26: and sending the external network IP, the port information and the token information to a service end so that the service end can be connected with the target host by using the external network IP, the port information and the token information.
It is understood that the information for the service end to connect with the target host includes, but is not limited to, the extranet IP, port information, and token information.
In the embodiment, the scheduling request is acquired through the API gateway interface, after the machine room is screened at the center side, the host is screened at the edge side, the IPMI interface is utilized to control the remote start of the target host and the network is set after the target host is determined, and finally, the extranet IP, port information and token information of the target host obtained through screening are returned to the service end so that the service end can be connected with the target host by utilizing the connection information.
Referring to fig. 7, an embodiment of the present application discloses a resource scheduling apparatus based on a cloud game, which may specifically include:
the request acquisition module 11 is configured to acquire a scheduling request based on a cloud game, which is sent by a service end, through a preset service interface in butt joint with a cloud platform;
the machine room determining module 12 is configured to determine a target machine room by using a target machine room screening strategy based on the scheduling request; the target machine room screening strategy comprises one of a strategy for screening machine rooms based on a system, a screening strategy based on a specified machine room and a strategy for screening machine rooms randomly; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on time delay and a screening strategy based on position priority;
the host determination module 13 is configured to determine a target host screening policy based on a scheduling requirement in the scheduling request, and determine a target host from the target machine room by using the target host screening policy; the target host screening strategy comprises one of a strategy based on a system screening host and a strategy based on a random screening host; the system screening host-based policy comprises one or more of a force specification priority-based screening policy and an affiliate priority-based screening policy;
an information sending module 14, configured to send the connection information of the target host to a service end, so that the service end connects with the target host by using the connection information.
The scheduling request which is sent by a service end and is based on a cloud game and comprises scheduling requirements is obtained through a preset service interface which is in butt joint with a cloud platform, and the target machine room is determined by utilizing a target machine room screening strategy based on the scheduling requirements in the scheduling request; the target machine room screening strategy comprises one of a strategy for screening machine rooms based on a system, a screening strategy based on a specified machine room and a strategy for screening machine rooms randomly; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on time delay and a screening strategy based on position priority, and a target host is determined from the target machine room by utilizing the screening strategy of the target host based on the scheduling requirement in the scheduling request; the target host screening strategy comprises one of a strategy based on a system screening machine room and a strategy based on a random screening host; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on computing power specification priority and a screening strategy based on attribution party priority, and the connection information of the target host is sent to a service end, so that the service end can be connected with the target host by using the connection information. According to the method, the scheduling requirements are analyzed in the obtained scheduling request, and the scheduling requirements are utilized to perform machine room screening and host screening from the platform, so that the target host connected with the service end is determined.
In some specific embodiments, the request obtaining module 11 includes:
a request obtaining unit, configured to obtain, through a preset service interface in docking with the cloud platform, a scheduling request based on the cloud game sent by the service end
In some embodiments, the machine room determining module 12 includes:
the appointed machine room judging unit is used for judging whether the scheduling requirement in the scheduling request has a corresponding appointed machine room;
the first machine room determining unit is used for judging whether available resources exist in the specified machine room if the corresponding specified machine room exists in the scheduling requirement, determining the target machine room screening strategy as a screening strategy based on the specified machine room if the available resources exist, and determining the specified machine room as the target machine room;
and the second machine room determining unit is used for determining a target machine room screening strategy based on the scheduling request if the scheduling requirement does not have a corresponding designated machine room, and determining the target machine room according to the target machine room screening strategy.
In some embodiments, the second equipment room determining unit includes:
a machine room selection mode determining unit, configured to determine a current machine room selection mode if there is no corresponding designated machine room in the scheduling requirement; the machine room selection mode comprises a mode of screening the machine room by using a system or a mode of randomly screening the machine room;
the first machine room selection mode unit is used for determining a target machine room screening strategy from the strategies based on the system screening machine room if the current machine room selection mode is a mode of using the system to screen the machine room;
and the second machine room selection mode unit is used for determining the target machine room screening strategy as a random machine room-based strategy if the current machine room selection mode is a random machine room screening mode.
In some embodiments, the host determination module 13 includes:
the strategy determining unit is used for determining a target host screening strategy based on the scheduling requirement in the scheduling request; the target host screening strategy comprises one of a strategy based on a system screening host and a strategy based on a random screening host; the system screening host-based policy comprises one or more of a force specification priority-based screening policy and an affiliate priority-based screening policy;
the host determination unit is used for determining a target host from the target machine room by using the target host screening strategy;
in some embodiments, the policy determining unit includes:
the host selection mode determining unit is used for determining the current host selection mode based on the scheduling requirement in the scheduling request; the host selection mode comprises a mode of screening the host by using a system or a mode of randomly screening the host;
the system comprises a first host selection mode unit, a second host selection mode unit and a host selection unit, wherein the first host selection mode unit is used for determining a target host screening strategy from the strategies based on the system screening host if the current host selection mode is a mode of using the system to screen the host;
and the second host selection mode unit is used for determining the target host screening strategy as a random-screening-master-based strategy if the current host selection mode is a random host screening mode.
In some specific embodiments, the resource scheduling method based on the cloud game further includes:
and the host setting unit is used for starting the target host by using the intelligent platform management interface and carrying out network setting on the target host according to the pre-acquired network setting information.
In some specific embodiments, the information sending module 14 further includes:
the information query unit is used for querying the external network IP, port information and token information corresponding to the target host;
and the information sending unit is used for sending the external network IP, the port information and the token information to a service end so that the service end can be connected with the target host by utilizing the external network IP, the port information and the token information.
Further, an electronic device is also disclosed in the embodiments of the present application, fig. 8 is a block diagram of the electronic device 20 shown in the exemplary embodiment, and the content in the diagram cannot be considered as any limitation to the scope of the application.
Fig. 8 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a display 24, an input-output interface 25, a communication interface 26, and a communication bus 27. The memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the computer platform dual-system synchronization method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 26 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage manner may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, and may be Windows Server, Netware, Unix, Linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the cloud game-based resource scheduling method performed by the electronic device 20 disclosed in any of the foregoing embodiments.
Further, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the cloud game based resource scheduling method disclosed above. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The resource scheduling method, device, equipment and storage medium based on the cloud game provided by the invention are introduced in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A resource scheduling method based on a cloud game is characterized by comprising the following steps:
the method comprises the steps that a scheduling request which is based on a cloud game and contains scheduling requirements and sent by a service end is obtained through a preset service interface in butt joint with a cloud platform;
determining a target machine room by using a target machine room screening strategy based on the scheduling requirement in the scheduling request; the target machine room screening strategy comprises one of a strategy for screening machine rooms based on a system, a screening strategy based on a specified machine room and a strategy for screening machine rooms randomly; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on time delay and a screening strategy based on position priority;
determining a target host screening strategy based on a scheduling requirement in a scheduling request, and determining a target host from the target machine room by using the target host screening strategy; the target host screening strategy comprises one of a strategy based on a system screening host and a strategy based on a random screening host; the system screening host-based policy comprises one or more of a force specification priority-based screening policy and an affiliate priority-based screening policy;
and sending the target host to a service end so that the service end can be connected with the target host by using the connection information.
2. The method for resource scheduling based on cloud game of claim 1, wherein the obtaining of the scheduling request which is based on the cloud game and includes the scheduling requirement and is sent by the service end through a preset service interface docked with the cloud platform comprises:
and acquiring a scheduling request which is based on the cloud game and contains scheduling requirements and is sent by a service end through an API gateway interface butted with the cloud platform.
3. The resource scheduling method based on the cloud game of claim 1, wherein the determining the target machine room by using the target machine room screening strategy based on the scheduling requirement in the scheduling request comprises:
judging whether a corresponding appointed machine room exists in the scheduling requirement in the scheduling request;
if the dispatching requirement has a corresponding designated machine room, judging whether the designated machine room has available resources, if so, determining the target machine room screening strategy as a screening strategy based on the designated machine room, and determining the designated machine room as the target machine room;
and if the dispatching requirement does not have a corresponding designated machine room, determining a target machine room screening strategy based on the dispatching request, and determining the target machine room according to the target machine room screening strategy.
4. The resource scheduling method based on the cloud game of claim 3, wherein if there is no corresponding designated machine room in the scheduling requirement, determining a target machine room screening policy based on the scheduling request, and determining a target machine room according to the target machine room screening policy comprises:
if the dispatching requirement does not have a corresponding designated machine room, determining a current machine room selection mode; the machine room selection mode comprises a mode of screening the machine room by using a system or a mode of randomly screening the machine room;
if the current machine room selection mode is a mode of using a system to screen machine rooms, determining a target machine room screening strategy from the strategies based on the system to screen machine rooms;
and if the current machine room selection mode is a mode of randomly screening the machine rooms, determining the target machine room screening strategy as a strategy based on the randomly screened machine rooms.
5. The cloud game-based resource scheduling method of claim 1, wherein the determining a target host screening policy based on the scheduling requirement in the scheduling request comprises:
determining a current host selection mode based on a scheduling requirement in the scheduling request; the host selection mode comprises a mode of screening the host by using a system or a mode of randomly screening the host;
if the current host selection mode is a mode of using a system to screen the host, determining a target host screening strategy from the strategies based on the system to screen the host;
and if the current host selection mode is a mode of randomly screening the host, determining the target host screening strategy as a random-screening-main-based strategy.
6. The resource scheduling method based on the cloud game according to claim 1, wherein after determining a target host screening policy based on the scheduling requirement in the scheduling request and determining a target host from the target machine room by using the target host screening policy, the method further comprises:
and starting the target host by using an intelligent platform management interface, and carrying out network setting on the target host according to the pre-acquired network setting information.
7. The resource scheduling method based on the cloud game according to any one of claims 1 to 6, wherein the sending the connection information of the target host to a service end so that the service end can be connected with the target host by using the connection information includes:
inquiring the corresponding external network IP, port information and token information of the target host;
and sending the external network IP, the port information and the token information to a service end so that the service end can be connected with the target host by using the external network IP, the port information and the token information.
8. A resource scheduling apparatus based on a cloud game, comprising:
the request acquisition module is used for acquiring a scheduling request based on the cloud game sent by a service end through a preset service interface in butt joint with the cloud platform;
the machine room determining module is used for determining a target machine room by utilizing a target machine room screening strategy based on the scheduling request; the target machine room screening strategy comprises one of a strategy for screening machine rooms based on a system, a screening strategy based on a specified machine room and a strategy for screening machine rooms randomly; the strategy for screening the machine room based on the system comprises one or more of a screening strategy based on time delay and a screening strategy based on position priority;
the host determination module is used for determining a target host screening strategy based on the scheduling requirement in the scheduling request and determining a target host from the target machine room by using the target host screening strategy; the target host screening strategy comprises one of a strategy based on a system screening host and a strategy based on a random screening host; the system screening host-based policy comprises one or more of a force specification priority-based screening policy and an affiliate priority-based screening policy;
and the information sending module is used for sending the connection information of the target host to a service end so that the service end can be connected with the target host by using the connection information.
9. An electronic device comprising a processor and a memory; wherein the processor, when executing the computer program stored in the memory, implements the cloud game based resource scheduling method of any of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the cloud game based resource scheduling method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210111516.8A CN114490071A (en) | 2022-01-29 | 2022-01-29 | Resource scheduling method, device, equipment and medium based on cloud game |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210111516.8A CN114490071A (en) | 2022-01-29 | 2022-01-29 | Resource scheduling method, device, equipment and medium based on cloud game |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114490071A true CN114490071A (en) | 2022-05-13 |
Family
ID=81478756
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210111516.8A Pending CN114490071A (en) | 2022-01-29 | 2022-01-29 | Resource scheduling method, device, equipment and medium based on cloud game |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114490071A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115915457A (en) * | 2023-01-30 | 2023-04-04 | 阿里巴巴(中国)有限公司 | Resource scheduling method, vehicle control method, device and system |
-
2022
- 2022-01-29 CN CN202210111516.8A patent/CN114490071A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115915457A (en) * | 2023-01-30 | 2023-04-04 | 阿里巴巴(中国)有限公司 | Resource scheduling method, vehicle control method, device and system |
CN115915457B (en) * | 2023-01-30 | 2023-05-23 | 阿里巴巴(中国)有限公司 | Resource scheduling method, vehicle control method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3684010B1 (en) | Network slice management method, and device for same | |
KR101220054B1 (en) | Efficient formation of ad hoc networks | |
CN105979007B (en) | Method and device for accelerating resource processing and network function virtualization system | |
US20160080483A1 (en) | Method for setting gateway device identity, and management gateway device | |
JP7207827B2 (en) | Resource Acquisition Method and Device | |
EP3331247A1 (en) | Multi-screen control method and device | |
CN113612861B (en) | Remote access method, system and computer readable storage medium | |
CN112104679B (en) | Method, apparatus, device and medium for processing hypertext transfer protocol request | |
CN114691352A (en) | Information processing method, device, equipment and storage medium | |
CN116668511A (en) | Data processing method, network element equipment and readable storage medium | |
CN114338063A (en) | Message queue system, service processing method, and computer-readable storage medium | |
CN114490071A (en) | Resource scheduling method, device, equipment and medium based on cloud game | |
CN114296953A (en) | Multi-cloud heterogeneous system and task processing method | |
CN110278558B (en) | Message interaction method and WLAN system | |
CN114448841B (en) | Network card testing method, device, equipment and medium | |
CN113596119B (en) | Edge capability distribution method, system, device and computer readable storage medium | |
CN108574615A (en) | A kind of content transmission method, equipment and system based on multipath MPTCP | |
CN114009143B (en) | Configuration method, device and storage medium of Internet of things equipment | |
CN110401708B (en) | Session processing system and method based on server load state | |
CN113535402A (en) | Load balancing processing method and device based on 5G MEC and electronic equipment | |
KR102234089B1 (en) | Method for connecting conference and terminal for executing the same | |
CN106941474B (en) | Session initiation protocol server overload control method and server | |
US20240179223A1 (en) | Method for providing edge computing service and apparatus for edge computing service | |
CN117319481B (en) | Port resource reverse proxy method, system and storage medium | |
CN118041704B (en) | Kubernetes container access method, device, computing equipment and storage medium |
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 |