CN109240708B - Using dispositions method, device, computer equipment and storage medium - Google Patents

Using dispositions method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109240708B
CN109240708B CN201810709275.0A CN201810709275A CN109240708B CN 109240708 B CN109240708 B CN 109240708B CN 201810709275 A CN201810709275 A CN 201810709275A CN 109240708 B CN109240708 B CN 109240708B
Authority
CN
China
Prior art keywords
cluster
user
user specifies
instance number
under
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
CN201810709275.0A
Other languages
Chinese (zh)
Other versions
CN109240708A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810709275.0A priority Critical patent/CN109240708B/en
Publication of CN109240708A publication Critical patent/CN109240708A/en
Application granted granted Critical
Publication of CN109240708B publication Critical patent/CN109240708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • 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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses application dispositions method, device, computer equipment and storage mediums, and wherein method includes: to obtain a kind of fixed upper ray mode of user's ray mode middle finger from least two;Obtain at least one online cluster that user specifies;The upper ray mode specified according to user carries out application section administration on each cluster that user specifies respectively.Using scheme of the present invention, can satisfy a variety of different business scenarios and promote service availability etc..

Description

Using dispositions method, device, computer equipment and storage medium
[technical field]
The present invention relates to Computer Applied Technologies, in particular to are situated between using dispositions method, device, computer equipment and storage Matter.
[background technique]
The problem of update upgrading is inevitably present on service tray to container cloud, corresponding show to rear end are understood that For the replacement of Service Instance or the replacement of application code.According to statistics, about 40% service fault be due to upgrading caused by, Therefore, it is necessary to apply deployment scheme using reasonable, to reduce the failure.Existing application deployment scheme form is typically more It is single, to be unable to satisfy various flexible and changeable business scenarios.
[summary of the invention]
In view of this, the present invention provides application dispositions method, device, computer equipment and storage mediums.
Specific technical solution is as follows:
It is a kind of to apply dispositions method, comprising:
Obtain a kind of fixed upper ray mode of user's ray mode middle finger from least two;
Obtain at least one online cluster that user specifies;
The upper ray mode specified according to user carries out application section administration on each cluster that user specifies respectively.
A kind of application deployment device, comprising: acquiring unit and deployment unit;
The acquiring unit for obtaining a kind of fixed upper ray mode of user's ray mode middle finger from least two, and obtains Take at least one specified online cluster of family;
The deployment unit, the upper ray mode for specifying according to user, carries out on each cluster that user specifies respectively Using deployment.
A kind of computer equipment, including memory, processor and be stored on the memory and can be in the processor The computer program of upper operation, the processor realize method as described above when executing described program.
A kind of computer readable storage medium is stored thereon with computer program, real when described program is executed by processor Now method as described above.
It can be seen that based on above-mentioned introduction using scheme of the present invention, user's ray mode from least two can be obtained In a kind of upper ray mode for specifying, and at least one online cluster that user specifies can be obtained, and then can specify according to user Upper ray mode carries out application section administration, compared with the prior art, in scheme of the present invention on each cluster that user specifies respectively It provides a variety of upper ray modes to select for user, so as to meet a variety of different business scenarios, moreover, can be multiple Application section administration is carried out on cluster, to improve service availability etc..
[Detailed description of the invention]
Fig. 1 is the flow chart of the present invention using dispositions method embodiment.
Fig. 2 is the schematic diagram that process is disposed in application of the present invention.
Fig. 3 is the realization process schematic of gray scale release model of the present invention.
Fig. 4 is the flow chart of gray scale upgrade method embodiment of the present invention.
Fig. 5 is the realization process schematic of bluish-green release model of the present invention.
Fig. 6 is the flow chart of bluish-green upgrade method embodiment of the present invention.
Fig. 7 is the schematic diagram of product line of the present invention.
Fig. 8 is the realization process schematic of increment release model of the present invention.
Fig. 9 is the composed structure schematic diagram that Installation practice is disposed in application of the present invention.
Figure 10 shows the frame for being suitable for the exemplary computer system/server 12 for being used to realize embodiment of the present invention Figure.
[specific embodiment]
In order to be clearer and more clear technical solution of the present invention, hereinafter, referring to the drawings and the embodiments, to institute of the present invention The scheme of stating is further described.
Obviously, described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on the present invention In embodiment, those skilled in the art's all other embodiment obtained without creative efforts, all Belong to the scope of protection of the invention.
Fig. 1 is the flow chart of the present invention using dispositions method embodiment.As shown in Figure 1, including realizing in detail below Mode.
In 101, a kind of fixed upper ray mode of user's ray mode middle finger from least two is obtained.
In 102, at least one online cluster that user specifies is obtained.
In 103, the upper ray mode specified according to user carries out application section administration on each cluster that user specifies respectively.
Preferably, upper ray mode can include: gray scale release model, bluish-green release model and increment release model.User (selected) one such upper ray mode can be specified according to self-demand.
User can also specify at least one online cluster, such as can include: environment cluster on cloud, alternatively, set of circumstances on cloud Group and cloud under environment cluster.
That is, the cluster number specified of user can be one, or multiple, it is preferable that can be it is multiple, with Improve the availability etc. of service.In addition, it is common using the deployment only related in deployment scheme on single environment such as cloud, and this reality It applies in example, may include environment cluster on cloud in the cluster that user specifies, or include two kinds of environment on cloud and under cloud Isomeric group reaches primary online multi-environment update to realize the linkage deployment (or being bilateral deployment) on cloud under cloud Purpose.
Based on above-mentioned introduction, Fig. 2 is the schematic diagram that process is disposed in application of the present invention.As shown in Fig. 2, user may specify Any upper ray mode in gray scale release model, bluish-green release model and increment release model can further specify that later Line cluster, it is assumed that including environment cluster under environment cluster on cloud and cloud, and then the upper ray mode that can be specified according to user, respectively Application section administration is carried out on each cluster that user specifies, i.e., carries out on cloud environmental renewal under environmental renewal and cloud respectively, two kinds Used upper ray mode and specific implementation flow are identical under environment, only implement some applications that details such as rear end is called Routine interface (API, Application Programming Interface) etc. will be different.
Above-mentioned each upper ray mode is described in detail individually below.
1) gray scale release model
Gray scale release model refers to strategy during each cluster full dose deployment that user specifies using gray scale publication.
It preferably,, can also be into one before carrying out application section administration on each cluster that user specifies according to gray scale release model Step executes one of following operation or whole: pre- publication operation, the operation of small flow.Preferably, can successively execute pre- publication operation and Small flow operation.
Wherein, pre- publication operation refers to disposes a new version example respectively on each cluster that user specifies, and determines new Whether version instance can normally start, if so, executing subsequent operation, that is, continue online.If the starting of new version example is different Often, the mirror image for being often as user's offer there is mistake or cluster is in down state.By issuing operation, Yong Huke in advance The problem of to find itself program in time, timely rollback, which avoids will affect, to be diffused on line etc..If each new version disposed Example normally starts, then can then continue subsequent operation, such as executes small flow operation.
Small flow operation refers to that the small flow cluster further specified that from specified cluster based on user is carried out flow and connect Enter verifying, if being verified, executes subsequent operation.Small flow cluster typically refers to user and further refers to from specified cluster A fixed cluster is based on small flow cluster by corresponding service discovery mechanisms and carries out flow access verifying, at this time small flow The new version example of pre- launch phase starting is in flow access state in cluster, by analysis flow access with the presence or absence of abnormal To decide to continue with online or rollback etc..
After completing aforesaid operations, it can be applied on each cluster that user specifies respectively according to gray scale release model Deployment.
For each cluster, under gray scale release model, version instance of haveing been friends in the past is affixed one's name under original state in the middle part of cluster, is owned Flow be forwarded to legacy version example, later, by the legacy version example in batch replacement cluster, legacy version in cluster is real at this time Example and new version example accept flow on line simultaneously, and replacement is completed, and legacy version example is offline, and new version example completes deployment.Newly Version instance corresponds to new version application, and legacy version example corresponds to legacy version application.It is serially carried out between each cluster, when out It rollback in time or can be retried when now abnormal.
Based on above-mentioned introduction, Fig. 3 is the realization process schematic of gray scale release model of the present invention.As shown in figure 3, first Pre- publication operation is first carried out, executes small flow operation later, and then can successively refer in user according to sequencing set by user Application section administration is carried out on fixed each cluster, i.e., gray scale upgrading is carried out to each cluster that user specifies respectively, in addition, if executing any It goes wrong, rollback can be carried out or retries when operation, for example, when carrying out the operation of small flow, if there is exception in flow access, Rollback can be then carried out, for another example, when carrying out gray scale upgrading to cluster 1, if being more than that overtime duration set by user remains unfulfilled Gray scale updating operation can then carry out rollback or retry.
The gray scale escalation process of each cluster can include: service mapping is carried out to the new version example disposed on cluster, is held Flow in wiring;To new version example according to concurrency set by user dilatation in batches, meanwhile, to legacy version example according to simultaneously Hair degree capacity reducing in batches;When new version instance number dilatation to desired instance number, if capacity reducing takes legacy version instance number to 0 The legacy version example that disappears service mapping;When new version instance number dilatation to desired instance number, if the non-capacity reducing of legacy version instance number is extremely 0, then by legacy version instance number capacity reducing to 0, and cancel the service mapping of legacy version example.
Fig. 4 is the flow chart of gray scale upgrade method embodiment of the present invention.As shown in figure 4, including realizing in detail below Mode.
In 401, service mapping is carried out to the new version example disposed on cluster, accepts flow on line.
In 402, dilatation is carried out according to concurrency to new version example.
Concurrency can be set by user, and specific value can be determined according to actual needs.
In 403, determine whether legacy version instance number is 0, if so, executing 405, otherwise, executes 404.
In 404, capacity reducing is carried out according to concurrency to legacy version example, executes 405 later.
In 405, determine whether otherwise dilatation, is repeated to desired instance number if so, executing 406 new version instance number Execute 402.
It is expected that instance number can be preset, it is assumed that expectation instance number is N, and concurrency M, N and M are positive integer, and M < =N, then can be N rounding up divided by M by new version example dilatation to desired instance number, P after the dilatation of P wheel As a result, wherein the instance number of last wheel dilatation may be different from each wheel before, respectively the instance number of wheel dilatation is M before, most The instance number of latter wheel dilatation is N-M* (P-1), is equally likely to M, it is also possible to be less than M.
In 406, determine whether legacy version instance number is 0, if so, executing 408, otherwise, executes 407.
In 407, by legacy version instance number capacity reducing to 0,408 are executed later.
It can be disposably by remaining legacy version instance number capacity reducing to 0.
In 408, cancels the service mapping of legacy version example, terminate process.
2) bluish-green release model
Bluish-green release model refers to the strategy that bluish-green publication is used during each cluster full dose deployment that user specifies.
It similarly,, can be further before carrying out application section administration on each cluster that user specifies according to bluish-green release model Execute one of following operation or whole: pre- publication operation, the operation of small flow.Preferably, pre- publication operation and small can successively be executed Flow operation.
It, can be according to concurrency set by user by new version example under bluish-green release model for each cluster Number dilatation can carry out service mapping to new version example later and accept flow on line to desired instance number, and then can be by legacy version Example cancels mapping and capacity reducing to 0.It serially carries out between each cluster, rollback in time or can be retried when occurring abnormal.
Based on above-mentioned introduction, Fig. 5 is the realization process schematic of bluish-green release model of the present invention.As shown in figure 5, first Pre- publication operation is first carried out, executes small flow operation later, and then can successively refer in user according to sequencing set by user Application section administration is carried out on fixed each cluster, i.e., bluish-green upgrading is carried out to each cluster that user specifies respectively, in addition, if executing any It goes wrong, rollback can be carried out or retries when operation.
The bluish-green escalation process of each cluster can include: to the new version example disposed on cluster according to it is set by user simultaneously The dilatation in batches of hair degree;When new version instance number dilatation to desired instance number, service mapping is carried out to new version example, is accepted Flow on line;Cancel the service mapping of legacy version example, and by legacy version instance number capacity reducing to 0.
Fig. 6 is the flow chart of bluish-green upgrade method embodiment of the present invention.As shown in fig. 6, including realizing in detail below Mode.
In 601, dilatation is carried out according to concurrency set by user to the new version example disposed on cluster.
In 602, determine whether otherwise dilatation, is repeated to desired instance number if so, executing 603 new version instance number Execute 601.
In 603, service mapping is carried out to new version example, accepts flow on line.
In 604, cancels the service mapping of legacy version example, cut off flow.
In 605, by legacy version instance number capacity reducing to 0, terminate process.
It can be disposably by legacy version instance number capacity reducing to 0.
3) increment release model
Increment release model is a kind of online mode of original place deployment, and example will not stop in escalation process, using heat The mode of upgrading directly replaces application code.
Preferably, the operation of preview machine, i.e., the preview machine application under upgrading products line, using pre- after upgrading can be first carried out Machine of looking at, which is applied, verifies under line to new application code, do not meet expected situation can direct rollback, avoid influencing on line.Figure 7 be the schematic diagram of product line of the present invention.As shown in fig. 7, wherein may include multiple applications, these applications are isomorphisms, no Same Apply Names indicate that responsible function is different.
Later, following operation can successively be executed.
Separate unit operation, that is, refer in user under upgrading products line in the separate unit cluster further specified that in specified cluster Separate unit example under.User can further specify that a cluster as separate unit cluster from specified cluster.Under product line Each application can respectively correspond multiple examples, one of them be separate unit example.It can be in separate unit cluster under upgrading products line The separate unit example respectively applied, separate unit example can be used for small flow verification.
Unilateral operation refers in user under upgrading products line in the unilateral cluster further specified that in specified cluster All examples under.User can further specify that a cluster as unilateral cluster from specified cluster.Preferably, single Platform cluster and unilateral cluster are same cluster, that is, carry out the full dose upgrading that the cluster is carried out after small flow verification.
Complete or collected works' group's separate unit operation, that is, refer to the separate unit example under upgraded in each cluster that user specifies under product line.
Complete or collected works' group's full dose operation, that is, refer to all examples under upgraded in each cluster that user specifies under product line.
Assuming that user specifies 4 clusters, respectively cluster 1, cluster 2, cluster 3 and cluster 4, and specify the work of cluster 2 For separate unit cluster and unilateral cluster, it is assumed that share 3 applications under product line;
Firstly, upgrading the separate unit example under 3 applications in cluster 2 under product line respectively;
Later, upgrade all examples under 3 applications in cluster 2 under product line respectively;
Further, the separate unit example under 3 respectively in upgrading cluster 1, cluster 3 and cluster 4 under product line apply;
Further, all examples under 3 respectively in upgrading cluster 1, cluster 3 and cluster 4 under product line apply.
Fig. 8 is the realization process schematic of increment release model of the present invention.As shown in figure 8, preview machine is first carried out Operation successively executes separate unit operation, unilateral operation, complete or collected works' group's separate unit operation and complete or collected works' group's full dose operation later, appoints if executing It goes wrong when one operation, rollback can be carried out or retried.
No matter using which kind of above-mentioned upper ray mode, after having executed any operation, if user specifies needs to the operation Automatic returning verifying is carried out, then carries out automatic returning verifying, to determine whether operating result meets expection, that is, introduces automatic inspection Mechanism is looked into, if being verified, subsequent processing can be continued, otherwise, the processing such as can carry out rollback or skip.
The each operation being related in above-mentioned introduction can be considered a stage, i.e., has carried out the multistage stroke to online process Point.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
In short, provide a variety of upper ray modes using scheme described in embodiment of the present invention method and selected for user, from And it can satisfy a variety of different business scenarios.
In scheme described in embodiment of the present invention method, application section administration can be carried out on multiple clusters, to improve service Availability etc., moreover, the cluster may include the isomeric group on cloud and under cloud under two kinds of environment, to can realize on cloud under cloud Linkage deployment, achieve the purpose that primary online multi-environment update.
In scheme described in embodiment of the present invention method, online process is divided into the multistage to reduce upgrading bring wind Danger, such as by increasing pre- publication and the operation of small flow, mistake that may be present can be verified in advance, avoid larger range of expansion It dissipates, so that the control in terms of increasing more multipaths on the basis of general publishing policy, improves the fault-tolerance of system.
In scheme described in embodiment of the present invention method, online each stage can be controlled, support to continue, rollback or again Examination etc., and can in each stage after carry out automatic returning verifying, so that it is determined that go out the stage deployment result whether meet it is pre- Phase is to make the decision etc. of next step.
In scheme described in embodiment of the present invention method, user can to online parameter carry out flexible configuration, such as set concurrency, Small flow cluster, sequencing of cluster etc. so as to meet the needs of different, and improve the flexible of application deployment system Degree etc..
In scheme described in embodiment of the present invention method, the update of example can be realized by way of heat upgrading, that is, is being updated The starting for not being related to example during application code stops, to improve using deployment efficiency etc..
It is the introduction about embodiment of the present invention method above, below by way of Installation practice, to scheme of the present invention It is further described.
Fig. 9 is the composed structure schematic diagram that Installation practice is disposed in application of the present invention.As shown in Figure 9, comprising: obtain Unit 901 and deployment unit 902.
Acquiring unit 901 for obtaining a kind of fixed upper ray mode of user's ray mode middle finger from least two, and obtains At least one online cluster that user specifies.
Deployment unit 902, the upper ray mode for specifying according to user, is answered on each cluster that user specifies respectively With deployment.
Preferably, upper ray mode can include: gray scale release model, bluish-green release model and increment release model.User One such upper ray mode can be specified according to self-demand.
User can also specify at least one online cluster, such as can include: environment cluster on cloud, alternatively, set of circumstances on cloud Group and cloud under environment cluster.
That is, the cluster number specified of user can be one, or multiple, it is preferable that can be it is multiple, with Improve the availability etc. of service.In addition, it is common using the deployment only related in deployment scheme on single environment such as cloud, and this reality It applies in example, may include environment cluster on cloud in the cluster that user specifies, or include two kinds of environment on cloud and under cloud Isomeric group achievees the purpose that primary online multi-environment update to realize the linkage deployment on cloud under cloud.
When the upper ray mode that user specifies is gray scale release model or bluish-green release model, it is preferable that sent out according to gray scale Cloth mode, on each cluster that user specifies carry out application section administration before, deployment unit 902 can also carry out it is following operation one of or All: pre- publication operation, the operation of small flow.Preferably, pre- publication operation and the operation of small flow can successively be executed.
Wherein, pre- publication operation refers to disposes a new version example respectively on each cluster that user specifies, and determines new Whether version instance can normally start, if so, executing subsequent operation, that is, continue online.If the starting of new version example is different Often, the mirror image for being often as user's offer there is mistake or cluster is in down state.By issuing operation, Yong Huke in advance The problem of to find itself program in time, timely rollback, which avoids will affect, to be diffused on line etc..
Small flow operation refers to that the small flow cluster further specified that from specified cluster based on user is carried out flow and connect Enter verifying, if being verified, executes subsequent operation.Small flow cluster typically refers to user and further refers to from specified cluster A fixed cluster is based on small flow cluster by corresponding service discovery mechanisms and carries out flow access verifying, at this time small flow The new version example of pre- launch phase starting is in flow access state in cluster, by analysis flow access with the presence or absence of abnormal To decide to continue with online or rollback etc..
When the upper ray mode that user specifies is gray scale release model, deployment unit 902 can be according to set by user successive Sequentially, application section administration is successively carried out on each cluster that user specifies.
Wherein, following operation can be executed on each cluster respectively: the new version example disposed on cluster is serviced Flow on line is accepted in mapping;To new version example according to concurrency set by user dilatation in batches, meanwhile, to legacy version reality Example is according to concurrency capacity reducing in batches;When the dilatation of new version instance number is to desired instance number, if legacy version instance number capacity reducing To 0, then cancel the service mapping of legacy version example;When new version instance number dilatation to desired instance number, if legacy version instance number Non- capacity reducing is to 0, then by legacy version instance number capacity reducing to 0, and cancels the service mapping of legacy version example.
When the upper ray mode that user specifies is bluish-green release model, deployment unit 902 can be according to set by user successive Sequentially, application section administration is successively carried out on specified each cluster.
Wherein, following operation can be executed on each cluster respectively: to the new version example disposed on cluster according to user The dilatation in batches of the concurrency of setting;When new version instance number dilatation to desired instance number, new version example is serviced Flow on line is accepted in mapping;Cancel the service mapping of legacy version example, and by legacy version instance number capacity reducing to 0.
When the upper ray mode that user specifies is increment release model, deployment unit 902 can be for each collection that user specifies Group directly replaces application code by the way of heat upgrading, it may include the following operation successively executed.
Separate unit operation, that is, refer in user under upgrading products line in the separate unit cluster further specified that in specified cluster Separate unit example under.User can further specify that a cluster as separate unit cluster from specified cluster.Under product line Each application can respectively correspond multiple examples, one of them be separate unit example.It can be in separate unit cluster under upgrading products line The separate unit example respectively applied, separate unit example can be used for small flow verification.
Unilateral operation refers in user under upgrading products line in the unilateral cluster further specified that in specified cluster All examples under.User can further specify that a cluster as unilateral cluster from specified cluster.Preferably, single Platform cluster and unilateral cluster are same cluster, that is, carry out the full dose upgrading that the cluster is carried out after small flow verification.
Complete or collected works' group's separate unit operation, that is, refer to the separate unit example under upgraded in each cluster that user specifies under product line.
Complete or collected works' group's full dose operation, that is, refer to all examples under upgraded in each cluster that user specifies under product line.
Preferably, before executing separate unit operation, deployment unit 902 can also carry out the operation of preview machine, i.e. upgrading products line Under preview machine application, applied using the preview machine after upgrading and new application code verify under line, do not meet expected feelings Condition can direct rollback, avoid influence line on.
No matter using which kind of upper ray mode, goes wrong when if executing any operation, can carry out rollback or retry.
In addition, needing to carry out automatic returning verifying to the operation if user is specified, then portion after having executed any operation Administration's unit 902 can carry out automatic returning verifying, to determine whether operating result meets expection.
The specific workflow of Fig. 9 shown device embodiment please refers to the respective description in preceding method embodiment, no longer It repeats.
In short, provide a variety of upper ray modes using scheme described in apparatus of the present invention embodiment and selected for user, from And it can satisfy a variety of different business scenarios.
In scheme described in apparatus of the present invention embodiment, application section administration can be carried out on multiple clusters, to improve service Availability etc., moreover, the cluster may include the isomeric group on cloud and under cloud under two kinds of environment,
To realize the linkage deployment on cloud under cloud, achieve the purpose that primary online multi-environment update.
In scheme described in apparatus of the present invention embodiment, online process is divided into the multistage to reduce upgrading bring wind Danger, such as by increasing pre- publication and the operation of small flow, mistake that may be present can be verified in advance, avoid larger range of expansion It dissipates, so that the control in terms of increasing more multipaths on the basis of general publishing policy, improves the fault-tolerance of system.
In scheme described in apparatus of the present invention embodiment, online each stage can be controlled, support to continue, rollback or again Examination etc., and can in each stage after carry out automatic returning verifying, so that it is determined that go out the stage deployment result whether meet it is pre- Phase is to make the decision etc. of next step.
In scheme described in apparatus of the present invention embodiment, user can to online parameter carry out flexible configuration, such as set concurrency, Small flow cluster, sequencing of cluster etc. so as to meet the needs of different, and improve the flexible of application deployment system Degree etc..
In scheme described in apparatus of the present invention embodiment, the update of example can be realized by way of heat upgrading, that is, is being updated The starting for not being related to example during application code stops, to improve using deployment efficiency etc..
Figure 10 shows the frame for being suitable for the exemplary computer system/server 12 for being used to realize embodiment of the present invention Figure.The computer system/server 12 that Figure 10 is shown is only an example, should not function and use to the embodiment of the present invention Range band carrys out any restrictions.
As shown in Figure 10, computer system/server 12 is showed in the form of universal computing device.Computer system/clothes The component of business device 12 can include but is not limited to: one or more processor (processing unit) 16, memory 28, connection are different The bus 18 of system component (including memory 28 and processor 16).
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer system/server 12 typically comprises a variety of computer system readable media.These media, which can be, appoints What usable medium that can be accessed by computer system/server 12, including volatile and non-volatile media, it is moveable and Immovable medium.
Memory 28 may include the computer system readable media of form of volatile memory, such as random access memory Device (RAM) 30 and/or cache memory 32.Computer system/server 12 may further include it is other it is removable/no Movably, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing Immovable, non-volatile magnetic media (Figure 10 do not show, commonly referred to as " hard disk drive ").Although being not shown in Figure 10, The disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, and non-easy to moving The CD drive that the property lost CD (such as CD-ROM, DVD-ROM or other optical mediums) is read and write.In these cases, each Driver can be connected by one or more data media interfaces with bus 18.Memory 28 may include at least one journey Sequence product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform this hair The function of bright each embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.Program mould Block 42 usually executes function and/or method in embodiment described in the invention.
Computer system/server 12 can also be (such as keyboard, sensing equipment, aobvious with one or more external equipments 14 Show device 24 etc.) communication, it is logical that the equipment interacted with the computer system/server 12 can be also enabled a user to one or more Letter, and/or with the computer system/server 12 any is set with what one or more of the other calculating equipment was communicated Standby (such as network interface card, modem etc.) communicates.This communication can be carried out by input/output (I/O) interface 22.And And computer system/server 12 can also pass through network adapter 20 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown in Figure 10, network adapter 20 passes through total Line 18 is communicated with other modules of computer system/server 12.It should be understood that although not shown in the drawings, can be in conjunction with calculating Machine systems/servers 12 use other hardware and/or software module, including but not limited to: microcode, device driver, redundancy Processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
The program that processor 16 is stored in memory 28 by operation, at various function application and data Reason, such as realize the method in Fig. 1, Fig. 4 or embodiment illustrated in fig. 6.
The present invention discloses a kind of computer readable storage mediums, are stored thereon with computer program, the program quilt It will be realized such as the method in Fig. 1, Fig. 4 or embodiment illustrated in fig. 6 when processor executes.
It can be using any combination of one or more computer-readable media.Computer-readable medium can be calculating Machine readable signal medium or computer readable storage medium.Computer readable storage medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example (non exhaustive list) of machine readable storage medium storing program for executing includes: electrical connection with one or more conducting wires, just Taking formula computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this document, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium other than computer readable storage medium, which can send, propagate or Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.In Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
In several embodiments provided by the present invention, it should be understood that disclosed device and method etc. can pass through Other modes are realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. it is various It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (16)

1. a kind of apply dispositions method characterized by comprising
Obtain a kind of fixed upper ray mode of user's ray mode middle finger from least two;Wherein, the upper ray mode includes: gray scale Release model, bluish-green release model and increment release model;
Obtain at least one online cluster that user specifies;The cluster that the user specifies includes: environment cluster and cloud on cloud Lower environment cluster;
The upper ray mode specified according to user carries out application section administration, comprising: when user refers on each cluster that user specifies respectively When fixed upper ray mode is bluish-green release model, according to sequencing set by user, successively on each cluster that user specifies It carries out using deployment;Wherein, following operation is executed on each cluster respectively: the new version example disposed on the cluster is pressed According to concurrency set by user dilatation in batches;When the new version instance number dilatation to desired instance number, to the new edition This example carries out service mapping, accepts flow on line;Cancel the service mapping of legacy version example, and the legacy version instance number is contracted Hold to 0.
2. the method according to claim 1, wherein
When the upper ray mode that user specifies be gray scale release model or bluish-green release model when, it is described specified respectively in user it is each On cluster before progress application section administration, one of following operation or whole is further executed:
Pre- publication operation, comprising: dispose a new version example respectively on each cluster that user specifies, determine the new version Whether example can normally start, if so, executing subsequent operation;
Small flow operation, comprising: flow access is carried out based on the small flow cluster that user further specifies that from specified cluster Verifying, if being verified, executes subsequent operation.
3. the method according to claim 1, wherein
It is described to be applied on each cluster that user specifies respectively when the upper ray mode that user specifies is gray scale release model Deployment includes:
According to sequencing set by user, application section administration is successively carried out on each cluster that user specifies;
Wherein, following operation is executed on each cluster respectively:
Service mapping is carried out to the new version example disposed on the cluster, accepts flow on line;
To the new version example according to concurrency set by user dilatation in batches, meanwhile, to legacy version example according to described Concurrency capacity reducing in batches;
When the new version instance number dilatation to desired instance number, if capacity reducing cancels institute to 0 to the legacy version instance number State the service mapping of legacy version example;
When it is expected the new version instance number dilatation is to instance number, if the non-capacity reducing of legacy version instance number to 0, will described in Legacy version instance number capacity reducing cancels the legacy version example service mapping to 0.
4. the method according to claim 1, wherein
It is described to be applied on each cluster that user specifies respectively when the upper ray mode that user specifies is increment release model Deployment includes:
For each cluster that user specifies, application code is replaced by the way of heat upgrading, including the following operation successively executed:
Separate unit operation, comprising: in user from answering under upgrading products line in the separate unit cluster further specified that in specified cluster Separate unit example under;
Unilateral operation, comprising: upgrade under the product line from the unilateral cluster further specified that in specified cluster in user All examples under;
Complete or collected works' group's separate unit operation, comprising: the separate unit example under under product line described in each cluster that upgrading user specifies;
Complete or collected works' group's full dose operation, comprising: all examples under under product line described in each cluster that upgrading user specifies.
5. according to the method described in claim 4, it is characterized in that,
Before the execution separate unit operation, further comprise:
Execute the operation of preview machine, comprising: upgrade the preview machine application under the product line, utilize the preview machine application pair after upgrading New application code verify under line.
6. according to method described in claim 2,3,4 or 5, which is characterized in that
This method further comprises: going wrong when if executing any operation, carries out rollback or retry.
7. according to method described in claim 2,3,4 or 5, which is characterized in that
This method further comprises: after having executed any operation, needing to carry out automatic returning to the operation if user is specified Verifying, then carry out automatic returning verifying, to determine whether operating result meets expection.
8. device is disposed in a kind of application characterized by comprising acquiring unit and deployment unit;
The acquiring unit for obtaining a kind of fixed upper ray mode of user's ray mode middle finger from least two, and obtains use At least one specified online cluster of family;The cluster that the user specifies includes: environment cluster under environment cluster and cloud on cloud; The upper ray mode includes: gray scale release model, bluish-green release model and increment release model;
The deployment unit, the upper ray mode for specifying according to user, is applied on each cluster that user specifies respectively Deployment;
Wherein, when the upper ray mode that user specifies is bluish-green release model, the deployment unit is according to set by user successive Sequentially, application section administration is successively carried out on each cluster that user specifies;Wherein, following operation is executed on each cluster respectively: To the new version example disposed on the cluster according to concurrency set by user dilatation in batches;When the new version instance number When dilatation to desired instance number, service mapping is carried out to the new version example, accepts flow on line;Cancel legacy version example clothes Business mapping, and by the legacy version instance number capacity reducing to 0.
9. device according to claim 8, which is characterized in that
When the upper ray mode that user specifies is gray scale release model or bluish-green release model, the deployment unit is further used In, it is described respectively on each cluster that user specifies before progress application section administration, execute one of following operation or whole:
Pre- publication operation, comprising: dispose a new version example respectively on each cluster that user specifies, determine the new version Whether example can normally start, if so, executing subsequent operation;
Small flow operation, comprising: flow access is carried out based on the small flow cluster that user further specifies that from specified cluster Verifying, if being verified, executes subsequent operation.
10. device according to claim 8, which is characterized in that
When the upper ray mode that user specifies is gray scale release model, the deployment unit according to sequencing set by user, Application section administration is successively carried out on each cluster that user specifies;
Wherein, following operation is executed on each cluster respectively:
Service mapping is carried out to the new version example disposed on the cluster, accepts flow on line;
To the new version example according to concurrency set by user dilatation in batches, meanwhile, to legacy version example according to described Concurrency capacity reducing in batches;
When the new version instance number dilatation to desired instance number, if capacity reducing cancels institute to 0 to the legacy version instance number State the service mapping of legacy version example;
When it is expected the new version instance number dilatation is to instance number, if the non-capacity reducing of legacy version instance number to 0, will described in Legacy version instance number capacity reducing cancels the legacy version example service mapping to 0.
11. device according to claim 8, which is characterized in that
When the upper ray mode that user specifies is increment release model, the deployment unit is directed to each cluster that user specifies, and adopts Application code is replaced with the mode of heat upgrading, including the following operation successively executed:
Separate unit operation, comprising: in user from answering under upgrading products line in the separate unit cluster further specified that in specified cluster Separate unit example under;
Unilateral operation, comprising: upgrade under the product line from the unilateral cluster further specified that in specified cluster in user All examples under;
Complete or collected works' group's separate unit operation, comprising: the separate unit example under under product line described in each cluster that upgrading user specifies;
Complete or collected works' group's full dose operation, comprising: all examples under under product line described in each cluster that upgrading user specifies.
12. device according to claim 11, which is characterized in that
The deployment unit is further used for, and before executing the separate unit operation, executes the operation of preview machine, comprising: upgrading institute The preview machine application under product line is stated, is applied using the preview machine after upgrading and new application code verify under line.
13. according to device described in claim 9,10,11 or 12, which is characterized in that
The deployment unit is further used for, and goes wrong when if executing any operation, carries out rollback or retry.
14. according to device described in claim 9,10,11 or 12, which is characterized in that
The deployment unit is further used for, and after having executed any operation, needs to carry out certainly the operation if user is specified It is dynamic to return verifying, then automatic returning verifying is carried out, to determine whether operating result meets expection.
15. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor is realized when executing described program as any in claim 1~7 Method described in.
16. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed Such as method according to any one of claims 1 to 7 is realized when device executes.
CN201810709275.0A 2018-07-02 2018-07-02 Using dispositions method, device, computer equipment and storage medium Active CN109240708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810709275.0A CN109240708B (en) 2018-07-02 2018-07-02 Using dispositions method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810709275.0A CN109240708B (en) 2018-07-02 2018-07-02 Using dispositions method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109240708A CN109240708A (en) 2019-01-18
CN109240708B true CN109240708B (en) 2019-11-05

Family

ID=65071662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810709275.0A Active CN109240708B (en) 2018-07-02 2018-07-02 Using dispositions method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109240708B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918090B (en) * 2019-02-15 2022-11-04 网宿科技股份有限公司 Application deployment method and device
CN110032393A (en) * 2019-04-18 2019-07-19 恒生电子股份有限公司 A kind of micro services dissemination method, device, equipment and medium
CN110221920B (en) * 2019-06-04 2022-02-18 合肥讯飞数码科技有限公司 Deployment method, device, storage medium and system
CN111314460B (en) * 2020-02-13 2022-07-01 北京小米松果电子有限公司 Service iteration method, service iteration device and storage medium
CN111865683B (en) * 2020-07-17 2023-07-14 北京百度网讯科技有限公司 Virtual gateway version gray level publishing method, device, equipment and storage medium
CN111984272B (en) * 2020-09-08 2023-11-17 河北幸福消费金融股份有限公司 Method, system, storage medium and computer equipment for automatic online application
CN112199104B (en) * 2020-10-10 2024-03-01 卫宁健康科技集团股份有限公司 Software upgrading method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106257894A (en) * 2016-08-29 2016-12-28 北京海誉动想科技股份有限公司 Gray scale dissemination method based on micro services
CN107872334A (en) * 2016-09-23 2018-04-03 中兴通讯股份有限公司 The method and device that gray scale upgrades in a kind of micro services architecture system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8024790B2 (en) * 2007-04-11 2011-09-20 Trend Micro Incorporated Portable secured computing environment for performing online confidential transactions in untrusted computers

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106257894A (en) * 2016-08-29 2016-12-28 北京海誉动想科技股份有限公司 Gray scale dissemination method based on micro services
CN107872334A (en) * 2016-09-23 2018-04-03 中兴通讯股份有限公司 The method and device that gray scale upgrades in a kind of micro services architecture system

Also Published As

Publication number Publication date
CN109240708A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN109240708B (en) Using dispositions method, device, computer equipment and storage medium
US10599411B2 (en) Automated configuration and installation of virtualized solutions
CN108833131A (en) System, method, equipment and the computer storage medium of distributed data base cloud service
US7757015B2 (en) Device, method and computer program product readable medium for determining the identity of a component
EP2637091A1 (en) Management interface for multiple storage subsystems virtualization
CN108874506A (en) Virtual machine leads directly to the thermomigration process and device of equipment
US9934069B2 (en) Managing provisioning of storage resources
CN107066305A (en) Method and apparatus and server for the server firmware that updates server
US20080082964A1 (en) Method and system for data preparation and communication between software applications
CN109086135A (en) Resource telescopic method, device, computer equipment and storage medium
CN109448265A (en) A kind of express delivery cabinet method for sorting, device, express delivery cabinet and storage medium
CN101014936A (en) Method and system for automatic installation of functional unit driver on a host
CN104123236A (en) Method and system of high throughput hardware acceleration using pre-staging buffers
CN104461402A (en) Method for adjusting disk sequence among multiple controllers under linux system
CN109213429B (en) Storage management method and device
US7366867B2 (en) Computer system and storage area allocation method
EP2977897A1 (en) Compatibility method and apparatus
CN110389918B (en) Hot plug identification method and server with hot plug identification function
US20150248369A1 (en) Information processing apparatus and log output method
US8700832B1 (en) Automated addition of file based hardware and file based access services in a data storage system
US20050010920A1 (en) Storage media controller driver auto installing method and system
CN111637079A (en) Mainboard, fan control system and method
CN110489210A (en) Create method, apparatus, equipment and the computer storage medium of virtual machine
US20100049920A1 (en) Dynamically adjusting write cache size
CN105706103A (en) Correlated display of biometric identity, feedback and user interaction state

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
GR01 Patent grant
GR01 Patent grant