Specific embodiment
For the purpose, technical scheme and advantage for making the embodiment of the present application become more apparent, with reference to embodiment and attached
Figure, is described in further details to the embodiment of the present application.Here, the illustrative examples of the embodiment of the present application and its saying
It is bright for explaining the embodiment of the present application, but be not intended as the restriction to the embodiment of the present application.
Below in conjunction with the accompanying drawings, the specific embodiment to the embodiment of the present application is described in further detail.
With reference to shown in Fig. 2, the application system starting protection method of the embodiment of the present application is comprised the following steps:
Step S101, the first application system to second system initiate obtain start rely on data request after, connect
Receive the dependence data that the second system is returned for the request.
In the embodiment of the present application, the second system include the second application system (i.e. relative to the first application system its
His application system), file system and/or database.Additionally, first application system and second of the embodiment of the present application
System may each be the system of unit, or the system (such as distributed system etc.) of cluster.
In the embodiment of the present application, startup described here relies on data, and to refer to that application system is required on startup deposit
It is stored in the dependence data in other systems.As an example it is assumed that the first application system is A, it is on startup except needing
The startup itself to store is relied on outside data a (such as some configuration informations etc.), in addition it is also necessary to respectively should to second
B data are got with system B, after file system C gets c data, and database D gets d data
It is only possible to normal startup.If A initiates to call the request for starting and relying on data to the second application system B, then
It refers to just b data that startup now relies on data, similar, if A initiates to access to file system C started
The request of relied on data, then it refers to just c data that startup now relies on data, if A is to database D
Initiate inquiry and start the request for relying on data, then it refers to just d data that startup now relies on data.
In the embodiment of the present application, the first application system initiates to obtain the request opportunity for starting and relying on data to second system
When typically can be that the first application system starts;Additionally, when the startup institute of first application system in second system
When dependence data have renewal, first application system can also be initiated to obtain to start and rely on data to second system
Request.
Step S102, judge whether to be received in the range of setting time the second system and returned for the request
Dependence data.If receiving the dependence number that the second system is returned for the request in the range of setting time
According to then performing step S103;If not receiving the second system in the range of setting time for the request
The dependence data of return, then perform step S104.
In the embodiment of the present application, setting time scope can be typically first application system after the request is sent
Stand-by period.And stand-by period of first application system after the request is sent can be with the side such as informing mechanism
Formula is obtained, and described informing mechanism can for example be realized by call back function etc..
Step S103, judge it is described dependence data whether meet preset data form.General, the first application system
The acquisition initiated to the second system can specify the data for starting and relying on data in starting the request for relying on data
Form.If the dependence data do not meet the preset data form, step S104 is performed.
Step S104, call first application system that prestores it is last successfully start up loaded corresponding data,
Loaded during for this startup of first application system.
In the embodiment of the present application, described last successfully starting up refers to that the last success of the first application system is opened
It is dynamic.The last startup loaded when illustrating to start at that time that successfully starts up of first application system relies on data
Be it is correct, and present application example by this correct data be back to first application system for its start-up loading without
It is doubtful greatly to improve the successful probability of the first application system startup.
In other embodiments of the application, if preset data form, application system described in the dependence data fit
System starting protection method can also comprise the following steps:
Dependence data described in step S105, comparing successfully start up institute with first application system last time for prestoring
Whether the corresponding data of loading is consistent.If it is described rely on data it is last with first application system that prestores into
Work(starts loaded corresponding data unanimously, then perform step S106;If dependence data and described in prestoring
First application system it is last to successfully start up loaded corresponding data inconsistent, then perform step S107.
In the embodiment of the present application, described corresponding data refers to:First application system may be needed when starting every time
Many number evidences are loaded, and a copy of it data of these many number evidences may be from the second system, then this
The data that part comes from the second system are exactly the dependence data that this described second system is returned for the request
Corresponding data.Such as, what first application system was last successfully start up, and that loaded data x comes from is described
Second system, and the dependence data in the response that this described second system is returned for the request are x ', then number
The corresponding data of data x ' is according to x, also just says that the comparison other in this step is x and x '.
Step S106, the preservation dependence data, and complete to include the dependence data in first application system
Start-up loading after, the data loaded when by this loaded data markers of startup being the last successfully starting up.Its
In, described preservation is generally local preservation (being such as saved in local disk).
Step S107, the preservation dependence data, and complete to include the dependence data in first application system
Start-up loading after, check whether this startup of first application system succeeds;Wherein, described preservation is general
(being such as saved in local disk) is preserved for local.If this of first application system starts successfully, hold
Row step S108;If this of first application system starts failure, execution step S104 is redirected, that is, adjusted
Loaded corresponding data is successfully started up with first application system last time for prestoring, for the described first application
System is again started up loading.
Whether this of first application system described in the embodiment of the present application to start successful can be disposable if being checked
Detection.In another embodiment of the application, whether this of inspection first application system starts successfully also
Can be setting the time limit (for example first application system complete comprising it is described dependence data start-up loading after
One hour) in repeatedly check first application system this start whether succeed, otherwise regarding described first should
It is failure with this startup of system.In some embodiments of the present application, described multiple inspection can be examined for timing
Test (such as once checked within every three minutes).In other embodiments of the application, described multiple inspection can
Think randomized test.
Additionally, in the embodiment of the present application, the content of inspection can include whether system port is normal, system external response
Whether whether normal, and/or system can provide normal service.And in another embodiment of the application, can also pass through
The mode of event flag judges whether first application system normally starts, when first application system is normally opened
It can carry out event flag (such as writing a file) after dynamic, if the setting after first application system startup
The event flag is received in time and then shows that first application system has been successfully started up, otherwise show first application
System starts failure.
Step S108, the data loaded when being the last successfully starting up by this loaded data markers of startup.
In the embodiment of the present application, the meaning for preserving the data loaded during the last successfully starting up is for described first should
Facility is provided with the follow-up startup of system.In an embodiment of the application, synchronization can retain multiple history versions
This data loaded when successfully starting up, when the data for having redaction are stored, expired version (i.e. earliest version)
Data can be deleted, it is such to be advantageous in that, when first application system is loaded with the last success
When still not successfully started up after the data of startup, it is also contemplated that by loading the added when successfully starting up of more older version
The data of load restart.Certainly, in another embodiment of the application, in order to prevent history from loading overabundance of data
Storage resource is taken, normally only needs to retain the data loaded when successfully starting up of several (such as three) versions.
In some embodiments of the present application, as a kind of Optimized Measures, if the dependence data should with described first
With system it is last to successfully start up loaded corresponding data inconsistent, can also be problem by the dependence data markers
Data are simultaneously preserved.It is intended that initiate to obtain to the second system in first application system next time starting institute
When relying on the request of data, if receiving identical data, can be with Direct Recognition as problem data, not pre-add
Carry, in order to avoid waste system resource.And in other embodiments of the application, if the dependence data and described the
One application system it is last to successfully start up loaded corresponding data different, it is also possible to directly delete the dependence data,
To save memory space.
Although procedures described above flow includes the multiple operations occurred with particular order, it should however be appreciated that understand,
These processes can include more or less operation, and these operations can sequentially be performed or executed in parallel (is for example used
Parallel processor or multi-thread environment).
In embodiments herein, initiate to obtain the request for starting and relying on data to second system in the first application system
Afterwards, judge whether to receive the dependence data that second system is returned for request in the range of setting time;If set
Dependence data are not received in the range of fixing time, although or dependence data are received in the range of setting time should be according to
Rely the form of data problematic, then that calls the first application system for the prestoring last time successfully starts up the corresponding number for being loaded
According to loading during for this startup of the first application system.By application system it is last successfully start up loaded right
It is correct to answer data, therefore, even if occurred in that between current application system and other related systems suspension, machine of delaying,
The problems such as network jitter or dependence data formatting error, embodiments herein can still ensure that application system is starting
When can be loaded into correct startup and rely on data, so as to improve the startup success rate of application system.
If additionally, the dependence data fit preset data form received in the range of setting time, compares dependence number
Whether consistent according to last with the first application system for prestoring if successfully starting up loaded corresponding data.If consistent,
Then preserve and rely on data and be loaded directly into the dependence data;If it is inconsistent, preserve relying on data and in the first application
System completes, comprising after the start-up loading for relying on data, to check whether this startup of the first application system succeeds.If
Success, the then data loaded when being the last successfully starting up by the loaded data markers of this startup.If it fails,
That then calls the first application system for the prestoring last time successfully starts up loaded corresponding data, for the first application system
It is again started up loading.Therefore, even if the content of dependence data that returns of other related systems is vicious or have missing,
Embodiments herein still can ensure that application system can be loaded into correct startup and rely on data on startup, from
And further increase the startup success rate of application system.
With reference to shown in Fig. 3, the application system starting protection device of the embodiment of the application one includes:
Data reception module 31, data are relied on for initiating to obtain to start to second system in the first application system
After request, judge whether to receive the dependence number that the second system is returned for the request in the range of setting time
According to.
In the embodiment of the present application, the second system include the second application system (i.e. relative to the first application system its
His application system), file system and/or database.Additionally, first application system and second of the embodiment of the present application
System may each be the system of unit, or the system (such as distributed system etc.) of cluster.
In the embodiment of the present application, startup described here relies on data, and to refer to that application system is required on startup deposit
It is stored in the dependence data in other systems.As an example it is assumed that the first application system is A, it is on startup except needing
The startup itself to store is relied on outside data a (such as some configuration informations etc.), in addition it is also necessary to respectively should to second
B data are got with system B, after file system C gets c data, and database D gets d data
It is only possible to normal startup.If A initiates to call the request for starting and relying on data to the second application system B, then
It refers to just b data that startup now relies on data, similar, if A initiates to access to file system C started
The request of relied on data, then it refers to just c data that startup now relies on data, if A is to database D
Initiate inquiry and start the request for relying on data, then it refers to just d data that startup now relies on data.
In the embodiment of the present application, the first application system initiates to obtain the request opportunity for starting and relying on data to second system
When typically can be that the first application system starts;Additionally, when the startup institute of first application system in second system
When dependence data have renewal, first application system can also be initiated to obtain to start and rely on data to second system
Request.
In the embodiment of the present application, the first application system initiates to obtain the request opportunity for starting and relying on data to second system
When typically can be that the first application system starts;Additionally, when the startup institute of first application system in second system
When dependence data have renewal, first application system can also be initiated to obtain to start and rely on data to second system
Request.
In the embodiment of the present application, setting time scope can be typically first application system after the request is sent
Stand-by period.And stand-by period of first application system after the request is sent can be with the side such as informing mechanism
Formula is obtained, and described informing mechanism can for example be realized by call back function etc..
Form judge module 30, for receiving institute in the range of the setting time when the data reception module 31
When stating dependence data, judge whether the dependence data meet preset data form.It is general, the first application system to
The acquisition that the second system is initiated can specify the data lattice for starting and relying on data in starting the request for relying on data
Formula.
First starts Coordination module 32, for not meeting the preset data form, Huo Zhesuo when the dependence data
State data reception module 31 do not received in the range of the setting time it is described dependence data when, call the institute for prestoring
That states the first application system last time successfully starts up loaded corresponding data, and for first application system, this is opened
Loaded when dynamic.
The last startup loaded when illustrating to start at that time that successfully starts up of first application system relies on number
According to being correct, and this correct data is back to first application system for its start-up loading by present application example
Undoubtedly can greatly improve first application system and start successful probability.
In the application other embodiments, application system starting protection device can also include:
Data comparison module 33, for when preset data form described in the dependence data fit, it is relatively described according to
Rely data it is last with first application system that prestores whether successfully start up loaded corresponding data consistent.
In the embodiment of the present application, described corresponding data refers to:First application system may be needed when starting every time
Many number evidences are loaded, and a copy of it data of these many number evidences may be from the second system, then this
The data that part comes from the second system are exactly the dependence data that this described second system is returned for the request
Corresponding data.Such as, what first application system was last successfully start up, and that loaded data x comes from is described
Second system, and the dependence data in the response that this described second system is returned for the request are x ', then number
The corresponding data of data x ' is according to x, also just says that the comparison other in this step is x and x '.
Second starts Coordination module 35, for when the dependence data and first application system last time for prestoring
Successfully start up loaded corresponding data it is inconsistent when, then preserve the dependence data.Wherein, described preservation one
As be local to preserve (being such as saved in local disk).
Health examination module 36, for completing the start-up loading comprising the dependence data in first application system
Afterwards, check whether this startup of first application system succeeds.
Whether this of first application system described in the embodiment of the present application to start successful can be disposable if being checked
Detection.In another embodiment of the application, whether this of inspection first application system starts successfully also
Can be setting the time limit (for example first application system complete comprising it is described dependence data start-up loading after
One hour) in repeatedly check first application system this start whether succeed, otherwise regarding described first should
It is failure with this startup of system.In some embodiments of the present application, described multiple inspection can be examined for timing
Test (such as once checked within every three minutes).In other embodiments of the application, described multiple inspection can
Think randomized test.
Additionally, in the embodiment of the present application, the content of inspection can include whether system port is normal, system external response
Whether whether normal, and/or system can provide normal service.Because above-mentioned inspection content belongs to this area routine techniques
Means, are not discussed in detail here.And in another embodiment of the application, can also be judged by way of event flag
Whether first application system normally starts, and it can carry out event mark after first application system normally starts
Note (such as writing a file), if first application system startup after setting time in receive the event flag
Then show that first application system has been successfully started up, otherwise show that first application system starts failure.
3rd starts Coordination module 37, for when this startup of first application system fails, calling and prestoring
First application system it is last successfully start up loaded corresponding data, for first application system again
Secondary start-up loading.
4th starts Coordination module 34, for when the dependence data and first application system last time for prestoring
Successfully start up loaded corresponding data it is consistent when, preserve the dependence data, and complete in first application system
Into after the start-up loading comprising the dependence data, by the loaded data markers of this startup for the last time successfully opens
The data loaded when dynamic.Wherein, described preservation is generally local preservation (being such as saved in local disk).
First data markers module 38, for when this of first application system starts successfully, this being opened
Move the data loaded when loaded data markers are the last successfully starting up.
In the embodiment of the present application, the meaning for preserving the data loaded during the last successfully starting up is for described first should
Facility is provided with the follow-up startup of system.In an embodiment of the application, synchronization can retain multiple history versions
This data loaded when successfully starting up, when the data for having redaction are stored, expired version (i.e. earliest version)
Data can be deleted, it is such to be advantageous in that, when first application system is loaded with the last success
When still not successfully started up after the data of startup, it is also contemplated that by loading the added when successfully starting up of more older version
The data of load restart.Certainly, in another embodiment of the application, in order to prevent history from loading overabundance of data
Storage resource is taken, normally only needs to retain the data loaded when successfully starting up of several (such as three) versions.
Second data markers module 39, for when this of first application system starts failure, will it is described according to
Data markers are relied to be problem data.In some embodiments of the present application, as a kind of Optimized Measures, if it is described according to
Rely data and first application system it is last to successfully start up loaded corresponding data inconsistent, can also and incite somebody to action this
Data markers are relied on to be problem data and preserve.It is intended that next to described second in first application system
When system initiation acquisition startup relies on the request of data, if receiving identical data, can be with Direct Recognition
Problem data, does not preload, in order to avoid waste system resource.
With reference to shown in Fig. 4, in another embodiment of the application, on the premise of other modules are constant, above-mentioned application system
Second data markers module 39 of system starting protection device could alternatively be data removing module 39 '.The data are deleted
Module 39 ' is deposited for when this startup of first application system fails, deleting the dependence data with saving
Storage space.
In embodiments herein, initiate to obtain the request for starting and relying on data to second system in the first application system
Afterwards, data reception module judges whether to receive the dependence number that second system is returned for request in the range of setting time
According to;If not receiving dependence data in the range of setting time, although or received in the range of setting time according to
Rely the form of data but the dependence data problematic, then the first startup Coordination module is called in the first application system for prestoring
Once successfully start up loaded corresponding data, for the first application system this startup when load.Because application is
Last the loaded corresponding data that successfully starts up of uniting is correct, therefore, even if current application system and other phases
The problems such as suspension, machine of delaying, network jitter are occurred in that between relation system or data formatting error is relied on, the reality of the application
Applying example can still ensure that application system can be loaded into correct startup and rely on data on startup, so as to improve application
The startup success rate of system.
If additionally, the dependence data fit preset data form received in the range of setting time, data compare mould
Block compare rely on data it is last with the first application system for prestoring successfully start up loaded corresponding data whether one
Cause.If consistent, the 4th startup Coordination module preserves and relies on data and be loaded directly into the dependence data;If differed
Cause, second starts Coordination module preserves dependence data and completed comprising the start-up loading for relying on data in the first application system
Afterwards, whether this startup of the first application system of inspection succeeds.If it succeeds, the first data markers module by this
Start the data loaded when loaded data markers are the last successfully starting up.If it fails, then the 3rd startup is assisted
Mode transfer block call the first application system for prestoring it is last successfully start up loaded corresponding data, for the first application
System is again started up loading.Therefore, even if the content of dependence data that returns of other related systems is vicious or have
Missing, embodiments herein still can ensure that application system can be loaded into correct startup and rely on number on startup
According to so as to further increase the startup success rate of application system.
For convenience of description, it is divided into various modules with function during description apparatus above to describe respectively.Certainly, implementing
The function of each module can be realized in same or multiple softwares and/or hardware during the application.
Said apparatus can be arranged in application system as a part for application system, realize its function.As another kind
Implementation method, said apparatus can also independently be arranged in and its function is realized between the first application system and second system.
With reference to shown in Fig. 5, the application system of the embodiment of the present application is on the basis of original module, to be provided with using system
System starting protection device, i.e. application system starting protection device constitute a part for the application system of the embodiment of the present application,
The application system starting protection device is interacted to realize it by the original module and local disk with application system
Function (such as during data storage, is interacted, for another example, with the original of application system during returned data with local disk
There is module to interact etc.).Specifically, referring to said apparatus embodiment, will not be repeated here.
Method or apparatus described by above the embodiment of the present application can be directly embedded into can be by the software mould of computing device
In block.Software module can be stored in RAM memory, flash memory, ROM memory, eprom memory,
Other arbitrary forms in eeprom memory, register, hard disk, moveable magnetic disc, CD-ROM or this area
Storage medium in.Exemplarily, storage medium can be connected with processor, to allow processor from storage matchmaker
Information is read in Jie, it is possible to deposit write information to storage medium.Alternatively, storage medium can also be integrated into processor
In.
Those skilled in the art will also be appreciated that, various illustrative components, blocks that the embodiment of the present application is listed and step are also
Can be realized by software and hardware combining, such as the spectrum analysis part of the embodiment of the present application be realized with hardware, and its
His part is still implemented in software.Realize depending on specific application and whole to software or software and hardware combining is then passed through
The design requirement of individual system.Those skilled in the art can be for every kind of specific application, it is possible to use various method realities
Existing described function, but this realization is understood not to the scope beyond the embodiment of the present application protection.
Particular embodiments described above, purpose, technical scheme and beneficial effect to the application have been carried out further in detail
Describe in detail bright, should be understood that the specific embodiment that the foregoing is only the embodiment of the present application, be not used to limit
Determine the protection domain of the application, all any modifications within spirit herein and principle, made, equivalent,
Improve etc., should be included within the protection domain of the application.