Gray release method and gray release system based on Spring Cloud
A gray-scale release and gray-scale technology, applied in the computer field, can solve the problems of reducing the degree of code intrusion, short release time, difficulty in version promotion and control, etc., to reduce the degree of intrusion, short release time, and easy versioning The effect of promotion and control
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment approach
[0041] As a preferred embodiment of the present invention, it also includes:
[0042] Mount the agent module to the client through the server;
[0043] Use the agent module to obtain the call request sent by the client, and compare and judge whether the key-value of the call request is consistent with the request key-value of the grayscale rule. If they are consistent, find the corresponding one according to the target service name and target version number of the grayscale rule information of the service instance, and then connect to the interface of the corresponding target client according to the IP port number of the service instance information.
[0044] Preferably, the agent module uses bytecode modification technology to enhance the bytecode of the load balancing component of the client, so as to be able to obtain request parameters of the calling request.
[0045] Further, when the client establishes a TCP connection with the server, it also includes:
[0046] Detect...
specific Embodiment approach
[0052] Mount the agent program on several clients, and use the agent program to modify the bytecode technology to enhance the bytecode of the load balancing component of the client, so that the client can obtain the request parameters of the call request;
[0053] Establish connections between several clients and the server through TCP, and each client transmits its own service instance information to the server and saves it in the server;
[0054] The server sends all the saved service instance information with grayscale rules to each client, and each client saves all the service instance information with grayscale rules locally;
[0055] The client and the server maintain heartbeat detection. If the server detects that the client’s heartbeat does not exist, the server will delete the saved service instance information of the client and notify all other online clients. If the client detects the server’s heartbeat If it does not exist, the client will lock the service instance...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
