Unlock instant, AI-driven research and patent intelligence for your innovation.

Smart pointer-based dynamic configuration update method and system, server and medium

A smart pointer, dynamic configuration technology, applied in transmission systems, memory systems, digital transmission systems, etc., can solve the problems that the server cannot provide external capabilities and the server cannot be used normally.

Active Publication Date: 2021-07-30
WUHAN DOUYU NETWORK TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Currently, the server loads the configuration file and updates the server configuration by restarting the server to load the configuration or loading the configuration file in the main thread of the server. Both methods have a common problem, that is, the server cannot provide external capabilities during the process of loading the configuration. If it takes 5 seconds to load the configuration, the server cannot be used normally within 5 seconds, which is unacceptable for Internet servers

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
  • Smart pointer-based dynamic configuration update method and system, server and medium
  • Smart pointer-based dynamic configuration update method and system, server and medium
  • Smart pointer-based dynamic configuration update method and system, server and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0023] The function of the smart pointer is to manage a pointer. Its function principle is to automatically release the memory space at the end of the function, and there is no need to manually release the memory space.

[0024] In reference counting, each object is responsible for maintaining a count of all references to the object. The...

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 smart pointer-based dynamic configuration update method, system, server and medium. By creating an initial smart pointer before updating and an initial smart pointer after updating, they respectively point to the initial memory address and update The initial memory address of the final configuration information; at the same time, create the latest smart pointer to point to the memory address of the latest configuration information; then judge the update status of the configuration information, switch the pointing of the latest smart pointer according to the judgment result, and adjust the initial smart pointer before updating accordingly And the reference count of the initial smart pointer after the update; thus, through the combination of smart pointer and reference counting strategy, the dynamic update of the server configuration information is realized, and the server still works normally during the update of the configuration information, and ensures that the configuration information is updated before and after The consistency of the configuration information obtained by the task, and the reference counting mechanism ensures that the expired configuration information can be effectively cleared.

Description

technical field [0001] The present invention relates to the technical field of configuration update, in particular to a smart pointer-based dynamic configuration update method and system, a server and a medium. Background technique [0002] Configuration files are widely used in Internet servers. By using configuration files, you can update the functions of the server by updating the configuration files without modifying the server code. For example, a server provides the function of triggering a site-wide broadcast when the ranking of the top ten ranks rises. Now the function needs to be updated to trigger a broadcast when the rank of the top three rises. You can write the ranking of the broadcast into the configuration file and update it by modifying the configuration file. Broadcast ranking function. Currently, the server loads the configuration file and updates the server configuration by restarting the server to load the configuration or loading the configuration file ...

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): H04L12/24G06F12/02
CPCG06F12/023H04L41/082
Inventor 张李攀陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD