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

A method and device for preventing pod memory overflow in a container orchestration framework

A memory overflow and memory technology, applied in the direction of program control devices, instruments, calculations, etc., can solve problems such as loss, inability to quickly test memory resources, and inability to provide services, and achieve simple structure, reliable design principles, and outstanding substantive features Effect

Active Publication Date: 2022-08-05
SUZHOU METABRAIN INTELLIGENT TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When deploying an application in a production environment, it is usually necessary to deploy multiple instances of the application to load balance the application requests. When the memory used during the operation of the POD (POD, application execution program and operating environment) exceeds the set value, It will be killed by the controller, causing the application to be unable to provide services in a short period of time. Since the memory resources periodically used by the application cannot be quickly tested, there may be two situations in which the preset limit is set. The first is that the actual business demand is always greater than the limit value , another situation is that there is still a large distance between the actual business and the limit value
In both cases, there will be losses

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
  • A method and device for preventing pod memory overflow in a container orchestration framework
  • A method and device for preventing pod memory overflow in a container orchestration framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0053] like figure 1 As shown, an embodiment of the present invention provides a method for preventing POD memory overflow in a container orchestration framework, including the following steps:

[0054] S1: Monitor the current memory size of the POD, and calculate the memory usage rate according to the current memory size...

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 present invention provides a method and device for preventing POD memory overflow in a container orchestration framework. The method includes the following steps: monitoring the current memory size of the POD, and calculating the memory usage rate according to the current memory size and a preset memory threshold. When the memory usage rate is greater than the set threshold, a request for flow control is sent; after receiving the request for flow control, the interception level will be judged according to the number of consecutive requests, and the packet loss operation will be performed according to the packet loss rate corresponding to the interception level to adjust the flow; When the traffic has been adjusted with the highest interception level within the set time period, a memory threshold adjustment request is sent; after receiving the memory threshold adjustment request, the application memory threshold is dynamically changed to reduce the memory usage. It avoids the possibility that the application will be killed due to business surge, abnormal access or application GC causing excessive memory usage, resulting in memory overflow.

Description

technical field [0001] The invention relates to the technical field of POD applications in a kubernetes cluster, in particular to a method and a device for preventing POD memory overflow in a container orchestration framework. Background technique [0002] POD applications run in Kubernetes clusters. Kubernetes is a container orchestration framework open sourced by Google, also called a container orchestration engine. It supports automated deployment, large-scale scalability, and application containerized management. When deploying an application in a production environment, it is usually necessary to deploy multiple instances of the application in order to load balance application requests. When the memory used by the POD (POD, application executor and operating environment) during the running process exceeds the set value, It will be killed by the controller, causing the application to be unable to provide services in a short time. Since the memory resources used by the ap...

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/455G06F21/52H04L47/12
CPCG06F9/45558G06F21/52H04L47/12G06F2009/45583G06F2009/45595
Inventor 刘黎陈天石秦凯新
Owner SUZHOU METABRAIN INTELLIGENT TECH CO LTD