CN107707588A - A kind of data processing method and cloud Classroom System - Google Patents
A kind of data processing method and cloud Classroom System Download PDFInfo
- Publication number
- CN107707588A CN107707588A CN201610647602.5A CN201610647602A CN107707588A CN 107707588 A CN107707588 A CN 107707588A CN 201610647602 A CN201610647602 A CN 201610647602A CN 107707588 A CN107707588 A CN 107707588A
- Authority
- CN
- China
- Prior art keywords
- cloud classroom
- web system
- distributor
- backup
- classroom
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Abstract
The embodiment of the invention discloses a kind of data processing method, this method includes:The distributor sends the operation requests of user to the main cloud classroom Web system and each backup cloud classroom Web system respectively;The main cloud classroom Web system carries out actual treatment to the operation requests, and the result of the actual treatment got from the virtual cloud classroom is sent to the distributor;Each backup cloud classroom Web system carries out idle running processing, the result that the return idle running is handled to the distributor to the operation requests.The embodiment of the present invention further simultaneously discloses a kind of cloud Classroom System.
Description
Technical field
The present invention relates to field of cloud calculation, more particularly to a kind of data processing method and cloud Classroom System.
Background technology
With the continuous development of cloud computing technology, because big data system is based on flow data mode access and processing super large
The demand of file and develop, therefore big data technical system be particularly suitable for educate operation system, such as educate cloud.
At present, the cloud Classroom System based on big data technology, using distributed (Hadoop) framework popular at present
To realize, Fig. 1 is the cloud religion based on distributed file system (HDFS, Hadoop Distributed File System) framework
The structural representation of chamber system, as shown in figure 1, cloud Classroom System by the HDFS of Highly Scalable and N number of server (including
Local file system and storage device), multiple cloud classrooms composition.Wherein, HDFS by all N number of server groups into 1 void
Intend resource pool, required server is extracted in each cloud classroom from whole virtualization pool when establishing, form single cloud religion
Room virtual pool, and form new distributed system (HDFS classrooms), when cloud classroom needs to increase more servers, it is from cloud
Extracted in the virtualization pool of classroom platform and be added to the cloud classroom of oneself, form new distributed system (HDFS classrooms),
When cloud classroom no longer needs the server resource of oneself, then the server of correlation is discharged into the virtual resource of cloud classroom platform
Chi Zhong, when cloud classroom platform can not effectively support the I/O performance requirements in current each cloud classroom, it can dynamically increase service
Device, to improve the overall I/O performances of whole cloud Classroom System, while without influenceing the normal operation in cloud classroom.
However, when based on HDFs cloud Classroom System break down when, in the prior art, by high availability (HA,
High Availability) method realizes fault recovery, but traditional HA methods, it is mainly based upon main frame, individual calculus
Machine is realized, using 1:1 backup ratio, wastes more physical resource, and needs to remember various states disconnected to realize
The recovery of point data, so, need to recover substantial amounts of breakpoint data in fault recovery, cause the cloud Classroom System based on HDFs
Break down can not fast quick-recovery, serious forgiveness is relatively low.
The content of the invention
In view of this, the embodiment of the present invention it is expected to provide a kind of data processing method and cloud Classroom System so that is based on
HDFs cloud Classroom System when breaking down can fast quick-recovery, improve serious forgiveness, and then improve the Experience Degree of user.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
In a first aspect, the embodiment of the present invention provides a kind of data processing method, this method is applied to cloud Classroom System, described
Cloud Classroom System includes:One distributor, a main cloud classroom Web system, at least two backup cloud classroom Web systems and one
Individual virtual cloud classroom, wherein, the distributor is respectively connecting to the main cloud classroom Web system and each backup cloud classroom
Web system, the main cloud classroom Web system are connected to the virtual cloud classroom, including:The distributor is respectively to the main cloud
Classroom Web system and each backup cloud classroom Web system send the operation requests of user;The main cloud classroom Web system pair
The operation requests carry out actual treatment, and the result of the actual treatment got from the virtual cloud classroom is sent to described point
Orchestration;Each backup cloud classroom Web system carries out idle running processing to the operation requests, returns to the result of the idle running processing
To the distributor.
Further, each backup cloud classroom Web system carries out idle running processing to the operation requests, returns to the sky
Turn the result of processing to the distributor, including:When the operation requests are HTTP request, each backup cloud classroom Web systems
System returns to HTTP operating results to the distributor;When the operation requests are file operation requests, each backup cloud classroom
Web system returns to file operation result to the distributor.
Further, when the operation requests are HTTP request, each backup cloud classroom Web system returns to HTTP operations
As a result to the distributor, including:When the HTTP request is write operation requests, each backup cloud classroom Web system returns
Write operation success is to the distributor, and when the HTTP request is read operation request, each backup cloud classroom Web system returns
The data prestored are to the distributor;When the operation requests are file operation requests, each backup cloud classroom Web
System returns to file operation result to the distributor, including:It is each described standby when the file operation requests are write operation requests
Part cloud classroom Web system returns to write operation success to the distributor, when the file operation requests are read operation request, each institute
The data prestored described in the Web system return of backup cloud classroom are stated to the distributor, the file operation requests are text
When part information operates, each backup cloud classroom Web system returns to fileinfo and operated successfully to the distributor.
Further, when the distributor determines that the main cloud classroom Web system breaks down, each backup cloud classroom
One of backup cloud classroom Web system in Web system sends a notification message to the distributor and other backup cloud classrooms
Web system, wherein, the notification message carries the information of one of backup cloud classroom Web system;Described wherein one
Individual backup cloud classroom Web system receives what other backup cloud classroom Web systems that the distributor returns and described returned respectively
To the confirmation of the announcement information;The operation that one of backup cloud classroom Web system is sent to the distributor
Request carries out actual treatment, and the result of the actual treatment got from the virtual cloud classroom is sent to the distributor.
Further, the distributor determines that the main cloud classroom Web system breaks down, including:When at least one standby
When part cloud classroom Web system does not receive the heartbeat message of the main cloud classroom Web system regularly, to other backup cloud classrooms
Web system sends failure inquiry message;When at least one backup cloud classroom Web system receives other backup clouds religion
During the fault recognition information that room Web system returns, to described in the distributor and other described backup cloud classroom Web system broadcast
Main cloud classroom Web system breaks down.
Second aspect, the embodiment of the present invention provide a kind of cloud Classroom System, and the system includes:One distributor, one
Main cloud classroom Web system, at least two backup cloud classroom Web systems and a virtual cloud classroom, wherein, the distributor point
The main cloud classroom Web system and each backup cloud classroom Web system, the main cloud classroom Web system connection are not connected to
To the virtual cloud classroom;The distributor, for respectively to the main cloud classroom Web system and each backup cloud classroom
Web system sends the operation requests of user;The main cloud classroom Web system, for carrying out actual treatment to the operation requests,
The result of the actual treatment got from the virtual cloud classroom is sent to the distributor;Each backup cloud classroom Web
System, for the operation requests to be carried out with idle running processing, the result that the return idle running is handled to the distributor.
Further, each backup cloud classroom Web system, is specifically used for:When the operation requests are HTTP request, return
HTTP operating results are returned to the distributor;When the operation requests are file operation requests, file operation result is returned to institute
State distributor.
Further, each backup cloud classroom Web system, is specifically used for:When the HTTP request is write operation requests,
Write operation success is returned to the distributor, when the HTTP request is read operation request, returns to the data prestored extremely
The distributor;When the file operation requests are write operation requests, write operation success is returned to the distributor, the file
When operation requests are read operation request, the data that have been prestored described in return to the distributor, the file operation requests
When being operated for fileinfo, return to fileinfo and operate successfully to the distributor.
Further, when the distributor determines that the main cloud classroom Web system breaks down, each backup cloud religion
One of backup cloud classroom Web system in the Web system of room, for sending a notification message to the distributor and other backups
Cloud classroom Web system, wherein, the notification message carries the information of one of backup cloud classroom Web system;It is described
One of backup cloud classroom Web system, for receiving other backup clouds classroom Web that the distributor returns and described respectively
The confirmation to the announcement information that system returns;One of backup cloud classroom Web system, for described point
Orchestration send operation requests carry out actual treatment, by the result of the actual treatment got from the virtual cloud classroom send to
The distributor.
Further, when at least one backup cloud classroom Web system does not receive the main cloud classroom Web system regularly
During heartbeat message, failure inquiry message is sent to other backup cloud classroom Web systems;When at least one backup cloud classroom
When Web system receives the fault recognition information of other backup cloud classroom Web systems returns, to the distributor and described
Other backup cloud classroom Web systems are broadcasted the main cloud classroom Web system and broken down.
The data processing method and cloud Classroom System that the embodiment of the present invention is provided, by being provided with cloud Classroom System
At least two backup cloud classroom Web systems, the operation that each backup cloud classroom Web system receives the user sent from distributor please
Ask, and operation requests are carried out with idle running processing, the result that return idle running is handled to distributor, that is to say, that by increased standby
Part cloud classroom Web system, without actual treatment, only carries out idle running processing to operation requests so that each backup cloud classroom Web
System itself returns to the result of idle running processing according to operation requests to distributor, then, each backup cloud classroom Web system is not right
Operation requests carry out could be aware that the operation requests treated in the case of actual treatment, prevent main cloud classroom Web system
Send same operation requests after breaking down to backup cloud classroom Web system again, realize the cloud classroom system based on HDFs
System break down after can fast quick-recovery, improve the serious forgiveness in the cloud classroom based on HDFs, implement simple and fast, and then
Improve the Experience Degree of user.
Brief description of the drawings
Fig. 1 is the structural representation of the cloud Classroom System based on HDFS frameworks;
Fig. 2 is a kind of optional structural representation of the cloud Classroom System in the embodiment of the present invention;
Fig. 3 is another optional structural representation of the cloud Classroom System in the embodiment of the present invention;
Fig. 4 is a kind of optional schematic flow sheet of the data processing method in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes.
The embodiment of the present invention provides a kind of data processing method, and this method is applied to cloud Classroom System, and Fig. 2 is real for the present invention
A kind of optional structural representation of the cloud Classroom System in example is applied, the cloud Classroom System includes:One distributor, 21, masters
Cloud classroom Web system 22, at least two backup cloud classroom Web systems (show backup cloud classroom Web system 23 and backup in figure
Cloud classroom Web system 24) and a virtual cloud classroom 25, wherein, distributor 21 is respectively connecting to main cloud classroom Web system 22
With each backup cloud classroom Web system, main cloud classroom Web system 22 is connected to virtual cloud classroom 25, herein, it is necessary to explanation
It is that backup cloud classroom Web system 23 and backup cloud classroom Web system 24 are without the virtual cloud classroom of oneself.
Fig. 3 is another optional structural representation of the cloud Classroom System in the embodiment of the present invention, as shown in figure 3,
In practical application, user connects a distributor, and qualified teachers connect a distributor, wherein, user can represent student, Shi Zike
To represent teacher, two distributors are respectively connecting to main cloud classroom Web system and each backup cloud classroom Web system, wherein, only
Main cloud classroom Web system is connected to the HDFS clients (HDFS Client) in HDFS systems (virtual cloud classroom), HDFS
Client and NameNode, which is interacted, completes data processing.
In above-mentioned Fig. 3, the virtual cloud classroom part in each cloud classroom by some server groups in HDFS systems into he
Follow the treatment principles of HDFS systems, the high fault tolerance of data, each main cloud classroom Web system are realized according to more redundancy techniques
1-N backup cloud classroom Web system is configured, heartbeat message is used between main cloud classroom Web system and backup cloud classroom Web system
Interface, the connection of user, classroom and main cloud classroom Web system, other backup cloud classroom Web systems are all connected to by distributor
In system, the shared of relevant information is realized, main cloud classroom Web system is interacted by HDFS Client and virtual cloud classroom, its
Its backup cloud classroom Web system virtual cloud classroom of getting along well under normal circumstances interacts, wherein, main cloud classroom Web system hair
During raw failure, backup cloud classroom Web system takes over the virtual cloud classroom of main cloud classroom Web system, forms new main cloud classroom.
Fig. 4 be the embodiment of the present invention in data processing method a kind of optional schematic flow sheet, above-mentioned data processing
Method can include:
S401:The operation that distributor sends user to main cloud classroom Web system and each backup cloud classroom Web system respectively please
Ask;
Based on above-mentioned Fig. 3, illustrated below so that student sends the operation requests of user to distributor as an example, work as distributor
After the operation requests for receiving the user of student's transmission, respectively to main cloud classroom Web system and each backup cloud classroom Web system
The operation requests of user are sent, distributor is mainly used in for the operation requests of user being distributed to all clouds religion being attached thereto here
Room Web system.
S402:Main cloud classroom Web system carries out actual treatment, the reality that will be got from virtual cloud classroom to operation requests
The result of processing is sent to distributor;
Here, after main cloud classroom receives the operation requests of user, if HTTP request, it is translated into file behaviour
Ask;If read operation, then HDFS client reading function is called;If write operation, then HDFS Client are called
Write function;If file system operation order, then HDFS Client respective function is called;HDFS Client are received
After the calling of main cloud classroom Web system, and NameNode interactions, obtain file index, position block message, backup information etc.;
HDFS client and DataNode are interacted, and carry out file data processing;DataNode returned datas or result are to HDFS
Client;DataNode returns to file operation result to NameNode;After HDFS client receive data or result, by number
According to or result return to main cloud classroom Web system;Main cloud classroom Web system is by distributor returned data or result to student;
Meanwhile Web system timing in main cloud classroom sends heartbeat message and gives other backup cloud classroom Web systems.
S403:Respectively backup cloud classroom Web system carries out idle running processing to operation requests, and the result for returning to idle running processing is extremely divided
Orchestration.
In a kind of optional embodiment, in order to realize the idle running processing to operation requests, S403 can include:
When operation requests are HTTP request, each backup cloud classroom Web system returns to HTTP operating results to distributor;Operation
Ask for file operation requests when, each backup cloud classroom Web system return file operation result to distributor.
Specifically, distributor is connected to the HTTP request of user terminal;Distributor sends HTTP to main cloud classroom Web system please
Ask, wait request response, the quantity of all " good " backup cloud classroom Web systems is inquired about, to all " good " backup cloud classrooms
Web system sends HTTP request, waits the HTTP request of all cloud classrooms Web system to respond, after all request responses are connected to, point
Orchestration returns to user terminal HTTP results.
Distributor is connected to the file manipulation command of user terminal, sends file manipulation command to main cloud classroom Web system, waits
Processing response, the quantity of all " good " backup cloud classroom Web systems is inquired about, sent to all backup cloud classroom Web systems
File manipulation command, when the processing response of main cloud classroom Web system is returned, user terminal result is returned, continues waiting for institute
The request for having backup cloud classroom Web system responds, and if there is the backup cloud classroom Web system of not returning result, is then masked as
" bad " backup cloud classroom Web system.
Wherein, above-mentioned " good " backup cloud classroom Web system refers to that timing sends the backup cloud classroom Web systems of heartbeat message
System;
It should be noted that above-mentioned HTTP request includes write operation and read operation;Above-mentioned file operation includes write operation, read
Operation and fileinfo operation, here, the present invention is not specifically limited.
In a kind of optional embodiment, when operation requests are HTTP request, each backup cloud classroom Web system returns to HTTP
Operating result to distributor, including:When HTTP request is write operation requests, each backup cloud classroom Web system return write operation into
Work(is to distributor, and when HTTP request is read operation request, each backup cloud classroom Web system returns to the data prestored and extremely divided
Orchestration;
In an alternative embodiment, when operation requests are file operation requests, each backup cloud classroom Web system is returned
Back into file operating result to distributor, including:When file operation requests are write operation requests, each backup cloud classroom Web system is returned
Write back operations success is to distributor, and when file operation requests are read operation request, each backup cloud classroom Web system returns deposits in advance
The data stored up are to distributor, and when file operation requests are that fileinfo operates, each backup cloud classroom Web system returns to file letter
Breath is operated successfully to distributor.
Wherein, the above-mentioned data prestored can be the data that backup cloud classroom Web system randomly generates.
For example, by taking Fig. 3 as an example, it is as follows that above-mentioned backup cloud classroom Web system carries out the step of idle running is handled:
Step 1:Backup cloud classroom Web system receives the various operation requests that distributor is sent;
Step 2:If HTTP operation requests, are continued with;Otherwise step 8 is jumped to;
Step 3:Backup cloud classroom Web system judges whether it is new user;If it is continue, otherwise jump to step
Rapid 5;
Step 4:The backup cloud classroom Web system increase new user profile of HTTP;
Step 5:If write operation, backup cloud classroom Web system returns to write operation success;Jump to step 7;
Step 6:If read operation, backup cloud classroom Web system returns to preprepared data;
Step 7:Backup cloud classroom Web system returns to HTTP operating results to user terminal;Jump to step 12;
Step 8:Backup cloud classroom Web system judges whether it is new user, if it is continues, otherwise jumps to step
Rapid 12;
Step 9:The backup cloud classroom Web system increase new user profile of file operation;
Step 10:If write operation, backup cloud classroom Web system returns to write operation success;If read operation, backup
Cloud classroom Web system returns to pre-prepd data;If fileinfo operates, backup cloud classroom Web system returns successfully
Mark;
Step 11:Backup cloud classroom Web system returns to operating result to distributor;
Step 12:Backup cloud classroom Web system deletes the various command requests and result operated;
Step 13:Backup cloud classroom Web system processing file record information;
In a kind of optional embodiment, when distributor determines that main cloud classroom Web system breaks down, at above-mentioned data
Reason method can also include:
One of backup cloud classroom Web system in the Web system of each backup cloud classroom sends a notification message to distributor
With other backup cloud classroom Web systems, wherein, notification message carries the information of one of backup cloud classroom Web system;Its
In a backup cloud classroom Web system receive respectively it is distributor return and that other backup cloud classrooms Web systems return to leading to
Know the confirmation of information;The operation requests that one of backup cloud classroom Web system is sent to distributor carry out actual treatment,
The result of the actual treatment got from virtual cloud classroom is sent to distributor.
In specific implementation process, in order to determine that main cloud classroom Web system breaks down, above-mentioned data processing method may be used also
With including:
When at least one backup cloud classroom Web system does not receive the heartbeat message of main cloud classroom Web system regularly, to
Other backup cloud classroom Web systems send failure inquiry message;
When at least one backup cloud classroom Web system receives the fault recognition of other backup cloud classroom Web systems returns
During information, broken down to distributor and other backup cloud classroom Web system broadcast main cloud classroom Web systems.
For example, when main cloud classroom, Web system appearance of breaking down can not work, or when part can not work, must
Must enter to rack classroom switching, and a backup cloud classroom Web system is found from each backup cloud classroom Web system, then substitutes master
Cloud classroom Web system is operated.Wherein main work includes:1) main cloud classroom Web system fault discovery;2) selection backup
Cloud classroom Web system;3) cloud classroom Web system is switched.
Cloud classroom fault discovery uses the heartbeat mechanism between the Web system of cloud classroom to realize that its main processes is as follows:
The heartbeat message of all main cloud classroom Web systems of backup cloud classroom Web system timing receipt, when 1 backup cloud is taught
When room Web system finds that timing heartbeat message is sent without timing, it can actively inquire other N-2 backup cloud classroom Web
System, when N-2 backup cloud classroom Web system any of which one confirms not receive heartbeat message, then judge main cloud religion
Room Web system breaks down, and it breaks down to all N-1 backup cloud classrooms Web system broadcast main cloud classroom Web system,
It sends the message that main cloud classroom Web system breaks down, the internal cloud classroom of management system renewal to administrative staff, management system
Information;Wherein, the inside cloud classroom information includes main cloud classroom number, backup cloud classroom number, current state, heart time etc..
When main cloud classroom, Web system breaks down when cause to switch, it is necessary to start cloud classroom changeover program, its
Core work includes:With distributor, the confirmation in other N-2 backups cloud classrooms;Switch internal processing program;Start heartbeat message machine
System and test etc.;Cloud classroom handover mechanism is specific as follows:
The cloud classroom Web system of most suitable switching is selected from N-1 backup cloud classroom Web system;Selected cloud religion
Room Web system toll offering distributor, any information, and toll offering distributor, other N- are not sent to main cloud classroom Web system before
2 backup cloud classroom Web systems, it has become main cloud classroom Web system, and after distributor receives notice, and it is formal true
Recognize, other N-2 backup cloud classrooms Web system is formal and its confirmation, new main cloud classroom Web system switch inter-process journey
Sequence, idle running processing routine is switched into actual HTTP/ documentors, new main cloud classroom Web system starts heartbeat and sent
Program, and other N-2 backup cloud classrooms Web system carry out heartbeat message test, after heartbeat message is successfully tested, new main cloud
Classroom Web system is formally started working, and so far, is switched successfully.
Can be with normal work after the cloud classroom Web system of failure is handled, it is added to backup cloud classroom Web
System needs processing as follows:
The cloud classroom Web system normal operation of failure, the cloud classroom Web system of failure send information to main cloud
Classroom Web system, other N-2 backups cloud classrooms Web system, after main cloud classroom Web system receives new cloud classroom information, to it
Send heartbeat message immediately, after the cloud classroom Web system of failure receives the heartbeat message of main cloud classroom Web system, hair
After sending confirmation, main cloud classroom Web system to be confirmed information, it is included in the classroom list of backup cloud, the religion of other N-2 clouds
After the Web system receive information of room, the cloud classroom Web system that each self-information provides existing failure is sent, other N-2 information will appear from event
The information of the cloud classroom Web system of barrier is included in the table of internal cloud classroom, and the cloud classroom Web system of failure backs up N-2
Cloud classroom information is included in the table of backup cloud classroom, and the cloud classroom Web system of failure starts internal idle running program, and to distribution
Device sends new backup cloud classroom Web system and adds message, and distributor receives new backup cloud classroom Web system and adds message
Afterwards, increase the quantity and specifying information of backup cloud classroom Web system, distributor be arranged to " it is good " backup cloud classroom Web system,
Confirmation message is sent to new backup cloud classroom Web system, new backup cloud classroom Web system receives the HTTP/ texts of distributor
Part operational order is handled, and waits the heartbeat message of main cloud classroom Web system.
The data processing method and cloud Classroom System that the embodiment of the present invention is provided, by being provided with cloud Classroom System
At least two backup cloud classroom Web systems, the operation that each backup cloud classroom Web system receives the user sent from distributor please
Ask, and operation requests are carried out with idle running processing, the result that return idle running is handled to distributor, that is to say, that by increased standby
Part cloud classroom Web system, without actual treatment, only carries out idle running processing to operation requests so that each backup cloud classroom Web
System itself returns to the result of idle running processing according to operation requests to distributor, then, each backup cloud classroom Web system is not right
Operation requests carry out could be aware that the operation requests treated in the case of actual treatment, prevent main cloud classroom Web system
Send same operation requests after breaking down to backup cloud classroom Web system again, realize the cloud classroom system based on HDFs
System break down after can fast quick-recovery, improve the serious forgiveness in the cloud classroom based on HDFs, implement simple and fast, and then
Improve the Experience Degree of user.
Based on same inventive concept, the present invention provides a kind of cloud Classroom System, and with reference to shown in figure 2, the system includes:One
21, main cloud classroom Web systems 22 of distributor, at least two backup cloud classroom Web system (backup cloud classroom Web systems 23
With backup cloud classroom Web system 24) and a virtual cloud classroom 25, wherein, distributor 21 is respectively connecting to main cloud classroom Web
System and each backup cloud classroom Web system, main cloud classroom Web system 22 are connected to virtual cloud classroom 25;Distributor 21, for dividing
The operation requests of user are not sent to main cloud classroom Web system 22 and each backup cloud classroom Web system;Main cloud classroom Web system
22, for carrying out actual treatment to operation requests, the result of the actual treatment got from virtual cloud classroom is sent to distribution
Device 21;Each backup cloud classroom Web system, for operation requests to be carried out with idle running processing, the result for returning to idle running processing is extremely distributed
Device 21.
In order to realize that idle running of each backup cloud classroom Web system to operation requests is handled, each backup cloud classroom Web system,
It is specifically used for:When operation requests are HTTP request, HTTP operating results are returned to distributor;Operation requests are file operation requests
When, file operation result is returned to distributor.
In specific implementation process, each backup cloud classroom Web system, it is specifically used for:When HTTP request is write operation requests,
Write operation success is returned to distributor, when HTTP request be read operation request, data that return has prestored to distributor;Text
When part operation requests are write operation requests, write operation success is returned to distributor, when file operation requests are read operation request, is returned
The data prestored are returned to distributor, when file operation requests are that fileinfo operates, fileinfo are returned and operates successfully
To distributor.
In a kind of optional embodiment, when distributor determines that main cloud classroom Web system breaks down, each backup cloud religion
One of backup cloud classroom Web system in the Web system of room, for sending a notification message to distributor and the religion of other backup clouds
Room Web system, wherein, notification message carries the information of one of backup cloud classroom Web system;One of backup cloud religion
Room Web system, for receive respectively it is distributor return and the returns of other backup cloud classrooms Web systems to announcement information really
Recognize information;One of backup cloud classroom Web system, will be from for the operation requests progress actual treatment sent to distributor
The result for the actual treatment that virtual cloud classroom is got is sent to distributor.
In order to determine that main cloud classroom is broken down, in a kind of optional embodiment, when at least one backup cloud classroom
When Web system does not receive the heartbeat message of main cloud classroom Web system regularly, event is sent to other backup cloud classroom Web systems
Hinder inquiry message;The failure that other backup cloud classroom Web systems returns are received when at least one backup cloud classroom Web system is true
When recognizing information, broken down to distributor and other backup cloud classroom Web system broadcast main cloud classroom Web systems.
It need to be noted that be:Above cloud Classroom System implement item description, with the above method description be it is similar,
With same embodiment of the method identical beneficial effect, therefore do not repeat.For not draped over one's shoulders in cloud Classroom System embodiment of the present invention
The ins and outs of dew, those skilled in the art refer to the description of the inventive method embodiment and understand, to save length, this
In repeat no more.
It need to be noted that be:
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is relevant with embodiment
During special characteristic, structure or characteristic are included at least one embodiment of the present invention.Therefore, occur everywhere in entire disclosure
" in one embodiment " or " in one embodiment " identical embodiment is not necessarily referred to.In addition, these specific feature, knots
Structure or characteristic can combine in one or more embodiments in any suitable manner.It should be understood that in the various implementations of the present invention
In example, the size of the sequence number of above-mentioned each process is not meant to the priority of execution sequence, and the execution sequence of each process should be with its work(
It can be determined with internal logic, the implementation process without tackling the embodiment of the present invention forms any restriction.The embodiments of the present invention
Sequence number is for illustration only, does not represent the quality of embodiment.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through
Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is only
A kind of division of logic function, there can be other dividing mode when actually realizing, such as:Multiple units or component can combine, or
Another system is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed each composition portion
Point mutual coupling or direct-coupling or communication connection can be the INDIRECT COUPLINGs by some interfaces, equipment or unit
Or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location;Both a place can be located at, multiple network lists can also be distributed to
In member;Partly or entirely unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used
To be each unit individually as a unit, can also two or more units it is integrated in a unit;It is above-mentioned
Integrated unit can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in computer read/write memory medium, and the program exists
During execution, execution the step of including above method embodiment;And foregoing storage medium includes:Movable storage device, read-only deposit
Reservoir (Read Only Memory, ROM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Or if the above-mentioned integrated unit of the present invention is realized in the form of software function module and is used as independent product
Sale in use, can also be stored in a computer read/write memory medium.Based on such understanding, the present invention is implemented
The part that the technical scheme of example substantially contributes to prior art in other words can be embodied in the form of software product,
The computer software product is stored in a storage medium, including some instructions are causing a computer equipment (can be with
It is personal computer, server or network equipment etc.) perform all or part of each embodiment methods described of the present invention.
And foregoing storage medium includes:Movable storage device, ROM, magnetic disc or CD etc. are various can be with Jie of store program codes
Matter.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of data processing method, it is characterised in that this method is applied to cloud Classroom System, and the cloud Classroom System includes:
One distributor, a main cloud classroom Web system, at least two backup cloud classroom Web systems and a virtual cloud classroom, its
In, the distributor is respectively connecting to the main cloud classroom Web system and each backup cloud classroom Web system, the main cloud
Classroom Web system is connected to the virtual cloud classroom, including:
The distributor sends the behaviour of user to the main cloud classroom Web system and each backup cloud classroom Web system respectively
Ask;
The main cloud classroom Web system carries out actual treatment to the operation requests, by what is got from the virtual cloud classroom
The result of actual treatment is sent to the distributor;
Each backup cloud classroom Web system carries out idle running processing to the operation requests, returns to the result of the idle running processing
To the distributor.
2. according to the method for claim 1, it is characterised in that each backup cloud classroom Web system please to the operation
Ask and carry out idle running processing, return to the result of the idle running processing to the distributor, including:
When the operation requests are HTTP request, each backup cloud classroom Web system returns to HTTP operating results to described point
Orchestration;
When the operation requests are file operation requests, each backup cloud classroom Web system returns to file operation result to institute
State distributor.
3. according to the method for claim 2, it is characterised in that
When the operation requests are HTTP request, each backup cloud classroom Web system returns to HTTP operating results to described point
Orchestration, including:When the HTTP request is write operation requests, each backup cloud classroom Web system returns to write operation success extremely
The distributor, when the HTTP request is read operation request, each backup cloud classroom Web system returns to what is prestored
Data are to the distributor;
When the operation requests are file operation requests, each backup cloud classroom Web system returns to file operation result to institute
Distributor is stated, including:When the file operation requests are write operation requests, each backup cloud classroom Web system, which returns, writes behaviour
Make successfully to the distributor, when the file operation requests are read operation request, each backup cloud classroom Web system returns
The data prestored are to the distributor, when the file operation requests are that fileinfo operates, each backup
Cloud classroom Web system returns to fileinfo and operated successfully to the distributor.
4. according to the method for claim 1, it is characterised in that methods described also includes:
When the distributor determines that the main cloud classroom Web system breaks down, its in each backup cloud classroom Web system
In a backup cloud classroom Web system send a notification message to the distributor and other backup cloud classroom Web systems, wherein,
The notification message carries the information of one of backup cloud classroom Web system;
One of backup cloud classroom Web system receives other backup cloud classrooms that the distributor returns and described respectively
The confirmation to the announcement information that Web system returns;
The operation requests progress actual treatment that described one of backup cloud classroom Web system is sent to the distributor, will be from
The result for the actual treatment that the virtual cloud classroom is got is sent to the distributor.
5. according to the method for claim 4, it is characterised in that the distributor determines the main cloud classroom Web system hair
Raw failure, including:
When at least one backup cloud classroom Web system does not receive the heartbeat message of the main cloud classroom Web system regularly, to
Other backup cloud classroom Web systems send failure inquiry message;
When at least one backup cloud classroom Web system receives the failure of other backup cloud classroom Web systems returns
During confirmation, broadcast the main cloud classroom Web system to the distributor and other described backup cloud classroom Web systems and occur
Failure.
6. a kind of cloud Classroom System, it is characterised in that the system includes:One distributor, a main cloud classroom Web system,
At least two backup cloud classroom Web systems and a virtual cloud classroom, wherein, the distributor is respectively connecting to the main cloud
Classroom Web system and each backup cloud classroom Web system, the main cloud classroom Web system are connected to the virtual cloud classroom;
The distributor, for sending user to the main cloud classroom Web system and each backup cloud classroom Web system respectively
Operation requests;
The main cloud classroom Web system, for carrying out actual treatment to the operation requests, it will be obtained from the virtual cloud classroom
To the result of actual treatment send to the distributor;
Each backup cloud classroom Web system, for the operation requests to be carried out with idle running processing, return to the idle running processing
As a result to the distributor.
7. system according to claim 6, it is characterised in that each backup cloud classroom Web system, be specifically used for:
When the operation requests are HTTP request, HTTP operating results are returned to the distributor;
When the operation requests are file operation requests, file operation result is returned to the distributor.
8. system according to claim 7, it is characterised in that each backup cloud classroom Web system, be specifically used for:
When the HTTP request is write operation requests, returns to write operation success to the distributor, the HTTP request and grasped for reading
When asking, the data that have prestored are returned to the distributor;
When the file operation requests are write operation requests, returning to write operation success to the distributor, the file operation please
Ask for read operation request when, for the data prestored described in return to the distributor, the file operation requests are file
When information operates, return to fileinfo and operate successfully to the distributor.
9. system according to claim 6, it is characterised in that
When the distributor determines that the main cloud classroom Web system breaks down, in each backup cloud classroom Web system
One of backup cloud classroom Web system, for sending a notification message to the distributor and other backup cloud classroom Web systems
System, wherein, the notification message carries the information of one of backup cloud classroom Web system;
One of backup cloud classroom Web system, for receiving other backups that the distributor returns and described respectively
The confirmation to the announcement information that cloud classroom Web system returns;
One of backup cloud classroom Web system, the operation requests for being sent to the distributor carry out actual treatment,
The result of the actual treatment got from the virtual cloud classroom is sent to the distributor.
10. system according to claim 9, it is characterised in that including:
When at least one backup cloud classroom Web system does not receive the heartbeat message of the main cloud classroom Web system regularly, to
Other backup cloud classroom Web systems send failure inquiry message;
When at least one backup cloud classroom Web system receives the failure of other backup cloud classroom Web systems returns
During confirmation, broadcast the main cloud classroom Web system to the distributor and other described backup cloud classroom Web systems and occur
Failure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610647602.5A CN107707588B (en) | 2016-08-09 | 2016-08-09 | Data processing method and cloud classroom system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610647602.5A CN107707588B (en) | 2016-08-09 | 2016-08-09 | Data processing method and cloud classroom system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107707588A true CN107707588A (en) | 2018-02-16 |
CN107707588B CN107707588B (en) | 2021-03-16 |
Family
ID=61168407
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610647602.5A Active CN107707588B (en) | 2016-08-09 | 2016-08-09 | Data processing method and cloud classroom system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107707588B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060085549A1 (en) * | 2004-10-18 | 2006-04-20 | Srinivas Hasti | Methods, systems and computer program products for dynamically updating session state affinity |
CN101557315A (en) * | 2009-05-15 | 2009-10-14 | 成都市华为赛门铁克科技有限公司 | Method, device and system for active-standby switch |
CN103167222A (en) * | 2013-03-29 | 2013-06-19 | 北京中科大洋科技发展股份有限公司 | Nonlinear cloud editing system |
CN104767806A (en) * | 2015-03-31 | 2015-07-08 | 重庆大学 | Method, device and system for backup of cloud data central task |
CN105049261A (en) * | 2015-08-24 | 2015-11-11 | 浪潮(北京)电子信息产业有限公司 | Processing method and system for dual-computer hot-standby data |
CN105554121A (en) * | 2015-12-18 | 2016-05-04 | 深圳中兴网信科技有限公司 | Method and system for realizing load equalization of distributed cache system |
-
2016
- 2016-08-09 CN CN201610647602.5A patent/CN107707588B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060085549A1 (en) * | 2004-10-18 | 2006-04-20 | Srinivas Hasti | Methods, systems and computer program products for dynamically updating session state affinity |
CN101557315A (en) * | 2009-05-15 | 2009-10-14 | 成都市华为赛门铁克科技有限公司 | Method, device and system for active-standby switch |
CN103167222A (en) * | 2013-03-29 | 2013-06-19 | 北京中科大洋科技发展股份有限公司 | Nonlinear cloud editing system |
CN104767806A (en) * | 2015-03-31 | 2015-07-08 | 重庆大学 | Method, device and system for backup of cloud data central task |
CN105049261A (en) * | 2015-08-24 | 2015-11-11 | 浪潮(北京)电子信息产业有限公司 | Processing method and system for dual-computer hot-standby data |
CN105554121A (en) * | 2015-12-18 | 2016-05-04 | 深圳中兴网信科技有限公司 | Method and system for realizing load equalization of distributed cache system |
Also Published As
Publication number | Publication date |
---|---|
CN107707588B (en) | 2021-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105760214B (en) | A kind of equipment state and resource information monitoring method, relevant device and system | |
Shoch et al. | The “worm” programs—early experience with a distributed computation | |
EP2648114B1 (en) | Method, system, token conreoller and memory database for implementing distribute-type main memory database system | |
CN105868111B (en) | Game of mobile terminal automatic test approach and device | |
CN105227374B (en) | The failure moving method and system of a kind of cluster application | |
JP5102901B2 (en) | Method and system for maintaining data integrity between multiple data servers across a data center | |
US9423956B2 (en) | Emulating a stretched storage device using a shared storage device | |
CN105786405B (en) | A kind of online upgrading method, apparatus and system | |
US20020103882A1 (en) | Method and system for hands-on e-learning | |
US9442811B2 (en) | Emulating a stretched storage device using a shared replicated storage device | |
CN106294176B (en) | The method and system that application failure positions in Mac OS systems | |
CN107666493B (en) | Database configuration method and equipment thereof | |
CN110247984A (en) | Method for processing business, device and storage medium | |
CN109558273A (en) | A kind of disk array backup method, electronic equipment and disk array | |
US10305963B2 (en) | Method and system for file sharing browse | |
CN104426968B (en) | Data managing method and device | |
CN105956009B (en) | A method of do something for the occasion in real time content matching and push | |
CN109918320A (en) | A kind of control method of USB device, device and KVM control system | |
US10437548B2 (en) | File shared browsing method and system | |
CN105487946B (en) | A kind of faulty computer automatic switching method and device | |
CN105677589A (en) | Access control method, access control device and access control system | |
CN110071918A (en) | A kind of data communications method and device based on mixed cloud | |
Zhou et al. | FTCloudSim: support for cloud service reliability enhancement simulation | |
CN107707588A (en) | A kind of data processing method and cloud Classroom System | |
JP2023505879A (en) | Distributed database system and data disaster backup training method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |