Invention content
For the defect for overcoming " background technology " part to be reflected, the present invention provides cloud system and applies newer method and dress
It sets.
Cloud system applies newer method, including:
1) click event is applied in record instance system, while monitors whether the application file catalogue in instance system becomes
Change;
If 2) 1) described in instance system in application file catalogue change, start in cloud system one it is new
Instance system removes the application log-on message of the new instance system;
3) constantly repeated in the new instance system described in 2) 1) described in apply click event, until new instance system
In application file catalogue change after no longer change more than setting time;
4) 3) the application file catalogue in the new instance system described in is copied into storage server.
Further, it when the application file catalogue in new instance system described in 3) copies to storage server, does not cover
The existing application file catalogue for exempting from installation and operation application in lid storage server.
Further, the method further includes:
5) application in the new instance system described in 3) is utilized on the instance system of no storage application update file
File directory start application, constantly repeatedly 1) described in apply click event, monitor without storage update file example system
Whether the application file catalogue of system changes;
If 6) 5) described in without storage update file instance system application file catalogue be more than the predetermined time
It is still unchanged, then using the application file catalogue in the new instance system described in 3) as in storage server for exempting from installation fortune
The application file catalogue of row application.
Further, the method is constantly repeated according to the period of setting.
Further, described in 1) includes the pop-up dialog box clicked in application interface using click event.
Further, being generated using click event by analyzing the interface of application described in 1), if in application interface
There is the scene that big frame covers small frame, then clicks small frame.
Cloud system applies newer device, and newer method is applied for implementing cloud system.
In technical solution of the present invention, the words such as " comprising ", " being used for " should understand according to open language mode.This field skill
Art personnel are no longer superfluous in this specification by the content reading this specification and combine the prior art or common knowledge that can know
It states.
Cloud system provided by the invention applies newer method and apparatus, more can update accurately and automatically cloud system
Application file catalogue in middle storage server for exempting from installation and operation application, is effectively reduced the artificial burden of operator, carries
The high user experience of cloud system.
Specific implementation mode
Embodiments of the present invention are further illustrated below.It should be noted that the scope of the present invention is not
It is confined to described specific technical solution.Any technology essential factor in described specific technical solution is carried out identical or is waited
With the technical solution or those skilled in the art for replacing acquisition without creation on the basis of described specific technical solution
Property the technical solution that is obtained with of labour, all should be considered as falling into protection scope of the present invention.
Certain operating system, can plus the necessary hardware (such as processor, memory etc.) run needed for the operating system
To constitute an instance system, various applications can be run in instance system, and (application refers to the operating system in instance system
The software or program of middle operation).Several instance systems are managed concentratedly according to certain framework mode, cloud system can be formed
System.In general, being provided with three control node, instance system and storage server components in cloud system, Fig. 1 is cloud system framework
Rough schematic view.Instance system and storage server are independent of one another, are all controlled by control node and are managed, the solid line in Fig. 1 is double
Indicate that control and administrative relationships, dotted line four-headed arrow indicate correspondence to arrow.Control node can be selected with X86-based
Control server, and storage server is independent high-performance storage server, has higher configuration (such as 8 cores processing
Big memory of device, 64G etc.).Operator takes storage server stringent physical isolation and technology protection measure, it is ensured that storage clothes
The data stored on business device are safe.The quantity of control node, instance system and storage server is remote in actual cloud system
More than one, for simple displaying, control node, instance system and each of storage server have drawn one in Fig. 1.Instance system
Can be by NFS shared files with storage server, many files that when such application operation needs can be not stored in example
System is local and is stored in long-range storage server, instance system exempt from many technical solutions such as installation and operation application also with
Based on this, such as application No. is the People's Republic of China (PRC) that 201610801208.2, publication No. is 106371878 A of CN hairs
Technical solution disclosed in bright patent application.
Current mainstream operation system, such as Windows, Mac, IOS, Linux and derivative behaviour on the basis of Linux
Make system such as Android etc., using all being installed by installation kit.A large amount of file is will produce after installation kit operation,
These files are located under one or more top layer parent directories, form certain TOC level relationship, the position of top layer parent directory and
Subdirectory structure under top layer parent directory is codetermined by operating system and installation kit.Application file catalogue of the present invention,
Refer to top layer parent directory, the subdirectories at different levels under top layer parent directory and the All Files under catalogue.Application file catalogue is not only wrapped
The All Files needed when application operation have been included, and have remained the TOC level relationship of these files.Meanwhile mainstream operation system
System all support window-functions, using in an operating system in the form of graphical interfaces open, user by mouse, trace ball, touch
Touch screen etc. equipment carried out in graphical interfaces click can run application.
Application file catalogue is stored in storage server, instance system is based on by NFS sharing application file directorys
This may be implemented instance system and exempts from installation and operation application.Although application file catalogue is stored in long-range storage server,
From the point of view of user, run not that there were significant differences after instance system normal mounting with applying.But the producer of application is normal
Application can often be updated, it is desirable that user downloads update file.If the application file catalogue in storage server does not update accordingly,
File is updated using may require that user downloads after startup, update file is stored in the application file catalogue of instance system local
In.It downloads file to be certain to waste the regular hour, influences user experience.In order to ensure the application file mesh in storage server
Record timely updates, and operator often arranges professional's monitoring to apply update status, and discovery, which has to update by hand when update notification, deposits
Store up the application file catalogue on server.If the substantial amounts of instance system and application, personal monitoring's newer method by hand
Certainly there is lag and omit, the Operational requirements of cloud system cannot be met.
To solve the above-mentioned problems, the present invention provides cloud system and applies newer method.Complete cloud system application update
Method flow chart as shown in Fig. 2, include step as described below.
S201:Click event is applied in record instance system, while monitoring the application file catalogue in instance system to be
No variation.
User on some instance system using a certain in application, will produce a series of click event, instance system note
Click event that record these corresponding with the application that user uses (referred to as applies click event).In general, application needs to download update
When file, a dialog box can be popped up, user is required to click confirmation, the click event of triggering update file download is likely to a little
Hit the pop-up dialog box in application interface.Record is using the application file catalogue in monitoring instance system while click event
No variation, the file in application file catalogue have the size of change or application file catalogue to change etc., can be seen as applying
File directory changes, and application file catalogue, which changes, easily means that update file starts to download.Due to example system
Itself None- identified which the click event of uniting may cause application file catalogue to change, thus since starting application to
All click events until application file catalogue changes all are recorded.
In addition to the click event that user is generated using application, click can also be automatically generated by analyzing the interface of application
Event.It is increased income using OpenCV etc. the graphical interfaces of image analysis tool analysis application, if occurring big frame set in application interface
The scene of small frame then clicks small frame.Above-mentioned scene is likely to require to click using the dialog box of pop-up download update file true
Recognize.
S202:If the application file catalogue in the instance system described in S201 changes, start in cloud system
One new instance system removes the application log-on message of the new instance system.
If monitoring that the application file catalogue of instance system changes in step S201, start one in cloud system
A new instance system.In order to avoid interfering the normal use of user, what is newly started is the instance system being in idle condition.Newly
After instance system starts, all log-on messages applied described in the step S201 preserved in new instance system are removed first, this
Sample can not continue to run with after the application on the new example of removing can be made to enter login interface.
S203:It constantly repeats to apply click event, Zhi Daoxin described in S201 in the new instance system described in S202
Application file catalogue in instance system no longer changes after changing more than setting time.
New instance system described in starting step S202, the application in new instance system described in starting step S201,
Constantly repeat to be recorded in step S201 applies click event.Due to the operating system of each instance system and the installation of application
Packet be it is identical, continuous repeated application click event as a result, the application file catalogue of new instance system can also change.It answers
General design custom is first to download update file to require user to log in again, if the variation of application file catalogue is to download more
Caused by new file, after updating file download after a period of time, application can enter login interface.Due in step S202
The application log-on message in new instance system is all removed, using that can not be continued to run with after entering login interface, is forced
It is parked on login interface, application file catalogue naturally also there will be no any variation.It can be according to instance system hardware configuration, net
The factors such as network transmission speed set a time, if being more than setting after newly the application file catalogue in instance system changes
Time no longer changes, that is, thinks that the update file of application has been downloaded and finish.
S204:Application file catalogue in new instance system described in S203 is copied into storage server.
Theoretically, application file catalogue in step S203 in new instance system be exactly included to update file to answer
With file directory, which is copied into storage server, storage server can use the application file catalogue
Exempt from installation and operation application in instance system.Step S204 terminates, it is meant that cloud system has been completed using newer method.
But only there are certain risks by execution step S201-S204.For example, can be recorded in step S201 various
Apply the click event, some of click events of various kinds are not to download update file it is also possible to application file catalogue is caused to be sent out
Changing.If there are the fortuitous events such as suspension in step S203 implementation procedures, the practical writing in new instance system is also resulted in
Part catalogue no longer changes after changing more than setting time, but update file is incomplete at this time.In order to avoid above-mentioned wind
Danger when the application file catalogue in new instance system described in step S203 copies to storage server, does not cover storage clothes
The existing application file catalogue for exempting from installation and operation application on business device, and execute following verification step.
S205:Using in the new instance system described in S203 on the instance system of no storage application update file
Application file catalogue starts application, constantly repeats to apply click event described in S201, monitor without storage update file
Whether the application file catalogue of instance system changes.
An instance system without the update file described in storing step S203 is found in cloud system, is usually met
The instance system of above-mentioned condition is another free instance system for being different from new instance system described in step S203 in cloud system
It unites (if there is the log-on message applied described in step S201 in the free instance system, being equally purged).If cloud
It, will be in the application file catalogue of the new instance system described in step S203 temporarily without other free instance systems in system
All Files are deleted, then the new instance system described in step S203 can also be considered as the example not stored using update file
System.On the instance system of no storage application update file, the step S203 having been copied in storage server is utilized
Described in new instance system in application file catalogue, in order to avoid mounting means operation application, constantly repeats to remember in step S201
Click event is applied in record, and whether the application file catalogue monitored without the instance system of storage update file changes.
S206:If the application file catalogue of the instance system without storage update file described in S205 is more than predetermined
Time is still unchanged, then using the application file catalogue in the new instance system described in S203 as in storage server for exempting from
The application file catalogue of installation and operation application.
If the application file catalogue of the instance system without storage update file described in step S205 is more than predetermined
Time (predetermined time is mainly configured according to the execution application click time required for the event) is still unchanged, shows step S201
Middle record will not make application file catalogue generate variation again using click event, further demonstrate described in step S203
It include complete update file in application file catalogue in new instance system.It at this time can be by the new example described in S203
Application file catalogue in system is as the application file catalogue for exempting from installation and operation application in storage server.If step
The application file catalogue of the instance system without storage update file described in S205 changes in the given time, then walks
Whether the application file catalogue in new instance system described in rapid S203 includes that complete update file leaves a question open, and is directly given up
It abandons, is considered as cloud system and executes failure using newer method.
Cloud system can be constantly repeated according to the period of setting and apply newer method, on the one hand can exclude certain in this way
Cloud system executes the influence of failure using newer method, ensures that storage server acquisition includes the application of complete update file
On the other hand file directory can also obtain newest update file in time.If some instance system runs a certain application
Update file is downloaded, other follow-up instance systems are in order to avoid mounting means would not download update file again when running the application.
Corresponding program is write in the instance system of cloud system and control node, it is possible to implement above-described cloud system
It can be considered as cloud system using the software of newer method, including above procedure and apply newer device.Cloud system application update
Device substantially computer software, be achieved in that and built using the description of each step of newer method according to cloud system
Program module corresponding with each step is found, the program module framework based on computer program is formed.Cloud system application update
Device be not the entity apparatus mainly realized by hardware mode.
Cloud system applies newer method and apparatus, more can update accurately and automatically storage server in cloud system
On for exempt from installation and operation application application file catalogue, be effectively reduced the artificial burden of operator.The user of cloud system meets
It is substantially reduced to the probability for downloading update file, greatly improves the user experience of cloud system.
Those skilled in the art can construct its other party completely on the basis of specific technical solution described above
Case.It is numerous to list herein.