Font Size: a A A

Design And Implementation Of Online Judge System Based On Docker

Posted on:2020-11-08Degree:MasterType:Thesis
Country:ChinaCandidate:Z B YuFull Text:PDF
GTID:2428330602468356Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the rapid development of network and computer technology,people pay more and more attention to the learning of programming languages.At the same time,with the changing of students' needs and constantly improving of students' demands,the online judge system has become an important tool and commonly used testing method for people to learn programming.So it has been widely used in universities.To further improve its security and the ability to cope with high concurrency,This paper proposes an online judge system based on Docker judgment machine which makes full use of the good features of Docker,such as technology of containers are isolated from each other,quick start speed and less resource.This paper deeply studies the design and implementation of online judge system based on Docker.The system mainly implements an user management module,an announcement management module,an assignment/exam management module,a question bank management module,and a judgment module.Students can login the system to practice programming,complete assignments and take exams online at any time.Teachers can manage each module of the system.The paper introduces the related theory of Docker,including Docker container monitoring system based on TIG(Telegraf,InfluxDB,Grafana);the principle structure of service discovery;common service discovery framework and MD5 encryption algorithm for login authentication briefly.Then it discusses the specific methods for the system to cope with high concurrency and ensure system security.Through the interaction of service discovery,Docker monitoring,load balancing and elastic scaling scripts,in this way,it can guarantees the stable operation of the system under high concurrency by adjust the number of judgement machine dynamically.It can ensures the safety of the system by limitting the program running time and occupied resources(CPU,memory usage,etc.).It also can insures the system security by disabling sensitive words in the Linux system and prevent malicious code from deleting disk data and downloading malicious files.Compared with the traditional online judge system,the Docker-based program online judge system has higher security and better ability to cope with high concurrency.Users can perform programming exercises in various kinds of common programming languages,complete assignments and take exams online more conveniently and efficiently,Therefore,the online judge system based on Docker has a good application prospect.
Keywords/Search Tags:Online Judge, Docker, Load balancing, TIG monitoring scheme, Service discover
PDF Full Text Request
Related items