Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A script hot update method and system

A technology of hot update and script, applied in the field of script hot update method and system, to achieve the effect of making mistakes easily and tediously making mistakes

Active Publication Date: 2018-11-06
BEIJING LOCOJOY TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the technical problem to be solved by this application is to provide a script hot update method and system, which solves the problems of server operation and maintenance update in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A script hot update method and system
  • A script hot update method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0020] see figure 1 Shown is a specific embodiment of the script hot update method described in this application. The method described in this embodiment includes the following steps:

[0021] Step 101: register N servers in the ZooKeeper cluster, set lua script resource nodes in the ZooKeeper cluster, and all servers registered in the ZooKeeper cluster will monitor the lua script resource nodes in the ZooKeeper cluster;

[0022] Step 102: upload the lua script to the file server through the background;

[0023] Step 103: After uploading the lua script successfully in the background, update the lua script resource node;

[0024] Step 104: Determine whether the lua script resource node has been updated, and if so, proceed to step 105

[0025] Step 105: notify N servers that the lua script resource node has an update;

[0026] Step 106: After receiving the updated lua script resource node, the N servers obtain update information from the ZooKeeper cluster;

[0027] Step 107:...

Embodiment 2

[0036] see figure 2 Shown is a specific embodiment of the script hot update system described in this application. This system includes a ZooKeeper cluster 201, a lua script resource node storage 202, a file server 203, and servers 1-N, wherein:

[0037] Described ZooKeeper cluster 201 is coupled with described lua script resource node memory 202 and N servers, is used to receive the registration of described N servers, and lua script resource node is set in described ZooKeeper cluster, when judging lua script When the resource node is updated, notify the N servers;

[0038] The lua script resource node memory 202 is coupled with the ZooKeeper cluster 201 for storing the lua script resource node;

[0039] Described file server 203, is coupled with described N servers, is used for receiving the lua script of background transmission, and after uploading lua script in background successfully, updates described lua script resource node;

[0040] The N servers, coupled with the Z...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a script hot updating method and system. The script hot updating method comprises the following steps: registering N servers to a ZooKeeper cluster; setting lua script resource nodes in the ZooKeeper cluster; monitoring the lua script resource nodes in the ZooKeeper cluster by all the servers which are registered into the ZooKeeper cluster; uploading a lua script into a file server through a background; after the lua script is successfully uploaded by the background, updating the lua script resource nodes; judging whether the lua script resource nodes are updated or not; if so, announcing the N servers; after the N servers receive the updated lua script resource nodes, acquiring updating information from the ZooKeeper cluster; and downloading a lua script resource to a local part by the N servers from the file server. When the script is updated by the script hot updating method and system, a service program does not need to be updated by an operator and does not need to be restarted; with the adoption of the system, an operation strategy of the servers can be rapidly adjusted, such as adjustment of a playing method numerical value; and the operation strategies of the servers and playing methods can be rapidly adjusted.

Description

technical field [0001] The present application relates to the technical field of computer servers, in particular to a script hot update method and system. Background technique [0002] At present, in the process of actual development projects, we often encounter server update and maintenance, as well as dynamic adjustment of server gameplay in conjunction with operations. However, due to the large number of servers, the process of maintaining servers takes too long and is prone to mistakes. Updating a service module in a traditional server is equivalent to restarting the service program. [0003] Service programs usually run on many machines. One or more processes may run on one physical machine, and several physical machines form an entire available cloud server. When the number of physical machines is very large, updating a service is equivalent to stopping and restarting all related service programs. The whole process is time-consuming and laborious. [0004] In order t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/65
Inventor 陈治国
Owner BEIJING LOCOJOY TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products