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

A service unit and micro-service technology, applied in the computer field, can solve problems such as request interruption, inability to access pods, and inability to operate pods online and offline

Active Publication Date: 2021-07-23
BEIJING CENTURY TAL EDUCATION TECH CO LTD
View PDF10 Cites 0 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 off-line method and related device based on micro-service unit architecture
  • Service unit off-line method and related device based on micro-service unit architecture
  • Service unit off-line method and related device based on micro-service unit architecture

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

An embodiment of the present invention provides a service unit offline method based on a microservice unit architecture and a related device. The method includes: first obtaining a service unit offline command including the name of the service unit to be offline; and then according to the pending The name of the offline service unit 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, log off the microservice unit architecture The name of the service unit to be offline in the registered service unit list, and start timing at the same time to obtain the offline waiting time; when the offline waiting time of the service unit to be offline meets the service unit to be offline When waiting for the time threshold, log off the service unit to be offline. The service unit offline method and related devices based on the micro-service unit architecture provided by the embodiment of the present invention can ensure that the service unit realizes graceful offline, and avoids the problem of request interruption.

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 Patents(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