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

A large-scale concurrent evaluation method for programs based on container technology

An evaluation method and technology of container technology, which is applied in the field of large-scale concurrent evaluation of programs based on container technology, can solve problems such as host machine normal operation impact, deadlock, CPU resource pressure, etc., to avoid user space isolation, automation, and process design Realize, increase the effect of mobility

Active Publication Date: 2019-11-29
湖南智擎科技有限公司
View PDF20 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Traditional program evaluation needs to complete operations such as source code editing, program compilation, execution, input and output, and indicator analysis on physical hosts, virtual machines, or cloud hosts. Such a complex process has obvious defects
[0004] The first is security issues, mainly including resource security and system security. Users have different abilities, and the specific behavior of the code they write is uncontrollable during execution. Dangerous actions such as CPU resources, deletion of host machine files and directories, malicious deletion or stopping of host host key services, malicious Trojan horses, and virus implantation are likely to seriously affect the normal operation of the host machine itself;
[0005] The second is the performance problem. The resource consumption of a single evaluation request is not enough to affect the host machine. However, in some cases, such as online programming platforms, there may be a large number of users online at the same time, and a large number of users may evaluate at the same time. In this case Under the circumstances, a large number of evaluation requests will put a huge pressure on the memory and CPU resources of the host machine and even cause the host machine to crash. In the case of a single machine, it is more complicated and costly to expand the capacity of the evaluation system;
[0006] Another issue is concurrency and resource isolation. When a large number of evaluation operations are performed concurrently, the construction system and some resources of the system will be shared. Therefore, problems such as resource competition and deadlock will occur on the host machine. At the same time, due to the inability to perform resource isolation, Different evaluation operations may also affect each other and affect the final evaluation results;
[0007] Finally, there is still the problem of automation. The evaluation process is a process that includes several steps and must be strictly coherent. Whether the evaluation can be automated and streamlined is directly related to the evaluation efficiency.

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 large-scale concurrent evaluation method for programs based on container technology
  • A large-scale concurrent evaluation method for programs based on container technology
  • A large-scale concurrent evaluation method for programs based on container technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the present invention. Obviously, what is described is only a part of the embodiments of the present invention, not all of them.

[0031] figure 1 and figure 2 It shows an embodiment of the container technology-based program large-scale concurrent evaluation method of the present invention, which is realized through the following steps:

[0032] S1, build a Kubernetes cluster;

[0033] The Kubernetes cluster includes multiple server nodes, and each server node is equipped with SSH and Git services. On one server node of the Kubernetes cluster, there is a Gitlab server for managing the program to be evaluated. The Gitlab server includes a code warehouse for storing the program . A Kubernetes cluster is built using a physical host or a cloud host as a node. The Kubernetes cluster is provided with N server nodes, Node1, Node2, ...

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 relates to a program large-scale concurrency evaluation method based on container technology. The metho aims at the shortcomings of the existing procedure evaluation technology, decomposes the whole evaluation process reasonably and effectively, performs modular and flowing design, and uses containers to provide a running environment for program evaluation, uses Kubernets for container cluster management, builds a private mirror warehouse, evaluates container required and Gitlab server, constructs a set of evaluation script templates. by generating the corresponding evaluation script, evaluating the execution container environment pod, pulling the evaluator to execute the evaluation script, finalize the evaluation of the program and return the results. The method effectivelysolves the problems of security, resource quota and allocation, user space isolation and automation of traditional evaluation methods, and realizes the automation of evaluation process through reasonable process design, and realizes the stable and efficient support of large-scale program evaluation through the personalized setting of container clusters.

Description

technical field [0001] The invention belongs to the technical field of program evaluation application, and in particular relates to a large-scale concurrent program evaluation method based on container technology. Background technique [0002] Against the background of the rapid development of the Internet, the importance of computer programs is becoming more and more significant. Program evaluation, as an important means of testing program correctness, efficiency and other attributes, is used more and more widely and deeply in the fields of software development, code analysis and online programming. Code evaluation is directly related to product quality, life cycle and cost in software development. In the field of online programming, online coding platforms such as LeetCode, Lab Building, and CodeFights directly rely on code evaluation to analyze the user's code and give feedback. Similarly, in the field of code analysis, various academic research fields such as fuzz test...

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): G06F11/36
CPCG06F11/3688
Inventor 肖立成钟金何振远
Owner 湖南智擎科技有限公司