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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com