Self-checking method, device, storage medium and electronic device for cloud application server
By creating and executing detection items on the cloud application server, self-checking and deciding to go online or report for repair, the stability and reliability issues of the cloud gaming platform in operation and maintenance management are solved, and the user experience and operation and maintenance efficiency are improved.
Patent Information
- Application Number
- CN202011314223.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-20
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-11-20
AI Technical Summary
Cloud gaming platforms have stability, security, high performance and reliability issues at the operation and maintenance management level, causing users to be assigned to faulty servers, affecting user experience and operation and maintenance efficiency.
After the cloud application server is restarted, create primary and secondary detection items, conduct self-inspection, and decide to go online or report for repair based on the detection results. Record the detection results to generate a log file and send it to the external management server to ensure the stability and reliability of the server. .
It improves the availability of cloud application servers, reduces the probability of users being assigned to faulty servers, improves user satisfaction and experience, and ensures the stable operation of cloud applications.
Smart Images

Figure CN112306780B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud application technology, and in particular to a self-checking method, device, storage medium and electronic equipment of a cloud application server. Background Art
[0002] Compared with the traditional game mode, cloud gaming is to put the game on the server to run, and transmit the audio and video images rendered by the game to the terminal in the form of a stream. The terminal no longer needs to install the game, and various terminals such as TV, mobile phone, PC, tablet, etc. can run it. Cloud gaming can greatly reduce the equipment cost for players to play games.
[0003] To achieve the rapid development of cloud games, solving the problems of real-time, virtualization technology, economy and operation and maintenance management are the four major technical challenges. From the perspective of operation and maintenance management, if players are assigned to a server with no network, unauthorized graphics card or other problems, no matter how good other aspects are, the cloud game platform will be fundamentally abandoned by players. Therefore, how to provide players with a stable, secure, high-performance and reliable cloud game server, thereby improving the efficiency of operation and maintenance management and ensuring the normal operation of the basic operation of cloud games, is a problem that needs to be solved in this application. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a self-check method, device, storage medium and electronic device for a cloud application server, so as to solve the above-mentioned shortcomings in the prior art.
[0005] To achieve the above-mentioned purpose and other related purposes, the present invention provides a self-inspection method for a cloud application server, which is applied to a cloud application server; the method comprises: after restarting the computer, creating at least one main detection item of the cloud application server; detecting the at least one main detection item; and deciding whether to put the cloud application server online or report a repair based on the detection result of the at least one main detection item.
[0006] In one embodiment of the present invention, the decision to go online or report a repair based on the test results specifically includes: if the test result of at least one of the main test items is qualified, then go online to wait for the user assigned to the cloud application by the external management server, thereby providing the user with a remote desktop of the cloud application; otherwise, apply for a repair report to the external management server.
[0007] In one embodiment of the present invention, the method also includes: creating at least one secondary detection item for the cloud application server; after performing a restart operation, first detecting the at least one primary detection item, and after all primary detection items have been detected, detecting the at least one secondary detection item.
[0008] In one embodiment of the present invention, the method further includes: recording the detection results, generating a log file and sending it to an external management server; wherein the content of the log file includes: the created detection items and their corresponding detection results.
[0009] In one embodiment of the present invention, the step of creating a primary detection item or a secondary detection item specifically includes: setting the detection object, qualification standard and repair standard of the primary detection item or the secondary detection item; wherein the qualification standard is used to determine whether the detection object is qualified, and the repair standard is used to determine whether to send a repair request for the detection object to the external management server.
[0010] In one embodiment of the present invention, the step of setting the detection object specifically includes: creating a detection object for at least one main detection item based on necessary parameters that affect the connection and operation of the cloud application server; creating a detection object for at least one secondary detection item based on non-essential parameters that affect the connection and operation of the cloud application server.
[0011] In one embodiment of the present invention, when the number of the main detection items is at least two, the method further includes: if the detection result of one of the main detection items is unqualified, the other main detection items are no longer detected; the main detection items that have not been detected are marked as undetected in the log file. Or if the detection result of one of the main detection items is unqualified, the other main detection items continue to be detected.
[0012] To achieve the above-mentioned purpose and other related purposes, the present invention provides a self-check device for a cloud application server, which is applied to a cloud application server; the device includes: a detection item creation module, which is used to create at least one main detection item of the cloud application server after restarting; a server self-check module, which is used to detect the at least one main detection item; and decide whether to put the cloud application server online or report for repair based on the detection result of the at least one main detection item.
[0013] To achieve the above-mentioned purpose and other related purposes, the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is loaded and executed by a processor, the self-check method of the cloud application server is implemented.
[0014] To achieve the above-mentioned purpose and other related purposes, the present invention provides an electronic device, comprising: a processor and a memory; wherein the memory is used to store a computer program; the processor is used to load and execute the computer program so that the electronic device executes the self-check method of the cloud application server.
[0015] As described above, the self-check method, device, storage medium and electronic device of the cloud application server of the present invention can improve the availability of cloud resources (i.e., cloud application servers) allocated to cloud application users by the cloud application platform, reduce the probability of users being allocated to faulty cloud application servers, and provide cloud application users with a stable, secure, high-performance and reliable cloud application server, thereby improving the satisfaction and user experience of cloud application users and providing basic guarantees for expanding the user base. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 Shown is a flow chart of a self-checking method of a cloud application server in one embodiment of the present invention.
[0017] Figure 2 Shown is a flow chart of a self-checking method of a cloud application server in another embodiment of the present invention.
[0018] Figure 3 Shown is a module diagram of a self-checking device of a cloud application server in one embodiment of the present invention.
[0019] Figure 4 Shown is a schematic structural diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0021] It should be noted that the illustrations provided in the following embodiments are only used to illustrate the basic concept of the present invention in a schematic manner, and thus the illustrations only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0022] like Figure 1 As shown, the present application provides a self-check method for a cloud application server, which is executed by a cloud application server. The cloud application server refers to an electronic device, such as a desktop computer, that runs cloud games and cloud office software for user devices (such as smartphones, tablets, etc.) and provides a running remote desktop to the user device.
[0023] The self-check method of the cloud application server in this embodiment is as follows:
[0024] S11: After restarting, creating at least one main detection item of the cloud application server.
[0025] Specifically, after the cloud application server is restarted and started, this step creates a detection object for at least one main detection item according to the necessary parameters that affect the connection and operation of the cloud application server. The necessary parameters refer to any parameter that does not meet the conditions, which will cause the user to be unable to connect or have a poor experience. For example: component connectivity, multi-display settings, main display resolution, uplink bandwidth, CPU occupancy, GPU occupancy, RAM occupancy, graphics card authorization, etc. In addition, when creating the main detection items, in addition to setting the detection object, the qualification standard and repair standard of the detection object should also be set. Those skilled in the art can establish the qualification standard and the repair standard by writing thresholds and conditional statements, wherein the qualification standard is used to determine whether the detection object is qualified, and the repair standard is used to determine whether to send a repair request for the detection object to an external management server (such as a cloud application management platform, etc.).
[0026] It should be noted that by checking the connectivity of components and ports through simulated connection, it is possible to prevent users from being unable to connect due to port occupation or component problems; by detecting whether the optional resolution of the computer screen is normal (whether it includes a specific resolution), it is possible to prevent problems with display spoofers, which may lead to abnormal display resolution and invalid mouse clicks; by detecting whether the screen mode is single-screen mode and detecting problems with multi-display settings, it is possible to prevent problems such as the display mode being changed to extended, resulting in the disappearance of the mouse and invalid clicks; by detecting whether the authorization status of the current graphics card is normal, it is possible to prevent problems such as low game frames for users due to the graphics card not obtaining authorization; by detecting whether the uplink bandwidth speed of the machine within the specified time is outside the set threshold to judge the server network situation, it is possible to prevent the machine bandwidth abnormality from causing freezes; by detecting whether the average occupancy of the machine's CPU, GPU, and RAM within the specified time is outside the set threshold, it is possible to prevent the program in the template from occupying too much performance and causing freezes for users.
[0027] S12: Detecting the at least one main detection item.
[0028] Specifically, after the cloud application server is restarted, it detects the main detection items created in step S11. When the number of main detection items created in step S11 is one, the one main detection item is detected; when the number of main detection items created in step S11 is at least two, the main detection items are detected separately, wherein, if the detection result of one main detection item is unqualified, the other main detection items are no longer detected. Or if the detection result of one of the main detection items is unqualified, the other main detection items continue to be detected.
[0029] S13: Determine whether to put the cloud application server online or report for repair according to the detection result of the at least one main detection item.
[0030] Specifically, when the number of main detection items created in step S11 is one, if the detection result of this main detection item is qualified, the cloud application server can go online; otherwise, a repair request is made to the external management server. When the number of main detection items created in step S11 is at least two, if the detection results of all main detection items are qualified, the cloud application server can go online; if there are unqualified detection results, the cloud application server cannot go online, and a repair request needs to be made to the external management server. The online cloud application server waits for the user assigned to the cloud application by the external management server, thereby providing the user with a remote desktop of the cloud application.
[0031] Preferably, step S13 records the test results in a log file, including each test item created and its corresponding test result, and when a repair request is sent to an external management server, the log file is uploaded to the external management server.
[0032] See also Figure 2 In another embodiment, the cloud application server of the present application creates at least one secondary detection item in addition to creating at least one primary detection item. Specifically, the cloud application server creates at least one detection object of the secondary detection item based on non-essential parameters that affect the connection and operation of the cloud application server. Non-essential parameters refer to only recording data conditions, which are not used as self-test pass standards and are generally used for problem query and auxiliary judgment. For example: downlink bandwidth, service component version number, script check, number of components, etc.
[0033] In this embodiment, after the cloud application server performs the restart and boot operation, it first detects at least one major detection item, and after all major detection items are detected, it detects at least one minor detection item and records the relevant data in a log, wherein in the log file, the major detection items that have not been detected are marked as "not detected". This log can be used as a basis for subsequent inspections when problems occur in the cloud application server, and the implementation method is, for example: specifying the average downlink bandwidth of the cloud application server; updating and uploading the CFG files of two component versions each time a component is uploaded to the cloud application server, and the cloud application server detects the version number of the file after starting the self-check, which is used to query the version number of the component in this area; checking whether the number of startup scripts of this machine meets expectations, and checking whether the number and content of the startup scripts meet the operation and maintenance setting rules according to the configuration file; checking whether other components in this machine meet expectations, and checking whether the number and content of the startup components meet the upper limit setting rules according to the configuration file.
[0034] All or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. Based on such understanding, the present invention also provides a computer program product, including one or more computer instructions. The computer instructions can be stored in a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state hard disk (SSD)), etc.
[0035] See also Figure 3 This embodiment provides a self-checking device 30 for a cloud application server. Since the technical principle of this embodiment is similar to that of the aforementioned method embodiment, the same technical details will not be repeated. The self-checking device 30 for a cloud application server in this embodiment includes the following modules:
[0036] A detection item creation module 31, used to create at least one main detection item of the cloud application server after restarting;
[0037] The server self-check module 32 is used to check the at least one main check item and decide whether to put the cloud application server online or report for repair according to the check result of the at least one main check item.
[0038] In other embodiments, the detection item creation module 31 is also used to create at least one secondary detection item of the cloud application server after restarting; in this way, the server self-check module 32 first detects the at least one primary detection item, and then detects the at least one secondary detection item after all primary detection items are detected.
[0039] Furthermore, the server self-check module 32 is also used to record the detection results, generate a log file and send it to an external management server.
[0040] See also Figure 4 This embodiment provides an electronic device, which may be a desktop computer or other device. In detail, the electronic device at least includes: a memory and a processor connected via a bus, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to execute all or part of the steps in the aforementioned method embodiment.
[0041] The system bus mentioned above can be a Peripheral Pomponent Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage.
[0042] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0043] In summary, the self-check method, device, storage medium and electronic device of the cloud application server of the present invention reduce the probability of cloud application users being assigned to a faulty cloud application server, thereby improving the satisfaction and user experience of cloud application users, effectively overcoming the various shortcomings of the prior art and having a high industrial utilization value.
[0044] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A self-checking method for a cloud application server, characterized in that: Applied to a cloud application server; the method comprises: After restarting, at least one main detection item of the cloud application server is created; specifically, after the cloud application server is restarted, a detection object of the at least one main detection item is created according to necessary parameters that affect the connection and operation of the cloud application server, and necessary parameters refer to parameters that will cause the user to be unable to connect or have a poor experience if any parameter fails to meet the conditions; when creating the main detection item, the detection object and the qualification standard and repair standard of the detection object are set, and the qualification standard and the repair standard are established by writing thresholds and conditional statements; the qualification standard is used to determine whether the detection object is qualified, and the repair standard is used to determine whether to send a repair request for the detection object to an external management server; Performing detection on the at least one main detection item; Determining whether to put the cloud application server online or report for repair according to the detection result of the at least one main detection item; The decision to go online or report a repair based on the test results specifically includes: if the test results of all major test items are qualified, then go online to wait for the user assigned to the cloud application by the external management server, so as to provide the user with a remote desktop of the cloud application; otherwise, apply for a repair to the external management server; It also includes: creating at least one secondary detection item of the cloud application server; after performing the restart and boot operation, first detecting all the main detection items, and after all the main detection items are detected and qualified, then detecting the at least one secondary detection item; the cloud application server creates a detection object of at least one secondary detection item according to non-essential parameters that affect the connection and operation of the cloud application server, and the non-essential parameters refer to parameters that only record data conditions and are not used as self-test passing standards, and are used for problem query and auxiliary judgment; When the number of the main detection items is at least two, the method further includes: If the test result of one of the main test items is unqualified, the other main test items will no longer be tested; Marking major detections that were not detected as not detected in the log file; Or if the test result of one of the main test items is unqualified, the other main test items will continue to be tested.
2. The method according to claim 1, characterized in that The necessary parameters include component connectivity, multi-display settings, main display resolution, uplink bandwidth, CPU occupancy, GPU occupancy, RAM occupancy, and graphics card authorization; the non-essential parameters include downlink bandwidth, service component version number, script check, and component quantity.
3. The method according to claim 1, characterized in that Also includes: Record the test results, generate log files and send them to the external management server; The content of the log file includes: the created detection items and their corresponding detection results.
4. The method according to claim 1, characterized in that: The step of setting the detection object specifically includes: Creating a detection object of the at least one main detection item according to necessary parameters affecting the connection and operation of the cloud application server; A detection object of the at least one secondary detection item is created according to non-essential parameters that affect the operation of the cloud application server connection.
5. A self-checking device for a cloud application server, characterized in that: Applied to a cloud application server; the device comprises: A detection item creation module is used to create at least one main detection item of the cloud application server after restarting; specifically, after the cloud application server is restarted, a detection object of the at least one main detection item is created according to necessary parameters that affect the connection and operation of the cloud application server, and necessary parameters refer to parameters that will cause the user to be unable to connect or have a poor experience if any parameter does not meet the conditions; when creating the main detection item, the detection object and the qualification standard and repair standard of the detection object are set, and the qualification standard and the repair standard are established by writing thresholds and conditional statements; the qualification standard is used to determine whether the detection object is qualified, and the repair standard is used to determine whether to send a repair request for the detection object to an external management server; A server self-check module, used to detect the at least one main detection item; and to decide whether to put the cloud application server online or report for repair according to the detection result of the at least one main detection item; The decision to go online or report a repair based on the test results specifically includes: if the test results of all major test items are qualified, then go online to wait for the user assigned to the cloud application by the external management server, so as to provide the user with a remote desktop of the cloud application; otherwise, apply for a repair to the external management server; It also includes: creating at least one secondary detection item of the cloud application server; after performing the restart and boot operation, first detecting all the main detection items, and after all the main detection items are detected and qualified, then detecting the at least one secondary detection item; the cloud application server creates a detection object of at least one secondary detection item according to non-essential parameters that affect the connection and operation of the cloud application server, and the non-essential parameters refer to parameters that only record data conditions and are not used as self-test passing standards, and are used for problem query and auxiliary judgment; When the number of the main detection items is at least two, it also includes: If the test result of one of the main test items is unqualified, the other main test items will no longer be tested; Marking major detections that were not detected as not detected in the log file; Or if the test result of one of the main test items is unqualified, the other main test items will continue to be tested.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is loaded and executed by the processor, the self-checking method of the cloud application server as described in any one of claims 1 to 4 is implemented.
7. An electronic device, characterized in that: include: processor and memory; wherein, The memory is used to store computer programs; The processor is used to load and execute the computer program so that the electronic device executes the self-check method of the cloud application server as described in any one of claims 1 to 4.
