Service unit offline method based on micro-service unit architecture and related device

A technology of service unit and service control unit, which is applied in the computer field and can solve problems such as request interruption, inability to access Pod, inability to operate Pod online and offline, etc.

Active Publication Date: 2021-06-11
BEIJING CENTURY TAL EDUCATION TECH CO LTD
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the native Kubernetes scenario, although the smallest object of the system is a Pod (microservice unit group), the creation and destruction of Pods (or online and offline) are judged by the Kubernetes system itself, and the operator cannot directly target each Each Pod performs online and offline operations, but uses registration centers such as Eureka for indirect management
[0004] In the existing technology, when using a registration center such as Eureka to indirectly manage Pods, Pods in the Terminating state will be directly removed from the registration list (EndPoint, etc.) of the registration center, resulting in inaccessible requests. The specific Pod will eventually cause the request to be cut off

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
  • Service unit offline method based on micro-service unit architecture and related device
  • Service unit offline method based on micro-service unit architecture and related device
  • Service unit offline method based on micro-service unit architecture and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] It can be seen from the background art that the offline method of the service unit in the prior art may easily lead to interruption of requests for accessing the service unit when the service unit is offline.

[0026] In order to solve the above problems, the method for offline service unit based on the microservice unit architecture provided by the embodiment of the present invention first obtains the service unit offline command including the name of the service unit to be offline; then according to the service unit to be offline The name of the service unit to be offline determines whether the service unit to be offline is in the running state, and when it is determined that the service unit to be offline is in the running state according to the name of the service unit to be offline, cancel the registered service unit of the microservice unit architecture The name of the service unit to be offline in the list, and start timing at the same time to obtain the offline w...

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 embodiment of the invention provides a service unit offline method based on a micro-service unit architecture and a related device. The method comprises the following steps: firstly, acquiring a service unit offline instruction comprising the name of a to-be-offline service unit; then, according to the name of the to-be-offline service unit, determining whether the to-be-offline service unit is in a running state or not, and when it is determined that the to-be-offline service unit is in the running state according to the name of the to-be-offline service unit, logging out the name of the to-be-offline service unit in a registration service unit list of the micro-service unit architecture, and starting timing at the same time to obtain offline waiting duration; and when the offline waiting duration of the to-be-offline service unit meets a waiting duration threshold value of the to-be-offline service unit, making the to-be-offline service unit be offline. According to the service unit offline method based on the micro-service unit architecture and the related device provided by the embodiment of the invention, elegant offline of the service unit can be ensured, and the problem of request cutoff is avoided.

Description

technical field [0001] The embodiments of the present invention relate to the field of computers, and in particular to a method for offline service units based on a micro-service unit architecture and related devices. Background technique [0002] In the distributed architecture of microservice units, it is very important to manage the online and offline of microservice units. [0003] In the native scenario of Kubernetes, although the smallest object of the system is a Pod (microservice unit group), the creation and destruction of Pods (or online and offline) are judged by the Kubernetes system itself, and the operator cannot directly target each Each Pod performs online and offline operations, but uses registration centers such as Eureka for indirect management. [0004] In the existing technology, when Pods are indirectly managed by a registration center such as Eureka, Pods in the Terminating state will be directly removed from the registration list (EndPoint, etc.) of ...

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 Applications(China)
IPC IPC(8): G06F9/48
CPCG06F9/485
Inventor 郑毅
Owner BEIJING CENTURY TAL EDUCATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products