CN107066292A - Server environment dispositions method and device - Google Patents

Server environment dispositions method and device Download PDF

Info

Publication number
CN107066292A
CN107066292A CN201710128395.7A CN201710128395A CN107066292A CN 107066292 A CN107066292 A CN 107066292A CN 201710128395 A CN201710128395 A CN 201710128395A CN 107066292 A CN107066292 A CN 107066292A
Authority
CN
China
Prior art keywords
services device
deployment services
service describing
service
task
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
CN201710128395.7A
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.)
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 CN201710128395.7A priority Critical patent/CN107066292A/en
Publication of CN107066292A publication Critical patent/CN107066292A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a kind of server environment dispositions method and device.This method includes:The service describing script for being used to treat deployment services device context initialization write as with installation function is broken into initialization service describing bag;The initialization service describing bag is published to central control server, to treat that the agency that deployment services device is installed pulls the initialization service describing bag from central control server, the service describing script installed in the function installation initialization service describing bag is called on deployment services device is treated, deployment services device context initialization is treated so as to perform.The present invention improves the internal environment deployment for server and managed, the normalization and uniformity of behavior such as being initialized internal environment.

Description

Server environment dispositions method and device
Technical field
The present invention relates to server internal environmental management, more particularly to a kind of server environment dispositions method and device.
Background technology
Server internal environment is data and the environment of application operation in server, including each configuration in server is joined Number, service agreement etc., these operations all to data in server and application and produce important shadow with interact for client Ring, be referred to as server internal environment.Reached the standard grade when server and (tactical management is connected to by central control server as shown in Figure 1 Platform) afterwards, it is necessary to the internal environment of the server to reaching the standard grade is managed collectively, such as initialization, parameter unification, Cai Nengtong The all clients of a pair of networkings provide consistent service.The internal environment that prior art lacks the server to reaching the standard grade is united The a whole set of technical scheme of one management.In addition, prior art needs to change (for example, making some new clothes the server reached the standard grade Business device is reached the standard grade, and the server for making some reach the standard grade is offline) or when changing the strategy disposed on server or ambient parameter etc., Artificial progress is needed, deployment efficiency is low.
Therefore, prior art is disposed and managed for the internal environment of server, lacks the scheme of unified standard.
The content of the invention
A purpose of the invention is the internal environment deployment improved for server and managed that for example internal environment is initial The normalization and uniformity of the behaviors such as change.
According to an aspect of the present invention there is provided a kind of server environment dispositions method, including:
The service describing script for treating deployment services device context initialization write as with installation function is broken into initialization Service describing bag;
The initialization service describing bag is published to central control server, to treat the agency of deployment services device installation The initialization service describing bag is pulled from central control server, calls installation function that institute is installed on deployment services device is treated The service describing script in initialization service describing bag is stated, deployment services device context initialization is treated so as to perform.
Device is disposed there is provided a kind of server environment according to an aspect of the present invention, including:
For the service describing script for being used to treat deployment services device context initialization write as with installation function to be broken into just The device of beginningization service describing bag;
For the initialization service describing bag to be published into central control server, to treat the installation of deployment services device Agency pulls the initialization service describing bag from central control server, and installation function peace is called on deployment services device is treated The service describing script in the initialization service describing bag is filled, so as to perform the device for treating deployment services device context initialization.
According to an aspect of the present invention there is provided a kind of equipment, including:
One or more processors;
Memory, be stored with one or more programs,
When one or more of programs are by one or more of computing devices, method as described above is realized.
According to an aspect of the present invention there is provided a kind of computer-readable recording medium, computer program is stored thereon with, The program realizes method as described above when being executed by processor.
In the embodiment of the present invention, for each service in the internal environment deployment and management of server, such as inner loop Border is initialized, all gone with unified service describing specification it, such as internal environment initialization with the service of being write as of installation function Description script, and be wrapped into, the initialization service describing bag is then published to central control server, to wait to dispose The agency that server is installed pulls the initialization service describing bag from central control server, is treating the up-regulation of deployment services device Service describing script in the initialization service describing bag is installed with function is installed, so that at the beginning of performing and treating deployment services device environment Beginningization.So, each service in the internal environment deployment and management for the computer of networking is allowed for, all with normalization And uniformity.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is the system environments schematic diagram that one embodiment of the present of invention is applied.
Fig. 2 is the flow chart of the server environment dispositions method according to one embodiment of the present of invention.
Fig. 3 is the flow chart of the server environment dispositions method according to an alternative embodiment of the invention.
Fig. 4 is the flow chart of the server environment dispositions method according to an alternative embodiment of the invention.
Fig. 5 is the flow chart of the server environment dispositions method according to an alternative embodiment of the invention.
Fig. 6 is to treat that deployment services device environment disposes the module map of device according to one embodiment of the present of invention.
Fig. 7 is the device hardware that deployment services device environment dispositions method is treated according to the application of one embodiment of the present of invention Figure.
Embodiment
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although operations are described as the processing of order by flow chart, therein to be permitted Multioperation can be implemented concurrently, concomitantly or simultaneously.In addition, the order of operations can be rearranged.When it The processing can be terminated when operation is completed, it is also possible to the additional step being not included in accompanying drawing.The processing It can correspond to method, function, code, subroutine, subprogram etc..
Alleged within a context " computer equipment ", also referred to as " computer ", referring to can be by running preset program or referring to Make performing the intelligent electronic device of the predetermined process process such as numerical computations and/or logical calculated, its can include processor with Memory, the survival that is prestored in memory by computing device instructs to perform predetermined process process, or by ASIC, The hardware such as FPGA, DSP perform predetermined process process, or are realized by said two devices combination.Computer equipment includes but not limited In central control server, PC, notebook computer, tablet personal computer, smart mobile phone etc..
The computer equipment includes user equipment and the network equipment.Wherein, the user equipment includes but is not limited to electricity Brain, smart mobile phone, PDA etc.;The network equipment includes but is not limited to single network central control server, multiple network centrals Control server group into central control server group or based on cloud computing (Cloud Computing) by a large amount of computers or The cloud that network central control server is constituted, wherein, cloud computing is one kind of Distributed Calculation, by the calculating of a group loose couplings One super virtual computer of machine collection composition.Wherein, the computer equipment can isolated operation realize the present invention, also can connect Enter network and the present invention is realized by the interactive operation with other computer equipments in network.Wherein, the computer is set Standby residing network includes but is not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN etc..
It should be noted that the user equipment, the network equipment and network etc. are only for example, other are existing or from now on may be used The computer equipment or network that can occur such as are applicable to the present invention, should also be included within the scope of the present invention, and to draw It is incorporated herein with mode.
Method (some of them are illustrated by flow) discussed hereafter can be by hardware, software, firmware, centre Part, microcode, hardware description language or its any combination are implemented.Implement when with software, firmware, middleware or microcode When, to implement, the program code or code segment of necessary task can be stored in machine or computer-readable medium (is such as deposited Storage media) in.(one or more) processor can implement necessary task.
Concrete structure and function detail disclosed herein are only representational, and are for describing showing for the present invention The purpose of example property embodiment.But the present invention can be implemented by many alternative forms, and it is not interpreted as It is limited only by the embodiments set forth herein.
Although it should be appreciated that may have been used term " first ", " second " etc. herein to describe unit, But these units should not be limited by these terms.It is used for the purpose of using these terms by a unit and another unit Make a distinction.For example, in the case of the scope without departing substantially from exemplary embodiment, it is single that first module can be referred to as second Member, and similarly second unit can be referred to as first module.Term "and/or" used herein above include one of them or Any and all combination of more listed associated items.
It should be appreciated that when a unit is referred to as " connecting " or during " coupled " to another unit, it can directly connect Another unit is connect or be coupled to, or there may be temporary location.On the other hand, when a unit is referred to as " directly connecting Connect " or " direct-coupling " arrive another unit when, then in the absence of temporary location.It should in a comparable manner explain and be used to retouch State relation between unit other words (such as compared to " between being directly in ... " " between being in ... ", " and with ... it is adjacent Closely " compared to " with ... be directly adjacent to " etc.).
Term used herein above is not intended to limit exemplary embodiment just for the sake of description specific embodiment.Unless Context clearly refers else, and otherwise singulative " one " used herein above, " one " also attempt to include plural number.Should also When understanding, term " comprising " and/or "comprising" used herein above provide stated feature, integer, step, operation, The presence of unit and/or component, and do not preclude the presence or addition of other one or more features, integer, step, operation, unit, Component and/or its combination.
It should further be mentioned that in some replaces realization modes, the function/action being previously mentioned can be according to different from attached The order indicated in figure occurs.For example, depending on involved function/action, the two width figures shown in succession actually may be used Substantially simultaneously to perform or can perform in a reverse order sometimes.
The present invention is described in further detail below in conjunction with the accompanying drawings.
Fig. 1 is the system environments schematic diagram that one embodiment of the present of invention is applied.As shown in figure 1, the ring that the present invention is applied Border includes tactical management platform 1, central control server 2, treats deployment services device 3 and treats the agency that is installed on deployment services device 3 4.Environment configurations are distributed by service describing in the tactical management platform 1 i.e. embodiment of the present invention, to largely treating portion in system The internal environment of administration's server 3 is initialized, unification and service keep-alive etc. are operated, so that from largely treating deployment services device 3 Carry out the platform of deployment and the renewal of environment.One tactical management platform 1 can connect multiple central control servers 2 simultaneously.Often It is individual to treat that deployment services device 3 needs to carry out the server of environment deployment and renewal.Each treat installation agent 4 on deployment services device 3. Each central control server 2 connects multiple agencies 4 for treating deployment services device 3.
When after deployment services device reaches the standard grade (central control server 2 for being connected to the system shown in Fig. 1), it is necessary to reaching the standard grade The internal environment for treating deployment services device be managed collectively, such as initialization, parameter unification.Prior art lacks to reaching the standard grade The a whole set of technical scheme that is managed collectively of the internal environment for treating deployment services device.For example, it is desirable to which what certain was reached the standard grade treats portion When administration's server is initialized, it may be necessary to treat deployment services device by the way of independent, scattered initialization to this, imitate Rate is very low.Prior art lacks the mechanism for the internal environment progress unified plan and management for treating deployment services device.
In the embodiment of the present invention, the internal environment for treating deployment services device 3 of the system for being connected into shown in Fig. 1 is disposed and managed Each service in reason, such as internal environment initialize, all gone with unified service describing specification it.Service describing is to be with one Arrange the function statement provided service is described so that when needing to set up service again later, apply mechanically these function statements just Being capable of the sake of clarity service.For example, being initialized for internal environment, write as service describing script with installation function.With service Description is write as after script, is wrapped into, the bag broken into then is published into central control server 2, to treat deployment services device 3 The agency 4 of installation pulls the bag from central control server 2, calls installation function to install institute on deployment services device 3 is treated The service describing script in bag is stated, deployment services device context initialization is treated so as to perform.So, allow for treating portion for networking Each service in the internal environment deployment and management of server 3 is affixed one's name to, all with normative and uniformity.
As shown in Fig. 2 according to one embodiment of present invention, additionally providing a kind of server environment dispositions method.Here Server environment refer to and treat deployment services device internal environment, including the operation treated each configuration parameter in deployment services device, installed System etc., these operations for all treating data and application in deployment services device produce material impact.Methods described includes:
S210, by write as with installation function be used for treat deployment services device context initialization service describing script break into just Beginningization service describing bag;
S220, by it is described initialization service describing bag be published to central control server, so as to treat deployment services device install Agency pulled from central control server it is described initialization service describing bag, installation function is called on deployment services device is treated Service describing script in the initialization service describing bag is installed, deployment services device context initialization is treated so as to perform.
Step S210-S220 is described in detail below.
Step S210, being used for of being write as with installation function treated that the service describing script of deployment services device context initialization is beaten Into initialization service describing bag.
It is install () to install function, is the function that is performed in heartbeat when carrying out initialization context, it would be desirable to it is initial Change logic to write in function.In this manner it is possible to directly be write as the clothes for treating deployment services device context initialization with installation function Business description script.The example for being used to treat the service describing script of deployment services device context initialization write as with install () Son is such as:
In one embodiment, by the service describing script write as break into initialization service describing bag method be:It will write Into service describing script add perform script function needed for Basic application and required system file break into bag.Perform Basic application needed for script function is such as required various functions.Required system file be packing when can add automatically be System file, this is well known to the art.Breaking into the benefit of the bag of a unified form is, unified various service scenarios The form of lower distribution service describing or service describing script, makes the distribution of service describing standardize.
Step S220, by it is described initialization service describing bag be published to central control server, to treat deployment services device The agency of installation pulls the initialization service describing bag from central control server, and installation is called on deployment services device is treated Function installs the service describing script in the initialization service describing bag, and deployment services device context initialization is treated so as to perform.
Break into after initialization service describing bag, tactical management platform 1 is published to central control by service describing bag is initialized Server 2.Central control server subordinate respectively treats that the agency 4 that deployment services device 3 is installed pulls institute from central control server 2 State initialization service describing bag.Due to there is the Basic application needed for perform script function in the initialization service describing bag that breaks into, Agency 4 can call installation function therein to install the service in the initialization service describing bag on deployment services device 3 is treated Description script.The result for performing the service describing script is exactly to complete to treat the context initialization of deployment services device 3.
If treating no initializtion before deployment services device 3, directly invoke installation function and service describing script is installed and held Initialization can be completed after row.If initialized before treating deployment services device 3, need first to call unloading function The already present service describing script of deployment services device 3 itself is treated in uninstall () unloadings.Unload the one of function uninstall () Individual specific example is for example:
In another embodiment, as shown in figure 3, methods described also includes:
S310, will write as with installation function be used for retouch the service for respectively treating the parameter unification in deployment services device environment State script and break into unification service describing bag;
S320, the unification service describing bag is published to central control server, to treat that deployment services device is installed Agency the unification service describing bag is pulled from central control server, installation function is called on deployment services device is treated Service describing script in the unification service describing bag is installed, the environment ginseng for checking that deployment services device is treated in function inspection is called Whether number changes with the ambient parameter in the service describing script in the unification service describing bag, in the event of change Change, call to refresh using ambient parameter of the function in the service describing script in the unification service describing bag and treat deployment clothes The ambient parameter of business device.
Step S310-S320 is described in detail below.
Step S310, being used for of will being write as with installation function make the clothes of respectively treating the parameter unification in deployment services device environment Business description script breaks into unification service describing bag.
Make respectively to treat that the parameter unification in deployment services device environment is meant that:To respectively treating that deployment services device environment is carried out After initialization, due to respectively treating that user may voluntarily have adjusted some ambient parameters to deployment services device in use, or Treat that deployment services device user has downloaded some applications and applied and have modified some ambient parameters, often occur and respectively treat deployment services In the case that device ambient parameter becomes inconsistent again, make respectively to treat the parameter unification in deployment services device environment i.e. in these environment Them are made to become consistent again in the case that parameter is inconsistent.
Service describing script for making respectively to treat the parameter unification in deployment services device environment is still with installation function Install () is write as.The logic for making respectively to treat parameter unification needs in deployment services device environment is write in function.This Sample, it is possible to directly write as the service describing pin for making respectively to treat the parameter unification in deployment services device environment with installation function This.The one of the service describing script for making respectively to treat the parameter unification in deployment services device environment write as with install () Individual example is such as:
In one embodiment, the method for the service describing script write as being broken into unification service describing bag is:It will write Into service describing script add perform script function needed for Basic application and required system file break into bag.Perform Basic application needed for script function is such as required various functions.Required system file be packing when can add automatically be System file, this is well known to the art.Breaking into the benefit of the bag of a unified form is, unified various service scenarios The form of lower distribution service describing or service describing script, makes the distribution of service describing standardize.
Step S320, the unification service describing bag is published to central control server, to treat deployment services device The agency of installation pulls the unification service describing bag from central control server, and installation is called on deployment services device is treated Function installs the service describing script in the unification service describing bag, calls the ring for checking that deployment services device is treated in function inspection Whether border parameter changes with the ambient parameter in the service describing script in the unification service describing bag, if it happens Change, calls with the ambient parameter in the service describing script in the unification service describing bag to be refreshed using function and waits to dispose The ambient parameter of server.
Break into after unification service describing bag, unification service describing bag is published to central control by tactical management platform 1 Server 2.Central control server subordinate respectively treats that the agency 4 that deployment services device 3 is installed pulls institute from central control server 2 State unification service describing bag.Due to there is the Basic application needed for perform script function in the unification service describing bag that breaks into, Agency 4 can call installation function therein to install the service in the unification service describing bag on deployment services device 3 is treated Description script.Then, call and check that function check () checks the ambient parameter for treating deployment services device and the unification service Whether the ambient parameter in service describing script in description bag changes.Check function check () specific example Son is for example:
If treating the ambient parameter of deployment services device and the unification service describing using checking that function check () is checked The result whether ambient parameter in service describing script in bag changes is to be changed, then calls and apply function Apply () is refreshed with the ambient parameter in the service describing script in the unification service describing bag treats deployment services device Ambient parameter.Using function apply () a specific example for example:
As shown in figure 4, in another embodiment, methods described includes:
S410, being used for of will being write as with installation function make to treat that special services in deployment services device environment keep starting state Service describing script break into service keep-alive service describing bag;
S420, by it is described service keep-alive service describing bag be published to central control server, so as to treat deployment services device pacify The agency of dress pulls the service keep-alive service describing bag from central control server, and installation is called on deployment services device is treated Function installs the service describing script in the service keep-alive service describing bag, calls function of state treating deployment services device inspection Need to keep whether the service of starting state keeps starting state in service describing script, and call run function to need holding Starting state and not actuated service starts.
Step S410-S420 is described in detail below.
Step S410, being used for of will being write as with installation function make to treat that special services in deployment services device environment keep starting The service describing script of state breaks into service keep-alive service describing bag.
Make to treat that the special services in deployment services device environment keep starting state, that is, service keep-alive, refer to:Treat deployment services Some of device environment is serviced, in use, and (for example GPS function users may for keeper's closing of possible being serviced device Can close), but some services may precisely service most important (such as GPS functions) for platform is constantly improve, and platform may Wish that the specific function for each treating deployment services device is always maintained at starting, accordingly, it would be desirable to keep-alive be serviced, for some specific clothes Business, makes it unanimously start in deployment services device environment is treated.
For making to treat that the special services in deployment services device environment keep the service describing script of starting state to be still with peace What dress function install () was write as.It will make to treat that special services in deployment services device environment keep the logic of starting state needs Write in function.In this manner it is possible to directly be write as with installation function for making to treat that the special services in deployment services device environment are protected Hold the service describing script of starting state.
In one embodiment, by the service describing script write as break into service keep-alive service describing bag method be:Will The service describing script write as breaks into bag plus the Basic application and required system file needed for perform script function.Hold Basic application needed for row script function is such as required various functions.Required system file can be added automatically when packing System file, this is well known to the art.Breaking into the benefit of the bag of a unified form is, unified various service fields Distribute the form of service describing or service describing script under scape, the distribution of service describing is standardized.
Step S420, by it is described service keep-alive service describing bag be published to central control server, to treat deployment services The agency that device is installed pulls the service keep-alive service describing bag from central control server, is called on deployment services device is treated Function is installed the service describing script serviced in keep-alive service describing bag is installed, call function of state treating deployment services device Check whether the service for needing to keep starting state in service describing script keeps starting state, and call run function by needs Keep starting state and not actuated service starts.
Break into after service keep-alive service describing bag, tactical management platform 1 is published to center by keep-alive service describing bag is serviced Control server 2.Central control server subordinate respectively treats that the agency 4 that deployment services device 3 is installed pulls up from central control server 2 Take the service keep-alive service describing bag.Due to there is the base needed for perform script function in the service keep-alive service describing bag that breaks into Plinth program, agency 4 can call installation function therein to install the service keep-alive service describing bag on deployment services device 3 is treated In service describing script.Then, function of state status () is called to be needed in treating that deployment services device checks service describing script Keep whether the service of starting state keeps starting state, if being not maintained in starting state, call run function start () will need to keep starting state and not actuated service starts.In addition, calling function of state status () portion can also treated Whether administration's server checks the service that starting state need not be kept in service describing script in not starting state, if started State, can also call stopping function stop () to close these services.
In the embodiment of the present invention, for each service in the internal environment deployment and management of server, such as inner loop Border initialization, unification, service keep-alive, all gone with unified service describing specification it, for example retouched with the service of being write as of installation function Script is stated, and is wrapped into, the service describing bag is then published to central control server, to treat that deployment services device is pacified The agency of dress pulls the service describing bag from central control server, calls installation function to install on deployment services device is treated Service describing script in the service describing bag, treats that deployment services device context initialization, unification or service are protected so as to perform It is living.So, each service in the internal environment for the treating deployment services device deployment and management for networking is allowed for, all with rule Plasticity and uniformity.
In the embodiment of the present invention, service describing bag is distributed to central control server and then allowed and treats that deployment services device is installed Agency pull and can use two kinds of http modes and p2p modes.For smaller bag, http modes are fairly simple effectively; For than larger bag, such as the bag of several G bits, such as delivery of services of baseenv can be distributed using p2p modes.
Furthermore it is possible to reserved area, i.e. index area be set in central control server, for depositing each service describing bag (unification service describing bag, initialization service describing bag, service keep-alive service describing bag) is placed on central control server Positional information, to treat that the agency that deployment services device is installed pulls each service according to the positional information from central control server Description bag.The index area can also place the version number of each service describing bag.Here is an example of the content of index area storage Son:
Above example presses unification service describing bag, initialization service describing bag, services the suitable of keep-alive service describing bag Sequence describes address and the version number that each service describing bag is deposited on central control server.From center, control is serviced agency 4 When device 2 pulls service describing bag, first obtaining its service describing bag to be pulled from the index area (for example initializes service describing Bag) address deposited on central control server, then find the service describing bag by the address and pulled, reach convenience Agency pulls the effect of service describing bag.
The above method is mainly used in carrying out unified plan to the internal environment for treating deployment services device of networking, for example, unify just Beginningization, unification etc..But after unified plan, still have some and new treat that deployment services device needs to add network (reaching the standard grade), one That has reached the standard grade a bit treats that deployment services device needs to exit network (offline) or treat the service describing script of deployment services device installation Change etc., prior art is for such situation, it is necessary to which artificial carried out, and execution efficiency is low.The embodiment of the present invention can also pin To it is new treat that deployment services device is reached the standard grade, some have been reached the standard grade treats that deployment services device is offline or treat the installation of deployment services device Service describing script carries out the situation such as changing, and improves its execution efficiency.
As shown in figure 5, according to one embodiment of present invention, this method can also include:
The goal description that deployment services device is changed is treated in S510, reception;
S520, the goal description disassembled into multiple tasks list, each job order includes a task, each task bag Include multiple subtasks;
S530, allow each task that the multiple job order includes into task queue queue up;
S540, for queue up each task distribute a process respectively, wherein, have multiple threads in a process, dispatch into Enter each subtask in the task of process and respectively enter one of multiple threads in the process, in each thread, line will be entered The subtask of journey is put into central control server, and by the subtask, the related agency treated on deployment services device pulls the subtask Treat to perform on deployment services device to described.
Step S510-S540 is described in detail below.
The goal description that deployment services device is changed is treated in step S510, reception.
In one embodiment, treating deployment services device and change includes at least one of the following:Treat deployment clothes The service describing script installed on business device is changed, to that whether will treat that deployment services device is connected to central control server and become The packet move, treated described in deployment services device is changed.
The service describing script progress variation installed on deployment services device is treated to refer to:Deployment services devices is treated to networking Internal environment is carried out after unified plan (such as unified initialization, unification) using method as described above, due to a variety of originals Because (such as to treat that the description script of deployment services device deployment is wrong before finding, or needing to treat deployment services device portion The description script of administration is upgraded), it is necessary to be changed to being deployed in the service describing script treated on deployment services device.It is this to become It is dynamic to include at least one in increase, deletion, change.For example, treating the new service describing script of deployment services device increase, deleting Treat some service describing scripts deployed on deployment services device, will treat that some services deployed on deployment services device are retouched The content for stating script makes new content into.
To that whether will treat that deployment services device is connected to central control server progress variation and referred to:Deployment services are treated to networking The internal environment of device is carried out after unified plan (such as unified initialization, unification) using method as described above, is found again Need to treat that deployment services device is connected to central control server, or certain by what a certain script was not connected to central control server One be already connected to central control server and deploy service describing script treat that deployment services device is no longer required connect to Central control server, then need to that whether will treat that deployment services device is connected to central control server and changed.It is this to change Including at least one in increase, deletion, change.For example, by a certain script be not connected to central control server wait dispose Server is connected to central control server (reaching the standard grade), by it is a certain be already connected to central control server treat deployment services device with Central control server disconnects (offline), or is connected to treating that deployment services device changes and being connected to for a certain central control server by former Another central control server.
Packet refers to treat the group belonging to deployment services device in the network shown in fig. 1.In the network shown in fig. 1, for To treating with like attribute, the demand that deployment services device is classified is considered, it is necessary to deployment services will be treated with like attribute Device is divided into one group.For example, enterprise servers are divided into one group, home server is divided into one group.This allows for enterprise customer and family The characteristics of front yard user etc. may have different in environment deployment or server change management and demand.Treat deployment services device institute The packet of category carries out variation and referred to:Treat the packet described in deployment services device and increased, deleted, change at least one. For example, only two kinds of packets of enterprise servers and home server, now increase this packet of organ's server originally;It is former To have enterprise servers, home server, the three kinds of packets of organ's server, this packet of organ's server is deleted Remove;Originally certain treats that deployment services device belongs to enterprise servers, is now changed to belong to home server.
Treating the goal description that deployment services device changed refers to keeper on tactical management platform 1 on treating portion The service describing script installed on administration's server is changed, to that whether will treat that deployment services device is connected to central control server and entered Row changes, treated the description for the demand that the packet described in deployment services device is changed.For example, keeper needs a point increase in 2 days 100 are treated that deployment services device is reached the standard grade, wherein reaching the standard grade within first day 40, are reached the standard grade within second day 60, then the description is potentially included:2 days (may also include specific which two days), increase by 40 in first day be reached the standard grade, increase by 60 in second day is reached the standard grade, this 40 and 60 treat portion Affix one's name to the mark of server.For another example, keeper needs to change 1000 clothes for treating to install on deployment services device reached the standard grade in 3 days Business description script is simultaneously modified to this 1000 packets treated belonging to deployment services device, wherein first day changes 200, second It changes 300, changes 500 within the 3rd day, then the description includes:(may also include specific which 3 days), change in first day in 3 days Change for 200, second day 300, the 3rd day change 500, this 200,300,500 treat deployment services device mark, by its On any partial service description be substituted for which type of service describing, this 200,300,500 treat that deployment services device will be modified to Packet.Typically can by allow keeper fill in the page input frame form.If being presented in the page shown to keeper Dry input frame, is respectively used to the content required in keeper's input above goal description, after keeper fills in, the content filled in Machine understandable language is compiled into, just turns into the goal description.
Step S520, the goal description disassembled into multiple tasks list, each job order includes a task, Mei Geren Business includes multiple subtasks.
Include treating the goal description that the service describing script installed on deployment services device changed in goal description, it is right Whether will treat that deployment services device is connected to the goal description that central control server is changed, treats dividing belonging to deployment services device In the case of organizing at least two in the goal description changed, the service installed on deployment services device can be treated and retouched State goal description that script changed, to whether will treat that deployment services device is connected to the target that central control server is changed Describe, treat the goal description that the packet belonging to deployment services device changed and split into different job orders respectively.For example, will be right Treat that the goal description that the service describing script installed on deployment services device is changed splits into a job order, treat deployment services The task that the service describing script installed on device is changed is the task in job order;Will be to that whether will treat that deployment services device connects A job order is splitted into the goal description that central control server is changed, to that whether will treat that deployment services device is connected to center Task of controlling server to be changed is the task in job order;The packet treated belonging to deployment services device is changed Goal description splits into a job order, and it is appointing in job order to treat the task that the packet belonging to deployment services device changed Business.
Task that the goal description that the service describing script installed on deployment services device changed is related to will be treated, to being It is no to treat that deployment services device is connected to the task that the goal description that central control server changed is related to, treats deployment services device During the task that the goal description that described packet is changed is related to is individually placed to the different task list that is performed successively after arriving first Benefit be to realize task mutual exclusion, it is ensured that the uniformity of tasks carrying, prevent for example to it is a certain treating on deployment services device pacify The service describing script of dress makes this treat deployment services device offline conflict situations when being updated, kept for appointing for different levels Business all obtains orderly execution, without clashing, causes mistake.
Description in work of the goal description comprising some batches and ability after must having been performed in the work of a batch When carrying out the work of next batch, the work of each batch can be placed in a job order, be used as a task.Example Which such as, include 2 days (may also include specific two days), increase by 40 in first day in goal description to reach the standard grade, increase by 60 within second day Reach the standard grade, in the case of this 40 and 60 marks for treating deployment services device, increase by 40 in first day, which is reached the standard grade, to be splitted into first and appoint Business is single, and this 40 are reached the standard grade as a task;Increase by 60 in second day is reached the standard grade for splitting into and being later than that first job order perform Two job orders, this 60 are reached the standard grade as a task.
Often it is related to the work of a server in task as a subtask.
With it is above-mentioned by first day increase by 40 reach the standard grade split into first job order, by second day increase by 60 reach the standard grade split into it is late Exemplified by second job order that first job order is performed.Reached the standard grade for 40 of first day, this 40 each is reached the standard grade As a subtask, 40 subtasks altogether;Reached the standard grade for 60 of second day, this 60 each is reached the standard grade as one Subtask, altogether 60 subtasks.
Step S530, allow each task that the multiple job order includes into task queue queue up.
In one embodiment, the step includes:According to pre-determined order, allow the multiple job order includes is each Task is queued up into task queue.
For example, splitting into one the goal description that the service describing script installed on deployment services device changed will be treated Job order, by whether will treat that deployment services device is connected to the goal description that central control server changed and splits into a task Singly, in the case of the goal description that the packet treated belonging to deployment services device is changed being splitted into a job order, in advance really Fixed order is:Allow and treat the job order that the goal description that the service describing script installed on deployment services device changed is splitted into In task come foremost, allow to whether will treat that deployment services device is connected to the target that central control server changed and retouched Stating in the job order splitted into for task comes next, allows the goal description for being changed the packet treated belonging to deployment services device Task in the job order splitted into comes finally.It is of course also possible to which other orders are determined in advance.So, each task is in task The order that queue is queued up is exactly the order that they are performed.
For another example splitting into first job order, by second day 60 platform of increase in above-mentioned increase by 40 in first day is reached the standard grade Line, which is splitted into, to be later than in the example for second job order that first job order is performed, and pre-determined order is:Allow increasing in first day Plus before the task in 40 job orders reached the standard grade comes, allow before the task in the job order that increase by 60 in second day reaches the standard grade comes Face.
Step S540, each task for queuing distribute a process respectively, wherein, there are multiple threads in a process, adjust Each subtask that degree enters in the task of process respectively enters one of multiple threads in the process, in each thread, will enter The subtask for entering thread is put into central control server, and by the subtask, the related agency treated on deployment services device pulls the son Task is treated to perform on deployment services device to described.
With it is above-mentioned by first day increase by 40 reach the standard grade split into first job order, by second day increase by 60 reach the standard grade split into it is late Exemplified by second job order that first job order is performed.Reached the standard grade for 40 of first day, this 40 each is reached the standard grade As a subtask, 40 subtasks altogether, the T50 that is expressed as T1, T2 ....There are 5 thread P1- in corresponding process P5.First scheduling subtask T1, T2, T3, T4, T5 respectively enters process P1, P2, P3, P4, P5.Which thread in five threads It has been first carried out that, all dispatch next subtask into the thread.For example, thread P3 has first carried out subtask T3, just behind scheduling Subtask T6 enter P3.Then, thread P2 has performed subtask T2 again, and just the subtask T7 of scheduling below enters P2.So, Just utilize thread parallel so that disposal ability is maximized, and substantially increases tasks carrying efficiency in job order.
In mission thread, the entering thread of the task is put into central control server 2, portion is treated by subtask correlation Agency 4 on administration's server 3 pulls this and treats to perform on deployment services device 3 into the subtask to described.For example, subtask T1 is Treat deployment services device C1 to be reached the standard grade, responsible connection treats that deployment services device C1 central control server is S1.In subtask T1 enter thread P1 after, subtask T1 is just put into central control server S1, by treat on deployment services device C1 act on behalf of A1 from Pulled on central control server S1 subtask T1 to treat on deployment services device C1 perform.
By step S510-S540 automation process, solve some and new treat that deployment services device needs to add network (reaching the standard grade), some reached the standard grade treat deployment services device need exit network (offline) or treat deployment services device installation clothes Business description script change etc. the problem of prior art needs artificial execution, inefficiency one by one under situation.The present invention passes through It is automatic to treat the purpose that deployment services device changed and describe to disassemble into job order, and allow the task queue of job order, task Subtask performed automatically into parallel thread, improve and treat the treatment effeciency that deployment services device is changed, carry simultaneously High collaborative degree for the treatment of.
In one embodiment, this step includes:After the first task of Queue sequence has been performed in process, Queue sequence Posterior task could enter process and perform.
For example, it is above-mentioned by first day increase by 40 reach the standard grade split into first job order, by second day increase by 60 reach the standard grade Split into and be later than in the example for second job order that first job order is performed, in task queue, allowing first day increases by 40 Before task in the job order reached the standard grade comes, allow before the task in 60 job orders reached the standard grade of increase in second day comes. After 40 tasks carryings reached the standard grade are complete, 60 reaching the standard grade for tasks could enter process and perform.
In this way, the problems such as gray scale is changed is solved.Gray scale change is change by several times in batches.For example, right All service describing scripts for treating to be installed on deployment services device of reaching the standard grade carry out 20%, 50%, 100% change, i.e., first will be all Reach the standard grade and treat 20% to treat that the service describing script that deployment services device is installed is changed in deployment services device, observe this and 20% treat portion Affix one's name to the reaction of server.If reaction is good, just all reach the standard grade is treated 50% to treat the installation of deployment services device in deployment services device Service describing script changed, that is, add 30% treat deployment services device install service describing script changed.If This 50% treats that deployment services device still reacts good, and all reach the standard grade just is treated into the service describing script that deployment services device is installed is carried out Change, that is, add 50% and treat that the service describing script that deployment services device is installed is changed.Gray scale reaches the standard grade what is changed as gray scale A kind of special case, refers to reaching the standard grade in batches by several times.For example, to treat that deployment services device is reached the standard grade to progress 20%, 50%, 100%, i.e., Needing of will first reaching the standard grade the 20% of deployment services device treats that deployment services device is reached the standard grade, and observes this and 20% treats the anti-of deployment services device Should.If reaction is good, needing of will just reaching the standard grade the 50% of deployment services device treats that deployment services device is reached the standard grade, i.e., additional 30% Treat that deployment services device is reached the standard grade.If 50% treats that deployment services device still reacts good, what will just be reached the standard grade needs portion Administration's server is reached the standard grade, that is, is added 50% and treated that deployment services device is reached the standard grade.
For example, 50 servers that to reach the standard grade, on December 26th, 2016, on December 27th, 2016, on December 28th, 2016 The gray scale for carrying out 20%, 50%, 100% is reached the standard grade.That is, what will first be reached the standard grade needs the 20% of deployment services device 50 Reach the standard grade, i.e., 10 are reached the standard grade, and as first job order, its task comes foremost in task queue.If reaction is good, then Additional 30% treats that deployment services device, i.e., 15 are reached the standard grade, as second job order, during its task comes in task queue Between.If still reacting good, the deployment services device 50 that needs that will just reach the standard grade is reached the standard grade, i.e., adding 25 again reaches the standard grade, and makees For the 3rd job order, its task comes finally in task queue.First dispatch 10 reaching the standard grade for tasks and enter correspondence process, entirely After portion has been performed, 15 reaching the standard grade for tasks could enter correspondence process, and after all having performed, the task that 25 platforms are reached the standard grade can just be entered Enter correspondence process.
The benefit of above-mentioned flow be make gray scale change (gray scale reach the standard grade be gray scale change special case) can automated execution, carry The efficiency of high gray scale change.In the prior art, gray scale becomes and artificially manipulated with greater need for keeper, selects a task and is performed, After being carried out Deng the subtask in the task, then select a task and performed, by that analogy, thus reach that gray scale is changed Purpose.The present invention is by above-mentioned flow, the efficiency crossed process automation, improve gray scale change for allowing gray scale to change.
As shown in fig. 6, according to one embodiment of present invention, additionally providing a kind of server environment deployment device 700.This In server environment refer to and treat deployment services device internal environment, including the behaviour for treating each configuration parameter in deployment services device, installing Make system etc., these operations for all treating data and application in deployment services device produce material impact.Described device 700 is wrapped Include:
For the service describing script for being used to treat deployment services device context initialization write as with installation function to be broken into just The device (lower abbreviation " the first packing apparatus ") 710 of beginningization service describing bag;
For the initialization service describing bag to be published into central control server, to treat the installation of deployment services device Agency pulls the initialization service describing bag from central control server, and installation function peace is called on deployment services device is treated The service describing script in the initialization service describing bag is filled, so as to perform the device for treating deployment services device context initialization (lower abbreviation " the first distributing device ") 720.
Device 710 and 720 is described in detail below.
First packing apparatus 710 is used for the service for being used to treat deployment services device context initialization that will be write as with installation function Description script breaks into initialization service describing bag.
It is install () to install function, is the function that is performed in heartbeat when carrying out initialization context, it would be desirable to it is initial Change logic to write in function.In this manner it is possible to directly be write as the clothes for treating deployment services device context initialization with installation function Business description script.The example for being used to treat the service describing script of deployment services device context initialization write as with install () Son is such as:
In one embodiment, by the service describing script write as break into initialization service describing bag method be:It will write Into service describing script add perform script function needed for Basic application and required system file break into bag.Perform Basic application needed for script function is such as required various functions.Required system file be packing when can add automatically be System file, this is well known to the art.Breaking into the benefit of the bag of a unified form is, unified various service scenarios The form of lower distribution service describing or service describing script, makes the distribution of service describing standardize.
First distributing device 720 is used to the initialization service describing bag being published to central control server, to treat The agency that deployment services device is installed pulls the initialization service describing bag from central control server, is treating deployment services device On call install function install it is described initialization service describing bag in service describing script, treat deployment services device ring so as to perform Border is initialized.
Break into after initialization service describing bag, tactical management platform 1 is published to central control by service describing bag is initialized Server 2.Central control server subordinate respectively treats that the agency 4 that deployment services device 3 is installed pulls institute from central control server 2 State initialization service describing bag.Due to there is the Basic application needed for perform script function in the initialization service describing bag that breaks into, Agency 4 can call installation function therein to install the service in the initialization service describing bag on deployment services device 3 is treated Description script.The result for performing the service describing script is exactly to complete to treat the context initialization of deployment services device 3.
If treating no initializtion before deployment services device 3, directly invoke installation function and service describing script is installed and held Initialization can be completed after row.If initialized before treating deployment services device 3, need first to call unloading function The already present service describing script of deployment services device 3 itself is treated in uninstall () unloadings.Unload the one of function uninstall () Individual specific example is for example:
In another embodiment, described device 700 also includes:
For that will be write as with installation function for retouching the service for respectively treating the parameter unification in deployment services device environment State the device (lower abbreviation " the second packing apparatus ") that script breaks into unification service describing bag;
For the unification service describing bag to be published into central control server, to treat the installation of deployment services device Agency pulls the unification service describing bag from central control server, and installation function peace is called on deployment services device is treated The service describing script in the unification service describing bag is filled, the ambient parameter for checking that deployment services device is treated in function inspection is called Whether changed with the ambient parameter in the service describing script in the unification service describing bag, in the event of change, Call with the ambient parameter in the service describing script in the unification service describing bag to be refreshed using function and treat deployment services The device (lower abbreviation " the second distributing device ") of the ambient parameter of device.
Second packing apparatus is used to be write as with installation function for making respectively to treat the parameter one in deployment services device environment The service describing script of causeization breaks into unification service describing bag.
Make respectively to treat that the parameter unification in deployment services device environment is meant that:To respectively treating that deployment services device environment is carried out After initialization, due to respectively treating that user may voluntarily have adjusted some ambient parameters to deployment services device in use, or Treat that deployment services device user has downloaded some applications and applied and have modified some ambient parameters, often occur and respectively treat deployment services In the case that device ambient parameter becomes inconsistent again, make respectively to treat the parameter unification in deployment services device environment i.e. in these environment Them are made to become consistent again in the case that parameter is inconsistent.
Service describing script for making respectively to treat the parameter unification in deployment services device environment is still with installation function Install () is write as.The logic for making respectively to treat parameter unification needs in deployment services device environment is write in function.This Sample, it is possible to directly write as the service describing pin for making respectively to treat the parameter unification in deployment services device environment with installation function This.The one of the service describing script for making respectively to treat the parameter unification in deployment services device environment write as with install () Individual example is such as:
In one embodiment, the method for the service describing script write as being broken into unification service describing bag is:It will write Into service describing script add perform script function needed for Basic application and required system file break into bag.Perform Basic application needed for script function is such as required various functions.Required system file be packing when can add automatically be System file, this is well known to the art.Breaking into the benefit of the bag of a unified form is, unified various service scenarios The form of lower distribution service describing or service describing script, makes the distribution of service describing standardize.
Second distributing device is used to the unification service describing bag being published to central control server, to wait to dispose The agency that server is installed pulls the unification service describing bag from central control server, is treating the up-regulation of deployment services device With the service describing script installed in the function installation unification service describing bag, inspection function inspection is called to treat deployment services Whether the ambient parameter of device changes with the ambient parameter in the service describing script in the unification service describing bag, such as Fruit changes, and calls and is refreshed using function with the ambient parameter in the service describing script in the unification service describing bag Treat the ambient parameter of deployment services device.
Break into after unification service describing bag, unification service describing bag is published to central control by tactical management platform 1 Server 2.Central control server subordinate respectively treats that the agency 4 that deployment services device 3 is installed pulls institute from central control server 2 State unification service describing bag.Due to there is the Basic application needed for perform script function in the unification service describing bag that breaks into, Agency 4 can call installation function therein to install the service in the unification service describing bag on deployment services device 3 is treated Description script.Then, call and check that function check () checks the ambient parameter for treating deployment services device and the unification service Whether the ambient parameter in service describing script in description bag changes.Check function check () specific example Son is for example:
If treating the ambient parameter of deployment services device and the unification service describing using checking that function check () is checked The result whether ambient parameter in service describing script in bag changes is to be changed, then calls and apply function Apply () is refreshed with the ambient parameter in the service describing script in the unification service describing bag treats deployment services device Ambient parameter.Using function apply () a specific example for example:
In another embodiment, described device 700 includes:
For that will be write as with installation function for making to treat that the special services in deployment services device environment keep starting state Service describing script break into the device (referred to as lower " the 3rd packing apparatus ") of service keep-alive service describing bag;
For the service keep-alive service describing bag to be published into central control server, to treat that deployment services device is installed Agency pulled from central control server it is described service keep-alive service describing bag, installation letter is called on deployment services device is treated Number installs the service describing script in the service keep-alive service describing bag, calls function of state treating deployment services device inspection clothes Need to keep whether the service of starting state keeps starting state in business description script, and call run function that holding will be needed to open Dynamic state and device that not actuated service starts (lower referred to as " the 3rd distributing device ").
3rd packing apparatus is used to be write as with installation function for making to treat the special services in deployment services device environment The service describing script of starting state is kept to break into service keep-alive service describing bag.
Make to treat that the special services in deployment services device environment keep starting state, that is, service keep-alive, refer to:Treat deployment services Some of device environment is serviced, in use, and (for example GPS function users may for keeper's closing of possible being serviced device Can close), but some services may precisely service most important (such as GPS functions) for platform is constantly improve, and platform may Wish that the specific function for each treating deployment services device is always maintained at starting, accordingly, it would be desirable to keep-alive be serviced, for some specific clothes Business, makes it unanimously start in deployment services device environment is treated.
For making to treat that the special services in deployment services device environment keep the service describing script of starting state to be still with peace What dress function install () was write as.It will make to treat that special services in deployment services device environment keep the logic of starting state needs Write in function.In this manner it is possible to directly be write as with installation function for making to treat that the special services in deployment services device environment are protected Hold the service describing script of starting state.
In one embodiment, by the service describing script write as break into service keep-alive service describing bag method be:Will The service describing script write as breaks into bag plus the Basic application and required system file needed for perform script function.Hold Basic application needed for row script function is such as required various functions.Required system file can be added automatically when packing System file, this is well known to the art.Breaking into the benefit of the bag of a unified form is, unified various service fields Distribute the form of service describing or service describing script under scape, the distribution of service describing is standardized.
3rd distributing device is used to the service keep-alive service describing bag being published to central control server, to treat portion The agency that administration's server is installed pulls the service keep-alive service describing bag from central control server, is treating deployment services device On call install function install it is described service keep-alive service describing bag in service describing script, call function of state waiting to dispose Server checks whether the service for needing to keep starting state in service describing script keeps starting state, and calls run function It will need to keep starting state and not actuated service starts.
Break into after service keep-alive service describing bag, tactical management platform 1 is published to center by keep-alive service describing bag is serviced Control server 2.Central control server subordinate respectively treats that the agency 4 that deployment services device 3 is installed pulls up from central control server 2 Take the service keep-alive service describing bag.Due to there is the base needed for perform script function in the service keep-alive service describing bag that breaks into Plinth program, agency 4 can call installation function therein to install the service keep-alive service describing bag on deployment services device 3 is treated In service describing script.Then, function of state status () is called to be needed in treating that deployment services device checks service describing script Keep whether the service of starting state keeps starting state, if being not maintained in starting state, call run function start () will need to keep starting state and not actuated service starts.In addition, calling function of state status () portion can also treated Whether administration's server checks the service that starting state need not be kept in service describing script in not starting state, if started State, can also call stopping function stop () to close these services.
In the embodiment of the present invention, for each service in the internal environment deployment and management of server, such as inner loop Border initialization, unification, service keep-alive, all gone with unified service describing specification it, for example retouched with the service of being write as of installation function Script is stated, and is wrapped into, the service describing bag is then published to central control server, to treat that deployment services device is pacified The agency of dress pulls the service describing bag from central control server, calls installation function to install on deployment services device is treated Service describing script in the service describing bag, treats that deployment services device context initialization, unification or service are protected so as to perform It is living.So, each service in the internal environment for the treating deployment services device deployment and management for networking is allowed for, all with rule Plasticity and uniformity.
In the embodiment of the present invention, service describing bag is distributed to central control server and then allowed and treats that deployment services device is installed Agency pull and can use two kinds of http modes and p2p modes.For smaller bag, http modes are fairly simple effectively; For than larger bag, such as the bag of several G bits, such as delivery of services of baseenv can be distributed using p2p modes.
Furthermore it is possible to reserved area, i.e. index area be set in central control server, for depositing each service describing bag (unification service describing bag, initialization service describing bag, service keep-alive service describing bag) is placed on central control server Positional information, to treat that the agency that deployment services device is installed pulls each service according to the positional information from central control server Description bag.The index area can also place the version number of each service describing bag.Here is an example of the content of index area storage Son:
Above example presses unification service describing bag, initialization service describing bag, services the suitable of keep-alive service describing bag Sequence describes address and the version number that each service describing bag is deposited on central control server.From center, control is serviced agency 4 When device 2 pulls service describing bag, first obtaining its service describing bag to be pulled from the index area (for example initializes service describing Bag) address deposited on central control server, then find the service describing bag by the address and pulled, reach convenience Agency pulls the effect of service describing bag.
Said apparatus is mainly used in carrying out unified plan to the internal environment for treating deployment services device of networking, for example, unify just Beginningization, unification etc..But after unified plan, still have some and new treat that deployment services device needs to add network (reaching the standard grade), one That has reached the standard grade a bit treats that deployment services device needs to exit network (offline) or treat the service describing script of deployment services device installation Change etc., prior art is for such situation, it is necessary to which artificial carried out, and execution efficiency is low.The embodiment of the present invention can also pin To it is new treat that deployment services device is reached the standard grade, some have been reached the standard grade treats that deployment services device is offline or treat the installation of deployment services device Service describing script carries out the situation such as changing, and improves its execution efficiency.
According to one embodiment of present invention, the device 700 can also include:
Device (lower referred to as " the goal description reception dress for the goal description that deployment services device is changed is treated for receiving Put ");
Device (lower abbreviation " job order disassembling apparatus ") for the goal description to be disassembled into multiple tasks list, each Job order includes a task, and each task includes multiple subtasks;
For allowing each task that the multiple job order includes to enter the device (lower referred to as " dress of queuing up of task queue queuing Put ");
Distribute the device (lower abbreviation " course allocation device ") of a process respectively for each task for queuing, wherein, There are multiple threads in one process, each subtask that scheduling enters in the task of process respectively enters multiple threads in the process One of, in each thread, the subtask that will enter thread be put into central control server, by the subtask it is related wait dispose Agency on server pulls the subtask and treats to perform on deployment services device to described.
Goal description reception device, which is used to receive, treats the goal description that deployment services device is changed.
In one embodiment, treating deployment services device and change includes at least one of the following:Treat deployment clothes The service describing script installed on business device is changed, to that whether will treat that deployment services device is connected to central control server and become The packet move, treated described in deployment services device is changed.
The service describing script progress variation installed on deployment services device is treated to refer to:Deployment services devices is treated to networking Internal environment is carried out after unified plan (such as unified initialization, unification) using method as described above, due to a variety of originals Because (such as to treat that the description script of deployment services device deployment is wrong before finding, or needing to treat deployment services device portion The description script of administration is upgraded), it is necessary to be changed to being deployed in the service describing script treated on deployment services device.It is this to become It is dynamic to include at least one in increase, deletion, change.For example, treating the new service describing script of deployment services device increase, deleting Treat some service describing scripts deployed on deployment services device, will treat that some services deployed on deployment services device are retouched The content for stating script makes new content into.
To that whether will treat that deployment services device is connected to central control server progress variation and referred to:Deployment services are treated to networking The internal environment of device is carried out after unified plan (such as unified initialization, unification) using method as described above, is found again Need to treat that deployment services device is connected to central control server, or certain by what a certain script was not connected to central control server One be already connected to central control server and deploy service describing script treat that deployment services device is no longer required connect to Central control server, then need to that whether will treat that deployment services device is connected to central control server and changed.It is this to change Including at least one in increase, deletion, change.For example, by a certain script be not connected to central control server wait dispose Server is connected to central control server (reaching the standard grade), by it is a certain be already connected to central control server treat deployment services device with Central control server disconnects (offline), or is connected to treating that deployment services device changes and being connected to for a certain central control server by former Another central control server.
Packet refers to treat the group belonging to deployment services device in the network shown in fig. 1.In the network shown in fig. 1, for To treating with like attribute, the demand that deployment services device is classified is considered, it is necessary to deployment services will be treated with like attribute Device is divided into one group.For example, enterprise servers are divided into one group, home server is divided into one group.This allows for enterprise customer and family The characteristics of front yard user etc. may have different in environment deployment or server change management and demand.Treat deployment services device institute The packet of category carries out variation and referred to:Treat the packet described in deployment services device and increased, deleted, change at least one. For example, only two kinds of packets of enterprise servers and home server, now increase this packet of organ's server originally;It is former To have enterprise servers, home server, the three kinds of packets of organ's server, this packet of organ's server is deleted Remove;Originally certain treats that deployment services device belongs to enterprise servers, is now changed to belong to home server.
Treating the goal description that deployment services device changed refers to keeper on tactical management platform 1 on treating portion The service describing script installed on administration's server is changed, to that whether will treat that deployment services device is connected to central control server and entered Row changes, treated the description for the demand that the packet described in deployment services device is changed.For example, keeper needs a point increase in 2 days 100 are treated that deployment services device is reached the standard grade, wherein reaching the standard grade within first day 40, are reached the standard grade within second day 60, then the description is potentially included:2 days (may also include specific which two days), increase by 40 in first day be reached the standard grade, increase by 60 in second day is reached the standard grade, this 40 and 60 treat portion Affix one's name to the mark of server.For another example, keeper needs to change 1000 clothes for treating to install on deployment services device reached the standard grade in 3 days Business description script is simultaneously modified to this 1000 packets treated belonging to deployment services device, wherein first day changes 200, second It changes 300, changes 500 within the 3rd day, then the description includes:(may also include specific which 3 days), change in first day in 3 days Change for 200, second day 300, the 3rd day change 500, this 200,300,500 treat deployment services device mark, by its On any partial service description be substituted for which type of service describing, this 200,300,500 treat that deployment services device will be modified to Packet.Typically can by allow keeper fill in the page input frame form.If being presented in the page shown to keeper Dry input frame, is respectively used to the content required in keeper's input above goal description, after keeper fills in, the content filled in Machine understandable language is compiled into, just turns into the goal description.
Job order disassembling apparatus is used to the goal description disassembling into multiple tasks list, and each job order includes one and appointed Business, each task includes multiple subtasks.
Include treating the goal description that the service describing script installed on deployment services device changed in goal description, it is right Whether will treat that deployment services device is connected to the goal description that central control server is changed, treats dividing belonging to deployment services device In the case of organizing at least two in the goal description changed, the service installed on deployment services device can be treated and retouched State goal description that script changed, to whether will treat that deployment services device is connected to the target that central control server is changed Describe, treat the goal description that the packet belonging to deployment services device changed and split into different job orders respectively.For example, will be right Treat that the goal description that the service describing script installed on deployment services device is changed splits into a job order, treat deployment services The task that the service describing script installed on device is changed is the task in job order;Will be to that whether will treat that deployment services device connects A job order is splitted into the goal description that central control server is changed, to that whether will treat that deployment services device is connected to center Task of controlling server to be changed is the task in job order;The packet treated belonging to deployment services device is changed Goal description splits into a job order, and it is appointing in job order to treat the task that the packet belonging to deployment services device changed Business.
Task that the goal description that the service describing script installed on deployment services device changed is related to will be treated, to being It is no to treat that deployment services device is connected to the task that the goal description that central control server changed is related to, treats deployment services device During the task that the goal description that described packet is changed is related to is individually placed to the different task list that is performed successively after arriving first Benefit be to realize task mutual exclusion, it is ensured that the uniformity of tasks carrying, prevent for example to it is a certain treating on deployment services device pacify The service describing script of dress makes this treat deployment services device offline conflict situations when being updated, kept for appointing for different levels Business all obtains orderly execution, without clashing, causes mistake.
Description in work of the goal description comprising some batches and ability after must having been performed in the work of a batch When carrying out the work of next batch, the work of each batch can be placed in a job order, be used as a task.Example Which such as, include 2 days (may also include specific two days), increase by 40 in first day in goal description to reach the standard grade, increase by 60 within second day Reach the standard grade, in the case of this 40 and 60 marks for treating deployment services device, increase by 40 in first day, which is reached the standard grade, to be splitted into first and appoint Business is single, and this 40 are reached the standard grade as a task;Increase by 60 in second day is reached the standard grade for splitting into and being later than that first job order perform Two job orders, this 60 are reached the standard grade as a task.
Often it is related to the work of a server in task as a subtask.
With it is above-mentioned by first day increase by 40 reach the standard grade split into first job order, by second day increase by 60 reach the standard grade split into it is late Exemplified by second job order that first job order is performed.Reached the standard grade for 40 of first day, this 40 each is reached the standard grade As a subtask, 40 subtasks altogether;Reached the standard grade for 60 of second day, this 60 each is reached the standard grade as one Subtask, altogether 60 subtasks.
Line-up device is used to allow each task that the multiple job order includes to queue up into task queue.
In one embodiment, line-up device is further used for:According to pre-determined order, the multiple job order is allowed Including each task into task queue queue up.
For example, splitting into one the goal description that the service describing script installed on deployment services device changed will be treated Job order, by whether will treat that deployment services device is connected to the goal description that central control server changed and splits into a task Singly, in the case of the goal description that the packet treated belonging to deployment services device is changed being splitted into a job order, in advance really Fixed order is:Allow and treat the job order that the goal description that the service describing script installed on deployment services device changed is splitted into In task come foremost, allow to whether will treat that deployment services device is connected to the target that central control server changed and retouched Stating in the job order splitted into for task comes next, allows the goal description for being changed the packet treated belonging to deployment services device Task in the job order splitted into comes finally.It is of course also possible to which other orders are determined in advance.So, each task is in task The order that queue is queued up is exactly the order that they are performed.
For another example splitting into first job order, by second day 60 platform of increase in above-mentioned increase by 40 in first day is reached the standard grade Line, which is splitted into, to be later than in the example for second job order that first job order is performed, and pre-determined order is:Allow increasing in first day Plus before the task in 40 job orders reached the standard grade comes, allow before the task in the job order that increase by 60 in second day reaches the standard grade comes Face.
Course allocation device is used to distribute a process respectively for each task queued up, wherein, have multiple in a process Thread, each subtask that scheduling enters in the task of process respectively enters one of multiple threads in the process, in each thread In, the subtask for entering thread is put into central control server, by the related agency treated on deployment services device in the subtask The subtask is pulled to treat to perform on deployment services device to described.
With it is above-mentioned by first day increase by 40 reach the standard grade split into first job order, by second day increase by 60 reach the standard grade split into it is late Exemplified by second job order that first job order is performed.Reached the standard grade for 40 of first day, this 40 each is reached the standard grade As a subtask, 40 subtasks altogether, the T50 that is expressed as T1, T2 ....There are 5 thread P1- in corresponding process P5.First scheduling subtask T1, T2, T3, T4, T5 respectively enters process P1, P2, P3, P4, P5.Which thread in five threads It has been first carried out that, all dispatch next subtask into the thread.For example, thread P3 has first carried out subtask T3, just behind scheduling Subtask T6 enter P3.Then, thread P2 has performed subtask T2 again, and just the subtask T7 of scheduling below enters P2.So, Just utilize thread parallel so that disposal ability is maximized, and substantially increases tasks carrying efficiency in job order.
In mission thread, the entering thread of the task is put into central control server 2, portion is treated by subtask correlation Agency 4 on administration's server 3 pulls this and treats to perform on deployment services device 3 into the subtask to described.For example, subtask T1 is Treat deployment services device C1 to be reached the standard grade, responsible connection treats that deployment services device C1 central control server is S1.In subtask T1 enter thread P1 after, subtask T1 is just put into central control server S1, by treat on deployment services device C1 act on behalf of A1 from Pulled on central control server S1 subtask T1 to treat on deployment services device C1 perform.
By above-mentioned automation process, solve some it is new treat deployment services device need to add network (reaching the standard grade), some That has reached the standard grade treats that deployment services device needs the service describing script for exitting network (offline) or treating the installation of deployment services device to enter The problem of prior art needs artificial execution, inefficiency one by one under the situations such as row variation.The present invention by that will treat portion automatically The purpose that is changed of administration's server describes to disassemble into job order, and allows the task queue of job order, and the subtask of task is automatic Performed into parallel thread, improve and treat the treatment effeciency that deployment services device is changed, while improving at collaborative Reason degree.
In one embodiment, the present apparatus is further used for:After the first task of Queue sequence has been performed in process, row The posterior task of team's order could enter process and perform.
For example, it is above-mentioned by first day increase by 40 reach the standard grade split into first job order, by second day increase by 60 reach the standard grade Split into and be later than in the example for second job order that first job order is performed, in task queue, allowing first day increases by 40 Before task in the job order reached the standard grade comes, allow before the task in 60 job orders reached the standard grade of increase in second day comes. After 40 tasks carryings reached the standard grade are complete, 60 reaching the standard grade for tasks could enter process and perform.
In this way, the problems such as gray scale is changed is solved.Gray scale change is change by several times in batches.For example, right All service describing scripts for treating to be installed on deployment services device of reaching the standard grade carry out 20%, 50%, 100% change, i.e., first will be all Reach the standard grade and treat 20% to treat that the service describing script that deployment services device is installed is changed in deployment services device, observe this and 20% treat portion Affix one's name to the reaction of server.If reaction is good, just all reach the standard grade is treated 50% to treat the installation of deployment services device in deployment services device Service describing script changed, that is, add 30% treat deployment services device install service describing script changed.If This 50% treats that deployment services device still reacts good, and all reach the standard grade just is treated into the service describing script that deployment services device is installed is carried out Change, that is, add 50% and treat that the service describing script that deployment services device is installed is changed.Gray scale reaches the standard grade what is changed as gray scale A kind of special case, refers to reaching the standard grade in batches by several times.For example, to treat that deployment services device is reached the standard grade to progress 20%, 50%, 100%, i.e., Needing of will first reaching the standard grade the 20% of deployment services device treats that deployment services device is reached the standard grade, and observes this and 20% treats the anti-of deployment services device Should.If reaction is good, needing of will just reaching the standard grade the 50% of deployment services device treats that deployment services device is reached the standard grade, i.e., additional 30% Treat that deployment services device is reached the standard grade.If 50% treats that deployment services device still reacts good, what will just be reached the standard grade needs portion Administration's server is reached the standard grade, that is, is added 50% and treated that deployment services device is reached the standard grade.
For example, 50 servers that to reach the standard grade, on December 26th, 2016, on December 27th, 2016, on December 28th, 2016 The gray scale for carrying out 20%, 50%, 100% is reached the standard grade.That is, what will first be reached the standard grade needs the 20% of deployment services device 50 Reach the standard grade, i.e., 10 are reached the standard grade, and as first job order, its task comes foremost in task queue.If reaction is good, then Additional 30% treats that deployment services device, i.e., 15 are reached the standard grade, as second job order, during its task comes in task queue Between.If still reacting good, the deployment services device 50 that needs that will just reach the standard grade is reached the standard grade, i.e., adding 25 again reaches the standard grade, and makees For the 3rd job order, its task comes finally in task queue.First dispatch 10 reaching the standard grade for tasks and enter correspondence process, entirely After portion has been performed, 15 reaching the standard grade for tasks could enter correspondence process, and after all having performed, the task that 25 platforms are reached the standard grade can just be entered Enter correspondence process.
The benefit of above-mentioned flow be make gray scale change (gray scale reach the standard grade be gray scale change special case) can automated execution, carry The efficiency of high gray scale change.In the prior art, gray scale becomes and artificially manipulated with greater need for keeper, selects a task and is performed, After being carried out Deng the subtask in the task, then select a task and performed, by that analogy, thus reach that gray scale is changed Purpose.The present invention is by above-mentioned flow, the efficiency crossed process automation, improve gray scale change for allowing gray scale to change.
Fig. 7 shows the block diagram suitable for being used for the example devices 12 for realizing embodiment of the present invention.The equipment that Fig. 7 is shown 12 be only an example, should not carry out any limitation to the function of the embodiment of the present invention and using range band.
As shown in fig. 7, equipment 12 is showed in the form of universal computing device.The component of equipment 12 can include but not limit In:One or more processor or processing unit 16, system storage 28, connection different system component (including system is deposited Reservoir 28 and processing unit 16) bus 18.
Bus 18 represents the one or more in a few class bus structures, 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.Lift For example, these architectures include but is not limited to industry standard architecture (ISA) bus, MCA (MAC) Bus, enhanced isa bus, VESA's (VESA) local bus and periphery component interconnection (PCI) bus.
Equipment 12 typically comprises various computing systems computer-readable recording medium.These media can be it is any can be by equipment 12 The usable medium of access, including volatibility and non-volatile media, moveable and immovable medium.
System storage 28 can include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Computer system/central control server 12 may further include Other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, storage system 34 It can be used for reading and writing immovable, non-volatile magnetic media (Fig. 7 is not shown, is commonly referred to as " hard disk drive ").Although Fig. 7 Not shown in, the disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, and it is right The CD drive of removable anonvolatile optical disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these feelings Under condition, each driver can be connected by one or more data media interfaces with bus 18.Memory 28 can include At least one program product, the program product has one group of (for example, at least one) program module, and these program modules are configured To perform the function of various embodiments of the present invention.
Program/utility 40 with one group of (at least one) program module 42, can be stored 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 The realization of network environment is potentially included in each or certain combination in module and routine data, these examples.Program mould Block 42 generally performs function and/or method in embodiment described in the invention.
Equipment 12 can also communicate with one or more external equipments 14 (such as keyboard, sensing equipment, display 24), Can also enable a user to the equipment communication interacted with the equipment 12 with one or more, and/or with enable the equipment 12 with Any equipment (such as network interface card, modem etc.) communication that one or more of the other computing device is communicated.It is this logical Letter can be carried out by input/output (I/O) interface 22.Also, equipment 12 can also by network adapter 20 and one or The multiple networks of person (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communicate.As illustrated, Network adapter 20 is communicated by bus 18 with other modules of equipment 12.It should be understood that although not shown in the drawings, can combine Equipment 12 uses other hardware and/or software module, includes but is not limited to:Microcode, device driver, redundant processing unit, External disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, thus perform various function application and Data processing, for example, realize a kind of server environment dispositions method.Here server environment, which refers to, treats deployment services device inner loop Border, including each configuration parameter in deployment services device, the operating system installed etc. are treated, these all treat number in deployment services device Material impact is produced according to the operation with application.Methods described includes:
The service describing script for treating deployment services device context initialization write as with installation function is broken into initialization Service describing bag;
The initialization service describing bag is published to central control server, to treat the agency of deployment services device installation The initialization service describing bag is pulled from central control server, calls installation function that institute is installed on deployment services device is treated The service describing script in initialization service describing bag is stated, deployment services device context initialization is treated so as to perform.
These steps are described in detail below.
First, the service describing script for being used to treat deployment services device context initialization write as with installation function is broken into just Beginningization service describing bag.
It is install () to install function, is the function that is performed in heartbeat when carrying out initialization context, it would be desirable to it is initial Change logic to write in function.In this manner it is possible to directly be write as the clothes for treating deployment services device context initialization with installation function Business description script.The example for being used to treat the service describing script of deployment services device context initialization write as with install () Son is such as:
In one embodiment, by the service describing script write as break into initialization service describing bag method be:It will write Into service describing script add perform script function needed for Basic application and required system file break into bag.Perform Basic application needed for script function is such as required various functions.Required system file be packing when can add automatically be System file, this is well known to the art.Breaking into the benefit of the bag of a unified form is, unified various service scenarios The form of lower distribution service describing or service describing script, makes the distribution of service describing standardize.
Then, the initialization service describing bag is published to central control server, to treat that deployment services device is installed Agency pulled from central control server it is described initialization service describing bag, installation function is called on deployment services device is treated Service describing script in the initialization service describing bag is installed, deployment services device context initialization is treated so as to perform.
Break into after initialization service describing bag, tactical management platform 1 is published to central control by service describing bag is initialized Server 2.Central control server subordinate respectively treats that the agency 4 that deployment services device 3 is installed pulls institute from central control server 2 State initialization service describing bag.Due to there is the Basic application needed for perform script function in the initialization service describing bag that breaks into, Agency 4 can call installation function therein to install the service in the initialization service describing bag on deployment services device 3 is treated Description script.The result for performing the service describing script is exactly to complete to treat the context initialization of deployment services device 3.
If treating no initializtion before deployment services device 3, directly invoke installation function and service describing script is installed and held Initialization can be completed after row.If initialized before treating deployment services device 3, need first to call unloading function The already present service describing script of deployment services device 3 itself is treated in uninstall () unloadings.Unload the one of function uninstall () Individual specific example is for example:
In another embodiment, methods described also includes:
By the service describing pin for being used to make respectively to treat the parameter unification in deployment services device environment write as with installation function Originally unification service describing bag is broken into;
The unification service describing bag is published to central control server, to treat the agency of deployment services device installation The unification service describing bag is pulled from central control server, calls installation function that institute is installed on deployment services device is treated The service describing script in unification service describing bag is stated, ambient parameter and the institute for checking that deployment services device is treated in function inspection is called Whether the ambient parameter stated in the service describing script in unification service describing bag changes, and in the event of changing, calls Refreshed using function with the ambient parameter in the service describing script in the unification service describing bag and treat deployment services device Ambient parameter.
These steps are described in detail below.
First, it will be write as with installation function for retouching the service for respectively treating the parameter unification in deployment services device environment State script and break into unification service describing bag.
Make respectively to treat that the parameter unification in deployment services device environment is meant that:To respectively treating that deployment services device environment is carried out After initialization, due to respectively treating that user may voluntarily have adjusted some ambient parameters to deployment services device in use, or Treat that deployment services device user has downloaded some applications and applied and have modified some ambient parameters, often occur and respectively treat deployment services In the case that device ambient parameter becomes inconsistent again, make respectively to treat the parameter unification in deployment services device environment i.e. in these environment Them are made to become consistent again in the case that parameter is inconsistent.
Service describing script for making respectively to treat the parameter unification in deployment services device environment is still with installation function Install () is write as.The logic for making respectively to treat parameter unification needs in deployment services device environment is write in function.This Sample, it is possible to directly write as the service describing pin for making respectively to treat the parameter unification in deployment services device environment with installation function This.The one of the service describing script for making respectively to treat the parameter unification in deployment services device environment write as with install () Individual example is such as:
In one embodiment, the method for the service describing script write as being broken into unification service describing bag is:It will write Into service describing script add perform script function needed for Basic application and required system file break into bag.Perform Basic application needed for script function is such as required various functions.Required system file be packing when can add automatically be System file, this is well known to the art.Breaking into the benefit of the bag of a unified form is, unified various service scenarios The form of lower distribution service describing or service describing script, makes the distribution of service describing standardize.
Then, the unification service describing bag is published to central control server, to treat that deployment services device is installed Agency the unification service describing bag is pulled from central control server, installation function is called on deployment services device is treated Service describing script in the unification service describing bag is installed, the environment ginseng for checking that deployment services device is treated in function inspection is called Whether number changes with the ambient parameter in the service describing script in the unification service describing bag, in the event of change Change, call to refresh using ambient parameter of the function in the service describing script in the unification service describing bag and treat deployment clothes The ambient parameter of business device.
Break into after unification service describing bag, unification service describing bag is published to central control by tactical management platform 1 Server 2.Central control server subordinate respectively treats that the agency 4 that deployment services device 3 is installed pulls institute from central control server 2 State unification service describing bag.Due to there is the Basic application needed for perform script function in the unification service describing bag that breaks into, Agency 4 can call installation function therein to install the service in the unification service describing bag on deployment services device 3 is treated Description script.Then, call and check that function check () checks the ambient parameter for treating deployment services device and the unification service Whether the ambient parameter in service describing script in description bag changes.Check function check () specific example Son is for example:
If treating the ambient parameter of deployment services device and the unification service describing using checking that function check () is checked The result whether ambient parameter in service describing script in bag changes is to be changed, then calls and apply function Apply () is refreshed with the ambient parameter in the service describing script in the unification service describing bag treats deployment services device Ambient parameter.Using function apply () a specific example for example:
In another embodiment, methods described includes:
It will be write as with installation function for making to treat that the special services in deployment services device environment keep the clothes of starting state Business description script breaks into service keep-alive service describing bag;
The service keep-alive service describing bag is published to central control server, to treat the generation of deployment services device installation Reason pulls the service keep-alive service describing bag from central control server, and installation function peace is called on deployment services device is treated The service describing script in the service keep-alive service describing bag is filled, calls function of state treating that deployment services device inspection service retouches Stating needs whether the service for keeping starting state keeps starting state in script, and calls run function to need to keep starting shape State and not actuated service starts.
These steps are described in detail below.
First, it will be write as with installation function for making to treat that the special services in deployment services device environment keep starting state Service describing script break into service keep-alive service describing bag.
Make to treat that the special services in deployment services device environment keep starting state, that is, service keep-alive, refer to:Treat deployment services Some of device environment is serviced, in use, and (for example GPS function users may for keeper's closing of possible being serviced device Can close), but some services may precisely service most important (such as GPS functions) for platform is constantly improve, and platform may Wish that the specific function for each treating deployment services device is always maintained at starting, accordingly, it would be desirable to keep-alive be serviced, for some specific clothes Business, makes it unanimously start in deployment services device environment is treated.
For making to treat that the special services in deployment services device environment keep the service describing script of starting state to be still with peace What dress function install () was write as.It will make to treat that special services in deployment services device environment keep the logic of starting state needs Write in function.In this manner it is possible to directly be write as with installation function for making to treat that the special services in deployment services device environment are protected Hold the service describing script of starting state.
In one embodiment, by the service describing script write as break into service keep-alive service describing bag method be:Will The service describing script write as breaks into bag plus the Basic application and required system file needed for perform script function.Hold Basic application needed for row script function is such as required various functions.Required system file can be added automatically when packing System file, this is well known to the art.Breaking into the benefit of the bag of a unified form is, unified various service fields Distribute the form of service describing or service describing script under scape, the distribution of service describing is standardized.
Then, the service keep-alive service describing bag is published to central control server, to treat that deployment services device is pacified The agency of dress pulls the service keep-alive service describing bag from central control server, and installation is called on deployment services device is treated Function installs the service describing script in the service keep-alive service describing bag, calls function of state treating deployment services device inspection Need to keep whether the service of starting state keeps starting state in service describing script, and call run function to need holding Starting state and not actuated service starts.
Break into after service keep-alive service describing bag, tactical management platform 1 is published to center by keep-alive service describing bag is serviced Control server 2.Central control server subordinate respectively treats that the agency 4 that deployment services device 3 is installed pulls up from central control server 2 Take the service keep-alive service describing bag.Due to there is the base needed for perform script function in the service keep-alive service describing bag that breaks into Plinth program, agency 4 can call installation function therein to install the service keep-alive service describing bag on deployment services device 3 is treated In service describing script.Then, function of state status () is called to be needed in treating that deployment services device checks service describing script Keep whether the service of starting state keeps starting state, if being not maintained in starting state, call run function start () will need to keep starting state and not actuated service starts.In addition, calling function of state status () portion can also treated Whether administration's server checks the service that starting state need not be kept in service describing script in not starting state, if started State, can also call stopping function stop () to close these services.
In the embodiment of the present invention, for each service in the internal environment deployment and management of server, such as inner loop Border initialization, unification, service keep-alive, all gone with unified service describing specification it, for example retouched with the service of being write as of installation function Script is stated, and is wrapped into, the service describing bag is then published to central control server, to treat that deployment services device is pacified The agency of dress pulls the service describing bag from central control server, calls installation function to install on deployment services device is treated Service describing script in the service describing bag, treats that deployment services device context initialization, unification or service are protected so as to perform It is living.So, each service in the internal environment for the treating deployment services device deployment and management for networking is allowed for, all with rule Plasticity and uniformity.
In the embodiment of the present invention, service describing bag is distributed to central control server and then allowed and treats that deployment services device is installed Agency pull and can use two kinds of http modes and p2p modes.For smaller bag, http modes are fairly simple effectively; For than larger bag, such as the bag of several G bits, such as delivery of services of baseenv can be distributed using p2p modes.
Furthermore it is possible to reserved area, i.e. index area be set in central control server, for depositing each service describing bag (unification service describing bag, initialization service describing bag, service keep-alive service describing bag) is placed on central control server Positional information, to treat that the agency that deployment services device is installed pulls each service according to the positional information from central control server Description bag.The index area can also place the version number of each service describing bag.Here is an example of the content of index area storage Son:
Above example presses unification service describing bag, initialization service describing bag, services the suitable of keep-alive service describing bag Sequence describes address and the version number that each service describing bag is deposited on central control server.From center, control is serviced agency 4 When device 2 pulls service describing bag, first obtaining its service describing bag to be pulled from the index area (for example initializes service describing Bag) address deposited on central control server, then find the service describing bag by the address and pulled, reach convenience Agency pulls the effect of service describing bag.
The above method is mainly used in carrying out unified plan to the internal environment for treating deployment services device of networking, for example, unify just Beginningization, unification etc..But after unified plan, still have some and new treat that deployment services device needs to add network (reaching the standard grade), one That has reached the standard grade a bit treats that deployment services device needs to exit network (offline) or treat the service describing script of deployment services device installation Change etc., prior art is for such situation, it is necessary to which artificial carried out, and execution efficiency is low.The embodiment of the present invention can also pin To it is new treat that deployment services device is reached the standard grade, some have been reached the standard grade treats that deployment services device is offline or treat the installation of deployment services device Service describing script carries out the situation such as changing, and improves its execution efficiency.
According to one embodiment of present invention, this method can also include:
The goal description that deployment services device is changed is treated in reception;
The goal description is disassembled into multiple tasks list, each job order includes a task, and each task includes many Individual subtask;
Each task that the multiple job order includes is allowed to be queued up into task queue;
A process is distributed respectively for each task of queuing, wherein, there are multiple threads in a process, scheduling enters process Task in each subtask respectively enter one of multiple threads in the process, in each thread, the son of thread will be entered Task is put into central control server, and by the subtask, the related agency treated on deployment services device pulls the subtask described in Treat to perform on deployment services device.
These steps are described in detail below.
First, receive and treat the goal description that deployment services device is changed.
In one embodiment, treating deployment services device and change includes at least one of the following:Treat deployment clothes The service describing script installed on business device is changed, to that whether will treat that deployment services device is connected to central control server and become The packet move, treated described in deployment services device is changed.
The service describing script progress variation installed on deployment services device is treated to refer to:Deployment services devices is treated to networking Internal environment is carried out after unified plan (such as unified initialization, unification) using method as described above, due to a variety of originals Because (such as to treat that the description script of deployment services device deployment is wrong before finding, or needing to treat deployment services device portion The description script of administration is upgraded), it is necessary to be changed to being deployed in the service describing script treated on deployment services device.It is this to become It is dynamic to include at least one in increase, deletion, change.For example, treating the new service describing script of deployment services device increase, deleting Treat some service describing scripts deployed on deployment services device, will treat that some services deployed on deployment services device are retouched The content for stating script makes new content into.
To that whether will treat that deployment services device is connected to central control server progress variation and referred to:Deployment services are treated to networking The internal environment of device is carried out after unified plan (such as unified initialization, unification) using method as described above, is found again Need to treat that deployment services device is connected to central control server, or certain by what a certain script was not connected to central control server One be already connected to central control server and deploy service describing script treat that deployment services device is no longer required connect to Central control server, then need to that whether will treat that deployment services device is connected to central control server and changed.It is this to change Including at least one in increase, deletion, change.For example, by a certain script be not connected to central control server wait dispose Server is connected to central control server (reaching the standard grade), by it is a certain be already connected to central control server treat deployment services device with Central control server disconnects (offline), or is connected to treating that deployment services device changes and being connected to for a certain central control server by former Another central control server.
Packet refers to treat the group belonging to deployment services device in the network shown in fig. 1.In the network shown in fig. 1, for To treating with like attribute, the demand that deployment services device is classified is considered, it is necessary to deployment services will be treated with like attribute Device is divided into one group.For example, enterprise servers are divided into one group, home server is divided into one group.This allows for enterprise customer and family The characteristics of front yard user etc. may have different in environment deployment or server change management and demand.Treat deployment services device institute The packet of category carries out variation and referred to:Treat the packet described in deployment services device and increased, deleted, change at least one. For example, only two kinds of packets of enterprise servers and home server, now increase this packet of organ's server originally;It is former To have enterprise servers, home server, the three kinds of packets of organ's server, this packet of organ's server is deleted Remove;Originally certain treats that deployment services device belongs to enterprise servers, is now changed to belong to home server.
Treating the goal description that deployment services device changed refers to keeper on tactical management platform 1 on treating portion The service describing script installed on administration's server is changed, to that whether will treat that deployment services device is connected to central control server and entered Row changes, treated the description for the demand that the packet described in deployment services device is changed.For example, keeper needs a point increase in 2 days 100 are treated that deployment services device is reached the standard grade, wherein reaching the standard grade within first day 40, are reached the standard grade within second day 60, then the description is potentially included:2 days (may also include specific which two days), increase by 40 in first day be reached the standard grade, increase by 60 in second day is reached the standard grade, this 40 and 60 treat portion Affix one's name to the mark of server.For another example, keeper needs to change 1000 clothes for treating to install on deployment services device reached the standard grade in 3 days Business description script is simultaneously modified to this 1000 packets treated belonging to deployment services device, wherein first day changes 200, second It changes 300, changes 500 within the 3rd day, then the description includes:(may also include specific which 3 days), change in first day in 3 days Change for 200, second day 300, the 3rd day change 500, this 200,300,500 treat deployment services device mark, by its On any partial service description be substituted for which type of service describing, this 200,300,500 treat that deployment services device will be modified to Packet.Typically can by allow keeper fill in the page input frame form.If being presented in the page shown to keeper Dry input frame, is respectively used to the content required in keeper's input above goal description, after keeper fills in, the content filled in Machine understandable language is compiled into, just turns into the goal description.
Then, the goal description is disassembled into multiple tasks list, each job order includes a task, each task bag Include multiple subtasks.
Include treating the goal description that the service describing script installed on deployment services device changed in goal description, it is right Whether will treat that deployment services device is connected to the goal description that central control server is changed, treats dividing belonging to deployment services device In the case of organizing at least two in the goal description changed, the service installed on deployment services device can be treated and retouched State goal description that script changed, to whether will treat that deployment services device is connected to the target that central control server is changed Describe, treat the goal description that the packet belonging to deployment services device changed and split into different job orders respectively.For example, will be right Treat that the goal description that the service describing script installed on deployment services device is changed splits into a job order, treat deployment services The task that the service describing script installed on device is changed is the task in job order;Will be to that whether will treat that deployment services device connects A job order is splitted into the goal description that central control server is changed, to that whether will treat that deployment services device is connected to center Task of controlling server to be changed is the task in job order;The packet treated belonging to deployment services device is changed Goal description splits into a job order, and it is appointing in job order to treat the task that the packet belonging to deployment services device changed Business.
Task that the goal description that the service describing script installed on deployment services device changed is related to will be treated, to being It is no to treat that deployment services device is connected to the task that the goal description that central control server changed is related to, treats deployment services device During the task that the goal description that described packet is changed is related to is individually placed to the different task list that is performed successively after arriving first Benefit be to realize task mutual exclusion, it is ensured that the uniformity of tasks carrying, prevent for example to it is a certain treating on deployment services device pacify The service describing script of dress makes this treat deployment services device offline conflict situations when being updated, kept for appointing for different levels Business all obtains orderly execution, without clashing, causes mistake.
Description in work of the goal description comprising some batches and ability after must having been performed in the work of a batch When carrying out the work of next batch, the work of each batch can be placed in a job order, be used as a task.Example Which such as, include 2 days (may also include specific two days), increase by 40 in first day in goal description to reach the standard grade, increase by 60 within second day Reach the standard grade, in the case of this 40 and 60 marks for treating deployment services device, increase by 40 in first day, which is reached the standard grade, to be splitted into first and appoint Business is single, and this 40 are reached the standard grade as a task;Increase by 60 in second day is reached the standard grade for splitting into and being later than that first job order perform Two job orders, this 60 are reached the standard grade as a task.
Often it is related to the work of a server in task as a subtask.
With it is above-mentioned by first day increase by 40 reach the standard grade split into first job order, by second day increase by 60 reach the standard grade split into it is late Exemplified by second job order that first job order is performed.Reached the standard grade for 40 of first day, this 40 each is reached the standard grade As a subtask, 40 subtasks altogether;Reached the standard grade for 60 of second day, this 60 each is reached the standard grade as one Subtask, altogether 60 subtasks.
Then, each task that the multiple job order includes is allowed to be queued up into task queue.
In one embodiment, according to pre-determined order, each task for allowing the multiple job order to include, which enters, appoints Business queue is queued up.
For example, splitting into one the goal description that the service describing script installed on deployment services device changed will be treated Job order, by whether will treat that deployment services device is connected to the goal description that central control server changed and splits into a task Singly, in the case of the goal description that the packet treated belonging to deployment services device is changed being splitted into a job order, in advance really Fixed order is:Allow and treat the job order that the goal description that the service describing script installed on deployment services device changed is splitted into In task come foremost, allow to whether will treat that deployment services device is connected to the target that central control server changed and retouched Stating in the job order splitted into for task comes next, allows the goal description for being changed the packet treated belonging to deployment services device Task in the job order splitted into comes finally.It is of course also possible to which other orders are determined in advance.So, each task is in task The order that queue is queued up is exactly the order that they are performed.
For another example splitting into first job order, by second day 60 platform of increase in above-mentioned increase by 40 in first day is reached the standard grade Line, which is splitted into, to be later than in the example for second job order that first job order is performed, and pre-determined order is:Allow increasing in first day Plus before the task in 40 job orders reached the standard grade comes, allow before the task in the job order that increase by 60 in second day reaches the standard grade comes Face.
Then, each task for queuing distributes a process respectively, wherein, have multiple threads in a process, dispatch into Enter each subtask in the task of process and respectively enter one of multiple threads in the process, in each thread, line will be entered The subtask of journey is put into central control server, and by the subtask, the related agency treated on deployment services device pulls the subtask Treat to perform on deployment services device to described.
With it is above-mentioned by first day increase by 40 reach the standard grade split into first job order, by second day increase by 60 reach the standard grade split into it is late Exemplified by second job order that first job order is performed.Reached the standard grade for 40 of first day, this 40 each is reached the standard grade As a subtask, 40 subtasks altogether, the T50 that is expressed as T1, T2 ....There are 5 thread P1- in corresponding process P5.First scheduling subtask T1, T2, T3, T4, T5 respectively enters process P1, P2, P3, P4, P5.Which thread in five threads It has been first carried out that, all dispatch next subtask into the thread.For example, thread P3 has first carried out subtask T3, just behind scheduling Subtask T6 enter P3.Then, thread P2 has performed subtask T2 again, and just the subtask T7 of scheduling below enters P2.So, Just utilize thread parallel so that disposal ability is maximized, and substantially increases tasks carrying efficiency in job order.
In mission thread, the entering thread of the task is put into central control server 2, portion is treated by subtask correlation Agency 4 on administration's server 3 pulls this and treats to perform on deployment services device 3 into the subtask to described.For example, subtask T1 is Treat deployment services device C1 to be reached the standard grade, responsible connection treats that deployment services device C1 central control server is S1.In subtask T1 enter thread P1 after, subtask T1 is just put into central control server S1, by treat on deployment services device C1 act on behalf of A1 from Pulled on central control server S1 subtask T1 to treat on deployment services device C1 perform.
By above-mentioned automation process, solve some it is new treat deployment services device need to add network (reaching the standard grade), some That has reached the standard grade treats that deployment services device needs the service describing script for exitting network (offline) or treating the installation of deployment services device to enter The problem of prior art needs artificial execution, inefficiency one by one under the situations such as row variation.The present invention by that will treat portion automatically The purpose that is changed of administration's server describes to disassemble into job order, and allows the task queue of job order, and the subtask of task is automatic Performed into parallel thread, improve and treat the treatment effeciency that deployment services device is changed, while improving at collaborative Reason degree.
In one embodiment, after the first task of Queue sequence has been performed in process, the posterior task of Queue sequence Process execution could be entered.
For example, it is above-mentioned by first day increase by 40 reach the standard grade split into first job order, by second day increase by 60 reach the standard grade Split into and be later than in the example for second job order that first job order is performed, in task queue, allowing first day increases by 40 Before task in the job order reached the standard grade comes, allow before the task in 60 job orders reached the standard grade of increase in second day comes. After 40 tasks carryings reached the standard grade are complete, 60 reaching the standard grade for tasks could enter process and perform.
In this way, the problems such as gray scale is changed is solved.Gray scale change is change by several times in batches.For example, right All service describing scripts for treating to be installed on deployment services device of reaching the standard grade carry out 20%, 50%, 100% change, i.e., first will be all Reach the standard grade and treat 20% to treat that the service describing script that deployment services device is installed is changed in deployment services device, observe this and 20% treat portion Affix one's name to the reaction of server.If reaction is good, just all reach the standard grade is treated 50% to treat the installation of deployment services device in deployment services device Service describing script changed, that is, add 30% treat deployment services device install service describing script changed.If This 50% treats that deployment services device still reacts good, and all reach the standard grade just is treated into the service describing script that deployment services device is installed is carried out Change, that is, add 50% and treat that the service describing script that deployment services device is installed is changed.Gray scale reaches the standard grade what is changed as gray scale A kind of special case, refers to reaching the standard grade in batches by several times.For example, to treat that deployment services device is reached the standard grade to progress 20%, 50%, 100%, i.e., Needing of will first reaching the standard grade the 20% of deployment services device treats that deployment services device is reached the standard grade, and observes this and 20% treats the anti-of deployment services device Should.If reaction is good, needing of will just reaching the standard grade the 50% of deployment services device treats that deployment services device is reached the standard grade, i.e., additional 30% Treat that deployment services device is reached the standard grade.If 50% treats that deployment services device still reacts good, what will just be reached the standard grade needs portion Administration's server is reached the standard grade, that is, is added 50% and treated that deployment services device is reached the standard grade.
For example, 50 servers that to reach the standard grade, on December 26th, 2016, on December 27th, 2016, on December 28th, 2016 The gray scale for carrying out 20%, 50%, 100% is reached the standard grade.That is, what will first be reached the standard grade needs the 20% of deployment services device 50 Reach the standard grade, i.e., 10 are reached the standard grade, and as first job order, its task comes foremost in task queue.If reaction is good, then Additional 30% treats that deployment services device, i.e., 15 are reached the standard grade, as second job order, during its task comes in task queue Between.If still reacting good, the deployment services device 50 that needs that will just reach the standard grade is reached the standard grade, i.e., adding 25 again reaches the standard grade, and makees For the 3rd job order, its task comes finally in task queue.First dispatch 10 reaching the standard grade for tasks and enter correspondence process, entirely After portion has been performed, 15 reaching the standard grade for tasks could enter correspondence process, and after all having performed, the task that 25 platforms are reached the standard grade can just be entered Enter correspondence process.
The benefit of above-mentioned flow be make gray scale change (gray scale reach the standard grade be gray scale change special case) can automated execution, carry The efficiency of high gray scale change.In the prior art, gray scale becomes and artificially manipulated with greater need for keeper, selects a task and is performed, After being carried out Deng the subtask in the task, then select a task and performed, by that analogy, thus reach that gray scale is changed Purpose.The present invention is by above-mentioned flow, the efficiency crossed process automation, improve gray scale change for allowing gray scale to change.
In addition, according to one embodiment of present invention, it is also proposed that a kind of computer-readable recording medium, it is stored thereon with Computer program, the program is realized when being executed by processor:
The service describing script for treating deployment services device context initialization write as with installation function is broken into initialization Service describing bag;
The initialization service describing bag is published to central control server, to treat the agency of deployment services device installation The initialization service describing bag is pulled from central control server, calls installation function that institute is installed on deployment services device is treated The service describing script in initialization service describing bag is stated, deployment services device context initialization is treated so as to perform.
Alternatively, also realized when the program is executed by processor:
By the service describing pin for being used to make respectively to treat the parameter unification in deployment services device environment write as with installation function Originally unification service describing bag is broken into;
The unification service describing bag is published to central control server, to treat the agency of deployment services device installation The unification service describing bag is pulled from central control server, calls installation function that institute is installed on deployment services device is treated The service describing script in unification service describing bag is stated, ambient parameter and the institute for checking that deployment services device is treated in function inspection is called Whether the ambient parameter stated in the service describing script in unification service describing bag changes, and in the event of changing, calls Refreshed using function with the ambient parameter in the service describing script in the unification service describing bag and treat deployment services device Ambient parameter.
Alternatively, also realized when the program is executed by processor:
It will be write as with installation function for making to treat that the special services in deployment services device environment keep the clothes of starting state Business description script breaks into service keep-alive service describing bag;
The service keep-alive service describing bag is published to central control server, to treat the generation of deployment services device installation Reason pulls the service keep-alive service describing bag from central control server, and installation function peace is called on deployment services device is treated The service describing script in the service keep-alive service describing bag is filled, calls function of state treating that deployment services device inspection service retouches Stating needs whether the service for keeping starting state keeps starting state in script, and calls run function to need to keep starting shape State and not actuated service starts.
Alternatively, also realized when the program is executed by processor:
The goal description that deployment services device is changed is treated in reception;
The goal description is disassembled into multiple tasks list, each job order includes a task, and each task includes many Individual subtask;
Each task that the multiple job order includes is allowed to be queued up into task queue;
A process is distributed respectively for each task of queuing, wherein, there are multiple threads in a process, scheduling enters process Task in each subtask respectively enter one of multiple threads in the process, in each thread, the son of thread will be entered Task is put into central control server, and by the subtask, the related agency treated on deployment services device pulls the subtask described in Treat to perform on deployment services device.
Each task for allowing the multiple job order to include, which enters task queue, which queues up, includes:According to pre-determined suitable Sequence, allows each task that the multiple job order includes to be queued up into task queue;
The step of each task for queuing distributes a process respectively includes:The first task of Queue sequence is in process It is middle performed after, the posterior task of Queue sequence could enter process perform.
Alternatively, treating deployment services device and change includes at least one of the following:Treat and pacify on deployment services device The service describing script of dress changed, to that whether will treat that deployment services device is connected to central control server and is changed, treats Packet belonging to deployment services device is changed.Each task for allowing the multiple job order to include is queued up into task queue The step of include:By treating, the task that the goal description that the service describing script installed on deployment services device changed is related to is first Task queue is put into, then by whether will treat that deployment services device is connected to the goal description that central control server changed and related to And task place into task queue, then by appointing that the goal description that the packet treated belonging to deployment services device is changed is related to Business is put into task queue.
Alternatively, the variation includes at least one in increase, deletion, change.
Alternatively, index area is provided with central control server, central control is placed on for depositing each service describing bag The positional information of server, to treat that the agency that deployment services device is installed pulls up according to the positional information from central control server Take each service describing bag.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, this hair Each bright device can be realized using application specific integrated circuit (ASIC) or any other similar hardware device.In one embodiment In, software program of the invention can realize steps described above or function by computing device.Similarly, it is of the invention Software program (including related data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory, Magnetically or optically driver or floppy disc and similar devices.In addition, some steps or function of the present invention can employ hardware to realize, example Such as, as coordinating with processor so as to performing the circuit of each step or function.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power Profit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.Any reference in claim should not be considered as to the claim involved by limitation.This Outside, it is clear that the word of " comprising " one is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in system claims is multiple Unit or device can also be realized by a unit or device by software or hardware.The first, the second grade word is used for table Show title, and be not offered as any specific order.

Claims (18)

1. a kind of server environment dispositions method, including:
The service describing script for being used to treat deployment services device context initialization write as with installation function is broken into initialization service Description bag;
The initialization service describing bag is published to central control server, to treat the agency of deployment services device installation therefrom The initialization service describing bag is pulled on centre control server, calls installation function installation described just on deployment services device is treated Service describing script in beginningization service describing bag, deployment services device context initialization is treated so as to perform.
2. according to the method described in claim 1, in addition to:
It will be write as with installation function for playing the service describing script for respectively treating the parameter unification in deployment services device environment Into unification service describing bag;
The unification service describing bag is published to central control server, to treat the agency of deployment services device installation therefrom The unification service describing bag is pulled on centre control server, calls installation function to install described one on deployment services device is treated Service describing script in causeization service describing bag, calls the ambient parameter and described one for checking that deployment services device is treated in function inspection Whether the ambient parameter in service describing script in causeization service describing bag changes, and in the event of changing, calls application Function refreshes the environment for treating deployment services device with the ambient parameter in the service describing script in the unification service describing bag Parameter.
3. according to the method described in claim 1, in addition to:
It will be write as with installation function for making to treat that the special services in deployment services device environment keep the service of starting state to retouch State script and break into service keep-alive service describing bag;
By it is described service keep-alive service describing bag be published to central control server, so as to treat deployment services device install agency from The service keep-alive service describing bag is pulled on central control server, calls installation function that institute is installed on deployment services device is treated The service describing script in service keep-alive service describing bag is stated, calls function of state treating deployment services device inspection service describing pin Need to keep whether the service of starting state keeps starting state in this, and call run function to need to keep starting state and Not actuated service starts.
4. according to the method described in claim 1, wherein, methods described also includes:
The goal description that deployment services device is changed is treated in reception;
The goal description is disassembled into multiple tasks list, each job order includes a task, and each task includes many height Task;
Each task that the multiple job order includes is allowed to be queued up into task queue;
A process is distributed respectively for each task of queuing, wherein, there are multiple threads in a process, scheduling enters appointing for process Each subtask in business respectively enters one of multiple threads in the process, in each thread, will enter the subtask of thread Central control server is put into, the related agency treated on deployment services device pulls the subtask and portion is treated described in by the subtask Affix one's name to and performed on server.
5. method according to claim 4, wherein, each task for allowing the multiple job order to include enters task team The step of row are queued up includes:According to pre-determined order, each task for allowing the multiple job order to include enters task queue Queue up;
The step of each task for queuing distributes a process respectively includes:The first task of Queue sequence is held in process After having gone, the posterior task of Queue sequence could enter process and perform.
6. method according to claim 4, wherein, treat deployment services device change include it is following at least one It is individual:The service describing script installed on deployment services device is treated to be changed, to that whether will treat that deployment services device is connected to central control The packet that control server changed, treated belonging to deployment services device is changed, and
The step of each task for allowing the multiple job order to include is queued up into task queue includes:Deployment services will be treated The task that the goal description that the service describing script installed on device is changed is related to first is put into task queue, then will to whether It will treat that deployment services device is connected to the task that the goal description that central control server changed is related to and places into task queue, then The task that the goal description that the packet treated belonging to deployment services device is changed is related to is put into task queue.
7. method according to claim 6, wherein, the variation includes at least one in increase, deletion, change.
8. the method according to any of claim 1-3, wherein, index area is provided with central control server, is used for Deposit the positional information that each service describing bag is placed on central control server, so as to treat deployment services device install agency according to The positional information pulls each service describing bag from central control server.
9. a kind of server environment disposes device, including:
For the service describing script for treating deployment services device context initialization write as with installation function to be broken into initialization The device of service describing bag;
For the initialization service describing bag to be published into central control server, to treat the agency of deployment services device installation The initialization service describing bag is pulled from central control server, calls installation function that institute is installed on deployment services device is treated The service describing script in initialization service describing bag is stated, so as to perform the device for treating deployment services device context initialization.
10. device according to claim 9, in addition to:
For that will be write as with installation function for making the service describing pin for respectively treating the parameter unification in deployment services device environment Originally the device of unification service describing bag is broken into;
For the unification service describing bag to be published into central control server, to treat the agency of deployment services device installation The unification service describing bag is pulled from central control server, calls installation function that institute is installed on deployment services device is treated The service describing script in unification service describing bag is stated, ambient parameter and the institute for checking that deployment services device is treated in function inspection is called Whether the ambient parameter stated in the service describing script in unification service describing bag changes, and in the event of changing, calls Refreshed using function with the ambient parameter in the service describing script in the unification service describing bag and treat deployment services device The device of ambient parameter.
11. device according to claim 9, in addition to:
For that will be write as with installation function for making to treat that the special services in deployment services device environment keep the clothes of starting state Business description script breaks into the device of service keep-alive service describing bag;
For the service keep-alive service describing bag to be published into central control server, to treat the generation of deployment services device installation Reason pulls the service keep-alive service describing bag from central control server, and installation function peace is called on deployment services device is treated The service describing script in the service keep-alive service describing bag is filled, calls function of state treating that deployment services device inspection service retouches Stating needs whether the service for keeping starting state keeps starting state in script, and calls run function to need to keep starting shape State and device that not actuated service starts.
12. device according to claim 9, in addition to:
The device for the goal description that deployment services device is changed is treated for receiving;
Device for the goal description to be disassembled into multiple tasks list, each job order includes a task, each task Including multiple subtasks;
For allowing each task that the multiple job order includes to enter the device that task queue is queued up;
Distribute the device of a process respectively for each task for queuing, wherein, have multiple threads in a process, dispatch into Enter each subtask in the task of process and respectively enter one of multiple threads in the process, in each thread, line will be entered The subtask of journey is put into central control server, and by the subtask, the related agency treated on deployment services device pulls the subtask Treat to perform on deployment services device to described.
13. device according to claim 12, wherein, each task for being used to allow the multiple job order to include enters The device that task queue is queued up is further used for:According to pre-determined order, each task for allowing the multiple job order to include Queued up into task queue;
It is described to be used to be further used for for the device that each task queued up distributes a process respectively:The first task of Queue sequence After having been performed in process, the posterior task of Queue sequence could enter process and perform.
14. device according to claim 12, wherein, treat deployment services device change include it is following at least one It is individual:The service describing script installed on deployment services device is treated to be changed, to that whether will treat that deployment services device is connected to central control The packet that control server changed, treated belonging to deployment services device is changed, and
The device queued up for each task for allowing the multiple job order to include into task queue is further used for:Will be right Treat that the task that the goal description that the service describing script installed on deployment services device is changed is related to first is put into task queue, so Afterwards by whether will treat that deployment services device is connected to the task that the goal description that central control server changed is related to and placed into Task queue, then the task that the goal description that the packet treated belonging to deployment services device is changed is related to is put into task team Row.
15. device according to claim 14, wherein, the variation includes at least one in increase, deletion, change.
16. the device according to any of claim 9-11, wherein, index area is provided with central control server, is used In the positional information for depositing each service describing bag and being placed on central control server, so as to treat agency that deployment services device installs by Each service describing bag is pulled from central control server according to the positional information.
17. a kind of equipment, including:
One or more processors;
Memory, be stored with one or more programs,
When one or more of programs are by one or more of computing devices, realize as any in claim 1-8 Described method.
18. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The method as described in any in claim 1-8 is realized during execution.
CN201710128395.7A 2017-03-06 2017-03-06 Server environment dispositions method and device Pending CN107066292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710128395.7A CN107066292A (en) 2017-03-06 2017-03-06 Server environment dispositions method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710128395.7A CN107066292A (en) 2017-03-06 2017-03-06 Server environment dispositions method and device

Publications (1)

Publication Number Publication Date
CN107066292A true CN107066292A (en) 2017-08-18

Family

ID=59621584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710128395.7A Pending CN107066292A (en) 2017-03-06 2017-03-06 Server environment dispositions method and device

Country Status (1)

Country Link
CN (1) CN107066292A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107621963A (en) * 2017-09-21 2018-01-23 深圳市买买提乐购金融服务有限公司 A kind of software deployment method, software deployment system and electronic equipment
CN107679691A (en) * 2017-09-01 2018-02-09 张武生 A kind of working equipment management method and system
CN107844374A (en) * 2017-11-02 2018-03-27 上海携程商务有限公司 The task executing method of terminal device, device, electronic equipment, storage medium
CN108989077A (en) * 2017-06-21 2018-12-11 北京视联动力国际信息技术有限公司 A kind of data processing method and device
CN110795125A (en) * 2019-10-21 2020-02-14 上海器魂智能科技有限公司 Software updating method, system, device and readable storage medium based on DevOps framework
CN111160525A (en) * 2019-12-17 2020-05-15 天津大学 Task unloading intelligent decision method based on unmanned aerial vehicle group in edge computing environment
CN111176661A (en) * 2019-12-31 2020-05-19 苏州浪潮智能科技有限公司 Method and device for deploying python operating environment in batches based on distributed crawler
CN111209122A (en) * 2019-12-24 2020-05-29 广州华多网络科技有限公司 Interface calling method and device, electronic equipment and storage medium
CN111209122B (en) * 2019-12-24 2024-06-11 广州华多网络科技有限公司 Interface calling method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345644A (en) * 2007-07-13 2009-01-14 盛大计算机(上海)有限公司 Server disposition system and method
CN101796523A (en) * 2007-09-26 2010-08-04 朗讯科技公司 Architecture and method for centralized system minimization and hardening management
CN102055799A (en) * 2010-12-09 2011-05-11 北京云快线软件服务有限公司 Content refreshing system
CN103914339A (en) * 2014-04-09 2014-07-09 百度在线网络技术(北京)有限公司 Server management system and server management method
CN104219329A (en) * 2014-09-28 2014-12-17 浪潮软件集团有限公司 Method for deploying service through content distribution in cluster server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345644A (en) * 2007-07-13 2009-01-14 盛大计算机(上海)有限公司 Server disposition system and method
CN101796523A (en) * 2007-09-26 2010-08-04 朗讯科技公司 Architecture and method for centralized system minimization and hardening management
CN102055799A (en) * 2010-12-09 2011-05-11 北京云快线软件服务有限公司 Content refreshing system
CN103914339A (en) * 2014-04-09 2014-07-09 百度在线网络技术(北京)有限公司 Server management system and server management method
CN104219329A (en) * 2014-09-28 2014-12-17 浪潮软件集团有限公司 Method for deploying service through content distribution in cluster server

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989077A (en) * 2017-06-21 2018-12-11 北京视联动力国际信息技术有限公司 A kind of data processing method and device
CN107679691A (en) * 2017-09-01 2018-02-09 张武生 A kind of working equipment management method and system
CN107679691B (en) * 2017-09-01 2020-09-15 张武生 Working equipment management method and system
CN107621963A (en) * 2017-09-21 2018-01-23 深圳市买买提乐购金融服务有限公司 A kind of software deployment method, software deployment system and electronic equipment
CN107621963B (en) * 2017-09-21 2020-11-27 深圳市融壹买信息科技有限公司 Software deployment method, software deployment system and electronic equipment
CN107844374A (en) * 2017-11-02 2018-03-27 上海携程商务有限公司 The task executing method of terminal device, device, electronic equipment, storage medium
CN110795125A (en) * 2019-10-21 2020-02-14 上海器魂智能科技有限公司 Software updating method, system, device and readable storage medium based on DevOps framework
CN111160525A (en) * 2019-12-17 2020-05-15 天津大学 Task unloading intelligent decision method based on unmanned aerial vehicle group in edge computing environment
CN111209122A (en) * 2019-12-24 2020-05-29 广州华多网络科技有限公司 Interface calling method and device, electronic equipment and storage medium
CN111209122B (en) * 2019-12-24 2024-06-11 广州华多网络科技有限公司 Interface calling method and device, electronic equipment and storage medium
CN111176661A (en) * 2019-12-31 2020-05-19 苏州浪潮智能科技有限公司 Method and device for deploying python operating environment in batches based on distributed crawler

Similar Documents

Publication Publication Date Title
CN107066292A (en) Server environment dispositions method and device
Pahl Containerization and the paas cloud
KR102319172B1 (en) Platform providing system based on cloud computing and platform provision method using the same
US9971593B2 (en) Interactive content development
CN110178357A (en) Cellular service based on cloud in the accessible cloud of remote equipment
CN107515776A (en) The uninterrupted upgrade method of business, node to be upgraded and readable storage medium storing program for executing
US20140351811A1 (en) Datacenter application packages with hardware accelerators
CN106790483A (en) Hadoop group systems and fast construction method based on container technique
US20050257219A1 (en) Multiple computer architecture with replicated memory fields
CN104272259B (en) System and method for supporting the route based on version in transaction middleware machine environment
WO2019060228A1 (en) Systems and methods for instantiating services on top of services
CN107534571A (en) Manage virtual network function
CN112988400B (en) Video memory optimization method and device, electronic equipment and readable storage medium
CN115328663A (en) Method, device, equipment and storage medium for scheduling resources based on PaaS platform
US20120117531A1 (en) Instantiating a Software Development Environment From an Environment Class
US10838977B2 (en) Key-value replication with consensus protocol
CN102317907A (en) Working environment generation system, working environment generation method, and storage medium
JPWO2012039053A1 (en) Computer system operation management method, computer system, and computer-readable medium storing program
CN103034526B (en) A kind of implementation method of virtualization services and device
CN105553732B (en) A kind of distributed network analogy method and system
CN113918281A (en) Method for improving cloud resource expansion efficiency of container
WO2017074469A1 (en) Cloud lifecycle management
Aliev et al. Virtualization technologies and platforms: Comparative overview and updated performance tests
CN113835897A (en) Method for allocating and using GPU resources on distributed computing cluster Kubernets
CN108140087A (en) Use the multi-tenant environment of the trust boundaries component of pre-read

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