Unified management automation adaptation method and device based on PAAS platform, medium and equipment
By unifying the management of automated adaptation methods through the PaaS platform, the problem of low efficiency in manually adjusting adaptation parameters on the server for games is solved, realizing automated adaptation of games on the server and improving adaptation efficiency.
Patent Information
- Application Number
- CN202211490208.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-25
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2042-11-25
AI Technical Summary
In the prior art, the process of manually adjusting the adaptation parameters of the game on the server is cumbersome, resulting in low efficiency and consuming a lot of manpower and time costs.
By using the PaaS platform to uniformly manage automated adaptation methods, target games are selected and uploaded to the cloud storage platform. The target device model is determined and the target adaptation parameter set is sent, enabling the server of the target device model to automatically adapt the game.
Save labor and time costs, improve game adaptation efficiency, and realize automatic adaptation of games on the server.
Smart Images

Figure CN115914343B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of game adaptation, and particularly relates to a PAAS platform unified management automatic adaptation method and device, medium and equipment. BACKGROUND
[0002] With the rapid development of cloud game technology, more and more games choose to be clouded, that is, game development adopts a traditional way, only the deployment, distribution, service and the like are implemented on the cloud. At present, in order to realize game clouding, the game is run on the server in advance, then according to different resources consumed by the game, the manual adjustment of the adaptation parameters of the game on the server is adopted in an artificial way, the adaptation of a game on the server is performed, thereby the game is optimized and game clouding is realized.
[0003] However, the manual adjustment of the adaptation parameters of the game on the server in an artificial way is relatively cumbersome, and a large amount of manual and time costs are consumed, thereby the efficiency of game adaptation is low. SUMMARY
[0004] In order to improve the efficiency of game adaptation, the present application provides a PAAS platform unified management automatic adaptation method and device, medium and equipment.
[0005] In a first aspect of the present application, a PAAS platform unified management automatic adaptation method is provided, which specifically comprises the following steps.
[0006] Selecting a target game from a plurality of preset games, and uploading the target game to a cloud storage platform;
[0007] Selecting a server of a target model from a preset server model list, wherein the server model list comprises servers of a plurality of models;
[0008] Determining a target adaptation parameter set corresponding to the target model, and sending the target adaptation parameter set to the server of the target model to enable the server of the target model to download the target game from the cloud storage platform, and enabling the server of the target model to adapt the target game based on the target adaptation parameter set and a preset automatic adaptation script.
[0009] By adopting the technical scheme, the target game currently in need of adaptation is determined from the plurality of games in need of adaptation pre-recorded into the PAAS platform, the target game is first uploaded to the cloud storage platform for temporary storage, then the server of the target model for adapting the target game is determined from the server model list in the PAAS platform, the corresponding target adaptation parameter set is called from the adaptation file in the PAAS platform according to the determined target model, and finally the PAAS platform sends the target adaptation set to the server of the target model, so that the server of the target model can automatically adapt the target game downloaded from the cloud storage platform by using the plurality of adaptation parameters in the target adaptation parameter set. The automatic adaptation script is pre-deployed in the server of the target model, and the target game is continuously matched and adjusted by the adaptation parameters under the action of the automatic adaptation script. Therefore, the manual and time costs can be saved, and the efficiency of game adaptation is improved.
[0010] Optionally, the selecting the target game from the plurality of preset games and uploading the target game to the cloud storage platform comprises:
[0011] selecting the name of the target game from the preset game list, and calling the corresponding game package according to the name of the target game, wherein the game list comprises the names of the plurality of games and the corresponding game packages;
[0012] uploading the game package to the cloud storage platform for storage.
[0013] By adopting the technical scheme, when the target game currently in need of adaptation is determined, the name of the target game is selected from the game list comprising the names of the plurality of games, then the game package matching the name of the target game is called from the PAAS platform, and the target package of the target game is uploaded to the cloud storage platform. Therefore, the server in need of adaptation can directly download the corresponding game package from the cloud storage platform, and the efficiency of the server in obtaining the target game is improved.
[0014] Optionally, after the uploading the game package to the cloud storage platform for storage, the method further comprises:
[0015] receiving the storage address corresponding to the game package returned by the cloud storage platform;
[0016] the determining the target adaptation parameter set corresponding to the target model and the sending the target adaptation parameter set and the storage address to the server of the target model so that the server of the target model downloads the target game from the cloud storage platform, and the server of the target model adapts the target game based on the target adaptation parameter set and the preset automatic adaptation script, comprises:
[0017] determining the target adaptation parameter set corresponding to the target model;
[0018] sending the target adaptation parameter set and the storage address to the server of the target model, so that the server of the target model downloads the target game from the cloud storage platform according to the storage address of the game package, and so that the server of the target model adapts the target game based on the target adaptation parameter set and runs a preset automatic adaptation script.
[0019] By adopting the technical scheme, after the game package of the target game is uploaded to the cloud storage platform, a corresponding storage address is generated, the PAAS platform stores the storage address, after a target model for adapting the target game is selected, a target adaptation parameter set used for adapting the target game is determined according to the target model, and then the target adaptation parameter set and the storage address of the game package are sent to the server of the target model, so that the server can download the correct target game from the cloud storage platform according to the storage address. Finally, the target adaptation parameter set is used to automatically adapt the target game.
[0020] Optionally, the sending of the target adaptation parameter set and the storage address to the server of the target model, so that the server of the target model downloads the target game from the cloud storage platform according to the storage address of the game package, and so that the server of the target model adapts the target game based on the target adaptation parameter set and runs a preset automatic adaptation script, comprises:
[0021] sending the target adaptation parameter set and the storage address to the server of the target model, and sending an adaptation command to the server of the target model, so that the server of the target model receives the adaptation command and downloads the target game from the cloud storage platform according to the storage address of the game package, and so that the server of the target model adapts the target game based on the target adaptation parameter set and runs a preset automatic adaptation script.
[0022] By adopting the technical scheme, when the target game adaptation is formally performed, the PAAS platform initiates the automatic adaptation, and sends the target adaptation parameter set and the storage address to the server of the target model, and also sends an adaptation command at the same time. The server of the target model receives the adaptation command and immediately downloads the target game from the cloud storage platform according to the storage address, and continuously adjusts and adapts the target game by using the target adaptation parameter set, so that the game adaptation automation is realized, and the adaptation efficiency is improved.
[0023] Optionally, the determining of the target adaptation parameter set corresponding to the target model comprises:
[0024] obtaining an adaptation file, the adaptation file comprising models of respective servers and corresponding adaptation parameter sets.
[0025] matching the target adaptation parameter set corresponding to the target model from the adaptation file.
[0026] By adopting the technical solution, the adaptation file pre-stored in the PAAS platform is acquired, the target adaptation parameter set needed by the target model is matched from the adaptation file after the target model of the target game is determined, the target adaptation parameter set is sent to the server of the target model, so that the target adaptation parameter set adapted by the server of the target model can be conveniently determined, and the subsequent server can also use the automatic adaptation script to continuously match and adjust the adaptation parameter to determine the optimal adaptation parameter.
[0027] Optionally, the determination of the target adaptation parameter set corresponding to the target model and the sending of the target adaptation parameter set to the server of the target model to enable the server of the target model to download the target game from the cloud storage platform, so that the server of the target model performs adaptation on the target game based on the target adaptation parameter set and the pre-stored automatic adaptation script, further comprises:
[0028] receiving an adaptation result sent by the server of the target model, the adaptation result being the optimal adaptation parameter in the target adaptation parameter set obtained by the server of the target model according to the target adaptation parameter set and the target model;
[0029] sending a remote debugging command and the adaptation result to the server of the target model, and acquiring adaptation effect information of the target game running on the server of the target model based on the adaptation result based on the remote debugging command;
[0030] adjusting the adaptation result according to the adaptation effect information and pre-stored business requirement information.
[0031] By adopting the technical solution, after the target game adaptation is completed, the PAAS platform receives the optimal adaptation parameter obtained by the server of the target model based on the target adaptation parameter set and the target model, that is, the adaptation result, and stores the adaptation result, so that the adaptation results of the servers of various models can be better uniformly managed. Then, the remote debugging command and the adaptation result are sent to the server of the target model, the effect of the target game running on the server based on the adaptation result is observed, if the effect is not as good as the running effect of the target game on the local client, it is indicated that the adaptation result is not optimal, and the adaptation result stored in the PAAS platform is modified according to the business requirement information, so that the adaptation results stored in the PAAS platform are all optimal.
[0032] Optionally, the adjusting the adaptation information according to the adaptation effect information and the preset service requirement information comprises:
[0033] comparing the adaptation effect information with normal adaptation information;
[0034] if the adaptation effect information is inconsistent with the normal adaptation information, adjusting the adaptation result to the service requirement information.
[0035] By using the above technical solution, after obtaining the adaptation result information by remotely debugging the server of the target model, the adaptation effect information is compared with the normal adaptation, that is, the running effect of the target game on the server of the target model is compared with the running effect of the target game on the local client. If the running effect on the server of the target model is not as good as the running effect on the local client, it means that this adaptation result is not the optimal adaptation parameter, and the adaptation parameter needs to be adjusted again. The adaptation parameter of the adaptation result stored in the PAAS platform is adjusted to the adaptation parameter contained in the preset service requirement information, so that the adaptation results uniformly managed in the PAAS platform are as optimal as possible, and the optimal adaptation parameter is directly available for the servers of different models in the subsequent process.
[0036] In a second aspect of the present application, an automatic adaptation device based on a PAAS platform is provided, which specifically comprises:
[0037] a target game selection module (11) configured to select a target game from a plurality of preset games and upload the target game to a cloud storage platform;
[0038] a target model selection module (12) configured to select a server of a target model from a preset server model list, wherein the server model list comprises servers of a plurality of models;
[0039] an automatic adaptation parameter module (13) configured to determine a target adaptation parameter set corresponding to the target model and send the target adaptation parameter set to the server of the target model to enable the server of the target model to download the target game from the cloud storage platform, and enable the server of the target model to adapt the target game based on the target adaptation parameter set and a preset automatic adaptation script.
[0040] By adopting the technical scheme, the target game selection module selects a target game currently requiring adaptation from a plurality of games entered in advance, then the target model selection module selects a server of a target model adapting the target game from a preset server model list, finally the automatic adaptation parameter module determines a target adaptation parameter set according to the target model and sends the target adaptation parameter set to the server of the target model, so that the server can adapt the target game through an automatic adaptation script based on the target adaptation set, and continuously match and adjust the adaptation parameters.
[0041] In summary, the present application includes at least one of the following beneficial technical effects:
[0042] By determining the target game currently requiring adaptation from a plurality of games requiring adaptation entered in advance into the PAAS platform, the target game is first uploaded to the cloud storage platform for temporary storage, then the server of the target model adapting the target game is determined from the server model list in the PAAS platform, the corresponding target adaptation parameter set is called from the adaptation file in the PAAS platform according to the determined target model, finally the PAAS platform sends the target adaptation set to the server of the target model, so that the server of the target model can automatically adapt the target game downloaded from the cloud storage platform with the plurality of adaptation parameters in the target adaptation parameter set, which can save labor and time cost and improve the efficiency of game adaptation. BRIEF DESCRIPTION OF DRAWINGS
[0043] Figure 1 is an architecture schematic diagram of a PAAS platform unified management automatic adaptation system provided by an embodiment of the present application;
[0044] Figure 2 is a flow schematic diagram of a PAAS platform unified management automatic adaptation method provided by an embodiment of the present application;
[0045] Figure 3 is a schematic diagram of a server model list provided by an embodiment of the present application;
[0046] Figure 4 is a flow schematic diagram of another PAAS platform unified management automatic adaptation method provided by an embodiment of the present application;
[0047] Figure 5 is a flow schematic diagram of still another PAAS platform unified management automatic adaptation method provided by an embodiment of the present application;
[0048] Figure 6 is a schematic diagram of interaction between a server and a PAAS platform after target game adaptation provided by an embodiment of the present application;
[0049] Figure 7is a structural schematic diagram of a unified management automation adaptation device based on a PAAS platform provided by an embodiment of the present application.
[0050] Figure 8 is another structural schematic diagram of a unified management automation adaptation device based on a PAAS platform provided by an embodiment of the present application.
[0051] Label explanation: 11, target game selection module; 12, target model selection module; 13, automatic adaptation parameter module. DETAILED DESCRIPTION
[0052] In order for those skilled in the art to better understand the technical solutions in the present specification, the technical solutions in the present specification will be clearly and completely described below in combination with the drawings in the embodiments of the present specification. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments.
[0053] In the description of the embodiments of the present application, the words such as "exemplary", "for example", or "for instance" are used to mean example, illustration, or description. Any embodiment or design scheme described as "exemplary", "for example", or "for instance" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words such as "exemplary", "for example", or "for instance" are intended to present the relevant concept in a specific way.
[0054] Referring to Figure 1 The embodiments of the present application disclose a structural schematic diagram of a unified management automation adaptation system based on a PAAS platform, specifically comprising: a PAAS platform, a server, and a cloud storage platform.
[0055] Specifically, the PAAS platform inputs in advance the target game that needs to be adapted, the PAAS platform uploads the game package of the target game to the cloud storage platform for temporary storage, the cloud storage platform generates a corresponding storage address after storing the game package, sends the storage address to the PAAS platform, the PAAS platform receives the storage address, then initiates an adaptation command to the server that adapts the target game, and sends the storage address and the target adaptation parameter set matched according to the model of the server to the server, the server receives the adaptation command, downloads the game package of the target game from the cloud storage platform with the storage address, then the automatic adaptation script in the server automatically adapts the target game with the target adaptation parameter set, and continuously adjusts the adaptation parameters. It should be noted that the target game can be multiple, and the server can also be multiple, and multiple target games can be simultaneously adapted automatically in different servers.
[0056] Referring to Figure 2The embodiment of the application discloses a flow diagram of a PAAS platform unified management automatic adaptation method, which can be realized by relying on a computer program and can also run on a PAAS platform unified management automatic adaptation device based on a von Neumann system. The computer program can be integrated in an application or run as an independent tool application, and specifically comprises the following steps.
[0057] S101: selecting a target game from a plurality of preset games and uploading the target game to a cloud storage platform.
[0058] Specifically, a (Platform-as-a-Service, PAAS) platform provides a business model of taking the running and development environment of an application service as a service. A service provided by a program through a network is called (Software as a Service, SaaS), and a corresponding server platform or development environment provided as a service in the cloud computing era is PAAS, which can provide a development and running environment for an application program.
[0059] The plurality of preset games refer to a plurality of games that need to be adapted on a server and are input into the PAAS platform in advance. The reason why the games need to be adapted on the server is as follows: because there are a large number of games that need to be clouded, in order to make the clouded games, that is, cloud games, run better on the server, the games need to be adapted on the server to continuously adjust the adaptation parameters.
[0060] Cloud storage is an online storage mode, that is, data storage is managed by a third-party virtual server, rather than a dedicated server. In the embodiment of the application, the cloud storage platform is an (Object Storage Service, OSS) cloud storage platform, which is a massive, secure, low-cost, high-reliability cloud storage service provided by Ali Cloud. In other embodiments, the cloud storage platform can also be a Tencent Cloud (Cloud Object Storage, COS) cloud storage platform. The PAAS platform receives an external selection instruction, selects a target game that needs to be adapted from a plurality of preset games, and uploads the target game to the cloud storage platform for temporary storage. It should be noted that the target game can be a single game, and the adaptation of the single game is performed. In other embodiments, the target game can also be a plurality of games, and the adaptation of the plurality of games is performed simultaneously.
[0061] S102: selecting a target server from a preset server model list, and the server model list comprising a plurality of servers of different models.
[0062] Specifically, as Figure 3As shown is a schematic diagram of a server model list provided by the embodiment, the pre-stored server model list refers to various models of servers pre-entered into the PAAS platform. Through the server model list, various models of servers can be better managed, and the physical servers under each model can be managed. The way to select a target model of server from the server model list is: receiving an externally input selection instruction (an instruction to select a specific model), and the PAAS platform selects a target model of server for target game adaptation from the server list according to the selection instruction. It should be noted that the target model is determined by personnel in advance. In addition, the target model of server is single in the embodiment, and in other embodiments, the target model of server can be multiple, that is, multiple servers simultaneously perform game adaptation.
[0063] For example, the server model list includes: the model of 2060 corresponds to A server in the computer room, the model of 2050 corresponds to B server in the computer room, etc., and here 2060 and 2050 specifically refer to the video card type of the server. When the selected model is 2060, the corresponding server is A server. The target game is ultimately adapted on A server.
[0064] S103: Determine a target adaptation parameter set corresponding to the target model, and send the target adaptation parameter set to the server of the target model to make the server of the target model download the target game from the cloud storage platform, so that the server of the target model adapts the target game based on the target adaptation parameter set and runs the pre-stored automatic adaptation script.
[0065] Specifically, the adaptation parameter types include game start mode, whether to support archive, audio buffering, codec, resolution, frame rate, code rate, and game operation mode, etc. In the embodiment, the frame rate is taken as an example for illustration. Frame rate is the rate at which a frame of a bitmap image appears on the display. The higher the frame rate, the smoother the picture. The target adaptation parameter set represents multiple adaptation parameters, and can also represent a range of adaptation parameters. After the target model is determined, the target adaptation parameter set corresponding to the target model is determined according to the pre-stored adaptation file in the PAAS platform. The function of the adaptation file is: for various different models, the function of providing the corresponding target adaptation parameter set. Then the PAAS platform initiates adaptation to the server of the target model, and sends the target adaptation parameter set to the server of the target model, so that the server of the target model downloads the target game pre-stored in the cloud storage platform to the local, and makes the server of the target model use the pre-deployed automatic adaptation script to adapt the target model one by one with multiple adaptation parameters in the target adaptation parameter set.
[0066] Referring to Figure 4The embodiment of the application discloses another flow diagram of a unified management automation adaptation method based on a PAAS platform, can rely on a computer program to be implemented, and can also run on a PAAS platform unified management automation adaptation device based on a Von Neumann system. The computer program can be integrated in an application, or can run as an independent tool application. Specifically, the computer program comprises the following steps of:
[0067] S201: selecting a target game name from a preset game list, and calling a corresponding game package according to the target game name, wherein the game list comprises a plurality of game names and corresponding game packages.
[0068] S202: uploading the game package to a cloud storage platform for storage.
[0069] Specifically, the preset game list is set by the PAAS platform to uniformly manage a plurality of adaptation games. The game list contains a plurality of game names and corresponding game packages. The game package is actually a game installation package, and the plurality of game names in the game list are input in advance according to the uploaded game package, because the game package of the game to be adapted needs to be uploaded to the PAAS platform in advance. After the PAAS platform receives a selection instruction of the target game name, the game package corresponding to the target game name is called from the game list, and the game package is directly uploaded to the cloud storage platform.
[0070] For example, the game list comprises A game, B game, C game, and corresponding game packages com.a.x.apk, com.b.y.apk and com.c.z.apk. The target game name selected from the A game, B game and C game is the B game, so the game package com.b.y.apk corresponding to the B game is called and uploaded to the cloud storage platform for temporary storage.
[0071] S203: receiving a storage address corresponding to the game package returned by the cloud storage platform.
[0072] Specifically, after the PAAS platform uploads the game package of the target game to the cloud storage platform, the cloud storage platform stores the game package and generates a corresponding storage address and sends the storage address to the PAAS platform. The storage address is a uniform resource locator (URL) address, which is a method for specifying the location of information. The PAAS platform receives the storage address corresponding to the game package of the target game sent by the cloud storage platform.
[0073] S204: selecting a target server from a preset server model list, wherein the server model list comprises a plurality of servers of different models.
[0074] Specifically, reference can be made to step S102, which will not be repeated here.
[0075] S205: Determine the target adaptation parameter set corresponding to the target model.
[0076] In an implementable manner, an adaptation file is obtained, which includes models of various servers and corresponding adaptation parameter sets.
[0077] The target adaptation parameter set corresponding to the target model is matched from the adaptation file.
[0078] Specifically, after the server of the target model is determined, the adaptation file preset in the PAAS platform is called, which can be understood as an adaptation parameter and model table. The adaptation file includes various models and corresponding adaptation parameter sets. According to the determined target model, the corresponding target adaptation parameter set can be matched from the adaptation file. For example, the adaptation file includes 2060 model, 2040 model, 2030 model, and corresponding adaptation parameter sets of 30-40 frame rate, 10-20 frame rate, and 0-10 frame rate. If the determined target model is 2060, the determined target adaptation parameter set for adapting the target game is 30-40 frame rate.
[0079] S206: Send the target adaptation parameter set and the storage address to the server of the target model, and send an adaptation command to the server of the target model to make the server of the target model receive the adaptation command and download the target game from the cloud storage platform according to the storage address of the game package, so that the server of the target model adapts the target game based on the target adaptation parameter set and runs the preset automatic adaptation script.
[0080] In an implementable manner, the target adaptation parameter set and the storage address are sent to the server of the target model to make the server of the target model download the target game from the cloud storage platform according to the storage address of the game package, so that the server of the target model adapts the target game based on the target adaptation parameter set and runs the preset automatic adaptation script.
[0081] Specifically, after determining the target adaptation parameter set, the PAAS platform sends an adaptation command to the server of the target model, and sends the target adaptation parameter set and the storage address of the target game to the server of the target model. After the server of the target model receives the adaptation command, it first accesses the cloud storage platform, then finds the game package of the target game from the cloud storage platform according to the storage address received by the server of the target model, and downloads the game package to the local server. Finally, the server starts the target game and the pre-deployed automatic adaptation script, and runs the target game with each adaptation parameter in the target adaptation parameter set one by one, constantly adjusting the adaptation parameters to ensure the running effect of the target game on the server, that is, the target game has good game quality, good smoothness, and good audio and video transmission, etc. It should be noted that after adjusting the adaptation parameters each time, the server of the target model will restart the target game, and run the target game on the server of the target model with the adjusted adaptation parameters.
[0082] For example, the target model is 2060, the server of the target model corresponds to A server in the machine room, the target adaptation parameter set matched by the target model is 30-40 frame rate, then the PAAS platform sends an adaptation command to the A server, and sends the target adaptation parameter set of 30-40 frame rate and the storage address of the target game at the same time, after the A server receives the adaptation command, it downloads the target game from the cloud storage platform according to the storage address, starts the target game, and runs the target game at 30 frame rate. After the running is completed, the game is restarted, and the target game is run at 31 frame rate. The values in the range of 30-40 frame rate are sequentially used as adaptation parameters to run the target game.
[0083] Referring to Figure 5 The embodiment of the application discloses another flow diagram of a PAAS platform unified management automatic adaptation method, which can be implemented by relying on a computer program, and can also be run on a PAAS platform unified management automatic adaptation device based on the von Neumann system. The computer program can be integrated in an application, or can be run as an independent tool application. Specifically, the computer program comprises:
[0084] S301: selecting a target game from a plurality of preset games, and uploading the target game to a cloud storage platform.
[0085] S302: selecting a server of a target model from a preset server model list, the server model list comprising servers of a plurality of models.
[0086] S303: Determine the target adaptation parameter set corresponding to the target model, and send the target adaptation parameter set to the server of the target model to make the server of the target model download the target game from the cloud storage platform, so that the server of the target model adapts the target game based on the target adaptation parameter set and runs the preset automatic adaptation script.
[0087] Specifically, reference can be made to steps S101-S103, which are not described here again.
[0088] S304: Receive the adaptation result sent by the server of the target model, and the adaptation result is the optimal adaptation parameter in the target adaptation parameter set obtained by the server of the target model according to the target adaptation parameter set and the target model.
[0089] Specifically, as shown in Figure 6 The server and the PAAS platform interact after the target game adaptation ends. After the target game runs on the server of the target model with multiple adaptation parameters in the target adaptation parameter set, the PAAS platform receives the final adaptation result sent by the server of the target model, and also stores the adaptation result, so that the adaptation result of each target game and the adapted model can be queried through the PAAS platform. The origin of the adaptation result is as follows: the server of the target model determines the optimal adaptation parameter that makes the target game run best on the server of the target model according to the running effect of the target game with each adaptation parameter in the target adaptation parameter set, that is, the adaptation result.
[0090] For example, the target adaptation parameter set includes frame rates from 1 to 10, and the target game runs on the server of the target model with 1, 2, 3, …, 10 adaptation parameters. If the target game runs at a frame rate of 2, the game quality is best and the picture is most smooth, etc., then the server of the target model generates an adaptation result according to the target game and the target model after adaptation, that is, a fixed adaptation parameter, that is, a frame rate of 2.
[0091] S305: Send a remote debugging command and an adaptation result to the server of the target model, and obtain adaptation effect information of the target game running on the server of the target model with the adaptation result based on the remote debugging command.
[0092] Specifically, as shown in Figure 6As shown, after receiving and storing the adaptation result sent by the server of the target model, the PAAS platform also receives an external input instruction, sends a remote debugging command and the stored adaptation result to the server of the target model. Because the adaptation result obtained through automatic adaptation by the server of the target model can not be optimal, for example, the adaptation result of automatic adaptation of frame rate is 30 frames, but personnel feel that running the game at this frame rate can cause frame freezing and dropping, and adjustment and optimization need to be performed on the basis of the adaptation result of 30 frames to ensure the best effect of game running, so an instruction is input to the PAAS platform to re-adjust and optimize the adaptation result. It should be noted that the remote debugging command is a command for the PAAS platform to observe the effect of the target game running on the server of the target model in real time.
[0093] After sending the remote debugging command and the adaptation result to the server of the target model, the server of the target model starts the target game again according to the remote debugging command and runs the target game according to the adaptation result. When running on the server of the target model, the server of the target model synchronously sends the adaptation effect information of the target game to the PAAS platform in real time. Based on the remote debugging command, the PAAS platform receives the adaptation effect information sent by the server of the target model, thereby realizing real-time monitoring of the adaptation effect of the target game on the server of the target model, such as game quality, game fluency, audio and video transmission, and the like.
[0094] S306: Adjust the adaptation result according to the adaptation effect information and the preset business requirement information.
[0095] In an implementable manner, the adaptation effect information is compared with normal adaptation information.
[0096] If the adaptation effect information is inconsistent with the normal adaptation information, the adaptation result is adjusted to the business requirement information.
[0097] Specifically, the business requirement information is an adaptation parameter that is best for running the target game on the server of the target model, and in the embodiments of the present application, the adaptation parameter is mainly resolution and frame rate. The normal adaptation information is that the target game is normally started on the server and achieves the same effect as running the game on the local client. After the PAAS platform obtains the adaptation effect information, the adaptation effect information is compared with the normal adaptation information. If the adaptation effect information is inconsistent with the normal adaptation information, it means that the PAAS platform observes that the adaptation effect (the running effect of the adaptation result on the server of the target model) of the target game is not as good as the running effect of the target game on the local client, which means that the adaptation parameter in the adaptation result stored in the PAAS platform is not the optimal adaptation parameter. Therefore, the stored adaptation result is modified as the business requirement information. Thus, the PAAS platform can uniformly manage the adaptation result of the target game on the server of the model that has been adapted, and facilitate subsequent direct calling of the corresponding adaptation result by the target game cloud, so that the target game can run better on the server.
[0098] For example, the server of the target model is a B server of a 2060 model, and the adaptation result of the frame rate automatically adapted by the B server is 30 frames. The personnel are worried that running the game at this frame rate may cause stuttering and frame dropping, so they input an operation instruction. The PAAS platform initiates remote debugging to the B server. The B server starts the target game and runs the target game at a frame rate of 30 frames. The PAAS platform can observe the adaptation effect of the target game on the B server in real time. If the target game runs with a picture that is indeed stuttering and frame dropping, the personnel evaluate that the effect will be improved if the frame rate is adjusted to 45 frames. Therefore, the personnel input the business requirement information to the PAAS platform, that is, the business requirement information preset by the PAAS platform is 45 frames. The stored adaptation result of 30 frames is modified to 45 frames. Finally, 45 frames are uniformly managed as the final adaptation result of the target game on the B server.
[0099] The implementation principle of the automatic adaptation method uniformly managed by the PAAS platform in the embodiments of the present application is as follows: the PAAS platform selects a target game from a plurality of games preset internally, and selects a server of a target model from a preset server model list. According to the target model, a corresponding target adaptation parameter set is matched. The game package of the target game is uploaded to a cloud storage platform, and a storage address of the game package is obtained. Then, an adaptation command is sent to the server of the target model, and the target adaptation parameter set and the storage address are sent together. The server of the target model downloads the game package of the target game from the cloud storage platform according to the adaptation command and the storage address, and adapts the target game by using the target adaptation parameter set. Thus, the labor and time cost of game adaptation is saved, and the efficiency of game adaptation is improved.
[0100] The following is an embodiment of the device of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the device embodiment of the present application, please refer to the method embodiment of the present application.
[0101] Please refer to Figure 7 The structure diagram of the device for unified management of automatic adaptation of devices based on a PAAS platform is provided in the embodiment of the present application. The device for unified management of automatic adaptation of devices based on a PAAS platform can be realized by software, hardware or a combination of the two to become all or part of the device. The device 1 comprises a target game selection module 11, a target model selection module 12 and an automatic adaptation parameter module 13.
[0102] The target game selection module 11 is used to select a target game from a plurality of preset games, and upload the target game to a cloud storage platform.
[0103] The target model selection module 12 is used to select a target model server from a preset server model list, and the server model list comprises a plurality of servers of different models.
[0104] The automatic adaptation parameter module 13 is used to determine a target adaptation parameter set corresponding to the target model, and send the target adaptation parameter set to the target model server to enable the target model server to download the target game from the cloud storage platform, and enable the target model server to adapt the target game based on the target adaptation parameter set and run a preset automatic adaptation script.
[0105] Optionally, the target game selection module 11 is specifically used for:
[0106] selecting a name of the target game from a preset game list, and calling a corresponding game package according to the name of the target game, wherein the game list comprises a plurality of names of games and corresponding game packages;
[0107] uploading the game package to the cloud storage platform for storage.
[0108] Optionally, as shown in Figure 8 The device 1 further comprises a storage address acquisition module 14, which is specifically used for:
[0109] receiving a storage address corresponding to the game package returned by the cloud storage platform.
[0110] Optionally, the automatic adaptation parameter module 13 is specifically used for:
[0111] determining a target adaptation parameter set corresponding to the target model;
[0112] send the target adaptation parameter set and the storage address to the server of the target model, and send an adaptation command to the server of the target model to make the server of the target model receive the adaptation command and download the target game from the cloud storage platform according to the storage address of the game package, so that the server of the target model adapts the target game based on the target adaptation parameter set and runs the preset automatic adaptation script.
[0113] Optionally, the automatic adaptation parameter module 13 is further configured to:
[0114] send the target adaptation parameter set and the storage address to the server of the target model, and send an adaptation command to the server of the target model to make the server of the target model receive the adaptation command and download the target game from the cloud storage platform according to the storage address of the game package, so that the server of the target model adapts the target game based on the target adaptation parameter set and runs the preset automatic adaptation script.
[0115] Optionally, the automatic adaptation parameter module 13 is further configured to:
[0116] obtain an adaptation file, the adaptation file including models of various servers and corresponding adaptation parameter sets;
[0117] match the target adaptation parameter set corresponding to the target model from the adaptation file.
[0118] Optionally, the device 1 further comprises a remote debugging module 15, which is specifically configured to:
[0119] receive an adaptation result sent by the server of the target model, the adaptation result being the optimal adaptation parameter in the target adaptation parameter set obtained by the server of the target model according to the target adaptation parameter set and the target model;
[0120] send a remote debugging command and the adaptation result to the server of the target model, and obtain adaptation effect information of the target game running on the server of the target model with the adaptation result based on the remote debugging command;
[0121] adjust the adaptation result according to the adaptation effect information and preset business requirement information.
[0122] Optionally, the remote debugging module 15 is further configured to:
[0123] compare the adaptation effect information with normal adaptation information;
[0124] if the adaptation effect information is inconsistent with the normal adaptation information, adjust the adaptation result to the business requirement information.
[0125] It should be noted that the above embodiment provides a kind of unified management automation adaptation device based on PAAS platform, and when the unified management automation adaptation method based on PAAS platform is executed, only the division of the above each functional module is exemplified, and in actual application, the above function can be completed by different functional modules according to needs, i.e. the internal structure of equipment is divided into different functional modules, to complete all or part of the functions described above. In addition, the unified management automation adaptation device based on PAAS platform and the unified management automation adaptation method based on PAAS platform provided in the above embodiment belong to the same concept, and the implementation process is embodied in the method embodiment, which will not be repeated here.
[0126] The embodiment of the application further discloses a computer readable storage medium, and the computer readable storage medium stores a computer program, wherein the computer program is executed by a processor to adopt the unified management automation adaptation method based on the PAAS platform.
[0127] The computer program can be stored in the computer readable medium, and the computer program includes computer program code, which can be in the form of source code, object code, executable file or some middleware form, etc. The computer readable medium includes any entity or device, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. that can carry computer program code. It should be noted that the computer readable medium includes but is not limited to the above components.
[0128] The computer readable storage medium stores the unified management automation adaptation method based on the PAAS platform in the computer readable storage medium, and is loaded and executed on the processor to facilitate the storage and application of the method.
[0129] The embodiment of the application further discloses an electronic device, and the computer readable storage medium stores a computer program, and the computer program is loaded and executed by the processor to adopt the unified management automation adaptation method based on the PAAS platform.
[0130] The electronic device can be a desktop computer, a notebook computer or a cloud server, and the electronic device includes but is not limited to a processor and a memory. For example, the electronic device can further include an input / output device, a network access device and a bus.
[0131] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), programmable logic devices (PLD), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, and the present application is not limited thereto.
[0132] The memory can be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device, or an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital card (SD), or a flash memory card (FC) provided on the electronic device. The memory can also be a combination of the internal storage unit and the external storage device of the electronic device. The memory is used to store computer programs and other programs and data required by the electronic device. The memory can also be used to temporarily store data that has been output or will be output, and the present application is not limited thereto.
[0133] The electronic device stores the PAAS platform-based unified management and automation adaptation method of the above embodiments in the memory of the electronic device, and loads and executes the method on the processor of the electronic device, which is convenient to use.
[0134] The above description is only exemplary embodiments of the present disclosure, and cannot limit the scope of the present disclosure. Any equivalent changes and modifications made in accordance with the teachings of the present disclosure are still within the scope of the present disclosure. Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon considering the specification and practicing the present disclosure. The present application is intended to cover any variations, uses, or adaptive changes of the present disclosure that follow the general principles of the present disclosure and include common knowledge or conventional techniques in the art that are not described in the present disclosure. The specification and embodiments are only considered exemplary, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A method for unified management of automation adaptation based on a PAAS platform, characterized in that, The method is applied to a PAAS platform, and the method comprises the following steps: selecting a target game from a plurality of preset games, uploading the target game to a cloud storage platform, receiving a storage address corresponding to a game package of the target game returned by the cloud storage platform; selecting a server of a target model from a preset server model list, the server model list comprising servers of a plurality of models; determining a target adaptation parameter set corresponding to the target model, and sending the target adaptation parameter set to the server of the target model to enable the server of the target model to download the target game from the cloud storage platform, to enable the server of the target model to adapt the target game based on the target adaptation parameter set and run a preset automatic adaptation script, comprising: determining a target adaptation parameter set corresponding to the target model; sending the target adaptation parameter set and the storage address to the server of the target model to enable the server of the target model to download the target game from the cloud storage platform according to the storage address of the game package, to enable the server of the target model to adapt the target game based on the target adaptation parameter set and run a preset automatic adaptation script, wherein a plurality of target games can be simultaneously automatically adapted on different servers, the PAAS platform initiates adaptation to the server of the target model, so that the server of the target model uses the automatic adaptation script deployed in advance, and uses a plurality of adaptation parameters in the target adaptation parameter set to adapt the target model one by one, comprising: the server starts the target game and the automatic adaptation script deployed in advance, and runs the target game one by one with each adaptation parameter in the target adaptation parameter set. 2.The PAAS platform-based unified management automation adaptation method according to claim 1, characterized in that, The step of selecting a target game from a plurality of preset games and uploading the target game to a cloud storage platform comprises the following steps: selecting a name of a target game from a preset game list, and calling a corresponding game package according to the name of the target game, the game list comprising names of a plurality of games and corresponding game packages; uploading the game package to the cloud storage platform for storage. 3.The PAAS platform-based unified management automation adaptation method according to claim 1, characterized in that, The step of sending the target adaptation parameter set and the storage address to the server of the target model to enable the server of the target model to download the target game from the cloud storage platform according to the storage address of the game package, to enable the server of the target model to adapt the target game based on the target adaptation parameter set and run a preset automatic adaptation script comprises the following steps: sending the target adaptation parameter set and the storage address to the server of the target model, and sending an adaptation command to the server of the target model to enable the server of the target model to receive the adaptation command and download the target game from the cloud storage platform according to the storage address of the game package, to enable the server of the target model to adapt the target game based on the target adaptation parameter set and run a preset automatic adaptation script. 4.The PAAS platform-based unified management and automation adaptation method according to claim 1, characterized in that, The step of determining a target adaptation parameter set corresponding to the target model comprises the following steps: obtain an adaptation file, the adaptation file including a model of each server and a corresponding set of adaptation parameters; match a target set of adaptation parameters corresponding to the target model from the adaptation file. 5.The PAAS platform-based unified management and automation adaptation method according to claim 1, characterized in that, The method further includes: receive an adaptation result sent by the server of the target model, the adaptation result being an optimal adaptation parameter in the target set of adaptation parameters obtained by the server of the target model according to the target set of adaptation parameters and the target model; send a remote debugging command and the adaptation result to the server of the target model, and obtain adaptation effect information of the target game running on the server of the target model based on the remote debugging command and the adaptation result; adjust the adaptation result according to the adaptation effect information and preset business requirement information. 6.The PAAS platform-based unified management and automation adaptation method according to claim 5, characterized in that, The method further includes: compare the adaptation effect information with normal adaptation information; if the adaptation effect information is inconsistent with the normal adaptation information, adjust the adaptation result to the business requirement information. 7.A PAAS platform-based unified management automation adaptation device, configured to implement the PAAS platform-based unified management automation adaptation method according to any one of claims 1 to 6. The method further includes: a target game selection module (11) for selecting a target game from a plurality of preset games and uploading the target game to a cloud storage platform; a target model selection module (12) for selecting a server of a target model from a preset server model list, the server model list including a plurality of server models; an automatic adaptation parameter module (13) for determining a target set of adaptation parameters corresponding to the target model and sending the target set of adaptation parameters to the server of the target model to enable the server of the target model to download the target game from the cloud storage platform, and enable the server of the target model to adapt the target game based on the target set of adaptation parameters and run a preset automatic adaptation script.
8. A computer-readable storage medium having stored therein a computer program, characterized in that, The computer program is loaded and executed by the processor, and the method of any one of claims 1-6 is adopted.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that, The processor loads and executes the computer program, and the method of any one of claims 1-6 is adopted.
Citation Information
Patent Citations
Method and system for providing private cloud service based on automatic adaption
CN109379444A
Open source software installation method, system and device based on domestic server and medium
CN112068852A
Customized software installation method and device
CN113411460A