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

Method and device for controlling Web application resources based on Linux container

A web application and resource technology, applied in the field of cloud computing, can solve problems such as increasing the deployment and operation overhead of lightweight web applications, affecting application portability, and being unable to control kernel mode resources.

Active Publication Date: 2018-03-09
CHINA TELECOM CORP LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] like figure 1 As shown, web application engines usually use language-level sandbox technology (such as custom class loaders, interface security policies, etc.) Binding, which affects the portability of the application, and the application engine runs in the user mode of the operating system, and cannot control kernel mode resources (such as kernel threads, CPU physical cores, etc.)
[0004] In addition, the current mainstream Linux container technologies (such as LXC, Docker, etc.) mainly control resources at the granularity of processes, such as figure 2 As shown in the figure, container technology can be used to package web applications and application engines as a whole, and run in isolation in the form of process containers. However, application engines usually occupy hundreds of megabytes of memory, which increases the overhead of deploying and running lightweight web applications.

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
  • Method and device for controlling Web application resources based on Linux container
  • Method and device for controlling Web application resources based on Linux container
  • Method and device for controlling Web application resources based on Linux container

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangements of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.

[0029] At the same time, it should be understood that, for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0030] The following description of at least one exemplary embodiment is merely illustrative in nature and in no way taken as limiting the invention, its application or uses.

[0031] Techniques, methods and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods and devices should be considered part of the Authoriz...

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 invention discloses a method and device for controlling Web application resources based on a Linux container and relates to the field of cloud computing. The method includes the steps that an application resource control group is created; the mapping relation between a Web application ID and an application resource control group ID is set; the mapping relation of the Web application ID, a userthread ID and a kernel thread ID is set; according to the Web application ID, an interface of the application resource control group is called to write the kernel thread ID into a task control list of the corresponding application resource control group. When the kernel thread is dispatched, a resource control strategy of the application resource control group is executed according to the kernelthread ID so as to achieve fine control of Web application resource quotas using the threads as particle sizes.

Description

technical field [0001] The invention relates to the field of cloud computing, in particular to a method and device for controlling Web application resources based on Linux containers. Background technique [0002] Lightweight web applications are hosted and run on the basis of web application engines. All applications on the engine share the same host resources, and an exception (such as an infinite loop) in an individual application may exhaust the resources of the entire host. Therefore, it is necessary to control the resource quota of the web application. [0003] Such as figure 1 As shown, web application engines usually use language-level sandbox technology (such as custom class loaders, interface security policies, etc.) Binding affects the portability of the application, and the application engine runs in the user mode of the operating system, and cannot control the resources in the kernel mode (such as kernel threads, CPU physical cores, etc.). [0004] In additio...

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
IPC IPC(8): G06F9/50
CPCG06F9/5044G06F2209/504G06F2209/5018
Inventor 何震苇杨新章陆钢严丽云梁柏青
Owner CHINA TELECOM CORP 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