CN103473101B - A kind of seamless version upgrading method and system - Google Patents

A kind of seamless version upgrading method and system Download PDF

Info

Publication number
CN103473101B
CN103473101B CN201310428918.1A CN201310428918A CN103473101B CN 103473101 B CN103473101 B CN 103473101B CN 201310428918 A CN201310428918 A CN 201310428918A CN 103473101 B CN103473101 B CN 103473101B
Authority
CN
China
Prior art keywords
version
business
redaction
internal memory
new
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.)
Active
Application number
CN201310428918.1A
Other languages
Chinese (zh)
Other versions
CN103473101A (en
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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech 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 Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201310428918.1A priority Critical patent/CN103473101B/en
Publication of CN103473101A publication Critical patent/CN103473101A/en
Application granted granted Critical
Publication of CN103473101B publication Critical patent/CN103473101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a kind of seamless version upgrading method, comprise the following steps: step 1: read progress information to internal memory;Step 2: preserve configuration information, arranges the time value that coexists;Step 3: the configuration information of the newly configured information read with preservation is matched;If it matches, jump to step 7;Otherwise, start redaction process and process business, continue;Step 4: new and old edition process processes business simultaneously;Step 5: judge that whether the time that processes is equal to arranging time value;As being equal to, carry out step 6;Otherwise, step 4 is jumped to;Step 6: judge whether the business that legacy version process processes completes, as completed, terminates legacy version, continues step 7;Otherwise, step 4 is jumped to;Step 7: process business;Step 8: judge whether all business have processed, if completed, terminates;Otherwise, update configuration information in internal memory, return step 3.The present invention provides efficient, quick, seamless control and upgrading scheme for telecommunication system edition upgrading.

Description

A kind of seamless version upgrading method and system
Technical field
The present invention relates to a kind of seamless version upgrading method and system, relate to version process upgrading frequently neck Territory, particularly relates to business variation and more it is frequently necessary to edition upgrading in evening, such as the version of telecommunication service system This upgrading.
Background technology
Along with market is increasingly faster to the changes in demand of telecommunication service, the most quickly load after edition upgrading with And alleviate the misery stayed up late and have become as a common recognition of telecommunications industry technical staff.Therefore, how can be fast Speed is simply done edition upgrading, is to need urgently to be solved in existing technical staff particularly attendant One technical problem.
Summary of the invention
The technical problem to be solved is, for the deficiencies in the prior art, it is provided that one is telecommunications System version upgrading provides the seamless edition upgrading of one of efficient, quick, seamless control and upgrading scheme Method.
The technical scheme is that a kind of seamless version upgrading method, tool Body comprises the following steps:
Step 1: the legacy version progress information individually preserved is read in internal memory;
Step 2: read the configuration information of legacy version process in internal memory and be saved in the configuration file in internal memory, And new and old edition process is set is operated together time segment value;
Step 3: start legacy version process and start to process business, every default time period, management of process Device reads configuration file and obtains newly configured information, by newly configured information and the configuration information phase pre-saved Join;If it matches, jump to step 7;Otherwise, start the redaction process corresponding with newly configured information, Carry out step 4;
Step 4: new and old edition process processes business simultaneously;
Step 5: judge that new and old edition process is jointly processed by the time segment value of business whether the newest equal to arrange Legacy version process is operated together time segment value;If equal to, carry out step 6;Otherwise, step is jumped to 4;
Step 6: judge that the business that legacy version process is processing completes the most, as completed, terminates Legacy version process, continues step 7;Otherwise, step 4 is jumped to;
Step 7: the version process being currently running processes business;
Step 8: judge whether all business have processed, if completed, terminates;Otherwise, by new edition The newly configured information of this process is saved in internal memory in configuration file, and redaction process becomes legacy version and enters Journey, returns step 3.
The invention has the beneficial effects as follows: the present invention is simple and quick by service scenario and process manager Complete version exploitation after seamless upgrade, for telecommunication system edition upgrading provide efficient, quick, seamless Control and upgrading scheme;For O&M person, it is only necessary to update service scenario and in configuration file More new version number, follow-up upgrade-system will perform automatically.
On the basis of technique scheme, the present invention can also do following improvement.
Further, in described step 4, when running redaction process, legacy version process is arranged one Flag bit, after this flag bit represents that described version process just processes service ending, legacy version process is no longer transported OK.
Further, the version progress information of described independent preservation is with xml extensible markup language scripts form Preserve.
Further, described step 3 reads configuration information and the configuration file of the version process being currently running In configuration information when not mating, while starting redaction process, record redaction process ID.
To be solved by this invention another technical problem is that, for the deficiencies in the prior art, it is provided that a kind of The seamless version of one of efficient, quick, seamless control and upgrading scheme is provided for telecommunication system edition upgrading This upgrade-system.
The technical scheme is that a kind of seamless edition upgrading system, bag Include read module, module, process manager, judge module and memory refreshing module are set;
Described read module is for reading the version progress information individually preserved in internal memory;
The described module that arranges is saved in internal memory for the configuration information read in internal memory in version progress information In configuration file in, and new and old edition be set coexist time value;
Described process manager, every the default time period, reads configuration file and obtains newly configured information, will Newly configured information matches with the configuration information pre-saved;If it matches, explanation need not upgrading;Otherwise, Finding redaction progress information, start redaction process and process business, new and old edition process processes industry simultaneously Business;
It is the newest equal to arrange that described judge module judges that new and old edition process processes the business hours simultaneously Legacy version coexists time value;If equal to, determine whether the business that legacy version process is processing The most complete, as completed, terminate legacy version process, by redaction process independent operating;Otherwise, Continue new and old edition process to run simultaneously;
Described memory refreshing module is for the configuration information updated in internal memory in configuration file.
The invention has the beneficial effects as follows: the present invention is simple and quick by service scenario and process manager Complete version exploitation after seamless upgrade, for telecommunication system edition upgrading provide efficient, quick, seamless Control and upgrading scheme;For O&M person, it is only necessary to update service scenario and in configuration file More new version number, follow-up upgrade-system will perform automatically.
On the basis of technique scheme, the present invention can also do following improvement.
Further, legacy version process, when startup optimization redaction process, is arranged by described process manager One flag bit, after this flag bit represents that described version process just processes service ending, legacy version process is not Rerun.
Further, the version progress information of described independent preservation is with xml extensible markup language scripts form Preserve.
Further, the described module that arranges reads configuration information and the configuration file of the version process being currently running In configuration information when not mating, while starting redaction process, record redaction process ID.
Accompanying drawing explanation
Fig. 1 is the seamless version upgrading method flow chart of the one described in the specific embodiment of the invention 1;
Fig. 2 is the seamless edition upgrading system architecture diagram of the one described in the specific embodiment of the invention 1.
In accompanying drawing, the list of parts representated by each label is as follows:
1, read module, 2, module is set, 3, process manager, 4, judge module, 5, internal memory More new module.
Detailed description of the invention
Being described principle and the feature of the present invention below in conjunction with accompanying drawing, example is served only for explaining this Invention, is not intended to limit the scope of the present invention.
As it is shown in figure 1, for the one seamless version upgrading method flow process described in the specific embodiment of the invention 1 Figure, specifically includes following steps:
Step 1: the legacy version progress information individually preserved is read in internal memory;
Step 2: read the configuration information of legacy version process in internal memory and be saved in the configuration file in internal memory, And new and old edition process is set is operated together time segment value;
Step 3: start legacy version process and start to process business, every default time period, management of process Device reads configuration file and obtains newly configured information, by newly configured information and the configuration information phase pre-saved Join;If it matches, jump to step 7;Otherwise, start the redaction process corresponding with newly configured information, Carry out step 4;
Step 4: new and old edition process processes business simultaneously;
Step 5: judge that new and old edition process is jointly processed by the time segment value of business whether the newest equal to arrange Legacy version process is operated together time segment value;If equal to, carry out step 6;Otherwise, step is jumped to 4;
Step 6: judge that the business that legacy version process is processing completes the most, as completed, terminates Legacy version process, continues step 7;Otherwise, step 4 is jumped to;
Step 7: the version process being currently running processes business;
Step 8: judge whether all business have processed, if completed, terminates;Otherwise, by new edition The newly configured information of this process is saved in internal memory in configuration file, and redaction process becomes legacy version and enters Journey, returns step 3.
In described step 4, when running redaction process, legacy version process is arranged a flag bit, After this flag bit represents that described version process just processes service ending, legacy version process is not reruned.
The version progress information of described independent preservation preserves with xml extensible markup language scripts form.
Described step 3 reads configuration information and the configuration in configuration file of the version process being currently running When information is not mated, while starting redaction process, record redaction process ID.
As in figure 2 it is shown, for the one seamless edition upgrading system structure described in the specific embodiment of the invention 1 Block diagram, including read module 1, arranges module 2, process manager 3, judge module 4 and memory refreshing Module 5;
Described read module 1 is for reading the version progress information individually preserved in internal memory;
The described module 2 that arranges is saved in internal memory for the configuration information read in internal memory in version progress information In configuration file in, and new and old edition be set coexist time value;
Described process manager 3, every the default time period, reads configuration file and obtains newly configured information, Newly configured information is matched with the configuration information pre-saved;If it matches, explanation need not upgrading;No Then, finding redaction progress information, start redaction process and process business, new and old edition process is located simultaneously Reason business;
It is the newest equal to arrange that described judge module 4 judges that new and old edition process processes the business hours simultaneously Legacy version coexists time value;If equal to, determine whether the business that legacy version process is processing The most complete, as completed, terminate legacy version process, by redaction process independent operating;Otherwise, Continue new and old edition process to run simultaneously;
Described memory refreshing module 5 is for the configuration information updated in internal memory in configuration file.
Described process manager 3, when startup optimization redaction process, arranges a mark to legacy version process Will position, after this flag bit represents that described version process just processes service ending, legacy version process is not reruned.
The version progress information of described independent preservation preserves with xml extensible markup language scripts form.
The described module 2 that arranges reads the configuration information of version process and joining in configuration file being currently running When confidence breath does not mates, while starting redaction process, record redaction process ID.
This programme separates with engine based on business, engine as resolve process independent of business.Business is with xml Form of scripts leaves in a single catalogue, and disposably reads internal memory during process initiation In, follow-up if not start new process will no longer read script.Need upgrading if follow-up, only need In this catalogue, to update service scenario, and version information in configuration file is updated.First In secondary start-up course, primal system version information is left in internal memory.Arrange CONFIG.SYS and New and old edition coexists the time, and process manager is joined according to reading version the interval time that configuration file configures Putting file, the version configuration information read compares with the version information being saved in before in internal memory, if The version that consistent expression system brings into operation is consistent with present version, it is not necessary to upgrading, if not Consistent then explanation version needs upgrading, and at this moment process manager startup process, process will read business foot This (service scenario to be upgraded), early version runs business simultaneously, and new and old edition also can be every one section simultaneously Time reads configuration file, is believed with the version read the when of initiating self in internal memory by configuration file Breath compares, if redaction process, is then left intact, if early version process, then business New business is no longer run after end.Process manager coexists the time according to the new and old edition in configuration file, Start the clock from starting redaction, it is ensured that early version process is the most all run through in race business, then Cut off early version process.
Main flow process has:
A, version information is set, configuration file arranges version information and new and old edition coexists duration.
B, process manager reading configuration information compares with the version information read before process manager, If consistent, do not process;If inconsistent, represent and need upgrading, then by corresponding configuration information Read in the internal memory of process manager.
C, startup redaction process, process manager starts redaction in a program by system command and enters Journey.
D, new and old edition process read configuration information, and new and old edition process all can go to read in configuration information Version information with in oneself internal memory version information contrast, if unanimously, explanation is redaction process, Do not process;Inconsistent if (scalable also can rollback), then a marker bit, this marker bit be set Represent and no longer run new business after the service ending run.
E, process manager stop early version process, and process manager guarantees early version according to the time of coexisting The business of process is the most all run through, and then stops early version process, thus allows the process of redaction only Vertical operation.
Whether f, process manager and redaction process monitor profile information at set intervals, see There is new upgrading.
Primary structure body:
Process manager primary structure body:
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all in the present invention Spirit and principle within, any modification, equivalent substitution and improvement etc. made, should be included in this Within bright protection domain.

Claims (8)

1. a seamless version upgrading method, it is characterised in that specifically include following steps:
Step 1: the legacy version progress information individually preserved is read in internal memory;
Step 2: read the configuration information of legacy version process in internal memory and be saved in the configuration file in internal memory, And new and old edition process is set is operated together time segment value;
Step 3: start legacy version process and start to process business, every default time period, management of process Device reads configuration file and obtains newly configured information, by newly configured information and the configuration information phase pre-saved Join;If it matches, jump to step 7;Otherwise, start the redaction process corresponding with newly configured information, Carry out step 4;
Step 4: new and old edition process processes business simultaneously;
Step 5: judge that new and old edition process is jointly processed by the time segment value of business whether the newest equal to arrange Legacy version process is operated together time segment value;If equal to, carry out step 6;Otherwise, step is jumped to 4;
Step 6: judge that the business that legacy version process is processing completes the most, as completed, terminates Legacy version process, continues step 7;Otherwise, step 4 is jumped to;
Step 7: the version process being currently running processes business;
Step 8: judge whether all business have processed, if completed, terminates;Otherwise, by new edition The newly configured information of this process is saved in internal memory in configuration file, and redaction process becomes legacy version and enters Journey, returns step 3;
Separate with engine based on business, engine as resolve process independent of business;Business is with xml script Form leaves in a single catalogue, and disposably reads in internal memory during process initiation, Follow-up if not start new process will no longer read script.
One the most according to claim 1 is seamless version upgrading method, it is characterised in that described step In rapid 4, when running redaction process, legacy version process is arranged a flag bit, this flag bit table After showing that described version process just processes service ending, legacy version process is not reruned.
One the most according to claim 1 and 2 is seamless version upgrading method, it is characterised in that institute The version progress information stating individually preservation preserves with xml extensible markup language scripts form.
One the most according to claim 3 is seamless version upgrading method, it is characterised in that described step Read the configuration information of version process being currently running in rapid 3 not mate with the configuration information in configuration file Time, while starting redaction process, record redaction process ID.
5. a seamless edition upgrading system, it is characterised in that include read module, module is set, enters Thread management device, judge module and memory refreshing module;
Described read module is for reading the version progress information individually preserved in internal memory;
The described module that arranges is saved in internal memory for the configuration information read in internal memory in version progress information In configuration file in, and new and old edition be set coexist time value;
Described process manager, every the default time period, reads configuration file and obtains newly configured information, will Newly configured information matches with the configuration information pre-saved;If it matches, explanation need not upgrading;Otherwise, Finding redaction progress information, start redaction process and process business, new and old edition process processes industry simultaneously Business;
It is the newest equal to arrange that described judge module judges that new and old edition process processes the business hours simultaneously Legacy version coexists time value;If equal to, determine whether the business that legacy version process is processing The most complete, as completed, terminate legacy version process, by redaction process independent operating;Otherwise, Continue new and old edition process to run simultaneously;
Described memory refreshing module is for the configuration information updated in internal memory in configuration file;
Separate with engine based on business, engine as resolve process independent of business;Business is with xml script Form leaves in a single catalogue, and disposably reads in internal memory during process initiation, Follow-up if not start new process will no longer read script.
Edition upgrading system that one the most according to claim 5 is seamless, it is characterised in that described in enter Thread management device, when startup optimization redaction process, arranges a flag bit, this mark to legacy version process After position represents that described version process just processes service ending, legacy version process is not reruned.
7. according to the seamless edition upgrading system of the one described in claim 5 or 6, it is characterised in that institute The version progress information stating individually preservation preserves with xml extensible markup language scripts form.
Edition upgrading system that one the most according to claim 7 is seamless, it is characterised in that described in set Put module and do not read the configuration information of version process that is currently running and the configuration information in configuration file not Timing, while starting redaction process, records redaction process ID.
CN201310428918.1A 2013-09-18 2013-09-18 A kind of seamless version upgrading method and system Active CN103473101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310428918.1A CN103473101B (en) 2013-09-18 2013-09-18 A kind of seamless version upgrading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310428918.1A CN103473101B (en) 2013-09-18 2013-09-18 A kind of seamless version upgrading method and system

Publications (2)

Publication Number Publication Date
CN103473101A CN103473101A (en) 2013-12-25
CN103473101B true CN103473101B (en) 2016-11-23

Family

ID=49797970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310428918.1A Active CN103473101B (en) 2013-09-18 2013-09-18 A kind of seamless version upgrading method and system

Country Status (1)

Country Link
CN (1) CN103473101B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201566B (en) * 2015-05-07 2019-08-23 阿里巴巴集团控股有限公司 Benefit wins the hot upgrade method of big special software and equipment
WO2016196757A1 (en) 2015-06-05 2016-12-08 Shell Oil Company System and method for replacing a live control/estimation application with a staged application
CN106293744B (en) * 2016-08-11 2019-06-07 中国银行股份有限公司 A kind of application version dynamic switching method and device
CN106453501B (en) * 2016-09-09 2019-05-31 北京奇虎科技有限公司 A kind of method and apparatus of the configuration information of modification service
CN106919418B (en) * 2017-01-22 2020-11-27 北京奇艺世纪科技有限公司 Method and device for quickly rolling back on-line application
CN108984191A (en) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 A kind of method, apparatus and electronic equipment of application update
CN108170464A (en) * 2017-12-27 2018-06-15 联想(北京)有限公司 A kind of version upgrading method, service platform and electronic equipment
CN108334381A (en) * 2018-01-30 2018-07-27 北京铂阳顶荣光伏科技有限公司 A kind of configuration method and system, filming equipment of filming equipment parameter
CN109783135A (en) * 2019-01-30 2019-05-21 深圳琥珀虚颜智能科技有限公司 Multimode software version management system
CN110147272B (en) * 2019-05-16 2021-06-29 深圳市思迪信息技术股份有限公司 Method and device for distributing service data by applying multiple processes
CN115361435A (en) * 2022-07-13 2022-11-18 阿里巴巴(中国)有限公司 Data processing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438708B1 (en) * 1997-11-07 2002-08-20 Hitachi, Ltd. Information processing apparatus that can hold internal information
CN101458628A (en) * 2008-12-17 2009-06-17 浪潮通信信息系统有限公司 Program edition management method
CN102299940A (en) * 2010-06-25 2011-12-28 龚华清 Software upgrading method of persistent network service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438708B1 (en) * 1997-11-07 2002-08-20 Hitachi, Ltd. Information processing apparatus that can hold internal information
CN101458628A (en) * 2008-12-17 2009-06-17 浪潮通信信息系统有限公司 Program edition management method
CN102299940A (en) * 2010-06-25 2011-12-28 龚华清 Software upgrading method of persistent network service

Also Published As

Publication number Publication date
CN103473101A (en) 2013-12-25

Similar Documents

Publication Publication Date Title
CN103473101B (en) A kind of seamless version upgrading method and system
CN104572644B (en) Database update device and database update method
CN104615759A (en) Data synchronization method for different business system platforms
CN103617176B (en) One kind realizes the autosynchronous method of multi-source heterogeneous data resource
CN104111848B (en) Multi-thread software dynamic upgrading method based on asynchronous check points
CN104615466B (en) A kind of cloud platform dispositions method and system
US10120672B2 (en) Method for offline updating virtual machine images
CN109885581A (en) Synchronous method, device, equipment and the storage medium of database
CN105573797B (en) The reversible upgraded in offline method and device of embedded system
US8661418B2 (en) Setting program, workflow creating method, and work flow creating apparatus
CN105528231B (en) A kind of software dynamic update method and system based on intermediate auxiliary function
KR101674975B1 (en) System upgrade method, apparatus, device, program, and recording medium
CN104536737A (en) Program development framework based on assemblies
CN102855181A (en) Software repairing method and system
WO2016078060A1 (en) Multi-system terminal system updating method, updating device and terminal
WO2022262754A1 (en) Operating system data updating method and device, storage medium, and program product
CN103186400B (en) Web application upgrade method and system
CN106445618A (en) Automatic database updating method
CN102722579A (en) Bisynchronous method for internal database of cluster memory system
CN106603289B (en) LMT configuration file smooth upgrading method
CN106354498A (en) Linux system equipment loading method
CN105573910B (en) Application program debugging method of protected system and intelligent terminal
CN105893068A (en) Offline upgrading method and device of intelligent equipment
CN105183657A (en) System and method for testing WEB interface
CN105843773A (en) Automatic identification method of function extension module of embedded system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant