CN107807816A - The upgrade method of serve end program and database, device and equipment - Google Patents

The upgrade method of serve end program and database, device and equipment Download PDF

Info

Publication number
CN107807816A
CN107807816A CN201610811502.1A CN201610811502A CN107807816A CN 107807816 A CN107807816 A CN 107807816A CN 201610811502 A CN201610811502 A CN 201610811502A CN 107807816 A CN107807816 A CN 107807816A
Authority
CN
China
Prior art keywords
database
program entity
program
renewal
entity
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
CN201610811502.1A
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 CN201610811502.1A priority Critical patent/CN107807816A/en
Publication of CN107807816A publication Critical patent/CN107807816A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Abstract

The application provides a kind of upgrade method, device and the equipment of serve end program and database.This method includes:Second program entity is disabled, then updates second program entity;After the second program entity is updated, compatible renewal processing is carried out to database used in current first program entity for externally providing service, obtains the first database;The second program entity after control renewal receives access request and caches the access request;Control first program entity to stop receiving access request and update first program entity, and, non-compatible renewal processing is carried out to first database, obtains the second database.The resource needed for database Hot Spare is this method save, ensures accuracy during serve end program access database before and after upgrading.

Description

The upgrade method of serve end program and database, device and equipment
Technical field
The application is related to database technology, more particularly to the upgrade method of a kind of serve end program and database, device and Equipment.
Background technology
Serve end program is one kind using client-side/server-side (C/S) structure and operates in service end and provide a user The program of business service.Serve end program is generally required for constantly updating iteration from after offer service of reaching the standard grade.In general, service Program is held in upgrading, it usually needs by serve end program rear progress upgraded in offline out of service, after the completion of to be upgraded, open again Move the serve end program after the upgrading and service be externally provided, this upgrading mode often result in user within a period of time can not Use the serve end program.Therefore, in order to ensure that serve end program continues external offer service, prior art employs rotation and risen The method of level upgrades to serve end program, and still, the method for rotation upgrading is only applicable to the service for not being related to database Hold program, and for being related to the serve end program of database, the upgrading of the serve end program often relate to database table structure, The renewal of data content, and the database that the method for above-mentioned rotation upgrading is easily caused towards new and old serve end program is inconsistent, So as to trigger the problem of incompatible.
Therefore, in order to avoid above mentioned problem, prior art are entered by the way of Hot Spare to database and serve end program Row upgrading.Specially:Hot Spare is carried out to database first, obtain two databases (providing service database A1 and The database prepared for upgrading is A2), two databases synchronize;Then at the t1 moment, the hot standby of current database is stopped, Databases comparison operation is performed to database A2, and during database A2 data change, the serve end program before upgrading is still Database A1 is read and write, after the completion of pending data storehouse A2 changes, starts the serve end program after upgrading, and stop the service end before upgrading Program, the serve end program that access request is directed to after upgrading is handled;Finally, by database A1 after instant tl All operation datas are corrected in the database A2 after sentence imports above-mentioned change by pre-prepd, then discharge database A1, the serve end program after instruction renewal point to final database A2.
But the method for this upgrading service end program and database of prior art, it is standby for the database of Large Copacity Part time length, serious waste of resources, and serve end program after upgrading has externally been carried using the database A2 after change During for service, the serve end program before upgrading is to incremental data caused by the change of database to the database after change Migrated in A2, the inconsistent risk of data is larger.
The content of the invention
The application provides a kind of upgrade method, device and the equipment of serve end program and database, to solve prior art During using hot standby method upgrading service end program and database, caused BACKUP TIME length, the technology of serious waste of resources Problem, and solve serve end program after upgrading in the prior art and externally provide service using the database after change When, the serve end program before upgrading is moving to incremental data caused by the change of database into the database after change Move, trigger the inconsistent technical problem of data.
On one side, the application provides a kind of upgrade method of serve end program and database, the serve end program bag Include the first program entity and the second program entity;Methods described includes:
Second program entity is disabled, then updates second program entity;
After second program entity is updated, current first program entity for externally providing service is used Database carry out compatible renewal processing, obtain the first database;
The second program entity after control renewal receives access request and caches the access request;
Control first program entity to stop receiving access request and update first program entity, and, to institute State the first database and carry out non-compatible renewal processing, obtain the second database.
The upgrade method of above-mentioned provided serve end program and database, by current the second disabled journey of renewal After sequence entity, compatible renewal is carried out to database used in current the first program entity for externally providing service and handles to obtain First database, then in server device after controlling the first program entity to stop receiving access request, after control renewal Second program entity receives and cache access request, and updates above-mentioned first program entity and the first database is carried out non-simultaneous Hold renewal processing, obtain the second database.In the embodiment of the present application, the first database obtained by being handled by compatible renewal, make Obtain the first program entity that currently externally offer services and be directed to same access request, obtained by the database before accessing upgrading Result it is identical with result obtained by the database (i.e. the first database) after compatible renewal processing is accessed, it is ensured that it is current external It is consistent that data are accessed when database before and after the first program entity access serviced upgrades is provided, avoid access result from malfunctioning;Together When, by server device when the first program entity stops receiving access request, the second program entity after control renewal connects Receive and cache access is asked, for external equipment, server-side devices are currently still receiving access request, service The business that end program externally provides is not interrupted, and it is continuous during serve end program access database to ensure that external equipment passes through Property;In addition, server device is by controlling the above-mentioned database to before upgrading to carry out at compatible renewal processing and non-compatible renewal The order of reason, so that the database before upgrading obtains complete updating operation, and the front and rear service of upgrading will not be brought There is the problem of access errors with when accessing the database after upgrading in database before the routine access upgrading of end, without to upgrading Preceding database progress is hot standby, greatly saves hot standby resource, also, the increasing being also not present between the front and rear database of upgrading Data Migration is measured, serve end program accesses the problem of data are inconsistent before and after avoiding the occurrence of upgrading.
As a kind of achievable mode, control first program entity stops receiving access request and updates institute The first program entity is stated, is specifically included:
First program entity is controlled to stop receiving access request, and the access task in first program entity Return to implementing result and after second database is obtained, update first program entity.
As a kind of achievable mode, control first program entity stops receiving access request and updates institute The first program entity is stated, is specifically included:
First program entity is controlled to stop receiving access request, and the access task in first program entity Return to implementing result and the second program entity after the renewal is controlled externally provides business using second database and taken After business, first program entity is updated.
As a kind of achievable mode, disabling second program entity, it is real then to update second program Body, specifically include:
Second program entity is controlled to stop receiving access request, to disable second program entity;
After access task in second program entity returns to implementing result, current the second disabled program of renewal Entity.
As a kind of achievable mode, control second program entity stops receiving access request, specific bag Include:
The working condition for configuring the request receiver in second program entity is not enabled disabled states, with control Second program entity is made to stop receiving access request.
As a kind of achievable mode, the second program entity after the control renewal receives access request and caches institute Access request is stated, is specifically included:
The working condition for configuring the request receiver in the second program entity after the renewal is to delay to ask hold moulds Formula, to control the second program entity after the renewal to receive access request and be cached the access request.
It is described to be cached the access request as a kind of achievable mode, specifically include:
In the storehouse of each receiving thread for the second program entity access request being buffered in after the renewal;
Or
In the message queue for the second program entity access request being buffered in after the renewal;
Or
The access request is buffered in first database.
As a kind of achievable mode, control first program entity stops receiving access request, specific bag Include:
The working condition for configuring the request receiver in first program entity is not enabled disabled states, with control First program entity is made to stop receiving access request.
As a kind of achievable mode, the second database manipulation set also includes at least one compatibility described first Second database manipulation of program entity.
As a kind of achievable mode, the compatible corresponding first database manipulation set of renewal processing is described non-simultaneous Hold the corresponding second database manipulation set of renewal processing;
The first database manipulation set comprises at least:Do-nothing operation, increase new database table in the database Operation, in the database increase with default value data arrange operation, insert default number in the database According to capable operation;
The second database manipulation set comprises at least:Change existing database table or data in the database The operation of row content in the table of storehouse, the operation for deleting data row required during the first program entity operation.
As a kind of achievable mode, methods described also includes:
The second program entity after the first program entity and renewal after control renewal is external using second database Service is provided.
Above-mentioned several optional implementations, by the work for simply configuring the first program entity and the second program entity The order of database before state, and the different database manipulation process of aggregation upgrading of control, simplify serve end program and The escalation process of database, the upgrading efficiency of serve end program and database is provided significantly.
On the other hand, the application provides a kind of update device of serve end program and database, the serve end program bag Include the first program entity and the second program entity;Described device includes:First control update module, the first database update mould Block, buffer control module, the second control update module and the second database update module;
First control update module, for disabling second program entity, then updates second program entity;
First database update module, for the described first control update module update second program entity it Afterwards, compatible renewal processing is carried out to database used in current first program entity for externally providing service, obtains the One database;
Buffer control module, please for controlling the second program entity after updating to receive access request and caching the access Ask;
Second control update module, for controlling first program entity to stop to receive access request and updating described the One program entity;
Second database update module, for carrying out non-compatible renewal processing to first database, obtain the second number According to storehouse.
The update device of above-mentioned provided serve end program and database, its advantage be referred to it is above-mentioned respectively can be real Serve end program in existing mode and beneficial effect caused by the upgrade method of database, will not be repeated here.
On the other hand, the application provides a kind of updating apparatus of serve end program and database, the serve end program bag Include the first program entity and the second program entity;The equipment includes:
Input equipment, coupled to processor, for receiving the first control instruction;
Processor, for disabling second program entity according to first control instruction, then update described second Program entity, and after second program entity is updated, to current the first program entity institute for externally providing service The database used carries out compatible renewal processing, obtains the first database;
The input equipment, it is additionally operable to receive the second control instruction;
The processor, it is additionally operable to receive access according to the second program entity after second control instruction control renewal Ask and cache the access request, and control first program entity to stop receiving access request and update first journey Sequence entity, and, non-compatible renewal processing is carried out to first database, obtains the second database.
The updating apparatus of above-mentioned provided serve end program and database, its advantage be referred to it is above-mentioned respectively can be real Serve end program in existing mode and beneficial effect caused by the upgrade method of database, will not be repeated here.
In this application, by the way that after current the second disabled program entity of renewal, service is externally provided to current The first program entity used in database carry out compatible renewal and handle to obtain the first database, then exist in server device The first program entity is controlled to stop after receiving access request, the second program entity after control renewal receives and cache access please Ask, and update above-mentioned first program entity and non-compatible renewal processing is carried out to the first database, obtain the second database.This Apply in embodiment, the first database obtained by being handled by compatible renewal so that current the first program that service is externally provided Entity is directed to same access request, after the result obtained by accessing the database before upgrading and the compatible renewal processing of access Result obtained by database (i.e. the first database) is identical, it is ensured that current the first program entity for externally providing service, which accesses, to be risen Level before and after database when access data it is consistent, avoid access result error;It is meanwhile real in the first program by server device When body stops receiving access request, the second program entity after control renewal receives and cache access request, hence for outside For equipment, server-side devices are currently still receiving access request, during the business that serve end program externally provides does not have It is disconnected, it ensure that continuity when external equipment accesses database by serve end program;In addition, server device passes through in control The order that compatible renewal processing and non-compatible renewal processing are carried out to the database before upgrading is stated, so that the data before upgrading Storehouse obtains complete updating operation, and the front and rear serve end program of upgrading will not be brought to access database and access before upgrading There is the problem of access errors during database after upgrading, it is hot standby without being carried out to the database before upgrading, greatly save Hot standby resource, also, the incremental data migration being also not present between the front and rear database of upgrading, avoid the occurrence of that upgrading is front and rear to be taken The problem of end routine access data of being engaged in are inconsistent.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic diagram of optional service end system of the application;
Fig. 2 is the schematic flow sheet of the upgrade method of the serve end program that the embodiment of the application one provides and database;
Fig. 3 is the signaling process figure of the upgrade method of the serve end program that the embodiment of the application one provides and database;
Fig. 4 is the update device structural representation of the serve end program that the embodiment of the application one provides and database;
Fig. 5 is the update device structural representation of the serve end program that the embodiment of the application one provides and database;
Fig. 6 is the updating apparatus hardware architecture diagram of the serve end program that the embodiment of the application one provides and database.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
For the sake of clarity, the specific word or the definition of phrase that the explanation present invention uses first.
Serve end program:In program using client-side/server-side (C/S) structure, run on service end and user is carried For the program of business service, the service end can be server or the equipment with global control process function.Optionally, it is right For system program, user oriented client-side program and the serve end program at service-oriented end are can be generally divided into, therefore, For the application program of APP classes, program that the serve end program can be run by webserver side, database is net The database of network server.
Heat upgrading:The upgrading of system and the modification of operational factor are completed in the case where not stopping service.
The Hot Spare of database:Database (such as primary database A1) is backed up, the number of service is being provided According to storehouse A1 and it is that the database that upgrading prepares is A2, the content of two databases keeps synchronous.
The invention relates to serve end program and database upgrade method, go for the clothes shown in Fig. 1 Business end system, the service end system include Request dispatcher, request receiver, request actuator and database, the service end system System can realize that above-mentioned Request dispatcher, request receiver, request actuator are equal by way of software or soft or hard combination Belong to serve end program, it is respectively the program code with corresponding function.When carrying out updating operation, distribute for request Device, because it relates only to request forwarding, it is not related to service logic, generally, it is not necessary to which it is upgraded.It is optional , the mode of rotation upgrading can be used to carry out hot upgrading to Request dispatcher, it is no longer superfluous herein referring specifically to prior art State.
For above-mentioned Request dispatcher, positioned at service end system porch, in order to reach the mesh of load balancing or Hot Spare And set, the request for the service end system to be received is distributed to each request receiver in rear end.Generally, in order to ensure performance The horizontal extension of capacity, behind an external exposed interface (for example, application programming interface API), it can all dispose multiple Independence and function identical program entity, each program entity includes a request receiver and a request actuator, multiple The serve end program that independent program entity forms a whole externally provides service (that is, a serve end program can So that including multiple function identical program entities, each program entity includes a request receiver and a request actuator). The implementation of above-mentioned Request dispatcher includes but is not limited to software/hardware load balancing, domain name system (Domain Name System, abbreviation DNS) load balancing, message queue distribution etc..
For above-mentioned request receiver, it is in each independent program entity, as each request actuator only One command source.The request receiver be abstracted request actuator all access entrances, all external requests be required to by Request receiver.Request receiver and the interactive mode of Request dispatcher include but is not limited to:Request content push, request content Pull.Connect for the API exposed with Hyper text transfer (HyperText Transfer Protocol, abbreviation HTTP) agreement Mouthful, interacted usually using request content push mode with Request dispatcher;For message queue mode, usually using request Content pulls mode and interacted with Request dispatcher, but the embodiment of the present application is between request receiver and Request dispatcher Interactive mode not limited to this.
For above-mentioned request actuator, the request actuator handles the instruction received by request receiver, finishing service Control logic and mathematical logic processing, after the completion of processing, return to accordingly result.In addition, request actuator can read or deposit Store up the related content of database.The request actuator and request receiver may be constructed an independent program entity.
For above-mentioned database, the database realizes the correlation to data to deposit or reading the functional entity of data Operation.
The invention relates to serve end program and database upgrade method, go for any using data The upgrading scene of the serve end program in storehouse, it relates generally to persistently provide the user business in user's unaware, serve end program In the case of service, serve end program and its used database are upgraded, complete the renewal iteration of product function Process, when using hot standby method upgrading service end program and database so as to solve prior art, caused BACKUP TIME It is long, the technical problem of serious waste of resources, and solve serve end program after upgrading in the prior art and use change When database afterwards externally provides service, the serve end program before upgrading to incremental data caused by the change of database Migrated into the database after change, trigger the inconsistent technical problem of data.
Optionally, the executive agent of the embodiment of the present application can be server device, can also be that being integrated in service end sets Standby upper update device, the update device can be realized by way of software, hardware or soft or hard combination, following embodiments with Executive agent is exemplified by server device.
The technical scheme of the application is described in detail with specifically embodiment below.These specific implementations below Example can be combined with each other, and may be repeated no more in certain embodiments for same or analogous concept or process.
Fig. 2 is the schematic flow sheet of the upgrade method of the serve end program that the embodiment of the application one provides and database.This Embodiment is referred to server device and currently used database and serve end program is entered using different database manipulations The detailed process of row upgrading, without carrying out Hot Spare to database to save resource, it also avoid incremental data in the prior art Migration caused by towards new and old serve end program database data it is inconsistent the problem of.The embodiment of the present application is mainly for upper State request receiver, request actuator and database upgraded, in the present embodiment, in advance by serve end program it is multiple please Receiver, multiple request actuator division upgrading batches are asked, guarantee has that request receiver is in running order at any time, Remember first upgrading request receiver, request actuator integrate be combined into SA2 (SA2 be in serve end program the second program reality Body, second program entity can include at least one independent program entity), in the second program entity escalation process, when The preceding request receiver for externally providing service, request actuator set are designated as SA1, and (SA1 is the first journey in serve end program Program entity remaining in addition to the second program entity in sequence entity, i.e. serve end program).For convenience of description, it is following to incite somebody to action The request receiver of first upgrading, request actuator set SA2 are referred to as the second program entity, and SA1 is referred to as into the first journey Serve end program in sequence entity, i.e. the present embodiment includes the first program entity and the second program entity.
As shown in figure 1, the present processes can include:
S101:Disable the second program entity, then update second program entity, and update the second program entity it Afterwards, compatible renewal processing is carried out to database used in current first program entity for externally providing service, obtains the One database.
Specifically, server device when upgrading to serve end program, first confirms that the first program entity and second Whether program entity all externally provides service.If the first program entity and the current all external offer clothes of the second program entity Business, then server device disables second program entity, then updates the second program entity of the disabling.By the second of disabling Program entity is updated to after target version, and database used in current the first program entity for externally providing service is carried out Compatible renewal processing, obtains the first database.
It should be noted that the first program entity is current externally to provide service, its currently used database is liter Database before level, after server device carries out compatible renewal processing to the database, compatibility renewal processing causes gained The request actuator of the first database arrived not only the second program entity after compatible above-mentioned renewal, first be also compatible with before upgrading In request actuator in program entity and the second program entity, i.e. the first program entity and the second program entity before renewal Ask the request actuator in the second program entity after actuator and renewal to be based on first database to carry out just Normal business processing, be not in that data access mistake or the first program entity access the database before upgrading and access the Occurs the problem of data are inconsistent during one database.That is, the first program entity now either accesses the number before upgrading According to storehouse, or the first database is accessed, resulting result is not in mistake.It is it should be noted that above-mentioned to database The compatible renewal processing of progress, it will not be modified or delete to current existing data in database, i.e. the first program Entity is directed to same access request, after the result obtained by accessing the database before upgrading and the compatible renewal processing of access Result obtained by database (i.e. the first database) is identical, and the second program entity before renewal accesses for same access request The result obtained by database before upgrading and the second program entity after renewal access the number after upgrading for the access request It is identical according to the result obtained by storehouse (the first database).That is, above-mentioned compatible renewal processing is that can make the number after upgrading According to the certain operations of the second front and rear program entity of compatible first program entity in storehouse, renewal, such as the database before upgrading is increased Add the operation of data row of operation, increase with default value of new database table etc..
S102:The second program entity after control renewal receives access request and caches the access request.
Specifically, after server device obtains the first database, server device can control second after renewal Program entity receives access request, i.e. request receiver in the second program entity after control renewal receives access request, and Received outside access request is cached, the purpose for the arrangement is that in order in following server devices by the first program After entity stops service, serve end program externally remains able to response access request, and (response here is actually that reception is outside Access request but delay to handle, but for outside access equipment, still worked on equivalent to serve end program), it is ensured that Serve end program is interrupted in escalation process and interacted with outside access equipment.
S103:Control first program entity to stop receiving access request and update first program entity, and, Non-compatible renewal processing is carried out to first database, obtains the second database.
Specifically, after above-mentioned S102 is performed, server device controls current first program entity to stop receiving access Request, access request is externally received by the second program entity after above-mentioned renewal, as stated above, the purpose for the arrangement is that being After the first program entity stops receiving access request, for external equipment, the second program entity after renewal still receives The access request of external equipment, therefore so for external equipment, serve end program is not stopped.Now, service After access task of the end equipment on the first program entity is confirmed all returns to implementing result, the first program entity can be updated Or target version (target version is identical with the version of the second program entity after above-mentioned renewal) is upgraded to, after obtaining renewal The first program entity.
On the other hand, because the second program entity after above-mentioned renewal is the access request outside reception, therefore, it is not It is related to the operation to the first database, so, server device can carry out non-compatible renewal processing to first database, obtain To the second database.The non-compatible renewal processing includes the place that the current existing data of first database are modified or deleted Reason, these handle the first program entity and the second program entity before incompatible upgrading, that is, the second program entity pin before updating Access an access request database before upgrading and the second program entity after renewal and access the second number for the access request Inconsistent situation occurs in the result obtained according to place, and the first program entity before renewal accesses upgrading for an access request The first program entity after preceding database and renewal can go out for the result obtained by the access request the second database of access Existing inconsistent situation.
In the embodiment of the present application, why compatibility formerly is carried out more to database used in the first program entity before renewal New processing, it is because the first program entity is still externally provided using the database before upgrading after the second program entity stops service Service, therefore, if formerly carrying out non-compatible renewal processing to database used in the first program entity before renewal, it may appear that First program entity access upgrade before database and access through non-compatible renewal processing after database when, corrupt data or The problem of person's data are inconsistent, still, if formerly carrying out compatibility more to database used in the first program entity before renewal The problem would not occur in new processing, and specific explanations may refer to above-mentioned S101 description.It should be noted that in the present embodiment The sequential relationship that non-compatible renewal processing is carried out to the first program entity of renewal and to the first database does not limit.
Therefore in the present embodiment, after the two the second program entities of server device renewal disabling, formerly to it is current externally Database used in first program entity of service is provided and carries out compatible renewal processing, obtains the first database, it is ensured that first Data are consistent when program entity accesses upgrading front and rear database;Then server device is controlling the first program entity to stop connecing When receiving access request, the second program entity after control renewal receives and cache access request, with the second program in the updated When the first database is not used in entity, non-compatible renewal processing is carried out to the first database, obtains the second data, so that rising Database before level obtains complete updating operation, and the front and rear serve end program of upgrading will not be brought to access the number before upgrading There is the problem of access errors according to storehouse and when accessing the database after upgrading, it is hot standby without being carried out to the database before upgrading, Resource is greatly saved, also, the incremental data migration being also not present between the front and rear database of upgrading, avoid the occurrence of upgrading Front and rear serve end program accesses the problem of data are inconsistent.
After the second database is obtained, after the second program entity and renewal after the control renewal of server device can The first program entity externally provide business service using the second database.
The serve end program and the upgrade method of database that the embodiment of the present application provides, by current disabled in renewal After second program entity, database used in current the first program entity for externally providing service is carried out at compatible renewal Reason obtains the first database, and then in server device after controlling the first program entity to stop receiving access request, control is more The second program entity after new receives and cache access request, and updates above-mentioned first program entity and the first database is entered The non-compatible renewal processing of row, obtains the second database.In the embodiment of the present application, the first data obtained by being handled by compatible renewal Storehouse so that current the first program entity for externally providing service is directed to same access request, is accessing the database before upgrading The result obtained by database (i.e. the first database) after the renewal processing compatible with access of resulting result is identical, it is ensured that when Access data are consistent when the first program entity that offer services preceding externally accesses upgrading front and rear database, avoid access result from going out It is wrong;Meanwhile by server device when the first program entity stops receiving access request, the second program after control renewal is real Body receives and cache access request, and for external equipment, server-side devices are currently still receiving access request, The business that serve end program externally provides not interrupt, ensure that external equipment by serve end program access database when Continuity;In addition, server device by control the above-mentioned database to before upgrading carry out compatible renewal processing and it is non-compatible more The order newly handled, so that the database before upgrading obtains complete updating operation, and it will not bring before and after upgrading Serve end program accesses the database before upgrading and the problem of access errors occurs when accessing the database after upgrading, without right Database progress before upgrading is hot standby, greatly saves hot standby resource, also, is also not present between the front and rear database of upgrading Incremental data migration, avoid the occurrence of upgrading before and after serve end program access data it is inconsistent the problem of.
Optionally, the above-mentioned compatible renewal processing carried out to current the first program entity for externally providing service can correspond to First database manipulation set, the non-compatible renewal processing carried out to the first database can correspond to the second database manipulation collection Close.The first database manipulation set comprises at least following compatible renewal operation:Do-nothing operation, used in the first program entity Increase the operation of new database table in database before upgrading, in the database before upgrading used in the first program entity Increase with default value data arrange operation, used in the first program entity upgrading before database in insert it is default The operation of data row, the operation of the default data row of the insertion are not influence the operation of the first program entity operation.Optionally, when When first database manipulation set only includes do-nothing operation, sky is combined into equivalent to the first database manipulation collection, then institute in above-mentioned S101 The first obtained database is identical with the database before upgrading.That is, when the first database manipulation set includes do-nothing operation When, the first database manipulation set can not include other compatible operations, when the first database manipulation set does not include do-nothing operation When, it can include other compatible operations.
Optionally, above-mentioned second database manipulation set comprises at least following non-compatible renewal operation:Change the first program The operation of row content in database before upgrading used in entity in existing database table or database table, delete institute State the operation of data row required during the operation of the first program entity.Optionally, the second database manipulation set can also include The compatible renewal operation in part in above-mentioned first database manipulation set is, it is necessary to illustrate, if the second database manipulation set In when including the compatible renewal operation in part in above-mentioned first database manipulation set, the compatible renewal operation in the part with it is above-mentioned The current included database manipulation of first database manipulation set is different, for example, it is assumed that above-mentioned first database manipulation set Being included in increases the operation of new database table in the database before upgrading used in the first program entity, then the second database Operational set including above-mentioned non-compatible update in operation, in addition to above-mentioned compatible renewal operation except removing " the new data of increase Other compatibility renewal operations of storehouse table ".
Optionally, first program entity is controlled to stop receiving access request and updating being somebody's turn to do for above-mentioned server device First program entity, a kind of optional embodiment are specifically as follows:Server device controls the first program entity to stop receiving Access request, and the access task in the first program entity returns to implementing result and after the second database is obtained, renewal First program entity, that is, the operation for updating the first program entity can be carried out after the second database is obtained.
Specifically, because the second program entity after now updating is the access request outside receiving, and it is not required to The access request is handled with reference to corresponding database, therefore, as long as server device controls the first program entity to stop Access request is only received, and after the access task return implementing result in the first program entity, it is possible to counted to above-mentioned first Non-compatible renewal processing is carried out according to storehouse, the second database is obtained, then the first program entity of current hang is updated again, The first program entity after being updated, and then control the first program entity after renewal and the second program entity after renewal to adopt Service is externally provided with the second database, the operation of the second program entity after renewal is not both interfered with so, does not also interfere with The renewal progress of database, the accuracy of the front and rear data access of upgrading is not interfered with more.
Optionally, first program entity is controlled to stop receiving access request and updating being somebody's turn to do for above-mentioned server device First program entity, another optional embodiment are specifically as follows:First program entity is controlled to stop receiving access Request, and the access task in first program entity returns to implementing result and the second program after the renewal is controlled After entity externally provides business service using second database, first program entity is updated, that is, updates the first journey The operation of sequence entity can be that the second program entity in the updated externally provides the laggard of service using the second database OK.
Specifically, because the second program entity after now updating is the access request outside receiving, and it is not required to The access request is handled with reference to corresponding database, therefore, as long as server device controls the first program entity to stop Access request is only received, and after the access task return implementing result in the first program entity, it is possible to counted to above-mentioned first Non-compatible renewal processing is carried out according to storehouse, obtains the second database, then the second program entity after control renewal directly uses the Two databases externally provide service, the first program entity of current hang are updated again afterwards, first after being updated Program entity, and then control the first program entity after renewal externally to provide service using the second database, so both will not shadow The operation of the second program entity after renewal is rung, does not also interfere with the renewal progress of database, is not interfered with more before and after upgrading The accuracy of data access.
Further, include request receiver in above-mentioned first program entity and the second program entity and request performs Device, therefore, following several possible embodiments mainly introduce how server device controls the first program entity, the second program The working condition of the first program entity after the second program entity and renewal after entity, renewal.
Optionally, the second program entity that server device renewal disables in above-mentioned S101, is specifically as follows:Control second Program entity stops receiving access request, to disable second program entity, and the access task in second program entity After returning to implementing result, the second disabled program entity is updated.
Specifically, server device can pass through request receiver in logic configuration or the program entity of manual configuration second State be down state, to control the second program entity to stop to receive outside access request, (now the first program entity is still So service is externally provided using current database).At the same time, server device checks institute before current second program entity The whether equal executed of all access requests received, which finishes, (judges whether the access task in the second program entity is all returned Return implementing result), after the access task that server device is determined in current second program entity all returns to implementing result, more New current second disabled program entity.Optionally, can be received by configuring the request in the second program entity The working condition of device is does not enable (disabled) state, to control the second program entity to stop receiving access request.
Optionally, the second program entity in above-mentioned S102 after server device control renewal receives access request and cached The access request, can be specifically to be by the working condition of the request receiver in the second program entity after config update Delay to ask (hold) pattern, to control the second program entity after renewal to receive access request and carry out the access request Caching.Optionally, server device can cache the access request that the second program entity after renewal receives in the updated The second program entity each receiving thread storehouse in;Optionally, server device can also be by the second journey after renewal In the message queue of the second program entity of the access request caching that sequence entity receives in the updated;Optionally, service end is set It is standby the access request that the second program entity after renewal receives to be buffered in above-mentioned first database.
Optionally, server device controls the first program entity to stop receiving access request in above-mentioned S103, specifically can be with It is by configuring the working condition of the request receiver in the first program entity as not enabled disabled states, described in controlling First program entity stops receiving access request.
Optionally, second after server device obtains the first program entity and renewal after the second database, renewal After program entity, the second program entity after server device control renewal and the first program entity after renewal using this Two databases externally provide business service, can be specifically by the request receiver in the second program entity after config update Working condition be enabled enabled states, to control the second program entity after renewal externally to be provided using the second database Business service;Working condition by the request receiver in the first program entity after config update is enabled (enabled) State, to control the first program entity after renewal externally to provide business service using second database.
The serve end program and the upgrade method of database that the embodiment of the present application provides, by simply configuring the first program The working condition of entity and the second program entity, and compatible renewal processing is carried out to database for control and non-compatible renewal is handled Sequencing, simplify the escalation process of serve end program and database, substantially increase serve end program and database Upgrade efficiency.
Fig. 3 is the signaling process figure of the upgrade method of the serve end program that the embodiment of the application one provides and database.This Embodiment refers to the complete signaling procedure of server device upgrading service end program and database.Wherein, SA1 includes first All request receivers and request actuator, SA2 in program entity include all request receivers in the second program entity With request actuator, the SA2 is the program entity of first upgrading.As shown in figure 3, this method specifically includes:
S201, determine that SA1 and SA2 externally provide service.
S202, configuration SA2 request receiver are disabled states, and control SA2 does not receive access request, with disabling SA2。
S203, SA2 all request actuators return implementing result after, update SA2, the second program after being updated Entity.
S204, start the second program entity after renewal, keep the request receiver in the second program entity after renewal For disabled states.
Optionally, startup here, show that the second program entity after current renewal has the energy for externally providing service Power, simply under disabled states, do not provide service externally temporarily.
Database before S205, the upgrading currently used to SA1 carries out compatible renewal processing, obtains the first database.
The request receiver in the second program entity after S206, setting renewal is hold patterns, after being updated with control Second program entity is cached the access request received, will not push to ask in actuator.
S207, configuration SA1 request receiver are disabled states, to control SA1 not receive access request.
Optionally, server device can set the second program after renewal real after control SA1 does not receive access request Request receiver in body is hold patterns;Or the two can be carried out simultaneously.
S208, SA1 all request actuators return implementing result after, to above-mentioned first database carry out it is non-compatible more New processing, obtains the second database.
S209, SA1 all request actuators return implementing result after, update SA1, the first program after being updated Entity.
There is no specific sequential to limit between the S208 and S209, as long as the first data of the first program entity of renewal and renewal Storehouse performs after SA1 all request actuators return to implementing result.
S210, the working condition of the request receiver of the second program entity after renewal is arranged to enabled states, entered Enter normal service pattern, the request actuator of the second program entity after now the request push-in cached in the receiver is updated In, while allow new access request to enter request actuator by the request receiver of the second program entity after renewal, so that The second program entity after renewal externally provides service using the second database.
Optionally, the above-mentioned program entity of renewal first can also be that the request of the second program entity after by renewal receives The working condition of device is arranged to carry out after enabled states.
S211, start the first program entity after renewal, by the work of the request receiver of the first program entity after renewal Enabled states are arranged to as state, so that the first program entity after renewal externally provides service using the second database.
Above-mentioned S201 to S211 specific descriptions may refer to the description of above-described embodiment, will not be repeated here.
The upgrading of the serve end program and database of one or more embodiments described in detail below according to the application Device.The update device of the serve end program and database can be implemented in the equipment of operation service end program, for example, clothes Business end equipment, server, webserver etc..It will be understood by those skilled in the art that the liter of the serve end program and database The step of commercially available nextport hardware component NextPort can be used to be instructed by this programme for stage arrangement is configured to form.For example, following realities Be related to control function, the module of more New function applied in example can be real using components such as single-chip microcomputer, microcontroller, microprocessors It is existing.
Following is the application device embodiment, can be used for performing the application embodiment of the method.It is real for the application device The details not disclosed in example is applied, refer to the application embodiment of the method.
The serve end program and the update device structural representation of database that Fig. 4 provides for the embodiment of the application one, the clothes The update device of end program of being engaged in and database, can be realized by way of software or soft or hard combination.Clothes in the present embodiment Business end program includes the first program entity and the second program entity.As shown in figure 4, the device can include:First control renewal Module 10, the first database update module 11, buffer control module 12, second control the database update of update module 13 and second Module 14.
Wherein, the first control update module 10, for disabling second program entity, then updates second program Entity;
First database update module 11, for updating second program entity in the described first control update module 10 Afterwards, compatible renewal processing is carried out to database used in current first program entity for externally providing service, obtained First database;Wherein, second program entity is disabled before the update;
Buffer control module 12, for controlling the second program entity after updating to receive access request and caching the access Request;
Second control update module 13, is received described in access request and renewal for controlling first program entity to stop First program entity;
Second database update module 14, for carrying out non-compatible renewal processing to first database, obtain second Database.
The serve end program and the update device of database that the embodiment of the present application provides, above method implementation can be performed Example, its implementing principle and technical effect is similar, will not be repeated here.
Optionally, above-mentioned second control update module 13, visited specifically for controlling first program entity to stop receiving Ask request, and the access task in first program entity return implementing result and obtain second database it Afterwards, first program entity is updated.
Optionally, above-mentioned second control update module 13, visited specifically for controlling first program entity to stop receiving Request is asked, and the access task in first program entity returns to implementing result and the second journey after the renewal is controlled After sequence entity externally provides business service using second database, first program entity is updated.
Further, the structural representation in embodiment shown in Figure 5, on the basis of above-mentioned embodiment illustrated in fig. 4 On, above-mentioned first control update module 10, specifically include:Control unit 101 and updating block 102.
Specifically, control unit 101, for controlling second program entity to stop receiving access request, to disable State the second program entity;
Updating block 102, after returning to implementing result for the access task in second program entity, renewal is current The second disabled program entity.
More specifically, described control unit 101, specifically for configuring the request receiver in second program entity Working condition is not enabled disabled states, to control second program entity to stop receiving access request.
Above-mentioned buffer control module 12, specifically for the request receiver in the second program entity after the configuration renewal Working condition to delay to ask hold patterns, to control the second program entity after the renewal to receive access request and by institute Access request is stated to be cached.Further, the buffer control module 12, it is described specifically for the access request is buffered in In the storehouse of each receiving thread of the second program entity after renewal;Or the access request is buffered in the renewal In the message queue of the second program entity afterwards;Or the access request is buffered in first database.
Optionally, above-mentioned second control update module 13, asked for controlling first program entity to stop receiving accessing Ask, specifically include:
The second control update module 13, the work specifically for configuring the request receiver in first program entity Make state as not enabled disabled states, to control first program entity to stop receiving access request.
Optionally, Service controll can also be included with continued reference to Fig. 5, the update device of above-mentioned serve end program and database Module 15, for controlling the first program entity after updating and the second program entity after renewal to use second database pair Outer offer service.
Optionally, the compatible corresponding first database manipulation set of renewal processing, the non-compatible renewal processing are corresponding Second database manipulation set;
The first database manipulation set comprises at least:Do-nothing operation, increase new database table in the database Operation, in the database increase with default value data arrange operation, insert default number in the database According to capable operation;
The second database manipulation set comprises at least:Change existing database table or data in the database The operation of row content in the table of storehouse, the operation for deleting data row required during the first program entity operation.
The serve end program and the update device of database that the embodiment of the present application provides, above method implementation can be performed Example, its implementing principle and technical effect is similar, will not be repeated here.
Fig. 6 is the updating apparatus hardware architecture diagram of the serve end program that the embodiment of the application one provides and database. As shown in fig. 6, the updating apparatus of the serve end program and database can include input equipment 20, processor 21, memory 22 With at least one communication bus 23.Communication bus 23 is used to realize the communication connection between element.Memory 22 may include height Fast RAM memory, it is also possible to can be with also including non-volatile memories NVM, for example, at least a magnetic disk storage, in memory 22 Various programs are stored, for completing various processing functions and realizing the method and step of the present embodiment.
Optionally, above-mentioned processor 21 for example can be central processing unit (Central Processing Unit, abbreviation CPU), application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable Logical device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are real It is existing,
Optionally, above-mentioned input equipment 20 for example can be user oriented interface equipment or Programming Interface, be somebody's turn to do User oriented interface equipment can be for user input instruction keyboard, can be receive input through keyboard interface equipment, also Can be the equipment that other control serve end program and database upgrade for user input instruction.Optionally, above-mentioned input equipment 20 can be the display device for receiving user's input.
In the embodiment of the present application, input equipment 20, coupled to processor 21, for receiving the first control instruction;
Processor 21, for disabling second program entity according to first control instruction, then update described the Two program entities, and after second program entity is updated, to current first program entity for externally providing service Used database carries out compatible renewal processing, obtains the first database;
The input equipment 20, it is additionally operable to receive the second control instruction;
The processor 21, it is additionally operable to be received according to the second program entity after second control instruction control renewal and visits Ask and ask and cache the access request, and control first program entity to stop receiving access request and update described first Program entity, and, non-compatible renewal processing is carried out to first database, obtains the second database.
The serve end program and the updating apparatus of database that the embodiment of the present application provides, above method implementation can be performed Example, its implementing principle and technical effect is similar, will not be repeated here.
Optionally, the processor 21, specifically for control the first program entity stopping reception access request, and Access task in first program entity returns to implementing result and after second database is obtained, renewal described the One program entity..
Optionally, the processor 21, specifically for control the first program entity stopping reception access request, and Access task in first program entity returns to implementing result and the second program entity after the renewal is controlled uses After second database externally provides business service, first program entity is updated.
Optionally, the processor 21, specifically for controlling second program entity to stop receiving access request, to prohibit With second program entity, and after the access task in second program entity returns to implementing result, the current quilt of renewal Second program entity of disabling.Optionally, the processor 21, specifically for received according to the input equipment 20 first Control instruction, the working condition for configuring the request receiver in second program entity are not enabled disabled states, with Second program entity is controlled to stop receiving access request.
Optionally, the processor 21, specifically for the second control instruction received according to the input equipment 20, match somebody with somebody The working condition of the request receiver in the second program entity after the renewal is put to delay to ask hold patterns, to control The second program entity after renewal is stated to receive access request and cached the access request.Optionally, above-mentioned memory, In storehouse for each receiving thread that the access request is buffered in the second program entity after the renewal;Or In the message queue for the second program entity access request being buffered in after the renewal;Or by the access request It is buffered in first database.
Optionally, the processor 21, specifically for the second control instruction received according to the input equipment 20, match somebody with somebody The working condition for putting the request receiver in first program entity is not enabled disabled states, to control described first Program entity stops receiving access request.
Optionally, the processor 21, the first program entity after control renewal and the second program after renewal are additionally operable to Entity externally provides service using second database.
Optionally, the compatible corresponding first database manipulation set of renewal processing, the non-compatible renewal processing are corresponding Second database manipulation set;
The first database manipulation set comprises at least:Do-nothing operation, increase new database table in the database Operation, in the database increase with default value data arrange operation, insert default number in the database According to capable operation;
The second database manipulation set comprises at least:Change existing database table or data in the database The operation of row content in the table of storehouse, the operation for deleting data row required during the first program entity operation.
The serve end program and the updating apparatus of database that the embodiment of the present application provides, above method implementation can be performed Example, its implementing principle and technical effect is similar, will not be repeated here.
A kind of computer/processor-readable storage medium, have program stored therein in the storage medium instruction, and described program refers to Make that (following involved serve end programs include the first program entity and the second journey for performing the computer/processor Sequence entity):
Second program entity is disabled, then updates second program entity;
After second program entity is updated, current first program entity for externally providing service is used Database carry out compatible renewal processing, obtain the first database;
The second program entity after control renewal receives access request and caches the access request;
Control first program entity to stop receiving access request and update first program entity, and, to institute State the first database and carry out non-compatible renewal processing, obtain the second database.
Above-mentioned readable storage medium storing program for executing can be by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Finally it should be noted that:Various embodiments above is only to illustrate the technical scheme of the application, rather than its limitations;To the greatest extent The application is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from each embodiment technology of the application The scope of scheme.

Claims (23)

1. the upgrade method of a kind of serve end program and database, it is characterised in that the serve end program includes the first program Entity and the second program entity;Methods described includes:
Second program entity is disabled, then updates second program entity;
After second program entity is updated, to number used in current first program entity for externally providing service Compatible renewal processing is carried out according to storehouse, obtains the first database;
The second program entity after control renewal receives access request and caches the access request;
Control first program entity to stop receiving access request and update first program entity, and, to described the One database carries out non-compatible renewal processing, obtains the second database.
2. according to the method for claim 1, it is characterised in that control first program entity, which stops receiving, to be accessed Ask and update first program entity, specifically include:
First program entity is controlled to stop receiving access request, and the access task in first program entity returns Implementing result and after second database is obtained, updates first program entity.
3. according to the method for claim 1, it is characterised in that control first program entity, which stops receiving, to be accessed Ask and update first program entity, specifically include:
First program entity is controlled to stop receiving access request, and the access task in first program entity returns Implementing result and the second program entity after the renewal is controlled using second database externally provide business service it Afterwards, first program entity is updated.
4. according to the method described in claim any one of 1-3, it is characterised in that disabling second program entity, with After update second program entity, specifically include:
Second program entity is controlled to stop receiving access request, to disable second program entity;
After access task in second program entity returns to implementing result, current the second disabled program of renewal is real Body.
5. according to the method for claim 4, it is characterised in that control second program entity, which stops receiving, to be accessed Request, is specifically included:
The working condition for configuring the request receiver in second program entity is not enabled disabled states, to control The second program entity is stated to stop receiving access request.
6. according to the method described in claim any one of 1-3, it is characterised in that the second program entity after the control renewal Receive access request and cache the access request, specifically include:
The working condition of the request receiver in the second program entity after the renewal is configured to delay to ask hold patterns, with Control the second program entity after the renewal to receive access request and cached the access request.
7. according to the method for claim 6, it is characterised in that it is described to be cached the access request, specifically include:
In the storehouse of each receiving thread for the second program entity access request being buffered in after the renewal;
Or
In the message queue for the second program entity access request being buffered in after the renewal;
Or
The access request is buffered in first database.
8. according to the method described in claim any one of 1-3, it is characterised in that control first program entity stops Access request is received, is specifically included:
The working condition for configuring the request receiver in first program entity is not enabled disabled states, to control The first program entity is stated to stop receiving access request.
9. according to the method described in claim any one of 1-3, it is characterised in that compatible corresponding first data of renewal processing Storehouse operational set, the non-compatible corresponding second database manipulation set of renewal processing;
The first database manipulation set comprises at least:Do-nothing operation, the behaviour for increasing new database table in the database Make, increase the operation of the data row with default value in the database, insert default data row in the database Operation;
The second database manipulation set comprises at least:Change existing database table or database table in the database In row content operation, delete the operation of data row required during first program entity operation.
10. according to the method for claim 1, it is characterised in that methods described also includes:
The second program entity after the first program entity and renewal after control renewal is externally provided using second database Service.
11. the update device of a kind of serve end program and database, it is characterised in that the serve end program includes the first program Entity and the second program entity;Described device includes:First control update module, the first database update module, buffer control Module, the second control update module and the second database update module;
The first control update module, for disabling second program entity, then updates second program entity;
The first database update module, for the described first control update module update second program entity it Afterwards, compatible renewal processing is carried out to database used in current first program entity for externally providing service, obtains the One database;
The buffer control module, please for controlling the second program entity after updating to receive access request and caching the access Ask;
The second control update module, for controlling first program entity to stop to receive access request and updating described the One program entity;
The second database update module, for carrying out non-compatible renewal processing to first database, obtain the second number According to storehouse.
12. device according to claim 11, it is characterised in that the second control update module, specifically for control First program entity stops receiving access request, and the access task in first program entity returns to implementing result And after second database is obtained, update first program entity.
13. device according to claim 11, it is characterised in that the second control update module, specifically for control First program entity stops receiving access request, and the access task in first program entity returns to implementing result And after the second program entity after controlling the renewal externally provides business service using second database, update institute State the first program entity.
14. according to the device described in claim any one of 11-13, it is characterised in that the first control update module, specifically Including:
Control unit, for controlling second program entity to stop receiving access request, to disable second program entity;
Updating block, after returning to implementing result for the access task in second program entity, renewal is current disabled The second program entity.
15. device according to claim 14, it is characterised in that described control unit, specifically for configuration described second The working condition of request receiver in program entity is not enabled disabled states, to control second program entity to stop Only receive access request.
16. according to the device described in claim any one of 11-13, it is characterised in that the buffer control module, be specifically used for The working condition of the request receiver in the second program entity after the renewal is configured to delay to ask hold patterns, with control The second program entity after the renewal receives access request and is cached the access request.
17. device according to claim 16, it is characterised in that the buffer control module, specifically for by the visit In the storehouse of each receiving thread for asking the second program entity that request is buffered in after the renewal;
Or
In the message queue for the second program entity access request being buffered in after the renewal;
Or
The access request is buffered in first database.
18. according to the device described in claim any one of 11-13, it is characterised in that the second control update module, be used for Control first program entity to stop receiving access request, specifically include:
The second control update module, the working condition specifically for configuring the request receiver in first program entity Not enable disabled states, to control first program entity to stop receiving access request.
19. according to the device described in claim any one of 11-13, it is characterised in that the compatible renewal processing corresponding first Database manipulation set, the non-compatible corresponding second database manipulation set of renewal processing;
The first database manipulation set comprises at least:Do-nothing operation, the behaviour for increasing new database table in the database Make, increase the operation of the data row with default value in the database, insert default data row in the database Operation;
The second database manipulation set comprises at least:Change existing database table or database table in the database In row content operation, delete the operation of data row required during first program entity operation.
20. device according to claim 11, it is characterised in that described device also includes:
Service control module, for controlling the first program entity after updating and the second program entity after renewal using described the Two databases externally provide service.
21. the updating apparatus of a kind of serve end program and database, it is characterised in that the serve end program includes the first program Entity and the second program entity;The equipment includes:
Input equipment, coupled to processor, for receiving the first control instruction;
Processor, for disabling second program entity according to first control instruction, then update second program Entity, and after second program entity is updated, current first program entity for externally providing service is used Database carry out compatible renewal processing, obtain the first database;
The input equipment, it is additionally operable to receive the second control instruction;
The processor, it is additionally operable to receive access request according to the second program entity after second control instruction control renewal And the access request is cached, and control first program entity to stop receiving access request and update the first program reality Body, and, non-compatible renewal processing is carried out to first database, obtains the second database.
22. equipment according to claim 21, it is characterised in that the input equipment be user oriented interface equipment or Person's Programming Interface.
23. equipment according to claim 22, it is characterised in that the input equipment sets to receive the display of user's input It is standby.
CN201610811502.1A 2016-09-08 2016-09-08 The upgrade method of serve end program and database, device and equipment Pending CN107807816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610811502.1A CN107807816A (en) 2016-09-08 2016-09-08 The upgrade method of serve end program and database, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610811502.1A CN107807816A (en) 2016-09-08 2016-09-08 The upgrade method of serve end program and database, device and equipment

Publications (1)

Publication Number Publication Date
CN107807816A true CN107807816A (en) 2018-03-16

Family

ID=61576220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610811502.1A Pending CN107807816A (en) 2016-09-08 2016-09-08 The upgrade method of serve end program and database, device and equipment

Country Status (1)

Country Link
CN (1) CN107807816A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110858204A (en) * 2018-08-16 2020-03-03 中国移动通信集团重庆有限公司 Query request processing method, device and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020105924A1 (en) * 2001-02-08 2002-08-08 Shuowen Yang Apparatus and methods for managing queues on a mobile device system
CN101127783A (en) * 2007-09-28 2008-02-20 北京金山软件有限公司 A website buffering method and device
CN102541987A (en) * 2010-10-20 2012-07-04 微软公司 Online database availability during upgrade
CN102902818A (en) * 2012-10-26 2013-01-30 杭州迪普科技有限公司 Method and device for upgrading database
CN104899057A (en) * 2015-05-13 2015-09-09 北京金山安全软件有限公司 Software module updating method and device
CN105278962A (en) * 2015-11-04 2016-01-27 北京星网锐捷网络技术有限公司 Applications, hot deployment method of database and device
US20160036956A1 (en) * 2014-07-30 2016-02-04 Google Technology Holdings LLC Contextually updating wireless device firmware
CN105893084A (en) * 2016-03-29 2016-08-24 青岛海信移动通信技术股份有限公司 Version upgrading method and terminal equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020105924A1 (en) * 2001-02-08 2002-08-08 Shuowen Yang Apparatus and methods for managing queues on a mobile device system
CN101127783A (en) * 2007-09-28 2008-02-20 北京金山软件有限公司 A website buffering method and device
CN102541987A (en) * 2010-10-20 2012-07-04 微软公司 Online database availability during upgrade
CN102902818A (en) * 2012-10-26 2013-01-30 杭州迪普科技有限公司 Method and device for upgrading database
US20160036956A1 (en) * 2014-07-30 2016-02-04 Google Technology Holdings LLC Contextually updating wireless device firmware
CN104899057A (en) * 2015-05-13 2015-09-09 北京金山安全软件有限公司 Software module updating method and device
CN105278962A (en) * 2015-11-04 2016-01-27 北京星网锐捷网络技术有限公司 Applications, hot deployment method of database and device
CN105893084A (en) * 2016-03-29 2016-08-24 青岛海信移动通信技术股份有限公司 Version upgrading method and terminal equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110858204A (en) * 2018-08-16 2020-03-03 中国移动通信集团重庆有限公司 Query request processing method, device and medium
CN110858204B (en) * 2018-08-16 2023-09-19 中国移动通信集团重庆有限公司 Query request processing method, device and medium

Similar Documents

Publication Publication Date Title
US11914881B2 (en) Data migration method and apparatus
CA3070006C (en) Method for reading data stored in a non-volatile cache using rdma
CN103765406B (en) For the method and apparatus remotely updating executive process
CN110347414A (en) Firmware update, device, equipment and computer readable storage medium
CN105549904A (en) Data migration method applied in storage system and storage devices
JP6089065B2 (en) Update method and computer system
CN111897558A (en) Kubernets upgrading method and device for container cluster management system
CN107704310B (en) Method, device and equipment for realizing container cluster management
CN110275776A (en) Capacity reduction method, device, computer equipment and the storage medium of container application
CN110262872A (en) Load balancing application management method, device, computer equipment and storage medium
US8533303B2 (en) Network management system node and method for use in a network management system node for re-configuring a set of data network nodes in a data network
JP2020532803A (en) Asynchronous updates of metadata tracks in response to cache hits generated via synchronous ingress and out, systems, computer programs and storage controls
CN110209465A (en) Virtual machine cross-platform migration method, device and electronic equipment
CN107807816A (en) The upgrade method of serve end program and database, device and equipment
CN112069152A (en) Database cluster upgrading method, device, equipment and storage medium
CN112199109A (en) Firmware upgrading method, device, equipment and medium
US10929238B2 (en) Management of changed-block bitmaps
US20220067065A1 (en) Providing instant and distributed access to a source blob via copy-on-read blobs and link blobs
TWI782352B (en) Method for automatically recovering firmware settings of baseboard management controller
WO2015116190A1 (en) Persistent memory controller based atomicity assurance
CN106598687A (en) Script preheating method and device
CN108965026A (en) Device updating method, machine set system and unit upgrade-system
CN109298880A (en) Multi version code generating method, equipment and electronic equipment
US20240069779A1 (en) Object storage based asynchronous mailbox, eventual consistency for cross-region communication
TWI709036B (en) Method of recovering the bios configuration parameter and server system

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: 20180316