Cloud mobile phone management system and exception handling method thereof
Technical Field
The invention relates to the technical field of networks, in particular to a cloud mobile phone management system and an exception handling method thereof.
Background
The cloud mobile phone is a smart phone application cloud platform based on cloud computing powerful virtual application and the mobile internet. Based on the outstanding advantages of cloud computing in large-scale computing, strong storage capacity, virtualization application and the like, the cloud platform provides diversified and omnibearing virtual mobile phone application and service for a smart mobile phone user, comprehensively supports display, downloading, application and management service of various mobile phone application programs, excellently realizes all-weather cloud intelligent hosting application, enables the user to be capable of hosting various application programs to a cloud under the state of being separated from a mobile terminal, keeps all-weather online state and comprehensively realizes smart mobile phone application virtualization.
The access and management of the cloud mobile phone are based on the operation request initiated by the centralized management service to the distribution management service of the cloud mobile phone, so that the operation of the cloud mobile phone of each machine room is realized. However, complicated network conditions in various regions may cause different cloud finger operation experiences for different machine rooms, and cloud mobile phones distributed in various regions need to run to the machine rooms in various regions for operation when being maintained, which is time-consuming and labor-consuming, and when operation requests are too concentrated, problems of too high flow and machine room fault disaster tolerance are easily caused.
Disclosure of Invention
Embodiments of the present invention are directed to solving at least one of the technical problems occurring in the prior art. Therefore, the embodiment of the invention needs to provide a cloud mobile phone management system and an exception handling method thereof.
The cloud mobile phone management system of the embodiment of the invention comprises:
each cloud mobile phone is used for providing applications and services of the virtual mobile phone for the user; the cloud mobile phones are distributed and deployed on the machine room distribution management platforms;
the system comprises a machine room distribution management platform, a centralized management platform and a service center, wherein a preset number of cloud mobile phones can run on the machine room distribution management platform and are used for sending operation requests of the cloud mobile phones to the centralized management platform;
the centralized management platform is used for centrally managing the operation requests initiated by the cloud mobile phone and responding to the operation requests;
the monitoring platform is used for monitoring the running states of the centralized management platform and the machine room distribution management platform;
and when the monitoring platform monitors that the running state of the centralized management platform or the machine room distribution management platform is in an abnormal state, sending an abnormal state early warning instruction to the centralized management platform, and processing the abnormal state by the centralized management platform.
In another embodiment, the setting of the running state of the centralized management platform in an abnormal state comprises: and when the centralized management platform receives the operation request, the flow value exceeds the preset flow threshold value.
Still further, the exception state handling includes: and writing the operation request into the message queue by the centralized management platform, and if the length of the message queue exceeds a preset queue length value, directly abandoning the operation request or feeding back error information to the cloud mobile phone.
In another embodiment, the operation state of the machine room distribution management platform in the abnormal state includes: and the machine room distribution management platform fails.
Still further, the exception state handling includes: and backing up the data of the failed machine room distribution management platform to other machine room distribution management platforms which do not fail by the centralized management platform.
The embodiment of the invention also provides an exception handling method based on the cloud mobile phone management system, which comprises the following steps:
step 1, the monitoring platform judges whether the running state of the centralized management platform or the machine room distribution management platform is in an abnormal state or not according to the monitoring result;
step 2, if yes, sending an abnormal state early warning instruction to a centralized management platform;
and 3, the centralized management platform processes the abnormal state according to the received abnormal state early warning instruction.
In another embodiment, the step 2 comprises:
if the monitoring platform judges that the flow value exceeds the preset flow threshold value when the centralized management platform receives the operation request according to the monitoring result, the running state of the centralized management platform is in an abnormal state, and the monitoring platform sends an abnormal state early warning instruction to the centralized management platform.
Still further, the step 3 includes:
and the centralized management platform writes the operation request into the message queue according to the received abnormal state early warning instruction, and directly discards the operation request or feeds an error report message back to the cloud mobile phone if the length of the message queue exceeds a preset queue length value.
In yet another embodiment, the step 2 comprises:
and if the monitoring platform judges that the machine room distribution management platform has a fault according to the monitoring result, the running state of the machine room distribution management platform is in an abnormal state, and the monitoring platform sends an abnormal state early warning instruction to the centralized management platform.
Still further, the step 3 includes:
and the centralized management platform backups the data of the machine room distribution management platform with the fault to other machine room distribution management platforms without the fault according to the received abnormal state early warning instruction.
According to the cloud mobile phone management system and the exception handling method based on the cloud mobile phone management system, the cloud mobile phones are deployed on the plurality of machine room distribution management platforms in a distributed mode, then the monitoring platforms monitor the abnormal states, when the abnormal states occur, the abnormal state early warning instructions are sent to the centralized management platforms, the centralized management platforms process the abnormal states, even if the problems of overhigh flow or machine room faults and the like exist under the condition of distributed deployment, the access of the existing normal cloud mobile phones cannot be influenced, the reliability of the system is further improved, and the use experience of the cloud mobile phones is optimized.
Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of embodiments of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic diagram of a cloud phone management system according to an embodiment of the present invention;
fig. 2 is a flowchart of an exception handling method of a cloud mobile phone management system according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are exemplary only and should not be construed as limiting the embodiments of the present invention.
Example 1
Referring to fig. 1, fig. 1 is a cloud mobile phone management system according to an embodiment of the present invention.
The cloud mobile phone management system comprises:
each cloud mobile phone is used for providing applications and services of the virtual mobile phone for the user; the cloud mobile phones are distributed and deployed on the machine room distribution management platforms;
the system comprises a machine room distribution management platform, a centralized management platform and a service center, wherein a preset number of cloud mobile phones can run in the machine room distribution management platform and are used for sending operation requests of the cloud mobile phones to the centralized management platform;
the centralized management platform is used for centrally managing the operation requests initiated by the cloud mobile phone and responding to the operation requests;
the monitoring platform is used for monitoring the running states of the centralized management platform and the machine room distribution management platform;
and when the monitoring platform monitors that the running state of the centralized management platform or the machine room distribution management platform is in an abnormal state, sending an abnormal state early warning instruction to the centralized management platform, and processing the abnormal state by the centralized management platform.
In the case of a small system scale, some cloud handsets may only need one computer room to store corresponding data. However, with the gradual scale expansion, the capacity expansion of the machine room may also be considered, but the simple capacity expansion does not solve the problems of cross-machine room data calling, time delay, overhigh flow, disaster recovery of machine room faults and the like.
In this embodiment, cloud mobile phones distributed in each machine room are managed through a set of centralized management platform and each machine room distribution management platform, where each machine room may be multiple machine rooms in each area or multiple machine rooms in the same area. And initiating an operation request to a machine room distribution management service to which the cloud mobile phone belongs through the centralized management platform, so as to realize the operation of the cloud mobile phones of all machine rooms.
Specifically, for example, 10 cloud mobile phones are deployed in a distributed manner in a machine room No. 1, that is, a machine room distribution management platform, and the 10 cloud mobile phones may belong to 10 different users. If the user A operates the cloud mobile phone A, for example, a screenshot operation is executed on the cloud mobile phone A, at the moment, the user operates a screenshot program on the cloud mobile phone A, the cloud mobile phone A can send an operation request related to screenshot to the machine room No. 1 to which the operation request related to screenshot of the cloud mobile phone is sent, and the centralized management platform responds to the operation request to further achieve the screenshot operation.
Under the system architecture, the monitoring platform is used for monitoring the running states of the centralized management platform and the machine room distribution management platform, namely when the monitoring platform monitors that the running states of the centralized management platform or the machine room distribution management platform are in an abnormal state, the monitoring platform sends an abnormal state early warning instruction to the centralized management platform, and the centralized management platform processes the abnormal state. The operation state includes one or more of traffic, network access speed and other state information.
Specifically, the operation state of the centralized management platform in the abnormal state includes: and when the centralized management platform receives the operation request, the flow value exceeds the preset flow threshold value. If 1000 cloud mobile phones access the network game "eight heaven and dragon" at the same time, a flow threshold value of 500M is preset on the centralized management platform, but due to the fact that loading of the game can cause massive transmission of picture and audio and video data, the flow value is 800M when the centralized management platform receives an operation request, and exceeds the flow threshold value on the centralized management platform, at this time, the situations that system access delay, blocking and the like affect normal use can occur, when the monitoring platform monitors that the situations occur, namely the operation state of the centralized management platform is considered to be in an abnormal state, the monitoring platform can send an abnormal state early warning instruction to the centralized management platform, and the centralized management platform carries out abnormal state processing.
Further, the above abnormal state processing of the overhigh flow rate may be that the centralized management platform writes the operation request into the message queue, and if the length of the message queue exceeds a preset queue length value, the operation request is directly discarded or an error message is fed back to the cloud mobile phone. The introduction of the message queue is to split the flow and ensure the response of most operation requests, but because the design of the system may also be influenced by the environmental factors such as bandwidth or processing speed, if the length of the message queue exceeds the preset queue length value, it may happen that the operation request cannot be responded at this time, then the processing modes are generally two: the operation request is directly abandoned or error information is fed back to the cloud mobile phone.
Specifically, the operation state of the machine room distribution management platform in the abnormal state includes: and the machine room distribution management platform fails. Since the machine room is usually unattended and operates in all weather according to 7 times 24 hours, if the machine room fails under the system mechanism of the embodiment, the cloud mobile phones operating in the machine room cannot be normally used or accessed.
Further, the abnormal state processing when the machine room distribution management platform fails may be that the centralized management platform backs up data of the failed machine room distribution management platform to other machine room distribution management platforms which are not failed. When the centralized management platform performs data backup, there are many options, for example, a machine room closest to a network node may be judged through a test of the network node, the data is backed up in a non-failed machine room closest to the network node, or the centralized management platform determines storage capacity of several candidate non-failed other machine rooms, and then the machine room with the largest remaining storage capacity is selected as a target machine room, and the data of the failed machine room distribution management platform is backed up in the non-failed machine room with the largest remaining storage capacity.
Example 2
Referring to fig. 2, fig. 2 is a flowchart of an exception handling method of a cloud mobile phone management system according to an embodiment of the present invention.
In this embodiment, the cloud mobile phone management system is the same as that in embodiment 1, and is not described herein again.
The exception handling method of the cloud mobile phone management system comprises the following steps:
step 1, the monitoring platform judges whether the running state of the centralized management platform or the machine room distribution management platform is in an abnormal state according to the monitoring result. The monitoring platform acquires the running state of the centralized management platform or the machine room distribution management platform, wherein the running state comprises one or more of state information such as flow, network access speed and the like. And then judging whether the running state is in an abnormal state or not according to the comparison of the obtained running state and the normal value or the preset value.
And 2, if so, sending an abnormal state early warning instruction to the centralized management platform. If the monitoring platform judges that the running state of the centralized management platform or the machine room distribution management platform is in an abnormal state according to the monitoring result, uniformly sending an abnormal state early warning instruction to the centralized management platform, and carrying out subsequent operation by the centralized management platform according to the abnormal state early warning instruction.
And 3, the centralized management platform processes the abnormal state according to the received abnormal state early warning instruction. In the cloud mobile phone management system of this embodiment, the abnormal state may be a centralized management platform or a machine room distribution management platform, so that different abnormal states need different abnormal state processing.
Specifically, if the monitoring platform judges that the flow value exceeds the predetermined flow threshold value when the centralized management platform receives the operation request according to the monitoring result, the running state of the centralized management platform is in an abnormal state, and the monitoring platform sends an abnormal state early warning instruction to the centralized management platform. If 1000 cloud mobile phones access the network game "eight heaven and dragon" at the same time, a flow threshold value of 500M is preset on the centralized management platform, but due to the fact that loading of the game can cause massive transmission of picture and audio and video data, the flow value is 800M when the centralized management platform receives an operation request, and exceeds the flow threshold value on the centralized management platform, at this time, the situations that system access delay, blocking and the like affect normal use can occur, when the monitoring platform monitors that the situations occur, namely the operation state of the centralized management platform is considered to be in an abnormal state, the monitoring platform can send an abnormal state early warning instruction to the centralized management platform, and the centralized management platform carries out abnormal state processing.
Further, the above processing of the abnormal state with the excessively high flow rate may be that the centralized management platform writes the operation request into the message queue according to the received abnormal state early warning instruction, and if the length of the message queue exceeds a preset queue length value, directly discards the operation request or feeds an error report message back to the cloud mobile phone. The introduction of the message queue is to split the flow and ensure the response of most operation requests, but because the design of the system may also be influenced by the environmental factors such as bandwidth or processing speed, if the length of the message queue exceeds the preset queue length value, it may happen that the operation request cannot be responded at this time, then the processing modes are generally two: the operation request is directly abandoned or error information is fed back to the cloud mobile phone.
Specifically, if the monitoring platform judges that the machine room distribution management platform fails according to the monitoring result, the running state of the machine room distribution management platform is in an abnormal state, and the monitoring platform sends an abnormal state early warning instruction to the centralized management platform. Since the machine room is usually unattended and operates in all weather according to 7 times 24 hours, if the machine room fails under the system mechanism of the embodiment, the cloud mobile phones operating in the machine room cannot be normally used or accessed.
Further, the abnormal state processing when the machine room distribution management platform fails may be that the centralized management platform backs up data of the failed machine room distribution management platform to other machine room distribution management platforms which are not failed according to the received abnormal state early warning instruction. When the centralized management platform performs data backup, there are many options, for example, a machine room closest to a network node may be judged through a test of the network node, the data is backed up in a non-failed machine room closest to the network node, or the centralized management platform determines storage capacity of several candidate non-failed other machine rooms, and then the machine room with the largest remaining storage capacity is selected as a target machine room, and the data of the failed machine room distribution management platform is backed up in the non-failed machine room with the largest remaining storage capacity.
In the description of the embodiments of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of describing the embodiments of the present invention and simplifying the description, but do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the embodiments of the present invention, "a plurality" means two or more unless specifically limited otherwise.
In the description of the embodiments of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. Specific meanings of the above terms in the embodiments of the present invention can be understood by those of ordinary skill in the art according to specific situations.
In embodiments of the invention, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may comprise the first and second features being in direct contact, or the first and second features being in contact, not directly, but via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different configurations of embodiments of the invention. In order to simplify the disclosure of embodiments of the invention, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present invention. Furthermore, embodiments of the invention may repeat reference numerals and/or reference letters in the various examples, which have been repeated for purposes of simplicity and clarity and do not in themselves dictate a relationship between the various embodiments and/or arrangements discussed. In addition, embodiments of the present invention provide examples of various specific processes and materials, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
In the description herein, references to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example" or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processing module-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of embodiments of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.