CN103118093A - Large-scale distributed network examination method based on multi-level cache - Google Patents

Large-scale distributed network examination method based on multi-level cache Download PDF

Info

Publication number
CN103118093A
CN103118093A CN2013100284530A CN201310028453A CN103118093A CN 103118093 A CN103118093 A CN 103118093A CN 2013100284530 A CN2013100284530 A CN 2013100284530A CN 201310028453 A CN201310028453 A CN 201310028453A CN 103118093 A CN103118093 A CN 103118093A
Authority
CN
China
Prior art keywords
examination
examining
server
local device
examination district
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013100284530A
Other languages
Chinese (zh)
Inventor
李彭军
余晓佳
郭文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SOUTHERN EASY-TRUST INFORMATION TECHNOLOGY Co Ltd GUANGZHOU
Original Assignee
SOUTHERN EASY-TRUST INFORMATION TECHNOLOGY Co Ltd GUANGZHOU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SOUTHERN EASY-TRUST INFORMATION TECHNOLOGY Co Ltd GUANGZHOU filed Critical SOUTHERN EASY-TRUST INFORMATION TECHNOLOGY Co Ltd GUANGZHOU
Priority to CN2013100284530A priority Critical patent/CN103118093A/en
Publication of CN103118093A publication Critical patent/CN103118093A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a large-scale distributed network examination method based on multi-level cache. The large-scale distributed network examination method comprises a central server and multiple examination district servers connected with the central server. Each examination district server is connected with multiple corresponding local examination machines. When examination is performed through a browser of one examination machine, the flowing steps are performed: the local examination machine stores answer information instantly in Cookie cache of the browser; the local examination machine submits the answer information to one examination district server instantly; the examination district server caches the received answer information in a hard disk of the examination district server in real time; the examination district server uploads the answer information to the central server according to a preset time interval; and the central server caches the received answer information on a hard disk of the central server in real time. Three-level cache mechanism is utilized, corresponding disaster recovery mechanisms can be selected timely to deal with various disasters, abnormity such as examination suspension can be solved effectively, examination can be recovered fast, and reliability and safety are improved.

Description

Large-scale distributed online exam method based on multi-level buffer
?
Technical field
The present invention relates to network communications technology field, especially a kind of large-scale distributed online exam method based on multi-level buffer.
 
Background technology
Along with the development of network technology, become one of important component part of long-distance education based on the online testing of Internet.When carrying out online exam, by the browser answer, after answer is completed, the examinee is submitted to test paper on the server of examination district the examinee on local device for examining.Therefore the stable operation of examination district server is most important, if too much examinee of same time period takes an examination, a large amount of concurrent operations bring excessive load can for the examination district server, causes slowly even collapse of examination district server operation.
In addition, Internet bandwidth and connective stability also are difficult to effectively be guaranteed, the examination accidental interruption that the reasons such as the deadlock in the examination process, misoperation, network failure cause makes the examinee lose previous answering information in the test paper situation of not submitting on local device for examining.
Therefore, no matter be examination district server failing or local device for examining because of the collapse of the fortuitous events such as outage, fault, the examinee is difficult in time submit to test paper, thereby gives normally making troubles of taking an examination, and affects the fairness of examination result.Therefore low, the poor reliability of existing online exam method performance, fail safe are low.Although at present both at home and abroad the online exam method has begun to pay attention to the control to fail safe, such as technology such as adopting authentication, access control, transfer of data and storage encryption guarantees safety, but the abnormal conditions that examination is interrupted are processed and recovery, that studies is fewer, does not propose concrete disaster recovery strategy and solution.
Therefore, be necessary that the performance that exists for the existing network method of examination is low, poor reliability, the low problem of fail safe propose a kind of large-scale distributed online exam method based on multi-level buffer.
Summary of the invention
For the deficiencies in the prior art, purpose of the present invention is intended to provide a kind of large-scale distributed online exam method based on multi-level buffer, and its performance is high, and is safe and reliable.
For achieving the above object, the present invention adopts following technical scheme:
Large-scale distributed online exam method based on multi-level buffer, comprise a central server, a plurality of examination district server that is connected with central server, this each examination district server all connects with a plurality of corresponding local device for examining, when the examinee takes an examination by the browser of local device for examining, carry out successively following steps:
A1. local device for examining is stored in examinee's answering information in browser Cookie buffer memory immediately;
A2. local device for examining is submitted to corresponding examination district server immediately with the answering information of storage;
A3. the examination district server is cached to the answering information that receives on its hard disk in real time;
A4. the examination district server is according to the default time interval, and the answering information of its buffer memory is uploaded to central server;
A5. central server is cached to the answering information that receives on its hard disk in real time.
Wherein, when the local device for examining that it uses in the examination process as the examinee collapses, carry out following steps:
B1. restart this this locality device for examining, judge whether this this locality device for examining can work, if so, execution in step b2, if not, execution in step b3;
B2. read answering information from the browser Cookie buffer memory of this this locality device for examining, recover this examinee's examination answer progress;
B3. other idle local device for examining with local device for examining this cisco unity malfunction corresponding same examination district server reads corresponding answering information from its corresponding examination district server, recovers this examinee's examination answer progress.
Wherein, when the server failing of examination district, carry out following steps:
C1. restart this examination district server, judge whether the answering information of this examination district server hard disc buffer memory is lost, if so, execution in step c2, if not, execution in step c5;
C2. judge whether local device for examining collapse is arranged in all local device for examining corresponding to this examination district server, if so, execution in step c3, if not, execution in step c4;
C3. read corresponding answering information from the hard disk cache of central server, recover the examination answer progress of all local device for examining corresponding to this examination district server;
C4. read the answering information in all local device for examining browser Cookie buffer memorys corresponding to this examination district server, recover the examination answer progress of all local device for examining corresponding to this examination district server;
C5. read all answering informations from the hard disk cache of this examination district server, recover the examination answer progress of all local device for examining corresponding to this examination district server.
Wherein, connect by the local area network (LAN) topological structure between all local device for examining that each examination district server is corresponding with it.
Wherein, be connected by the wide area network topological structure between central server and all examination district server.
A kind of large-scale distributed online exam method based on multi-level buffer set forth in the present invention, its beneficial effect is:
this method is passed through at local device for examining, the examination district server, on central server, corresponding answering information is carried out three grades of buffer memory backups, make when the disaster of the various human factors of reply or external factor, can in time select corresponding online exam disaster tolerance mechanism, effectively solve the abnormal conditions such as examination interruption, fast quick-recovery examination process, adopt three grades of cache modes that buffer memory is progressive, even if local device for examining, both all damage the examination district server, final central server also can recover examination district server and local device for examining fast fully according to its caching record, guarantee carrying out smoothly of examination, reliability and fail safe have been improved, and, this method adopts the pattern of distributed deployment, the examination district server provides examination application service and data storage for the local device for examining of its correspondence, local device for examining is not directly and the central server communication, reduced the load of central server, online dilatation as required increases the bearing capacity to examinee's quantity, has improved performance.
Description of drawings
Fig. 1 is the examination flow chart that the present invention is based on the large-scale distributed online exam method of multi-level buffer;
Fig. 2 is the process chart of large-scale distributed online exam method when local device for examining collapse that the present invention is based on multi-level buffer;
Fig. 3 is the process chart of large-scale distributed online exam method when the server failing of examination district that the present invention is based on multi-level buffer.
 
Embodiment
The invention will be further described below in conjunction with accompanying drawing and specific embodiment.
The present invention is the large-scale distributed online exam method based on multi-level buffer, it comprises a central server, a plurality of examination district server that is connected with central server, this each examination district server all connects with a plurality of corresponding local device for examining, as Fig. 1, it has demonstrated the handling process of this method when the examinee takes an examination by the browser of local device for examining:
In step a1, local device for examining is stored in examinee's answering information in browser Cookie buffer memory immediately.Particularly, when the examinee passes through the browser answer on local device for examining, its answering information can be stored in browser Cookie buffer memory immediately, like this when the situation of the abnormal interruption examinations such as collapse appears in this this locality device for examining, although this examinee is not submitted to test paper corresponding examination district server, but as long as this this locality device for examining recovers normal, just can recover this examinee's answer progress according to the answering information of browser Cookie buffer memory, this examinee need not again to start anew answer.
Proceed to step a2, local device for examining is submitted to corresponding examination district server immediately with the answering information of storage.When the examinee passes through the browser answer on local device for examining, if should damage and can not recover normal by this locality device for examining in the answer process, the examinee just can only continue to take an examination on the local device for examining of another one, can't utilize this moment the answering information of the local device for examining browser Cookie buffering of damage to recover this examinee's examination answer progress, thereby be necessary to adopt this step that the answering information of local device for examining storage is submitted to corresponding examination district server immediately, be convenient to the examination district server backup.
Proceed to step a3, the examination district server is cached to the answering information that receives on its hard disk in real time.When situation about occurring described in step a2, can recover this examinee's examination answer progress on the local device for examining of another one according to the answering information of examination district server buffer like this.
Proceed to step a4, the examination district server is according to the default time interval, and the answering information of its buffer memory is uploaded to central server.
Proceed to step a5, central server is cached to the answering information that receives on its hard disk in real time.
Above-mentioned steps a4 and a5 are in order to occur recovering examination district server and local device for examining fully according to central server under the extreme case that examination district server and local device for examining damage simultaneously.
As Fig. 2, the handling process when it has demonstrated this method local device for examining collapse that it uses in the examination process as the examinee:
B1. restart this this locality device for examining, judge whether this this locality device for examining can work, if so, execution in step b2, if not, execution in step b3;
B2. read answering information from the browser Cookie buffer memory of this this locality device for examining, recover this examinee's examination answer progress;
B3. other idle local device for examining with local device for examining this cisco unity malfunction corresponding same examination district server reads corresponding answering information from its corresponding examination district server, recovers this examinee's examination answer progress.
As Fig. 3, it has demonstrated the handling process of this method when the server failing of examination district:
C1. restart this examination district server, judge whether the answering information of this examination district server hard disc buffer memory is lost, if so, execution in step c2, if not, execution in step c5;
C2. judge whether local device for examining collapse is arranged in all local device for examining corresponding to this examination district server, if so, execution in step c3, if not, execution in step c4;
C3. read corresponding answering information from the hard disk cache of central server, recover the examination answer progress of all local device for examining corresponding to this examination district server;
C4. read the answering information in all local device for examining browser Cookie buffer memorys corresponding to this examination district server, recover the examination answer progress of all local device for examining corresponding to this examination district server;
C5. read all answering informations from the hard disk cache of this examination district server, recover the examination answer progress of all local device for examining corresponding to this examination district server.
In the method, connect by the local area network (LAN) topological structure between each examination district server all local device for examining corresponding with it, be connected by the wide area network topological structure between central server and all examination district server.Local device for examining browser Cookie buffer memory, examination district server buffer and these three grades of buffer memorys of central server buffer memory all adopt the pattern of encrypting the storage of XML file, to guarantee fail safe.
For further being convenient to understand the present invention, the below sets forth method of the present invention for example:
examinee's first takes an exam on the browser of local device for examining A, the examination district server corresponding with A is B, the answering information of first on A all can be stored in the browser Cookie buffer memory of A immediately, A can be submitted to the answering information of the first of its storage on B simultaneously, the answering information that all local device for examining corresponding with it that comprise A that B will receive are in real time submitted to is cached on its hard disk, B is submitted to the answering information of its buffer memory on central server C simultaneously, the answering information that all connected examination district servers that comprise B that C will receive are in real time submitted to is cached on its hard disk.when first in the examination process, A collapses suddenly, if it is normal that A is restarted rear recovery, this moment, A read the examination answer progress of the answering information recovery first in its browser Cookie buffer memory, if damaging, A can not recover normal, first is changed to another idle local device for examining A1 examination originally, and this moment, A1 read the answering information of being submitted to up by original A of B hard disk cache, recovered the examination answer progress of first on A1, when first in the examination process, B collapses suddenly, the examination process of first on A is interrupted, if restarting the answering information of rear its hard disk cache of discovery, do not lose B, this moment, B read that the answering information of its hard disk cache recovers to be connected with B comprises the examination answer progress of all local device for examining of the A at first place, first can be followed original answer progress and continue examination on A, if restarting the answering information of rear its hard disk cache of discovery, loses B, all simultaneously corresponding with B local device for examining are all normal, this moment, B can read the answering information in all local device for examining browser Cookie buffer memorys corresponding with it, recover the examination answer progress of all local device for examining of corresponding with the B A that comprises the first place, first can be followed original answer progress and continue examination on A, if and B is restarted the answering information loss of rear its hard disk cache of discovery, in simultaneously corresponding with B local device for examining, a collapse is arranged also, this moment, B read the answering information by the original submission of B of C hard disk cache, the examination answer progress of all local device for examining of the A that comprises the first place that recovers to be connected with B, first can be followed original answer progress and continue examination on A.
The above, it is only preferred embodiment of the present invention, be not that technical scope of the present invention is imposed any restrictions, therefore every foundation technical spirit of the present invention all still belongs in the scope of technical solution of the present invention any trickle modification, equivalent variations and modification that above embodiment does.

Claims (5)

1. based on the large-scale distributed online exam method of multi-level buffer, it is characterized in that, comprise a central server, a plurality of examination district server that is connected with central server, this each examination district server all connects with a plurality of corresponding local device for examining, when the examinee takes an examination by the browser of local device for examining, carry out successively following steps:
A1. local device for examining is stored in examinee's answering information in browser Cookie buffer memory immediately;
A2. local device for examining is submitted to corresponding examination district server immediately with the answering information of storage;
A3. the examination district server is cached to the answering information that receives on its hard disk in real time;
A4. the examination district server is according to the default time interval, and the answering information of its buffer memory is uploaded to central server;
A5. central server is cached to the answering information that receives on its hard disk in real time.
2. the large-scale distributed online exam method based on multi-level buffer according to claim 1, is characterized in that, when the local device for examining that it uses in the examination process as the examinee collapses, carries out following steps:
B1. restart this this locality device for examining, judge whether this this locality device for examining can work, if so, execution in step b2, if not, execution in step b3;
B2. read answering information from the browser Cookie buffer memory of this this locality device for examining, recover this examinee's examination answer progress;
B3. other idle local device for examining with local device for examining this cisco unity malfunction corresponding same examination district server reads corresponding answering information from its corresponding examination district server, recovers this examinee's examination answer progress.
3. the large-scale distributed online exam method based on multi-level buffer according to claim 2, is characterized in that, when the server failing of examination district, carries out following steps:
C1. restart this examination district server, judge whether the answering information of this examination district server hard disc buffer memory is lost, if so, execution in step c2, if not, execution in step c5;
C2. judge whether local device for examining collapse is arranged in all local device for examining corresponding to this examination district server, if so, execution in step c3, if not, execution in step c4;
C3. read corresponding answering information from the hard disk cache of central server, recover the examination answer progress of all local device for examining corresponding to this examination district server;
C4. read the answering information in all local device for examining browser Cookie buffer memorys corresponding to this examination district server, recover the examination answer progress of all local device for examining corresponding to this examination district server;
C5. read all answering informations from the hard disk cache of this examination district server, recover the examination answer progress of all local device for examining corresponding to this examination district server.
4. the large-scale distributed online exam method based on multi-level buffer according to claim 1, is characterized in that, connects by the local area network (LAN) topological structure between each examination district server all local device for examining corresponding with it.
5. the large-scale distributed online exam method based on multi-level buffer according to claim 1, is characterized in that, is connected by the wide area network topological structure between central server and all examination district server.
CN2013100284530A 2013-01-24 2013-01-24 Large-scale distributed network examination method based on multi-level cache Pending CN103118093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100284530A CN103118093A (en) 2013-01-24 2013-01-24 Large-scale distributed network examination method based on multi-level cache

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100284530A CN103118093A (en) 2013-01-24 2013-01-24 Large-scale distributed network examination method based on multi-level cache

Publications (1)

Publication Number Publication Date
CN103118093A true CN103118093A (en) 2013-05-22

Family

ID=48416363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100284530A Pending CN103118093A (en) 2013-01-24 2013-01-24 Large-scale distributed network examination method based on multi-level cache

Country Status (1)

Country Link
CN (1) CN103118093A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685313A (en) * 2013-12-26 2014-03-26 北京中电普华信息技术有限公司 Communication method and system applied to online examination
CN103729269A (en) * 2014-01-26 2014-04-16 国家电网公司 Cloud architecture-based network test data double-cache method
CN104468744A (en) * 2014-11-21 2015-03-25 香港应用科技研究院有限公司 Multi-location learning activity state management for remote education
CN106056508A (en) * 2016-07-01 2016-10-26 江苏四五安全科技有限公司 Multistage online training cloud platform
CN108833375A (en) * 2018-05-30 2018-11-16 广州爱易学智能信息科技有限公司 A kind of intelligent examination system
CN109064815A (en) * 2018-09-04 2018-12-21 北京粉笔未来科技有限公司 Online testing method and apparatus calculate equipment and storage medium
CN111222071A (en) * 2020-01-03 2020-06-02 精硕科技(北京)股份有限公司 Questionnaire processing method and device and electronic equipment
CN111897847A (en) * 2020-08-07 2020-11-06 上海莉莉丝科技股份有限公司 Data reading and writing method, system, device and medium based on multi-level cache
CN113238896A (en) * 2021-06-21 2021-08-10 北京飞思特信息技术有限公司 Disaster recovery and recovery system of distributed examination service based on USB flash disk
CN113238872A (en) * 2021-06-21 2021-08-10 北京飞思特信息技术有限公司 Distributed examination service system based on USB flash disk

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595873A (en) * 2004-06-23 2005-03-16 北京邮电大学 Network examination system based on mixed architecture and multiple safety mechanism, and implementing method thereof
CN102682640A (en) * 2012-05-17 2012-09-19 江苏中科梦兰电子科技有限公司 Electronic lesson test system and test method
CN102800219A (en) * 2012-07-17 2012-11-28 苏州市米想网络信息技术有限公司 Online examination system based on local area network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595873A (en) * 2004-06-23 2005-03-16 北京邮电大学 Network examination system based on mixed architecture and multiple safety mechanism, and implementing method thereof
CN102682640A (en) * 2012-05-17 2012-09-19 江苏中科梦兰电子科技有限公司 Electronic lesson test system and test method
CN102800219A (en) * 2012-07-17 2012-11-28 苏州市米想网络信息技术有限公司 Online examination system based on local area network

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685313A (en) * 2013-12-26 2014-03-26 北京中电普华信息技术有限公司 Communication method and system applied to online examination
CN103729269A (en) * 2014-01-26 2014-04-16 国家电网公司 Cloud architecture-based network test data double-cache method
CN104468744A (en) * 2014-11-21 2015-03-25 香港应用科技研究院有限公司 Multi-location learning activity state management for remote education
CN104468744B (en) * 2014-11-21 2018-06-12 香港应用科技研究院有限公司 The system of long-distance education and computer implemented method are provided
CN106056508A (en) * 2016-07-01 2016-10-26 江苏四五安全科技有限公司 Multistage online training cloud platform
CN108833375A (en) * 2018-05-30 2018-11-16 广州爱易学智能信息科技有限公司 A kind of intelligent examination system
CN109064815A (en) * 2018-09-04 2018-12-21 北京粉笔未来科技有限公司 Online testing method and apparatus calculate equipment and storage medium
CN111640342A (en) * 2018-09-04 2020-09-08 北京猿力教育科技有限公司 Online examination method and device, computing device and storage medium
CN111222071A (en) * 2020-01-03 2020-06-02 精硕科技(北京)股份有限公司 Questionnaire processing method and device and electronic equipment
CN111222071B (en) * 2020-01-03 2023-08-25 北京秒针人工智能科技有限公司 Questionnaire processing method and device and electronic equipment
CN111897847A (en) * 2020-08-07 2020-11-06 上海莉莉丝科技股份有限公司 Data reading and writing method, system, device and medium based on multi-level cache
CN113238896A (en) * 2021-06-21 2021-08-10 北京飞思特信息技术有限公司 Disaster recovery and recovery system of distributed examination service based on USB flash disk
CN113238872A (en) * 2021-06-21 2021-08-10 北京飞思特信息技术有限公司 Distributed examination service system based on USB flash disk
CN113238872B (en) * 2021-06-21 2024-01-23 北京飞思特信息技术有限公司 Distributed examination service system based on USB flash disk

Similar Documents

Publication Publication Date Title
CN103118093A (en) Large-scale distributed network examination method based on multi-level cache
CN101667181B (en) Method, device and system for data disaster tolerance
CN106815097A (en) Database disaster tolerance system and method
CN109032849B (en) Hot backup system, hot backup method and computer equipment
CN109101364B (en) Double-center double-activity data processing system and method
US9189348B2 (en) High availability database management system and database management method using same
CN102033786B (en) Method for repairing consistency of copies in object storage system
CN103176860B (en) Data back up method and system
CN103051681B (en) Collaborative type log system facing to distribution-type file system
EP3537687B1 (en) Access method for distributed storage system, related device and related system
CN105069160A (en) Autonomous controllable database based high-availability method and architecture
CN102088490B (en) Data storage method, device and system
CN101741536A (en) Data level disaster-tolerant method and system and production center node
CN103516736A (en) Data recovery method of distributed cache system and a data recovery device of distributed cache system
CN102394914A (en) Cluster brain-split processing method and device
CN109656753B (en) Redundant hot standby system applied to rail transit comprehensive monitoring system
CN113867226B (en) Redundant data acquisition system for industrial control system
WO2020118955A1 (en) Distributed metadata management consistency ensuring method, device and system, and application
CN108710550B (en) Double-data-center disaster tolerance system for public security traffic management inspection and control system
CN105426213A (en) Software update method and system
CN103186348B (en) Storage system and data read-write method thereof
CN101552799A (en) Media node fault-tolerance method and device
CN103428288A (en) Method for synchronizing copies on basis of partition state tables and coordinator nodes
WO2014190622A1 (en) Off-line message storage method and server
CN104636082B (en) The control method and device of disk array RAID

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130522