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

Process upgrading method, device and electronic equipment

A process and an upgraded technology, applied in the computer field, can solve problems such as disconnection of user connections, service unavailability, and increased system burden, and achieve the effect of avoiding downtime and service process switching

Active Publication Date: 2022-04-05
ALIBABA GRP HLDG LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The defect of this solution is: during the restart of the program, all services are stopped, and the user's connection will also be disconnected; that is to say, the service is unavailable between the stop of the old service and the start of the new service
[0008] The defect of this solution is that although there is almost no time to stop the service, there will be two Redis processes in the intermediate state at the same time. When the new process is started, data synchronization with the old process will consume resources such as network and disk. Increased system burden, the user's connection session will be reset when switching
[0010] The disadvantage of this solution is: limited use scenarios, only some data-independent functional functions can be replaced, and it cannot handle the replacement of functional functions related to the current business data of the process, nor can it cope with changes in business data and business processes

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
  • Process upgrading method, device and electronic equipment
  • Process upgrading method, device and electronic equipment
  • Process upgrading method, device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0080] Embodiment 1. A method for upgrading a Redis process, such as figure 1 As shown, including steps S110-S140:

[0081] S110. After the upgrade is determined, exit the asynchronous event loop of the dynamic library corresponding to the current version of the kernel; wherein, the dynamic library includes each business logic of the Redis process;

[0082] S120, transfer the kernel environment data in the current Redis instance to the kernel of the new version;

[0083] S130. Trigger the new version of the kernel to use the kernel environment data to initialize;

[0084] S140. Enter the asynchronous event loop in the dynamic library corresponding to the new version of the kernel.

[0085] This embodiment can realize the hot upgrade of the Redis process; the hot upgrade means that the purpose of function upgrade is achieved by adding / modifying / deleting related functional modules without stopping the program / service. Generally, it is also called non-stop upgrade, or non-stop...

Embodiment 2

[0179] Embodiment 2. An upgrade device for a Redis process, such as Figure 4 shown, including:

[0180] Trigger module 41, after being used to determine to upgrade, withdraw from the asynchronous event cycle of the dynamic storehouse corresponding to current version kernel; Wherein, described dynamic storehouse comprises each business logic of Redis process;

[0181] Transfer module 42, for passing the kernel environment data in the current Redis instance to the new version kernel;

[0182] The initialization module 43 is used to trigger the new version of the kernel to use the kernel environment data to initialize;

[0183] The startup module 44 is used to enter the asynchronous event loop in the dynamic library corresponding to the new version of the kernel.

[0184] In this embodiment, the triggering module 41 is the part responsible for exiting the ae loop of the current version of the kernel after the upgrading is confirmed in the upgrading device, and it may be softwa...

Embodiment 3

[0202] Embodiment 3, an electronic device for upgrading a Redis process, including: a memory and a processor;

[0203] The memory is used to save the program for upgrading the Redis process; when the program for upgrading the Redis process is read and executed by the processor, the following operations are performed:

[0204] After determining the upgrade, exit the asynchronous event loop of the dynamic library corresponding to the current version of the kernel; wherein, the dynamic library includes each business logic of the Redis process;

[0205] Transfer the kernel environment data in the current Redis instance to the new version kernel;

[0206] Trigger the new version of the kernel to initialize using the kernel environment data;

[0207] Enter the asynchronous event loop in the dynamic library corresponding to the new version of the kernel.

[0208] In an implementation manner, the transfer of the kernel environment data in the current Redis instance to the new versio...

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 application provides a method for upgrading a process, a device and electronic equipment; the method for upgrading a Redis process includes: after determining the upgrade, exit the asynchronous event loop of the dynamic library corresponding to the current version of the kernel; wherein, the dynamic library includes each of the Redis process Business logic; transfer the kernel environment data in the current Redis instance to the new version kernel; trigger the new version kernel to use the kernel environment data to initialize; enter the asynchronous event loop in the dynamic library corresponding to the new version kernel. At least one embodiment of the present application can implement hot upgrade of processes.

Description

technical field [0001] The invention relates to the field of computers, in particular to a process upgrading method, device and electronic equipment. Background technique [0002] Usually, users always expect the service to remain stable and never need to be restarted. But the function of the software is always enriched constantly. When users find that some new functions are needed, they will take the initiative to request an upgrade; when serious security problems arise, users will have to accept forced upgrades. [0003] In the general upgrade process, the service always needs to be restarted. For users, there is a short-term service unavailable state. If the hot upgrade is implemented by deploying the old and new systems for switching, not only will there be overhead for an additional system, but also some service links will be disconnected or reset during the switching process. [0004] Redis is an open-source, high-performance key-value pair (Key-Value) database, and...

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
CPCG06F8/65G06F8/71
Inventor 鲁振华
Owner ALIBABA GRP HLDG LTD
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