CN107580050A - A kind of server rolls back method during generation server 500 - Google Patents

A kind of server rolls back method during generation server 500 Download PDF

Info

Publication number
CN107580050A
CN107580050A CN201710791980.5A CN201710791980A CN107580050A CN 107580050 A CN107580050 A CN 107580050A CN 201710791980 A CN201710791980 A CN 201710791980A CN 107580050 A CN107580050 A CN 107580050A
Authority
CN
China
Prior art keywords
server
mistake
version
rollback
method during
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
CN201710791980.5A
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.)
Chengdu Zhidaochuangyu Information Technology Co Ltd
Original Assignee
Chengdu Zhidaochuangyu Information Technology Co 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 Chengdu Zhidaochuangyu Information Technology Co Ltd filed Critical Chengdu Zhidaochuangyu Information Technology Co Ltd
Priority to CN201710791980.5A priority Critical patent/CN107580050A/en
Publication of CN107580050A publication Critical patent/CN107580050A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides a kind of server rolls back method during generation server 500, including step 1:Back-off parameter, the maximum times that the back-off parameter makes a mistake including rollback version address, rollback version time range, permission system are set;Step 2:Pass through the error message of sentry the reception servers, and analyze the error message received, if analyzing server in error message to occur 500, can not normally return, the number that calculation server makes a mistake, and record the reason for server makes a mistake and errors number;Step 3:If server makes a mistake, number is equal to the maximum times for allowing server to make a mistake, by fabric come automatic rollback server to indicated release.After the inventive method, if there is multiple mistake in server response, the inventive method can fast fallback server version, the problem of settlement server response is wrong.

Description

A kind of server rolls back method during generation server 500
Technical field
The present invention relates to server version rollback field, (server can not normally ring particularly a kind of generation server 500 Answer client request, non-expectation situation occur) when server rolls back method.
Background technology
During server update program version, easily server is caused to make a mistake, it is impossible to update or retract in time Version influences client's request.Current known technology can only be manually come the version that retracts, to realize the rollback of code server.Hand Dynamic rollback version, can cause the server long period unavailable, and the experience to user can be very bad.And user is impossible Carry out the version that retracts manually all with computer or in the case where network state is good in real time, so the version that can not retract in time This, the economic loss so brought may be very serious.For the server of real-time response, timely rollback version just seems non- Often it is necessary.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of server rolls back method during generation server 500, if There is multiple mistake in server response, the inventive method can fast fallback server version, settlement server response mistake Problem.
In order to solve the above technical problems, the technical solution adopted by the present invention is:
A kind of server rolls back method during generation server 500, comprises the following steps:
Step 1:Back-off parameter is set, and the back-off parameter includes rollback version address, rollback version time range, allowed The maximum times that system makes a mistake;
Step 2:By the error message of sentry (a real-time error reporting instrument) the reception server, and analyze reception The error message arrived, server 500 occurs, can not normally return, calculation server if analyzing server in error message The number to make a mistake, and record the reason for server makes a mistake and errors number;
Step 3:If server makes a mistake, number is equal to the maximum times for allowing server to make a mistake, and passes through Fabric (automatically dispose instrument) carrys out automatic rollback server to indicated release.
Further, in addition to:Whether setting opens server version Backward Function, only opens server version and returns Server version rollback can just be carried out by moving back the server of function.
Further, in the step 2, error analysis is carried out using section or regular expression.
Further, the step 3 also includes sending mail to specified mailbox, illustrates rollback version by mail and causes The reason for system mistake.
Further, in addition to step 4:As long as the grade that server makes a mistake is ERROR (errorlevel of daily record), Mail is sent to the number specified mailbox and made a mistake.
Further, in the step 1, the rollback version address of setting is code trustship address, including Gitlab, Github (Gitlab and Github are a kind of code management tools, can there is privately owned warehouse).
Compared with prior art, the beneficial effects of the invention are as follows:After server version is reached the standard grade, if server response appearance is more Secondary mistake, the present invention can fast fallback server version, settlement server response it is wrong the problem of.For example, set needs Condition needed for rollback version, when the issue of some version is reached the standard grade, do not tested due to some test condition or accidentally added Unknown code, cause client ask it is abnormal can not normal response and be provided with version automatic rollback, can now retract version in real time This, allow server can continue to normally access, reduce server can not normal response time, the request of client can normally be rung The loss of client or the more serious loss for causing client should be avoided causing.
Brief description of the drawings
Fig. 1 is the system architecture schematic diagram of the present invention.
Fig. 2 is setting back-off parameter schematic diagram in the present invention.
Fig. 3 is rollback schematic flow sheet of the present invention.
Embodiment
The present invention is further detailed explanation with reference to the accompanying drawings and detailed description.
Server 500 is that non-expectation situation occurs for a kind of server internal, cannot respond to client request.If server Can not normal response client request, will result in the loss of client, thus can server occur 500 it is wrong when be reported The alert and version that retracts accordingly, just seeming is highly desirable.Settlement server it is back to normal in the short period, it is necessary to solve with Lower problem:1) error reason is analyzed:The reason for analysis program makes a mistake, solution are that program exception or common process occur The exception of acquisition, and mistake of statistics reason;2) when retract server:According to the server rolls back reason of user's setting and and connect The error message received carries out certain Algorithm Analysis to be called rollback version;3) how retract server:Utilize Fabric bags are carried out to issue the version of rollback;4) how relevant information is sent:Sent using third party's mail platform corresponding Error message to an institute people in need, ensure the promptness of information.
Fig. 1 show the system architecture required for the present invention.Client inputs back-off information, and processing server is stored in this Ground, and the log information that analysis rollback server is transmitted in real time.
As shown in Fig. 2 whether the present invention needs client to set opens rollback, rollback version, maximum errors number, retract Version time range, there is provided webpage sets whether open rollbacks, only sets unlatching version rollback just to retract version;Set and retract The address of version, such as the code trustship such as Gitlab, Github address;And the maximum errors number of server mistake is set; And the period residing for rollback version is arranged on, only being made a mistake in this period can just retract.
As shown in figure 3, processing server, which receives log information and analyzes error message, can utilize section or canonical table Error analysis is carried out up to formula:Version sets relevant parameter as shown in Figure 2 and receives server by sentry after reaching the standard grade Error message, mistake is analyzed using regular expression or miscut information, if parsing error message is sent out for server Raw mistake then calculates wrong frequency, makes a mistake equal to the maximum errors number of setting then by fabric come automatic rollback version This simultaneously sends the mailbox of mail notification setting by SendCloud (mail third-party platform).The error message no matter occurred is As long as what errorlevel is ERROR, mail will be all sent to specified mailbox.
The present invention includes client's setting and processing server, specific as follows:
Client is set
Step 1:Set whether open rollback version in client, only there is provided rollback version open function, server The version that can just retract is held, no person can only send error mail;Step 2:Rollback version address is set in client, all returns Version is moved back all to be retracted from the rollback version address of setting;Step 3:The maximum time for allowing to make a mistake is set in client Number, the permission maximum magnitude of the mistake of server 500;Step 4:In client, the time range of rollback version is set;Step 5: Only when step 1 all meets to step 4, can just retract version, otherwise only can send corresponding error message to user's hand On.
Processing server
Step 1:Rollback server is needed to send log information by senrty, processing server receives and passes through section Or regular expression analyzes caused error reason, analyzes the daily record mistake etc. of server 500 or program print Level;Step 2:Whether the error reason that judgment step one parses is the reason of server 500;If it is judged as that server 500 is former Because and meet client set all parameters, by fabric come automatic rollback version and pass through third party's mail send platform send out Send error message and this rollback version;Step 3:The time of the reason for forwarding step one produces mistake and generation passes through Third party's mail sends platform to send error message.
Further, client step 2 rollback version address can be:Gitlab, GitHub etc. provide code trustship work Tool.In server end step 2, analysis error message can use regular expression, utilize the canonical for meeting all error messages Expression formula matches, self-defined regular expression when can provide deployment services end here.Server step 2 step 3 is sent Mail can be changed to the phone number specified using sending the SMS to, and SendCloud (third party's postals can be used by sending mail Part sends platform) send mail.

Claims (6)

1. a kind of server rolls back method during generation server 500, it is characterised in that comprise the following steps:
Step 1:Back-off parameter is set, and the back-off parameter includes rollback version address, rollback version time range, allows system The maximum times to make a mistake;
Step 2:By the error message of sentry the reception servers, and the error message received is analyzed, if in error message Analyze server server 500 occurs, can not normally return, then the number that calculation server makes a mistake, and record clothes The reason for business device makes a mistake and errors number;
Step 3:If server makes a mistake, number, which is equal to, allows the maximum times that make a mistake of server, by fabric come Automatic rollback server is to indicated release.
2. server rolls back method during a kind of generation server 500 as claimed in claim 1, it is characterised in that also include: Whether setting opens server version Backward Function, and only opening the server of server version Backward Function can just be taken Business device version rollback.
3. server rolls back method during a kind of generation server 500 as claimed in claim 1, it is characterised in that the step In rapid 2, error analysis is carried out using section or regular expression.
4. server rolls back method during a kind of generation server 500 as claimed in claim 1, it is characterised in that the step Rapid 3 also include sending mail to specified mailbox, the reason for illustrating rollback version by mail and cause system mistake.
5. server rolls back method during a kind of generation server 500 as claimed in claim 1, it is characterised in that also include Step 4:As long as the grade that server makes a mistake is ERROR, mail is sent to the number specified mailbox and made a mistake.
6. server rolls back method during a kind of generation server 500 as claimed in claim 1, it is characterised in that the step In rapid 1, the rollback version address of setting is code trustship address, including Gitlab, Github.
CN201710791980.5A 2017-09-05 2017-09-05 A kind of server rolls back method during generation server 500 Pending CN107580050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710791980.5A CN107580050A (en) 2017-09-05 2017-09-05 A kind of server rolls back method during generation server 500

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710791980.5A CN107580050A (en) 2017-09-05 2017-09-05 A kind of server rolls back method during generation server 500

Publications (1)

Publication Number Publication Date
CN107580050A true CN107580050A (en) 2018-01-12

Family

ID=61029912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710791980.5A Pending CN107580050A (en) 2017-09-05 2017-09-05 A kind of server rolls back method during generation server 500

Country Status (1)

Country Link
CN (1) CN107580050A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090150473A1 (en) * 2007-12-06 2009-06-11 Sap Ag System and method for business object sync-point and rollback framework
CN101714105A (en) * 2008-10-07 2010-05-26 英业达股份有限公司 Error reporting and error solving replying system of application program and method thereof
CN103516735A (en) * 2012-06-20 2014-01-15 中兴通讯股份有限公司 Method and apparatus for upgrading network node
CN105099988A (en) * 2014-04-24 2015-11-25 阿里巴巴集团控股有限公司 Method used for supporting gray releasing, access method, devices and system
CN105302671A (en) * 2015-11-11 2016-02-03 中国建设银行股份有限公司 Automatic backup and rollback method and device
CN105988917A (en) * 2015-02-26 2016-10-05 小米科技有限责任公司 Method and device for obtaining abnormal information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090150473A1 (en) * 2007-12-06 2009-06-11 Sap Ag System and method for business object sync-point and rollback framework
CN101714105A (en) * 2008-10-07 2010-05-26 英业达股份有限公司 Error reporting and error solving replying system of application program and method thereof
CN103516735A (en) * 2012-06-20 2014-01-15 中兴通讯股份有限公司 Method and apparatus for upgrading network node
CN105099988A (en) * 2014-04-24 2015-11-25 阿里巴巴集团控股有限公司 Method used for supporting gray releasing, access method, devices and system
CN105988917A (en) * 2015-02-26 2016-10-05 小米科技有限责任公司 Method and device for obtaining abnormal information
CN105302671A (en) * 2015-11-11 2016-02-03 中国建设银行股份有限公司 Automatic backup and rollback method and device

Similar Documents

Publication Publication Date Title
CN101459925B (en) Complaint management system and method for telecommunication network
EP2681870B1 (en) Technique for determining correlated events in a communication system
CN104486109B (en) A kind of fault detect, restoration methods and device
CN103414596B (en) The method that all manufacturer Trap and processing are recognized based on simple management procotol
US8434094B2 (en) Method and apparatus for implementing a predetermined operation in device management
CN103546343B (en) The network traffics methods of exhibiting of network traffic analysis system and system
KR20170082937A (en) System for detecting abnomal behaviors using personalized the whole access period use behavior second analysis
WO2015135417A1 (en) Method and system for monitoring quality of data transmission in idc network
US20200327045A1 (en) Test System and Test Method
CN110232006B (en) Equipment alarm method and related device
CN104219091A (en) System and method for network operation fault detection
CN107659443A (en) The monitoring method and its system of a kind of real time business
CN108345527A (en) A kind of interface enters the analysis monitoring method and system of ginseng
CN104202814B (en) It is a kind of to realize information from method, terminal, server and the system registered
CN110399178A (en) A kind of call method of third party's service, device, electronic equipment and storage medium
CN109684155A (en) Monitor configuration method, device, equipment and readable storage medium storing program for executing
CN110929896A (en) Security analysis method and device for system equipment
CN112491579A (en) SDN-based alarm information processing method and device
CN108111346A (en) The definite method, apparatus and storage medium of frequent item set in warning association analysis
CN110784358A (en) Method and device for constructing network call relation topological graph
CN110532780A (en) A kind of vulnerability scanning system and its operation method based on vulnerability scan
CN107241202A (en) Optical network unit service activating method and device
CN107580050A (en) A kind of server rolls back method during generation server 500
CN116302862B (en) Monitoring alarm method and system under micro-service architecture
KR20190104759A (en) System and method for intelligent equipment abnormal symptom proactive detection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20180112