Search

CN-121996320-A - Dynamic updating method, device and storage medium

CN121996320ACN 121996320 ACN121996320 ACN 121996320ACN-121996320-A

Abstract

The application discloses a dynamic updating method, equipment and a storage medium, which comprise the steps of receiving a dynamic updating configuration instruction through a graphical user interface, generating a standardized dynamic updating file based on the dynamic updating configuration instruction, analyzing the standardized dynamic updating file, determining a target server to be updated and a target process according to an analysis result, establishing communication connection with the target server, acquiring an updating state of the target process through the communication connection, judging whether the target process can execute updating operation or not based on the updating state, and if the target process can execute the updating operation, sending the content of the updating instruction to the target process through the communication connection to execute the dynamic updating operation. According to the application, the standardized file is generated through graphical configuration, and the instruction is automatically sent based on update state judgment after analysis, so that the automation and accurate control of update are realized, human errors are reduced, and the update efficiency and reliability are improved.

Inventors

  • WEI XINYU
  • CHEN QIHAN
  • GUAN CHAOPENG
  • DENG DONGSHENG
  • QIU DENGHUI

Assignees

  • 尚娱软件(深圳)有限公司

Dates

Publication Date
20260508
Application Date
20260106

Claims (10)

  1. 1. A dynamic update method, characterized in that the dynamic update method comprises the steps of: Receiving a dynamic update configuration instruction through a graphical user interface, wherein the dynamic update configuration instruction comprises a target range and execution control; Generating a standardized dynamic update file based on the dynamic update configuration instruction, wherein the standardized dynamic update file comprises a unique identifier and update instruction content; Analyzing the standardized dynamic update file, and determining a target server and a target process to be updated according to an analysis result; Establishing communication connection with the target server, acquiring an update state of the target process through the communication connection, and judging whether the target process can execute update operation or not based on the update state; And if the target process can execute the updating operation, sending the updating instruction content to the target process through the communication connection so as to control the target process to execute the dynamic updating operation.
  2. 2. The dynamic update method as claimed in claim 1, wherein the step of parsing the standardized dynamic update file and determining the target server and the target process to be updated according to the parsing result comprises: Extracting a matching characteristic item from the analysis result, and determining a corresponding matching strategy according to the type of the matching characteristic item, wherein the matching strategy comprises matching accuracy and matching range setting; And determining a target server and a target process corresponding to the matching characteristic item according to the matching strategy, wherein the corresponding target server is determined according to the matching strategy, a matching range is defined in the target server, and the target process is determined in the defined matching range.
  3. 3. The method for dynamically updating according to claim 1, wherein the step of parsing the standardized dynamic update file to determine the target server and the target process to be updated according to the parsing result further comprises: extracting update instruction content from the analysis result, and determining an expected update version carried by the update instruction content; acquiring current version information and resource occupation state of the target process, carrying out compatibility analysis on the expected updated version and the current version information, and determining whether compatibility risks exist according to analysis results; if the compatibility risk exists, generating a version alarm and suspending the updating process; and if the compatibility risk does not exist, judging whether the target process meets the update execution condition based on the resource occupation state, and executing the step of establishing communication connection with the target server when the target process is determined to meet the update execution condition.
  4. 4. The method according to claim 3, wherein after the step of determining whether the target process satisfies an update execution condition based on the resource occupancy state if there is no compatibility risk, further comprising: generating a resource scheduling instruction based on the data volume of the update instruction content when the target process is determined not to meet the update execution condition; the resource scheduling instruction is sent to the target server, so that the target server pre-distributes needed resources for the target process; and after receiving the resource ready confirmation information fed back by the target server, executing the step of establishing communication connection with the target server.
  5. 5. The dynamic update method of claim 1, wherein before the step of sending the update instruction content to the target process via the communication connection to control the target process to perform a dynamic update operation, further comprising: Counting the number of target processes related to the updated instruction content; If the number of the target processes is multiple, determining the update state of each target process; And when the target processes can execute the updating operation based on the updating state of each target process, executing the step of sending the updating instruction content to the target process through the communication connection so as to control the target process to execute the dynamic updating operation.
  6. 6. The dynamic update method of claim 1, wherein after the step of sending the update instruction content to the target process via the communication connection to control the target process to perform a dynamic update operation, further comprising: Responding to the updated feedback information of the target process, and sending a predefined smoke test case to the target process so as to verify the core function of the target process; Acquiring an execution result based on the smoking test case, and determining the updated performance index and log information of the target process in the execution result; comparing and analyzing the performance index, the log information and the pre-update reference data, and confirming the update effect of the target process according to an analysis result; and if the updating result is confirmed to be correct, sending a convergence confirmation instruction to the target process so that the target process is switched to the new version to provide service for the outside.
  7. 7. The dynamic update method of claim 1, wherein the step of sending the update instruction content to the target process via the communication connection to control the target process to perform a dynamic update operation comprises: Acquiring a history update record of the target process through the communication connection, and counting the update failure rate of the history update record; and if the update failure rate is larger than a preset failure rate threshold, adding a heartbeat detection mechanism and a state confirmation mechanism in the content of the update instruction, and sending the result to the target process.
  8. 8. The method of claim 7, further comprising, after the step of adding a heartbeat detection mechanism and a status confirmation mechanism to the content of the update instruction and sending the heartbeat detection mechanism and the status confirmation mechanism to the target process if the update failure rate is greater than a predetermined failure rate threshold value: during the execution of the update instruction, the health index and the update progress of each target process are obtained according to a preset interval through the heartbeat detection mechanism; If abnormal health index or update progress stagnation of any target process is detected, automatically triggering local rollback operation, recovering the target process to a pre-update state, and simultaneously sending a continuous execution instruction to other target processes except the target process; Recording information of an abnormal target process and a rollback result, generating an abnormal report containing repair suggestions, and feeding back the abnormal report to the graphical user interface.
  9. 9. A dynamic update device, characterized in that it stores a computer program which, when executed by a processor, implements the dynamic update method of any one of claims 1-8.
  10. 10. A storage medium storing a computer program which, when executed by a processor, implements the dynamic update method of any one of claims 1-8.

Description

Dynamic updating method, device and storage medium Technical Field The present application relates to the field of online game update technologies, and in particular, to a dynamic update method, apparatus, and storage medium. Background As online gaming continues to scale up, the number of server clusters and game processes increases dramatically, and the rapid iteration of game play makes the need to maintain updates increasingly frequent. In this context, non-stop dynamic updating of distributed servers is a conventional but critical operation and maintenance. The traditional updating mode is highly dependent on manual operation of operation and maintenance personnel, and usually, the operation personnel are required to identify the target servers and processes one by one, manually write the updating instruction files, upload the updating files to the server directories through the file transmission tool, and finally manually trigger updating execution. This series of operations is not only tedious and time consuming, but also involves the risk of human error in a number of links, such as grammar or coding errors when writing updated files, omission or repeated designation of execution servers or processes, etc. These errors are light, so that updating failure needs to be retried, and heavy errors can cause abnormal service, and the stable operation of the game is affected. Therefore, how to change the traditional dynamic updating flow highly dependent on personal experience and manual operation into a standardized, automatic and efficient method capable of effectively avoiding human errors is a technical problem to be solved. The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present application and is not intended to represent an admission that the foregoing is prior art. Disclosure of Invention The application mainly aims to provide a dynamic updating method, equipment and a storage medium, and aims to solve the technical problems that an existing server cluster is easy to make mistakes and has low efficiency through manual dynamic updating. In order to achieve the above object, the present application provides a dynamic update method, which includes: Receiving a dynamic update configuration instruction through a graphical user interface, wherein the dynamic update configuration instruction comprises a target range and execution control; Generating a standardized dynamic update file based on the dynamic update configuration instruction, wherein the standardized dynamic update file comprises a unique identifier and update instruction content; Analyzing the standardized dynamic update file, and determining a target server and a target process to be updated according to an analysis result; Establishing communication connection with the target server, acquiring an update state of the target process through the communication connection, and judging whether the target process can execute update operation or not based on the update state; And if the target process can execute the updating operation, sending the updating instruction content to the target process through the communication connection so as to control the target process to execute the dynamic updating operation. In an embodiment, the step of analyzing the standardized dynamic update file and determining the target server and the target process to be updated according to the analysis result includes: Extracting a matching characteristic item from the analysis result, and determining a corresponding matching strategy according to the type of the matching characteristic item, wherein the matching strategy comprises matching accuracy and matching range setting; And determining a target server and a target process corresponding to the matching characteristic item according to the matching strategy, wherein the corresponding target server is determined according to the matching strategy, a matching range is defined in the target server, and the target process is determined in the defined matching range. In an embodiment, after the step of analyzing the standardized dynamic update file and determining the target server and the target process to be updated according to the analysis result, the method further includes: extracting update instruction content from the analysis result, and determining an expected update version carried by the update instruction content; acquiring current version information and resource occupation state of the target process, carrying out compatibility analysis on the expected updated version and the current version information, and determining whether compatibility risks exist according to analysis results; if the compatibility risk exists, generating a version alarm and suspending the updating process; and if the compatibility risk does not exist, judging whether the target process meets the update execution condition based on the resource occupation state, and e