CN106156231A - A kind of website disaster recovery method, Apparatus and system - Google Patents

A kind of website disaster recovery method, Apparatus and system Download PDF

Info

Publication number
CN106156231A
CN106156231A CN201510202370.8A CN201510202370A CN106156231A CN 106156231 A CN106156231 A CN 106156231A CN 201510202370 A CN201510202370 A CN 201510202370A CN 106156231 A CN106156231 A CN 106156231A
Authority
CN
China
Prior art keywords
dynamic page
page
dynamic
request
backup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510202370.8A
Other languages
Chinese (zh)
Inventor
刘志敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510202370.8A priority Critical patent/CN106156231A/en
Publication of CN106156231A publication Critical patent/CN106156231A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Abstract

This application discloses a kind of website disaster recovery method, Apparatus and system, to realize reducing the purpose of the availability of website pressure, raising website service.Such as, described method may include that the static backup setting up dynamic page, detect whether described dynamic page can be accessed, in response to the page request received described dynamic page, if described dynamic page can not be accessed, feed back to the page request side asking described dynamic page with the static backup described dynamic page of replacement that described dynamic page is corresponding.

Description

A kind of website disaster recovery method, Apparatus and system
Technical field
The application relates to internet arena, particularly relates to a kind of website disaster recovery method, Apparatus and system.
Background technology
Dynamic page: be run at server end program, webpage, assembly etc., they can be through service The operations such as the sequential operation of device and reading background data base, can return not with different client, different times Webpage with content.
Owing to services many in website are all provided by dynamic page, therefore, website is often in short-term In run into substantial amounts of dynamic page access.Owing to dynamic page needs to carry out substantial amounts of computing and data base The operations such as inquiry, it is excessive that substantial amounts of dynamic page access can make website calculate pressure, even occurs website complete The catastrophic effect accessed completely without method.
Summary of the invention
In view of this, the purpose of the application is to provide a kind of website disaster recovery method, Apparatus and system, with Realize reducing the purpose of the availability of website pressure, raising website service.
In first aspect of the embodiment of the present application, it is provided that a kind of net being applied to Website server side Stand disaster recovery method.Such as, described method may include that the static backup setting up dynamic page, detects institute State whether dynamic page can be accessed, in response to the page request received described dynamic page, if Described dynamic page can not be accessed, and replaces described dynamic page with the static backup that described dynamic page is corresponding Face feeds back to the page request side asking described dynamic page.
In second aspect of the embodiment of the present application, it is provided that a kind of net being configured at Website server side Stand disaster tolerance device.Such as, described device may include that backup units, may be used for setting up dynamic page Static backup.Detector unit, may be used for detecting whether described dynamic page can be accessed.The page is anti- Feedback unit, may be used in response to the page request received described dynamic page, if described dynamically The page can not be accessed, and replaces described dynamic page to feed back to the static backup that described dynamic page is corresponding Ask the page request side of described dynamic page.
In the 3rd aspect of the embodiment of the present application, it is provided that the disaster tolerance system of a kind of website.Such as, institute The system of stating may include that nginx proxy server, may be used for setting up the static backup of dynamic page, Detect whether described dynamic page can be accessed, in response to the page request received described dynamic page, If described dynamic page can not be accessed, replace described dynamic with the static backup that described dynamic page is corresponding The state page feeds back to the page request side asking described dynamic page.Dynamic page server, may be used for Generate dynamic page.
The application has the advantages that
The static state that the Website server side of the method that application the embodiment of the present application provides establishes dynamic page is standby Part, detect whether described dynamic page can be accessed, receiving the page request to described dynamic page Time, if described dynamic page can not be accessed, replace institute with the static backup that described dynamic page is corresponding State dynamic page and feed back to the page request side asking described dynamic page, therefore, can not at dynamic page Time accessed, described dynamic page is replaced to provide the user service by corresponding static backup, it is to avoid The problem that website pressure that the computing of a large amount of dynamic pages is brought is excessive, improves the available of website service Property.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below, Accompanying drawing in description is only some embodiments described in the application, for those of ordinary skill in the art From the point of view of, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings Figure.
The website disaster recovery method schematic flow sheet that Fig. 1 provides for the embodiment of the present application;
Between nginx proxy server and dynamic page server that Fig. 2 provides for the embodiment of the present application Signalling exchange schematic diagram;
The website disaster tolerance apparatus structure schematic diagram that Fig. 3 provides for the embodiment of the present application;
The website disaster tolerance system structural representation that Fig. 4 provides for the embodiment of the present application.
Detailed description of the invention
For the technical scheme making those skilled in the art be more fully understood that in the application, below in conjunction with Accompanying drawing in the embodiment of the present application, clearly and completely retouches the technical scheme in the embodiment of the present application State, it is clear that described embodiment is only some embodiments of the present application rather than whole enforcement Example.Based on the embodiment in the application, those of ordinary skill in the art are not before making creative work Put the every other embodiment obtained, all should belong to the scope of the application protection.
In order to make the embodiment of the present application more easily understand, first to the method that the embodiment of the present application provides Application scenarios schematically illustrates.Such as, in some possible embodiments, it is contemplated that nginx generation It is few that reason server (a kind of Web server/Reverse Proxy) has committed memory, concurrent capability By force, the feature by the request responding user side that cooperates with rear end, the side that the embodiment of the present application provides are suitable to Method can apply to the nginx proxy server of Website server side.For example, it is possible to this will be used for realizing The code of the method that application embodiment provides is loaded in the configuration file nginx.conf of nginx.Accordingly Ground, described Website server side can also include dynamic page server, be used for generating dynamic page.
Below, in conjunction with the website disaster recovery method schematic flow sheet shown in Fig. 1, the embodiment of the present application is provided Website disaster recovery method is described in detail.As it is shown in figure 1, the method may include that
S110, set up the static backup of dynamic page.
For example, it is possible in an active manner, the spontaneous static backup setting up described dynamic page.The most such as, Can in passive manner, in response to the page request received described dynamic page, set up described dynamic The static backup of the state page.
It should be noted that above-mentioned active and passively set up the enforcement of static backup of dynamic page Mode can select an enforcement, it is also possible to common implementing, and this is not limited by the application.Such as, may be used With for data volume is few but the Partial key page that visit capacity is big, e.g., the homepage of website, active page etc., Take a proactive approach.And for data volume is big but ordinary pages that visit capacity is few, e.g., commodity details page, Can by take passive in the way of.
In some possible embodiments, the embodiment of the present application can be for having the dynamic of the first visit capacity The page, the spontaneous static backup setting up described dynamic page, wherein, described first visit capacity more than or Equal to the visit capacity preset.For example, it is possible to timing is from being sent to dynamic page described in dynamic page server request Face, receives the described dynamic page of described dynamic page server feedback, by the backup of described dynamic page is Static page.
In some possible embodiments, the embodiment of the present application can be for having the dynamic of the second visit capacity The page, in response to the page request received described dynamic page, sets up the static state of described dynamic page Backup;Wherein, described second visit capacity is less than or equal to the visit capacity preset.For example, it is possible to response In receiving the page request to described dynamic page, to dynamic page described in dynamic page server request, Receive the described dynamic page of described dynamic page server feedback, be static state by the backup of described dynamic page The page.
It should be noted that the specific implementation that dynamic page backup is static page is not limited.Such as, Can be generated in corresponding static page by dynamic page according to certain rule, wherein, regular is concrete Content can be arranged according to actual needs, and this is not limited by the application.
S120, detect whether described dynamic page can be accessed.
For example, it is possible to timing detects whether any one or more in following abnormality occur, if gone out Existing, then judge that described dynamic page can not be accessed.Wherein, described abnormality includes:
After dynamic page described in dynamic page server request, wait that the time of described dynamic page exceedes Preset time-out time, i.e. return time-out abnormal.
After dynamic page described in dynamic page server request, the http answer code received is not normally In the range of code value.Such as, http answer code is less than 200 or is more than or equal to 300, the most non-20X answer code Abnormal.
After dynamic page described in dynamic page server request, the content of pages received occur specific Unusual character.Such as, content of pages comprises exception.
There is internal memory overflow error in the backend application that described dynamic page is corresponding.
The process exception that occurs dynamic page server exits or cannot provide service.Such as, it is used for generating The dynamic page server of dynamic page can be dynamic page server jetty, when jetty occurs that process is different Often exit or service cannot be provided, then it is assumed that jetty delays machine.
The service interface that described dynamic page is corresponding is unavailable.Such as, for providing the relevant of dynamic page There are the exceptions such as response timeout, throwing is abnormal, cannot access in the service interface of data.
The database connection pool of dynamic page server exhausts.Such as, big due to visit capacity or SQL performance The DB connection pool that problem etc. cause exhausts.
It is only some possible abnormalities of the embodiment of the present application it should be noted that listed above.In reality In the application of border, can implement to determine according to reality needs the abnormality of detection.This is not entered by the application Row limits.
In some possible embodiments, the specific exceptions character that above example is mentioned specifically can hold Calamity strategy configuration information is specified.It is understood that described Disaster Recovery Strategy configuration information can be configured at Disaster Recovery Strategy configuration backstage.Wherein, described Disaster Recovery Strategy configuration information, may be used for describing experience disaster Time can guarantee that information system can properly functioning, the business of realization can successional disaster tolerance counter-measure.Described appearance Calamity strategy configuration backstage, may be used for taking corresponding disaster tolerance counter-measure according to Disaster Recovery Strategy configuration information Ensure when problem occurs, to be automatically performed disaster tolerance reply.In some possible embodiments, Disaster Recovery Strategy is joined Postpone the Disaster Recovery Strategy configuration information that platform configured can be saved in the data base being attached thereto.Application is originally The server of application embodiment timing can obtain the Disaster Recovery Strategy configuration updated from Disaster Recovery Strategy configuration backstage Information is also loaded into internal memory.When whether needs detection content of pages specific exceptions character occurs, from interior Deposit and read out the described specific exceptions character specified in described Disaster Recovery Strategy configuration information.
In above-mentioned embodiment, owing to using the mode of timing to complete Disaster Recovery Strategy information Dynamically update loading, such that it is able to the specific exceptions character specified is automatically updated, it is to avoid in program generation Write specific exceptions character in Ma and needing amendment code and restarting the problem of server of bringing, reduce Maintenance cost.
S130, in response to the page request received described dynamic page, if described dynamic page is not Can be accessed, replace described dynamic page to feed back to request institute with the static backup that described dynamic page is corresponding State the page request side of dynamic page.
In some possible embodiments, when receiving the page request to described dynamic page, if Described dynamic page can be accessed, then can directly obtain described dynamic page, by anti-for described dynamic page Feed and ask the page request side of described dynamic page.
In some possible embodiments, access service to provide the user with normal dynamic page as far as possible, Described dynamic page is replaced to feed back to the described dynamic page of request at the static backup corresponding with described dynamic page After the page request side in face, it is also possible to continue to detect whether described dynamic page can be accessed, if institute State dynamic page can be accessed, obtain described dynamic page, described dynamic page is fed back to request described The page request side of dynamic page, such that it is able to recover the access clothes of normal dynamic page as early as possible for user Business.
In some possible embodiments, in order to update the backup of described dynamic page, nginx acts on behalf of clothes The described dynamic page backup that this step S130 can also be received by business device is static page.Can manage Solving, the static state passively setting up dynamic page that the backup now made is described in above example is standby Part.
Visible, when can normally provide dynamic page to service in website due to the embodiment of the present application, actively or Passively capture dynamic page, and according to certain rule, dynamic page be generated in corresponding static page, Thus when the dynamic page that the reasons such as system resource is not enough cause can not be accessed, can automatically switch quiet The state page carrys out the page request of response page request side, it is to avoid completely cannot due to the excessive appearance of pressure in website The catastrophic effect accessed.
In order to make the embodiment of the present application more easily understand, act on behalf of clothes below in conjunction with the nginx shown in Fig. 2 Signalling exchange schematic diagram between business device and dynamic page server, is applied to nginx to the embodiment of the present application Some of proxy server may be described in detail by embodiment.As in figure 2 it is shown, this embodiment is permissible Including:
S210, nginx proxy server timing page request actively or in response to user side is moved by trend The state page server request dynamic page.
S211, dynamic page server, in response to the request of nginx proxy server, generate dynamic page And feed back dynamic page to nginx proxy server.
S212, nginx proxy server receives the described dynamic page of described dynamic page server feedback, It is static page by the backup of described dynamic page.
The timing of S220, nginx proxy server detects whether described dynamic page abnormality occurs, and The abnormality that respective record detects.
S230, nginx proxy server receives the user side page request to described dynamic page.
S231, nginx proxy server is when receiving described page request, if according to being recorded Dynamic page described in abnormal state determination can not be accessed, and reads the static page that described dynamic page is corresponding, Described dynamic page is replaced to feed back to the described dynamic page of request with the static backup that described dynamic page is corresponding User side.In some possible embodiments, nginx proxy server is with described dynamic page pair After the static backup answered replaces described dynamic page to feed back to the user side asking described dynamic page, also Can continue to detect whether described dynamic page can be accessed, if described dynamic page can be accessed, then Described dynamic page can be obtained, described dynamic page is fed back to and asks the page of described dynamic page to be asked Ask side.
S232, nginx proxy server is when receiving described page request, if according to being recorded Dynamic page described in abnormal state determination can be accessed, to dynamic page server request dynamic page.
S233, dynamic page server, in response to the request of nginx proxy server, generate dynamic page And feed back dynamic page to nginx proxy server.
S234, nginx proxy server receives the described dynamic page of dynamic page server feedback, and Described dynamic page is fed back to the user side asking described dynamic page.In some possible embodiments, In order to update the backup of described dynamic page, the institute that this place can also be received by nginx proxy server State dynamic page backup for static page.
In some possible embodiments, the nginx proxy server applying this embodiment can be by association The mode of journey (non-host process) performs the active/passive backup of dynamic page, timing detection, feedback dynamically Each steps such as the static backup of the page/dynamic page, so that website provides service with higher efficiency.
Below, in conjunction with the website disaster tolerance apparatus structure schematic diagram shown in Fig. 3, the embodiment of the present application is provided Website disaster tolerance device is described in detail.As it is shown on figure 3, this device may include that
Backup units 310, may be used for setting up the static backup of dynamic page.Detector unit 320 is permissible For detecting whether described dynamic page can be accessed.Page feedback unit 330, may be used in response to Receive the page request to described dynamic page, if described dynamic page can not be accessed, with described The static backup that dynamic page is corresponding replaces described dynamic page to feed back to the page asking described dynamic page Request side.
In some possible embodiments, described backup units 310, may be used for spontaneous set up described dynamic The static backup of the state page.
In some possible embodiments, described backup units 310, it is used against that there is the first visit The dynamic page of the amount of asking, the spontaneous static backup setting up described dynamic page, wherein, described first accesses Amount is more than or equal to the visit capacity preset.Such as, described backup units 310, may be used for timing certainly It is sent to dynamic page described in dynamic page server request, receives the institute of described dynamic page server feedback State dynamic page, be static page by the backup of described dynamic page.
In some possible embodiments, described backup units 310, it is right to may be used in response to receiving The page request of described dynamic page, sets up the static backup of described dynamic page.
In some possible embodiments, described backup units 310, it is used against that there is the second visit The dynamic page of the amount of asking, in response to the page request received described dynamic page, set up described dynamically The static backup of the page;Wherein, described second visit capacity is less than or equal to the visit capacity preset.
In some possible embodiments, the detector unit 320 of the device that the embodiment of the present application provides, also May be used at page feedback unit 330 described dynamically with the static backup replacement that described dynamic page is corresponding After the page feeds back to the page request side asking described dynamic page, continuing the described dynamic page of detection is No it is accessed.And the device that the embodiment of the present application provides can also include, page recovery unit 340, If may be used for determining that dynamic page can be accessed after described detector unit 320 continues detection, obtain institute State dynamic page, described dynamic page is fed back to the page request side asking described dynamic page.
In some possible embodiments, described detector unit 320, may be used for timing and detect whether out Any one or more in following abnormality, if there is, then judge that described dynamic page can not be by Accessing, described abnormality includes: after dynamic page described in dynamic page server request, waits institute The time stating dynamic page exceedes default time-out time;To dynamic page described in dynamic page server request After, the http answer code received is not in the range of normal code value;To described in dynamic page server request After dynamic page, the content of pages received occurs specific exceptions character;Described dynamic page is corresponding There is internal memory overflow error in backend application;The process exception that occurs dynamic page server exits or cannot carry For service;The service interface that described dynamic page is corresponding is unavailable;The data base of dynamic page server is even Connect pond to exhaust.
In some possible embodiments, described specific exceptions character is specifically in Disaster Recovery Strategy configuration information Specify.And, the device that the embodiment of the present application provides can also include: Disaster Recovery Strategy updating block 350, May be used for timing in Disaster Recovery Strategy configuration backstage obtains the Disaster Recovery Strategy configuration information updated and is loaded into Deposit, when whether needs detection content of pages specific exceptions character occurs, read out described appearance from internal memory The described specific exceptions character specified in calamity strategy configuration information.
In some possible embodiments, the device that the embodiment of the present application provides can be configured at website service The nginx proxy server of device side.Wherein, described Website server side can also include: dynamic page Server, is used for generating dynamic page.
Owing to the Website server side of the device of configuration the embodiment of the present application offer establishes the quiet of dynamic page State backs up, and detects whether described dynamic page can be accessed, is receiving the page to described dynamic page During request, if described dynamic page can not be accessed, with the static backup generation that described dynamic page is corresponding The page request side asking described dynamic page is fed back to, it is to avoid a large amount of dynamic page for described dynamic page The problem that website pressure that the computing in face is brought is excessive, improves the availability of website service.
It should be noted that page recovery unit 340 described in the embodiment of the present application, Disaster Recovery Strategy update single Unit 350 is in figure 3 with dotted lines, to represent that these unit are not the websites that the embodiment of the present application provides The necessary unit of disaster tolerance device.
Below, in conjunction with the website disaster tolerance system structural representation being configured at Website server side shown in Fig. 4 Figure, the website disaster tolerance system providing the embodiment of the present application is described in detail.As shown in Figure 4, this system May include that
Nginx proxy server 410, may be used for setting up the static backup of dynamic page, detects described dynamic Whether the state page can be accessed, in response to the page request received described dynamic page, if described Dynamic page can not be accessed, and replaces described dynamic page anti-with the static backup that described dynamic page is corresponding Feed and ask the page request side of described dynamic page.Dynamic page server 420, may be used for generating Dynamic page.
Such as, in some possible embodiments, as shown in Figure 4, described dynamic page server 420 can Think embedded jetty Web 420.It is understood that in order to provide related service in dynamic page, Embedded jetty Web 420 also needs to be in communication with each other with Service serviceization application side 430, so that described Service serviceization application side 430 may be used for jetty Web and generates dynamic page offer related service Calculating etc. are supported.
It should be noted that described Service serviceization application side 430 in the diagram with dotted lines, with table Show that this Service serviceization application side 430 is not the necessity of the website disaster tolerance device that the embodiment of the present application provides Ingredient.
Owing to the nginx proxy server 410 of the website disaster tolerance system of the embodiment of the present application offer establishes The static backup of dynamic page, detects whether described dynamic page can be accessed, and is receiving described dynamic During the page request of the state page, if described dynamic page can not be accessed, corresponding with described dynamic page Static backup replace described dynamic page feed back to the page request side asking described dynamic page, it is to avoid The problem that website pressure that the computing of a large amount of dynamic pages is brought is excessive, improve website service can The property used.
For convenience of description, it is divided into various unit to be respectively described with function when describing apparatus above.Certainly, Can be the function of each unit at same or multiple softwares and/or hardware when implementing the embodiment of the present application Middle realization.
As seen through the above description of the embodiments, those skilled in the art is it can be understood that arrive The embodiment of the present application can add the mode of required general hardware platform by software and realize.Based on such Understanding, the part that prior art is contributed by the technical scheme of the application the most in other words can be with soft The form of part product embodies, and this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., including some instructions with so that a computer equipment is (permissible It is personal computer, server, or the network equipment etc.) perform each embodiment of the application or enforcement The method described in some part of example.
Each embodiment in this specification all uses the mode gone forward one by one to describe, identical between each embodiment Similar part sees mutually, and what each embodiment stressed is different from other embodiments Part.For system embodiment, owing to it is substantially similar to embodiment of the method, so retouching That states is fairly simple, and relevant part sees the part of embodiment of the method and illustrates.
The embodiment of the present application can be used in numerous general or special purpose computing system environment or configuration.Such as: Personal computer, server computer, handheld device or portable set, laptop device, multiprocessing Device system, system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, Minicomputer, mainframe computer, the distributed computing environment including any of the above system or equipment etc..
The embodiment of the present application can be in the general context of computer executable instructions Describe, such as program module.Usually, program module includes performing particular task or realizing specific abstract The routine of data type, program, object, assembly, data structure etc..Can also be in Distributed Calculation Environment is put into practice the embodiment of the present application, in these distributed computing environment, by the quilt by communication network The remote processing devices connected performs task.In a distributed computing environment, program module may be located at In local and remote computer-readable storage medium including storage device.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to One entity or operation are separated with another entity or operating space, and not necessarily requires or imply Relation or the order of any this reality is there is between these entities or operation.And, term " includes ", " comprise " or its any other variant is intended to comprising of nonexcludability, so that include that one is The process of row key element, method, article or equipment not only include those key elements, but also include the brightest Other key elements really listed, or also include intrinsic for this process, method, article or equipment Key element.In the case of there is no more restriction, statement " including ... " key element limited, It is not precluded from there is also in including the process of described key element, method, article or equipment other identical Key element.
The foregoing is only the preferred embodiment of the application, be not intended to limit the protection model of the application Enclose.All any modification, equivalent substitution and improvement etc. made within spirit herein and principle, all It is included in the protection domain of the application.

Claims (12)

1. a website disaster recovery method, it is characterised in that be applied to Website server side, including:
Set up the static backup of dynamic page;
Detect whether described dynamic page can be accessed;
In response to the page request received described dynamic page, if described dynamic page can not be interviewed Ask, replace described dynamic page to feed back to request with the static backup that described dynamic page is corresponding described dynamically The page request side of the page.
Method the most according to claim 1, it is characterised in that the described static state setting up dynamic page Backup includes:
The spontaneous static backup setting up described dynamic page.
Method the most according to claim 2, it is characterised in that described spontaneous set up described dynamic page The static backup in face includes:
For having the dynamic page of the first visit capacity, the spontaneous static backup setting up described dynamic page, Wherein, described first visit capacity is more than or equal to the visit capacity preset.
The most according to the method in claim 2 or 3, it is characterised in that described spontaneous set up described dynamic The static backup of the state page includes: timing, from being sent to dynamic page described in dynamic page server request, connects Receive the described dynamic page of described dynamic page server feedback, be static page by the backup of described dynamic page Face.
Method the most according to claim 1, it is characterised in that the described static state setting up dynamic page Backup includes:
In response to the page request received described dynamic page, the static state setting up described dynamic page is standby Part.
Method the most according to claim 5, it is characterised in that the described static state setting up dynamic page Backup includes: for having the dynamic page of the second visit capacity, in response to receiving described dynamic page Page request, set up the static backup of described dynamic page;Wherein, described second visit capacity less than or Person is equal to the visit capacity preset.
Method the most according to claim 1, it is characterised in that corresponding with described dynamic page After static backup replaces described dynamic page to feed back to the page request side asking described dynamic page, also Including:
Continue to detect whether described dynamic page can be accessed;
If described dynamic page can be accessed, obtain described dynamic page, described dynamic page is fed back Give the page request side asking described dynamic page.
Method the most according to claim 1, it is characterised in that the described dynamic page of described detection is No being accessed includes:
Timing detects whether any one or more in following abnormality occur, if there is, then judge Described dynamic page can not be accessed, and described abnormality includes:
After dynamic page described in dynamic page server request, wait that the time of described dynamic page exceedes Preset time-out time;
After dynamic page described in dynamic page server request, the http answer code received is not normally In the range of code value;
After dynamic page described in dynamic page server request, the content of pages received occur specific Unusual character;
There is internal memory overflow error in the backend application that described dynamic page is corresponding;
The process exception that occurs dynamic page server exits or cannot provide service;
The service interface that described dynamic page is corresponding is unavailable;
The database connection pool of dynamic page server exhausts.
Method the most according to claim 8, it is characterised in that described specific exceptions character specifically exists Disaster Recovery Strategy configuration information is specified;
And, also include: timing obtains the Disaster Recovery Strategy configuration information updated also from Disaster Recovery Strategy configuration backstage It is loaded into internal memory;
When whether needs detection content of pages specific exceptions character occurs, read out described appearance from internal memory The described specific exceptions character specified in calamity strategy configuration information.
Method the most according to claim 1, it is characterised in that described method is applied to website clothes The nginx proxy server of business device side;
Wherein, described Website server side also includes: dynamic page server, is used for generating dynamic page.
11. 1 kinds of website disaster tolerance devices, it is characterised in that be configured at Website server side, including:
Backup units, for setting up the static backup of dynamic page;
Detector unit, is used for detecting whether described dynamic page can be accessed;
Page feedback unit, is used in response to the page request received described dynamic page, if institute State dynamic page can not be accessed, replace described dynamic page with the static backup that described dynamic page is corresponding Feed back to the page request side asking described dynamic page.
12. 1 kinds of website disaster tolerance systems, it is characterised in that including:
Nginx proxy server, for setting up the static backup of dynamic page, detects described dynamic page Whether can be accessed, in response to the page request received described dynamic page, if described dynamic page Face can not be accessed, and replacing described dynamic page to feed back to the static backup that described dynamic page is corresponding please Ask the page request side of described dynamic page;
Dynamic page server, is used for generating dynamic page.
CN201510202370.8A 2015-04-24 2015-04-24 A kind of website disaster recovery method, Apparatus and system Pending CN106156231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510202370.8A CN106156231A (en) 2015-04-24 2015-04-24 A kind of website disaster recovery method, Apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510202370.8A CN106156231A (en) 2015-04-24 2015-04-24 A kind of website disaster recovery method, Apparatus and system

Publications (1)

Publication Number Publication Date
CN106156231A true CN106156231A (en) 2016-11-23

Family

ID=57347292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510202370.8A Pending CN106156231A (en) 2015-04-24 2015-04-24 A kind of website disaster recovery method, Apparatus and system

Country Status (1)

Country Link
CN (1) CN106156231A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766509A (en) * 2017-10-23 2018-03-06 北京京东尚科信息技术有限公司 A kind of method and apparatus of webpage static backup
CN107862044A (en) * 2017-11-07 2018-03-30 北京京东尚科信息技术有限公司 The method and apparatus of displayed page
CN108156013A (en) * 2016-12-02 2018-06-12 阿里巴巴集团控股有限公司 A kind of Page Service disaster recovery method, device and electronic equipment
CN110096659A (en) * 2019-03-27 2019-08-06 北京三快在线科技有限公司 A kind of page display method, device, equipment and readable storage medium storing program for executing
CN110110273A (en) * 2019-05-08 2019-08-09 重庆天蓬网络有限公司 A kind of method of statistics and analysis Website Usability
CN110334304A (en) * 2019-06-05 2019-10-15 上海易点时空网络有限公司 Configuration method and system based on layout disaster tolerance

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040172475A1 (en) * 2003-02-27 2004-09-02 Peter Tenereillo System and method for multi-site load-balancing of encrypted traffic
CN103152191A (en) * 2011-12-06 2013-06-12 中国移动通信集团福建有限公司 Processing method and system of service gateway data of internet of things
CN103647811A (en) * 2013-11-28 2014-03-19 北京奇虎科技有限公司 A method and an apparatus for application's accessing backstage service
CN103793538A (en) * 2014-03-06 2014-05-14 赛特斯信息科技股份有限公司 System and method for realizing restoration of web service in case of crash of database

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040172475A1 (en) * 2003-02-27 2004-09-02 Peter Tenereillo System and method for multi-site load-balancing of encrypted traffic
CN103152191A (en) * 2011-12-06 2013-06-12 中国移动通信集团福建有限公司 Processing method and system of service gateway data of internet of things
CN103647811A (en) * 2013-11-28 2014-03-19 北京奇虎科技有限公司 A method and an apparatus for application's accessing backstage service
CN103793538A (en) * 2014-03-06 2014-05-14 赛特斯信息科技股份有限公司 System and method for realizing restoration of web service in case of crash of database

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156013B (en) * 2016-12-02 2021-08-10 阿里巴巴集团控股有限公司 Page service disaster tolerance method and device and electronic equipment
CN108156013A (en) * 2016-12-02 2018-06-12 阿里巴巴集团控股有限公司 A kind of Page Service disaster recovery method, device and electronic equipment
CN107766509A (en) * 2017-10-23 2018-03-06 北京京东尚科信息技术有限公司 A kind of method and apparatus of webpage static backup
CN107862044A (en) * 2017-11-07 2018-03-30 北京京东尚科信息技术有限公司 The method and apparatus of displayed page
CN110096659A (en) * 2019-03-27 2019-08-06 北京三快在线科技有限公司 A kind of page display method, device, equipment and readable storage medium storing program for executing
CN110096659B (en) * 2019-03-27 2021-08-20 北京三快在线科技有限公司 Page display method, device and equipment and readable storage medium
CN110110273A (en) * 2019-05-08 2019-08-09 重庆天蓬网络有限公司 A kind of method of statistics and analysis Website Usability
CN110334304A (en) * 2019-06-05 2019-10-15 上海易点时空网络有限公司 Configuration method and system based on layout disaster tolerance

Similar Documents

Publication Publication Date Title
CN106156231A (en) A kind of website disaster recovery method, Apparatus and system
US10489422B2 (en) Reducing data volume durability state for block-based storage
US20170329528A1 (en) Efficient data volume replication for block-based storage
US9678680B1 (en) Forming a protection domain in a storage architecture
US10545842B2 (en) Automated local database connection affinity and failover
US8886609B2 (en) Backup and restore of data from any cluster node
US10169068B2 (en) Live migration for virtual computing resources utilizing network-based storage
US8447757B1 (en) Latency reduction techniques for partitioned processing
US20130042312A1 (en) Authentication in a smart thin client server
JP6921107B2 (en) Service processing methods, devices, and systems
US10104037B2 (en) Method and system for network access request control
US10609123B2 (en) Hybrid quorum policies for durable consensus in distributed systems
CN102135895B (en) System upgrading method and system
CN102082800A (en) User request processing method and server
US11003437B2 (en) Automated transparent distribution of updates to server computer systems in a fleet
US20120124001A1 (en) Increasing database availability during fault recovery
US9805038B2 (en) Efficient conflict resolution among stateless processes
US20190272260A1 (en) Remote Durable Logging for Journaling File Systems
US9740537B2 (en) Contention and selection of controlling work coordinator in a distributed computing environment
US10855796B2 (en) Data storage method and device
CN105574026A (en) Method and device for service supporting by using non-relational database
US20200151196A1 (en) Monotonic transactions in a multi-master database with loosely coupled nodes
US9049174B2 (en) Maintaining sessions in a smart thin client server
US20140074966A1 (en) Intelligent mapping for an enterprise grid
US10114704B1 (en) Updating database records while maintaining accessible temporal history

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161123