Method for achieving cloud mobile phone system overdivision based on storage
Technical Field
The invention relates to the technical field of cloud mobile phones, in particular to a method for achieving cloud mobile phone system overdivision based on storage.
Background
With the continuous development of the cloud mobile phone technology, the main application field of the cloud mobile phone is gradually expanded from the previous use of individual users to the application and use of users such as current government and enterprise under some special scenes. At present, in the face of increasingly intense technical competition in the industry market, the cost of the cloud mobile phone owned by the user is increasingly lower, so that under the condition that the market application demand is increasingly wide, and the cost of the cloud mobile phone owned by the user is increasingly lower, and under the condition that the cost of hardware software and manpower is high and the cost of enterprises is not low, if the enterprise still adopts the traditional scheme to purchase more cloud mobile phone hardware devices to support more and more cloud mobile phone user demands, the enterprise needs to continuously invest more devices and a large number of professional technicians, and the enterprise in the intense market competition is heavily burdened. Therefore, how to solve the seemingly normal logic problem that more devices need to be invested in the traditional scheme to support more subsequent services brings the following requirements:
(1) When the cloud mobile phone technology obtains more breakthrough development, the application field of the cloud mobile phone is better and wider than that of the cloud mobile phone at present, explosive users are bound to grow at this moment, and how to timely meet the service requirements of the users growing in the short term in the later period is achieved.
(2) How to meet the requirements of different users on the performance of the cloud mobile phone when the cloud mobile phone is used by the different users, the running services of the different users are often different when the cloud mobile phone is used by the different users, for example, the performance requirements on hardware are higher when a game player runs a 3A job, and the requirements on the performance of the hardware are not high when a common user runs office software such as an app like nailing and the like.
(3) How to deal with the requirement of a user for changing the cloud mobile phone service, many times, the user needs to select different types of services, such as storage space capacity expansion service, according to the requirement of the user, when the data of the user is accumulated to a certain extent, the storage space provided by the original service may be used up, and how to flexibly deal with the requirement of the user at this time.
The problems that currently exist:
(1) The rapidly growing users may cause the cloud mobile phone hardware resources to be allocated in a large amount in a short period, and finally cause the hardware resources to be consumed rapidly, and the newly growing users may face the embarrassment of no hardware being allocable. The rapid popularization of the application field of the cloud mobile phone brings about rapid growth of new users, and in the face of the influx of a large number of new users, the problem that the service of the new users cannot be supported in time due to the shortage of hardware resources is solved.
(2) The problem of equipment input cost and the problem of manpower maintenance cost increase caused by continuously increasing cloud mobile phone hardware. The increase of the user amount of the cloud mobile phone finally has to solve the explosive increase demand of the user by putting more hardware, but how to utilize the hardware resources of the existing cloud mobile phone to the maximum extent to serve more users greatly reduces the equipment and manpower maintenance cost of enterprises.
(3) The cloud mobile phone hardware resource utilization rate is low. For different cloud mobile phone users, the requirements on the use scene, the use time, the use frequency and the performance of the cloud mobile phone are different, part of the users only use the cloud mobile phone in part of time periods or scenes after obtaining the cloud mobile phone, and most of the time, the cloud mobile phone is always in an idle state, and idle hardware resources cannot be effectively and reasonably utilized, so that the resource utilization rate and the resource waste of the current cloud mobile phone are caused.
(4) How to flexibly correspond to the differentiated service requirements put forward by users. The method has the advantages that high performance requirements are needed when part of users use the cloud mobile phone, the requirements for hardware performance are not high when most other users use the cloud mobile phone, and at the moment, how to provide differentiated services for different types of users and how to meet different requirements of different users for the services at different times are achieved.
Therefore, further improvements are needed in the art.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a method for cloud mobile phone system super-separation based on storage.
In order to achieve the purpose, the invention adopts the following specific scheme:
a method for cloud mobile phone system super-resolution based on storage implementation comprises the following steps:
step 1, a distributed storage system is used for providing a large number of independent expandable storage spaces, and each newly registered user is allocated with an unallocated independent expandable storage space;
step 2, when a user requests to log in a cloud mobile phone, a cloud mobile phone which is currently in an idle state is distributed, and a corresponding storage space is mounted to a designated partition of a cloud mobile phone system;
step 3, after the cloud mobile phone system mounts the storage space, reading the configuration file and related data specified in the cloud mobile phone system, starting the system, and enabling the user to use the system normally;
step 4, in the process of using the cloud mobile phone, judging whether to carry out over-scoring on the cloud mobile phone system of the user or not after the over-scoring rule is triggered;
and 5, superdividing the cloud mobile phone, and recycling the cloud mobile phone to an idle resource pool for standby.
Further, in step 1, the specific steps when the user registers are as follows:
step 11, registering a new user;
and step 12, storing the registered user information into a database.
Further, in step 2, the specific steps when the user logs in are as follows:
step 21, user login authentication;
and step 22, searching the address of the storage space corresponding to the user.
Further, in step 3, the specific steps when the cloud mobile phone is started are as follows:
step 31, the resource scheduler sends the acquired cloud mobile phone address information back to the message queue server again;
and step 32, after the cloud mobile phone management platform acquires the return information from the resource scheduler, returning the access link of the cloud mobile phone to the user mobile phone client, and accessing the cloud mobile phone by the mobile phone client according to the link.
Further, in step 4, the specific step of the super-resolution determination is as follows:
step 41, the resource monitor matches various operation indexes of the cloud mobile phone at the moment according to a preset rule;
step 42, the resource monitor sends the super-distribution request to the message queue server;
step 43, the hyper-minute manager obtains information from the message queue server.
Further, in step 5, the cloud mobile phone is overdetermined specifically by the following steps:
step 51, judging that the user does not actually use the cloud mobile phone at the moment, and triggering the over-scoring function of the cloud mobile phone;
step 52, the cloud mobile phone system executes user data storage operation, and stores the user data into a storage space;
and step 53, the system executes unloading operation, and the cloud mobile phone is recycled to the cloud mobile phone free resource pool.
Further, in step 1, the user login authentication specifically comprises the following steps:
step 211, the resource scheduler obtains a request from the message queue server;
step 212, after analyzing the request, contacting the storage cluster to acquire address information of the storage volume;
step 213, requesting a cloud mobile phone hardware resource in an idle state in the cloud mobile phone cluster, and notifying the cloud mobile phone to mount a designated storage volume.
Further, step 32 comprises: when the storage space is started for the first time, initialization operation is carried out on the storage space.
Further, step 41 includes: presetting a super-score rule on a management platform, wherein the super-score rule comprises the following steps: the page is a welcome page for a long time or the user has no input for a long time.
Further, in step 53, the specific steps when the cloud mobile phone is recovered are as follows:
step 531, sending the executed information to a database;
and 532, the current state of the user is updated to be offline again by the information received by the database, and finally the over-division operation is completed.
By adopting the technical scheme of the invention, the invention has the following beneficial effects:
the invention discloses a method for realizing cloud mobile phone system over-separation based on storage, which separates data of users on cloud mobile phones from a system, and enables each user of the cloud mobile phone to have a dedicated data storage space, so that the hardware and the system of the cloud mobile phone are separated, thereby bringing great flexibility to the cloud mobile phones, and simultaneously solving the problems that the rapidly-increased users can cause the hardware resources of the cloud mobile phones to be rapidly consumed in a short period, the equipment investment cost and the manpower maintenance cost are increased due to the continuous and new increase of the hardware of the cloud mobile phones, the utilization rate of the hardware resources of the cloud mobile phones is low, and how to flexibly correspond to the differentiated service requirements provided by the users.
Drawings
Fig. 1 is a schematic flow chart of a management method of a cloud handset according to an embodiment of the present invention;
fig. 2 is a schematic composition diagram of a management system of a cloud handset according to an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the following figures and specific examples.
Fig. 1 is a schematic flow chart of a management method of a cloud handset according to an embodiment of the present invention.
The specific process is as follows:
1. the distributed storage system is used for providing a large amount of independent available storage space, and the cloud mobile phone management platform allocates an independent extensible storage space which is not allocated in the storage pool for each new registered user.
2. When a user requests to log in a cloud mobile phone for the first time, the cloud mobile phone system management platform allocates a cloud mobile phone which is currently in an idle state in a cloud mobile phone hardware pool according to a certain rule, meanwhile, returns detailed information of the user according to database query, acquires a storage space address allocated to the user, and mounts the storage space to a specified partition of the requested cloud mobile phone system.
3. After the storage space is mounted, the cloud mobile phone system reads the configuration file and related data specified in the storage space, when the cloud mobile phone system is started for the first time, initialization operation is carried out on the storage space, and a user can use the cloud mobile phone system normally after the system is started.
4. When a cloud mobile phone management platform triggers a preset over-scoring rule of the cloud mobile phone management platform (for example, when a page is a welcome page for a long time or the user does not have any input or other related operation behaviors for a long time) in the process that the user uses the cloud mobile phone, the cloud mobile phone management platform judges whether the cloud mobile phone system of the user can be over-scored or not according to the preset rules.
5. When the cloud mobile phone management platform judges that the user does not actually use the cloud mobile phone at the moment according to the preset rules, the cloud mobile phone management platform system triggers the super-division function of the cloud mobile phone, the cloud mobile phone system distributed to the user executes user data storage operation at the moment, the system executes unloading operation after the user data is stored in the storage space, and at the moment, cloud mobile phone hardware is recycled to a cloud mobile phone free resource pool to wait for receiving a next login request of the user.
Fig. 2 is a schematic composition diagram of a management system of a cloud handset according to an embodiment of the present invention.
1. In the figure, a "smiley face" icon represents a user, and a cylinder represents a storage space for storing user data.
2. The storage cluster provides a plurality of storage pools in which storage volumes of "data 0-data" storage space that have been created in advance and user volumes that have been used are prepared.
Os box represents the cloud phone operating system running on the cloud phone local flash, such as: and (4) customizing the android operating system.
4. The cloud mobile phone cluster provides a cloud mobile phone resource pool, a large number of cloud mobile phones which are not allocated to the users for use are stored in the resource pool, and the idle cloud mobile phones are used for responding to a resource scheduler of the cloud mobile phone management platform and are allocated to the users needing to log in the cloud mobile phones at the moment.
For example, when a new user registers, the new user first requests to log in a cloud mobile phone:
1. after the user finishes the first registration, after the user passes the authentication of the identity authentication server during the first login, the user can be normally connected to the cloud mobile phone management platform through the cloud mobile phone client, the cloud mobile phone management platform queries the database at the moment, the current state information of the user (information such as whether the user logs in, a storage space address used by the user, the area where the current ip of the user is located and the like) is obtained, and when the user is judged not to be connected to the cloud mobile phone at the moment, the user request information is put into the message queue server.
2. The resource scheduler acquires a request from the message queue server, contacts the storage cluster after analyzing the request, acquires address information of the storage volume, requests a cloud mobile phone hardware resource in an idle state at present from the cloud mobile phone cluster, and informs the cloud mobile phone of mounting a specified storage volume.
3. And the resource scheduler sends the acquired cloud mobile phone address information back to the message queue server, at the moment, after the cloud mobile phone management platform acquires the return information from the resource scheduler, an access link of the cloud mobile phone is returned to the user mobile phone client, and the mobile phone client accesses the cloud mobile phone according to the link (URL).
4. When the user does not execute any operation for a long time, the resource monitor matches various operation indexes of the cloud mobile phone according to a preset rule, if the user is finally judged to be unused for a long time, the resource monitor sends an over-rating request to the message queue server, and the over-rating manager executes over-rating operation on the cloud mobile phone after acquiring the information.
5. The super-sharing manager firstly stores user data to a storage volume, then unloads the mounted independent storage volume, recovers the cloud mobile phone to a cloud mobile phone idle resource pool, then sends executed information to the database, renews the current state of the user to be offline according to the information received by the database, and finally completes the super-sharing operation.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structural changes made by using the contents of the present specification and the drawings, or any other related technical fields directly/indirectly applied to the present invention are included in the scope of the present invention.