Device and method for improving throughput of online examination system based on three-level cache

A three-level cache and test system technology, applied in multi-program devices, special data processing applications, instruments, etc., can solve problems such as unsatisfactory system throughput performance, long waiting time, and prone to downtime, etc., to reduce resources The effect of cost input, reducing the concurrent pressure of requests, and improving the carrying capacity

Pending Publication Date: 2021-11-12
SHANDONG EVAYINFO TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. MYSQL and other relational databases perform unsatisfactorily in terms of system throughput when submitting high-concurrency small transactions. Under 16C32G configuration, TPS is less than 500. Considering the processing time of upper-level business applications, the actual value during stress testing is around 300.
Therefore, when the number of online users increases, the waiting time will also become longer, and the delay will also increase. When the server is always under high pressure, it is prone to downtime
[0006] 2. Tens of thousands of people take online exams at the same time. Regardless of the cluster method or the method of using SSD hard disks to improve MYSQL throughput, a high economic cost is required. Overall, the cost performance is low, and it is not recommended to adopt it in actual operation.
[0007] 3. When calculating the candidate’s score, it is necessary to query all the answers of the candidate’s test questions from the database and then traverse and compare them with the correct answers. This process consumes resources. When the number of testees increases, it is easy to become a system bottleneck.

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
  • Device and method for improving throughput of online examination system based on three-level cache
  • Device and method for improving throughput of online examination system based on three-level cache
  • Device and method for improving throughput of online examination system based on three-level cache

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] This embodiment provides a device for improving the throughput of an online examination system based on a three-level cache;

[0036] The device for improving the throughput of the online examination system based on the third-level cache includes: a management server and several examinee server groups;

[0037] Deploy the test management system and MySQL database on each management server;

[0038] Each candidate server group includes: a load balancing server, the load balancing server is connected to several browsers, and the load balancing server is connected to three running end servers respectively;

[0039] Each running server is deployed with a first-level cache and a second-level cache; each first-level cache is connected to the load balancing server; each first-level cache is connected to the corresponding second-level cache, and each second-level cache is connected to the test Management system and MySQL database connection; said browser acts as a third-level ...

Embodiment 2

[0053] This embodiment provides a method for improving the throughput of an online examination system based on a three-level cache;

[0054]A method for improving the throughput of the online examination system based on the third-level cache, including:

[0055] S1: The browser receives the answer cache request for each question, and the browser caches the answer for each question;

[0056] S2: When the number of questions received by the browser from the answer cache request reaches the set threshold M, M is a positive integer; the answers to the M questions are dumped into the second-level cache through the first-level cache;

[0057] S3: The second-level cache compares the answers to the M questions with the preset correct answers, and records the correct number of questions; the second-level cache synchronizes the answers to the M questions and the correct number of questions to the MySQL database of the management server ;

[0058] S4: Repeat S1-S3 until all test questi...

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 device and method for improving throughput of an online examination system based on three-level cache, and the method comprises the steps that a browser receives an answer caching request of each question, and the browser caches the answer of each question; M is a positive integer when the number of questions of the answer cache request received by the browser reaches a set threshold value M; the answers of the M questions are dumped into a second-level cache through the first-level cache; the second-level cache compares the answers of the M questions with preset correct answers and records the number of correct questions; and the second-level cache synchronizes the answers of the M questions and the correct question number into the MySQL database of the management end server. The three-level cache is introduced, the impact on the relational database is reduced, the examination data is asynchronously synchronized into the relational database, and the concurrent bearing capacity of the examination system can be greatly improved by caching the concurrent flow of coping with the examination.

Description

technical field [0001] The invention relates to the technical field of improving throughput of an online examination system, in particular to a device and method for improving throughput of an online examination system based on a three-level cache. Background technique [0002] The statements in this section merely mention the background technology related to the present invention and do not necessarily constitute the prior art. [0003] When an online examination system developed based on a relational database is used online by more than tens of millions of users at the same time, it is inevitable that the system will freeze or even go down. In response to such problems, the industry mostly adopts the mode of horizontal expansion of cluster deployment for support. In this mode, the cost of server investment is too high. Taking 10,000 people to take an exam at the same time as an example, regardless of high availability, a set of services needs to be deployed at least Two s...

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 Applications(China)
IPC IPC(8): G06F16/2455G06F9/50
CPCG06F16/24552G06F9/5083
Inventor 吴士伟李扬周浩曹建郭鑫李晓曲昕
Owner SHANDONG EVAYINFO 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