Nothing Special   »   [go: up one dir, main page]

CN110231944A - Automatically dispose method, apparatus, system and computer readable storage medium - Google Patents

Automatically dispose method, apparatus, system and computer readable storage medium Download PDF

Info

Publication number
CN110231944A
CN110231944A CN201810179496.1A CN201810179496A CN110231944A CN 110231944 A CN110231944 A CN 110231944A CN 201810179496 A CN201810179496 A CN 201810179496A CN 110231944 A CN110231944 A CN 110231944A
Authority
CN
China
Prior art keywords
task
host
inventory
automatically dispose
type
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
CN201810179496.1A
Other languages
Chinese (zh)
Inventor
彭畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810179496.1A priority Critical patent/CN110231944A/en
Publication of CN110231944A publication Critical patent/CN110231944A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

This disclosure relates to which a kind of automatically dispose method, apparatus, system and computer readable storage medium, are related to field of computer technology.Disclosed method includes: to obtain the current environment type of automatically dispose;Corresponding host inventory is obtained according to current environment type;The each task and corresponding task label in automation deployment script are read, task label is used to indicate the environmental form that corresponding task is applicable in;Host into host inventory issues, and is used to indicate task corresponding to the task label of current environment type, and the automatically dispose of corresponding contents is carried out to realize host according to issuing for task.The automatically dispose that varying environment type can be realized in the disclosure using same automatically dispose script, reduces the complexity of automatically dispose, improves deployment efficiency, while can be improved the consistency of environment deployment on test environment and line, improves test accuracy rate.

Description

Automatically dispose method, apparatus, system and computer readable storage medium
Technical field
This disclosure relates to field of computer technology, in particular to a kind of automatically dispose method, apparatus, system and calculating Machine readable storage medium storing program for executing.
Background technique
Current internet is quickly grown, and the service mode of iteratively faster exploitation needs on Internet company's frequent updating line Service release is to meet the various urgent functional requirements of user.While the quality in order to guarantee online new function, test environment The service release with new function need to be constantly updated for verifying, therefore environment and test environment require constantly to update on line Service release.Exploitation automatically dispose script can reduce various faults as caused by manually disposing, and increasingly become vast The mode of Internet company's selection service arrangement.
Currently, the automatically dispose of environment and test environment is responsible for by different engineers respectively on line.Therefore, ring on line Border and test environment are individually disposed using different deployment scripts.
Summary of the invention
Inventor's discovery: under normal conditions, the adjustment of Conventional deployment operation needs while being applied to environment and test on line Environment.The scheme for individually being carried out automatically dispose using different deployment scripts using environment on line and test environment, is needed The deployment script of environment and test environment on line is adjusted simultaneously, and by multi-party engineer's coordinated, keeps deployment process cumbersome It is complicated.
A disclosure technical problem to be solved is: how to reduce environment and test environment on line and carries out jointly automatically Change the complexity of deployment.
According to some embodiments of the present disclosure, a kind of Automation arranging method for providing, comprising: obtain automatically dispose Current environment type;Corresponding host inventory is obtained according to current environment type;The items read in automation deployment script are appointed Business and corresponding task label, task label are used to indicate the environmental form that corresponding task is applicable in;Into host inventory Host issue, be used to indicate task corresponding to the task label of current environment type, with realize host according to issue appoint Business carries out the automatically dispose of corresponding contents.
In some embodiments, this method further include: obtain the current task type of automatically dispose;Task label is also used In the task type for indicating that corresponding task is applicable in;It includes: into host inventory that host into host inventory, which issues task, Host issue, be used to indicate task corresponding to the task label of current environment type and current task type.
In some embodiments, it includes: to skip the environmental form of instruction and work as that the host into host inventory, which issues task, Task corresponding to the task label of preceding environment type mismatch, by host of the remaining mission dispatching into host inventory.
In some embodiments, it includes: to skip the environmental form of instruction and work as that the host into host inventory, which issues task, Task corresponding to the task label of preceding environment type mismatch, and skip the task type and current task type mismatch of instruction Task label corresponding to task, by host of the remaining mission dispatching into host inventory.
In some embodiments, this method further include: obtain host inventory mark;It is obtained according to environmental form corresponding main Machine inventory includes: to obtain corresponding host inventory according to environmental form and host inventory mark.
In some embodiments, the host into host inventory issue task include: environmental form be line on environment In the case of, determine the task that the host into host inventory issues;Obtain each host flow of services corresponding with task;According to Each host, is divided into different batches by each host flow of services corresponding with task, is successively issued and is appointed to each batch Business, wherein the flow of services for receiving the host of task is switched on the host of other batches.
In some embodiments, environmental form includes environment and test environment on line;Task type include first deployment and Iteration deployment.
In some embodiments, in the case where environmental form is test environment, what the host into host inventory issued Task includes middleware services deployment task.
According to other embodiments of the disclosure, a kind of automatically dispose device for providing, comprising: configuration obtains module, For obtaining the current environment type of automatically dispose;Host inventory obtains module, for obtaining phase according to current environment type The host inventory answered;Script read module, for reading each task and corresponding task mark in automation deployment script Label, task label are used to indicate the environmental form that corresponding task is applicable in;Mission dispatching module, for into host inventory Host issues, and is used to indicate task corresponding to the task label of current environment type, to realize host according to issuing for task Carry out the automatically dispose of corresponding contents.
In some embodiments, configuration obtains the current task type that module is also used to obtain automatically dispose;Task mark Label are also used to indicate the task type that corresponding task is applicable in;Mission dispatching module is under the host into host inventory Hair, is used to indicate task corresponding to the task label of current environment type and current task type.
In some embodiments, environmental form and current environment type of the mission dispatching module for skipping instruction are not inconsistent Task corresponding to task label, by host of the remaining mission dispatching into host inventory.
In some embodiments, environmental form and current environment type of the mission dispatching module for skipping instruction are not inconsistent Task corresponding to task label, and skip corresponding to the task type of instruction and the task label of current task type mismatch Task, by host of the remaining mission dispatching into host inventory.
In some embodiments, configuration obtains module and is also used to obtain host inventory mark;Host inventory obtains module and uses According to environmental form and the corresponding host inventory of host inventory mark acquisition.
In some embodiments, mission dispatching module is used to determine in the case where environmental form is environment on line to master The task that host in machine inventory issues;Obtain each host flow of services corresponding with task;According to each host and task Each host is divided into different batches by corresponding flow of services, successively issues task to each batch, wherein is received and is appointed The flow of services of the host of business is switched on the host of other batches.
In some embodiments, environmental form includes environment and test environment on line;Task type include first deployment and Iteration deployment.
In some embodiments, in the case where environmental form is test environment, what the host into host inventory issued Task includes middleware services deployment task.
According to the other embodiment of the disclosure, a kind of computer readable storage medium provided is stored thereon with calculating Machine program realizes the Automation arranging method in any embodiment when the program is executed by processor.
According to the still other embodiments of the disclosure, a kind of automatically dispose device for providing, comprising: memory;And coupling It is connected to the processor of memory, processor is configured as executing based on the instruction being stored in memory devices as aforementioned any Automation arranging method in embodiment.
According to the other embodiment of the disclosure, a kind of automatically dispose system for providing, comprising: aforementioned any embodiment In automatically dispose device and host, for receive the task that automatically dispose device issues carry out corresponding contents from Dynamicization deployment.
The automatically dispose of varying environment type (for example, environment and test environment on line) can use same in the disclosure Automatically dispose script, the corresponding different task label of each task in automatically dispose script, task label are used for Indicate the environmental form that corresponding task is applicable in.Host inventory is obtained according to current environment type, is obtained according to task label It issues suitable for host of the task of current environment type into the host inventory, to realize the host according to issuing The automatically dispose of task progress corresponding contents.Varying environment class can be realized using same automatically dispose script in the disclosure The automatically dispose of type reduces the complexity of automatically dispose, improves deployment efficiency, while can be improved on test environment and line The consistency of environment deployment, improves test accuracy rate.
By the detailed description referring to the drawings to the exemplary embodiment of the disclosure, the other feature of the disclosure and its Advantage will become apparent.
Detailed description of the invention
In order to illustrate more clearly of the embodiment of the present disclosure or technical solution in the prior art, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Disclosed some embodiments for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 shows the flow diagram of the Automation arranging method of some embodiments of the present disclosure.
Fig. 2 shows the flow diagrams of the Automation arranging method of other embodiments of the disclosure.
Fig. 3 shows the structural schematic diagram of the automatically dispose device of some embodiments of the present disclosure.
Fig. 4 shows the structural schematic diagram of the automatically dispose device of other embodiments of the disclosure.
Fig. 5 shows the structural schematic diagram of the automatically dispose device of the other embodiment of the disclosure.
Fig. 6 shows the structural schematic diagram of the automatically dispose system of some embodiments of the present disclosure.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present disclosure, the technical solution in the embodiment of the present disclosure is carried out clear, complete Site preparation description, it is clear that described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Below Description only actually at least one exemplary embodiment be it is illustrative, never as to the disclosure and its application or making Any restrictions.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, belong to the disclosure protection range.
The disclosure provides a kind of Automation arranging method, is described below with reference to Fig. 1.
Fig. 1 is the flow chart of some embodiments of disclosure Automation arranging method.As shown in Figure 1, the method for the embodiment It include: step S102~S108.
In step s 102, the current environment type of automatically dispose is obtained.
The machine that staff carries out automatically dispose operation is properly termed as managing main frame, can show confession in managing main frame The interface that staff is operated.Staff can choose the current environment type disposed, ring according to demand Border type is for example including environment on line and test environment.In response to the operation of staff, the available automation of managing main frame The current environment type of deployment.
In step S104, corresponding host inventory is obtained according to current environment type.
Different environmental forms corresponds to different host (server) inventories.Host inventory can be only fitted to Automation It affixes one's name in script.For example, host inventory can be inventory in ansible frame, the environment on line can be set Inventory and inventory for testing environment.The inventory of environment stores the related configuration of host on line on line (such as port numbers, title etc.) can also store the address of other API (application programming interfaces), can use the form of domain name Storage.The related configuration (such as port numbers, title etc.) for testing the inventory storage test host of environment, can also store The address of other API can be stored in the form of IP address.
In some embodiments, multiple main frames inventory can also be configured for same environmental form.For example, by same environment The corresponding host of type is divided into multiple groups, and each group of host can dispose different contents.Staff can manage While configuring automatically dispose task on host, different host inventories is chosen by choosing or inputting host inventory mark, Managing main frame obtains corresponding host inventory according to environmental form and host inventory mark in response to the operation of staff.Especially It is for testing host, it will usually which the mixed deployment for carrying out a variety of services can be realized using the above method for different hosts Different automatically disposes.
In step s 106, each task and corresponding task label in automation deployment script are read.
Being executed for task of automatically dispose is listed in automatically dispose script, each single item task presentation will carry out certainly Host each to be executed step of dynamicization deployment.For example, disposing MySQL database on host, task may include: Install MySQL community server yum rpm (software package of installation MySQL community server).Often One task has its corresponding task label, and task label is used to indicate the environmental form that corresponding task is applicable in.With For ansible frame, task label can be added behind each task, for example, Install MySQL community Server yum rpm TAGS:[nonprod], nonprod is that task label indicates non-thread upper environment, i.e. this task is applicable in In test environment, this task is executed on the corresponding test host of test environment.
In step S108, the host into host inventory is issued, and is used to indicate the task label institute of current environment type Corresponding task.
Managing main frame can determine which task is suitable for test environment after reading task label, which task is suitable for line Upper environment.Host on line in the corresponding host inventory of environment issues the task of environment on task label index line, to test Host in the corresponding host inventory of environment issues the task of task label instruction test environment.Managing main frame can pass through SSH The host of (Secure Shell, safety shell protocol) into host inventory issues task.It can also be stored in managing main frame certainly Associated documents needed for dynamicization deployment, for example, RPM (Red Hat Package Manager, red cap software package manager) is literary Part.Associated documents are issued to each host when issuing task by managing main frame.Host carries out in corresponding according to issuing for task The automatically dispose of appearance, for example, perhaps being serviced in deployment database, deployment firewall etc..
In some embodiments, skip the environmental form of instruction and task label that current environment type is not inconsistent corresponding to Task, by host of the remaining mission dispatching into host inventory.Further, it is possible to the setting quantity of task label is reduced, it will Corresponding task label is arranged in the more environmental forms of needing to be implemented for task, i.e., corresponding suitable for the task of a variety of environmental forms Task label be set as empty, any environmental form requires to execute these tasks, and is only applicable to a kind of appointing for environmental form Corresponding task label of being engaged in indicates the environmental form.For example, task label includes test environmental labels, it is on line in environmental form When environment, skipping task label is to test the task of environmental labels, by the corresponding host of environment in remaining mission dispatching to line Host in inventory.
In some embodiments, in the case where environmental form is test environment, what the host into host inventory issued Task includes middleware services deployment task.And host corresponding for environment on line, the complex needs of middleware server Individually disposed.
In some embodiments, the deployment of same service is directed to different environmental forms, and deployment way is different.For example, by In the mixed deployment that there may be a variety of services on test host, the automatically dispose of firewall is carried out on test host When, need to determine the configuration of firewall on host according to the content (or service) disposed.It is fixed for host deployments on line , when firewall configuration, only needs to open specific port, and test host deployments be it is dynamic, need dynamic to adjust firewall Open port.
The case where for environmental form being environment on line, since the host of environment on line is there are true customer flow, because This, the service for needing to consider not influencing host when carrying out automatically dispose.In some embodiments, managing main frame is in environmental form In the case where environment on line, the task that the host into host inventory issues is determined;It is corresponding with task to obtain each host Flow of services;According to each host flow of services corresponding with task, each host is divided into different batches, successively to each A batch issues task, wherein the flow of services for receiving the host of task is switched on the host of other batches.
The host for carrying out automatically dispose needs for flow of services to be temporarily switched on other hosts, cuts off the service, into Service, switchback flow of services are restarted again after the automatically disposes such as row upgrading.Therefore, using Automation management side in batches Method.For example, being issued according to determination for task of managing main frame, to the corresponding flow of services of each host query task, from clothes Business the least host of flow start successively to calculate whether each host can switch to flow in other hosts, after switching other The flow of host reaches thresholding, then stops calculating, and flow will all be switched to the host of other hosts as current batch Secondary host, to present lot host and other host transmitted traffic switching commands, after completing flow switching, to present lot master Machine issues task.
The automatically dispose of varying environment type (for example, environment and test environment on line) can in the method for above-described embodiment To use same automatically dispose script, the corresponding different task label of each task in automatically dispose script is appointed Business label is used to indicate the environmental form that corresponding task is applicable in.According to current environment type obtain host inventory, according to appoint Business label acquisition is issued suitable for host of the task of current environment type into host inventory, to realize host according to issuing Task carry out corresponding contents automatically dispose.It can be real using same automatically dispose script in the method for above-described embodiment The automatically dispose of existing varying environment type, reduces the complexity of automatically dispose, improves deployment efficiency.It can be improved survey simultaneously The consistency of environment deployment, improves test accuracy rate on test ring border and line.
The disclosure also provides a kind of differentiation different task type progress Automation arranging method, is retouched below with reference to Fig. 2 It states.
Fig. 2 is the flow chart of other embodiments of disclosure Automation arranging method.As shown in Fig. 2, the side of the embodiment Method includes: step S202~S210.
In step S202, the current environment type of automatically dispose is obtained.
In step S204, the current task type of automatically dispose is obtained.
Step S202 and S204 are that step arranged side by side can in no particular order sequentially.It can show in managing main frame for staff The interface operated.Staff can choose current task type according to demand, and task type includes: first deployment and changes Generation deployment.First deployment generally comprises the task of iteration deployment, can also include other tasks, for example, setting time zone, setting are anti- Wall with flues is arranged NTP (Network Time Protocol, Network Time Protocol), the basic configuration such as service;Configuration service institute according to Bad software package (for example, MySQL, Redis etc.);The precondition of automatically dispose script is run, creates file to store Dispose the rpm packet etc. used.The task of iteration deployment for example, cut off service of goods, the product rpm of unloading last time deployment Packet, copy need the appointed product rpm packet disposed, and install appointed product rpm packet, starting new product service etc..
In step S206, corresponding host inventory is obtained according to current environment type.
In step S208, each task and corresponding task label in automation deployment script are read.
Task label is applied not only to indicate the environmental form that corresponding task is applicable in, and is also used to indicate task type.Example Such as, Install MySQL community server yum rpm TAGS:[full, nonprod], full and nonprod are Task label, full indicate first deployment (i.e. all installations), and nonprod indicates non-thread upper environment, i.e. this task is suitable for The first deployment for testing environment executes this task when being disposed for the first time on testing the corresponding test host of environment.
For task label for the typical mission of full disposed for the first time for example, createing directory, for being needed when storage deployment The product rpm file to be used, the database file etc. of importing;SSH is set and logs in welcome words etc..It is for task label The typical mission of the test environment deployment of nonprod is for example, installation MySQL and REDIS database;The library MySQLl is created, is imported MySQL data etc..For task label be full and nonprod first test environment dispose typical mission for example, setting Time zone;Installation, configuration and starting NTP service, synchronize for clock.
In step S210, the host into host inventory is issued, and is used to indicate current environment type and current task class Task corresponding to the task label of type.
In some embodiments, skip the environmental form of instruction and task label that current environment type is not inconsistent corresponding to Task, and task corresponding to the task type of instruction and the task label of current task type mismatch is skipped, it will be remaining Host of the mission dispatching into host inventory.Further, it is possible to reduce the setting quantity of task label, needing to be implemented for task Corresponding task label is arranged in more task types, i.e., suitable for the corresponding task label setting of the task of multiple-task type For sky, any task type requires to execute these tasks, and the corresponding task mark of task for being only applicable to a kind of task type Label indicate the task type.For example, task label includes first deployment label, when task type is that iteration is disposed, skips and appoint Label be engaged in for first the disposing label of the task, by the host in the corresponding host inventory of environment in remaining mission dispatching to line.
One embodiment of the automatically dispose scheme of the disclosure is shown in table 1.It as shown in table 1, can be in operation interface Two deployment options, FULL_DEPLOY are set, and selectable value is true and false, identifies and is currently deployed as disposing or changing for the first time Generation deployment, DEPLOY_ENV, selectable value are prod and test, and mark current environment is that environment still tests environment on line.Task Label includes full: corresponding task is disposed in instruction for the first time, nonprod: the corresponding task of instruction test environment.
It should be noted that above-mentioned differentiation different task type progress Automation arranging method can be individually real in the disclosure It applies.For example, obtaining the current task type of automatically dispose, host inventory is obtained, reads the items in automation deployment script Task and corresponding task label, task label are used to indicate the task type that corresponding task is applicable in;To host inventory In host issue, be used to indicate task corresponding to the task label of current task type.Detail can refer to aforementioned Each embodiment.
The method of above-described embodiment not only realizes the automatically dispose of varying environment type with same automatically dispose script The automatically dispose that can also realize different task type further decreases the complexity of automatically dispose, improves deployment efficiency.
The disclosure also provides a kind of automatically dispose device, is described below with reference to Fig. 3.
Fig. 3 is the structure chart of some embodiments of disclosure automatically dispose device.As shown in figure 3, the dress of the embodiment Setting 30 includes: that configuration obtains module 302, and host inventory obtains module 304, script read module 306, mission dispatching module 308.
Configuration obtains module 302, for obtaining the current environment type of automatically dispose.
Environmental form is for example including environment on line and test environment.In some embodiments, configuration obtains module 302 and also uses In the current task type for obtaining automatically dispose.Task type is for example including first deployment and iteration deployment.
In some embodiments, configuration obtains module 302 and is also used to host inventory mark.
Host inventory obtains module 304, for obtaining corresponding host inventory according to current environment type.
In some embodiments, host inventory obtains module 304 and is used to be obtained according to environmental form and host inventory mark Take corresponding host inventory.
Script read module 306, for reading each task and corresponding task label in automation deployment script, Task label is used to indicate the environmental form that corresponding task is applicable in.
Mission dispatching module 308 is issued for the host into host inventory, is used to indicate the task of current environment type Task corresponding to label carries out the automatically dispose of corresponding contents to realize host according to issuing for task.
In some embodiments, the environmental form and current environment type that mission dispatching module 308 is used to skip instruction are not Task corresponding to the task label of symbol, by host of the remaining mission dispatching into host inventory.
In some embodiments, mission dispatching module 308 skips the environmental form of instruction and current environment type is not inconsistent Task corresponding to task label, and skip corresponding to the task type of instruction and the task label of current task type mismatch Task, by host of the remaining mission dispatching into host inventory.
In some embodiments, mission dispatching module 308 is determined in the case where environmental form is environment on line to host The task that host in inventory issues;Obtain each host flow of services corresponding with task;According to each host and task pair Each host is divided into different batches by the flow of services answered, and successively issues task to each batch, wherein receives task The flow of services of host be switched on the host of other batches.
In some embodiments, in the case where environmental form is test environment, what the host into host inventory issued Task includes middleware services deployment task.
In some embodiments, the above-mentioned automatically dispose device of the disclosure can be set in managing main frame.
Automatically dispose device in embodiment of the disclosure can realize respectively by various calculating equipment or computer system, It is described below with reference to Fig. 4 and Fig. 5.
Fig. 4 is the structure chart of some embodiments of disclosure automatically dispose device.As shown in figure 4, the dress of the embodiment Setting 40 includes: memory 410 and the processor 420 for being coupled to the memory 410, and processor 420 is configured as based on storage Instruction in store 410 executes the Automation arranging method in the disclosure in any some embodiments.
Wherein, memory 410 is such as may include system storage, fixed non-volatile memory medium.System storage Device is for example stored with operating system, application program, Boot loader (Boot Loader), database and other programs etc..
Fig. 5 is the structure chart of other embodiments of disclosure automatically dispose device.As shown in figure 5, the embodiment Device 50 includes: memory 510 and processor 520, similar with memory 410 and processor 420 respectively.Can also include Input/output interface 530, network interface 540, memory interface 550 etc..These 510 Hes of interface 530,540,550 and memory It can for example be connected by bus 560 between processor 520.Wherein, input/output interface 530 be display, mouse, keyboard, The input-output equipment such as touch screen provide connecting interface.Network interface 540 provides connecting interface for various networked devices, such as can To be connected to database server or cloud storage server etc..Memory interface 550 is the external storages such as SD card, USB flash disk Connecting interface is provided.
The disclosure also provides a kind of automatically dispose system, is described below with reference to Fig. 6.
Fig. 6 is the structure chart of some embodiments of disclosure automatically dispose system.As shown in fig. 6, the embodiment is System 6 includes: the automatically dispose device 30 of any one aforementioned embodiment;And host 62.Host 62 may include environment on line Corresponding host host corresponding with test environment.Host 62 is used to receive the task that the automatically dispose device issues and carries out The automatically dispose of corresponding contents.
Automatically dispose device can be set in managing main frame, and managing main frame can be continuous integrating server.For into One step guarantee deployment accuracy, continuous integrating server can be further divided into environment on line continuous integrating server and Test the continuous integrating server of environment.Associated documents (for example, RPM file) for automatically dispose can store in management In host, it can also be stored separately in storage server, storage server can be further divided into test environment storage service Environment storage server on device and line, convenient for searching associated documents when deployment varying environment.
Those skilled in the art should be understood that embodiment of the disclosure can provide as method, system or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the disclosure The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the disclosure, which can be used in one or more, Machine can use the meter implemented in non-transient storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of calculation machine program product.
The disclosure is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present disclosure Figure and/or block diagram describe.It is interpreted as to be realized by computer program instructions each in flowchart and/or the block diagram The combination of process and/or box in process and/or box and flowchart and/or the block diagram.It can provide these computer journeys Sequence instruct to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with A machine is generated, so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for Realize the dress for the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram It sets.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is merely the preferred embodiments of the disclosure, not to limit the disclosure, all spirit in the disclosure and Within principle, any modification, equivalent replacement, improvement and so on be should be included within the protection scope of the disclosure.

Claims (19)

1. a kind of Automation arranging method, comprising:
Obtain the current environment type of automatically dispose;
Corresponding host inventory is obtained according to the current environment type;
The each task and corresponding task label in automation deployment script are read, the task label is used to indicate correspondence The environmental form that is applicable in of task;
Host into the host inventory issues, and is used to indicate task corresponding to the task label of current environment type, with Realize that the host carries out the automatically dispose of corresponding contents according to issuing for task.
2. Automation arranging method according to claim 1, further includes: obtain the current task type of automatically dispose;
The task label is also used to indicate the task type that corresponding task is applicable in;
The host into the host inventory issues task and includes:
Host into the host inventory issues, and is used to indicate the task label institute of current environment type and current task type Corresponding task.
3. Automation arranging method according to claim 1, wherein
The host into the host inventory issues task and includes:
Skip the environmental form of instruction and task label that current environment type is not inconsistent corresponding to task, will be under remaining task The host being sent in the host inventory.
4. Automation arranging method according to claim 2, wherein
The host into the host inventory issues task and includes:
Skip the environmental form of instruction and task label that current environment type is not inconsistent corresponding to task, and skip instruction Task corresponding to the task label of task type and current task type mismatch, remaining mission dispatching is clear to the host Host in list.
5. Automation arranging method according to claim 1, further includes: obtain host inventory mark;
It is described to include: according to the corresponding host inventory of environmental form acquisition
Corresponding host inventory is obtained according to the environmental form and host inventory mark.
6. Automation arranging method according to claim 1, wherein
The host into the host inventory issues task and includes:
In the case where the environmental form is environment on line, the task that the host into the host inventory issues is determined;
Obtain each host flow of services corresponding with the task;
According to each host flow of services corresponding with the task, each host is divided into different batches, successively to each A batch issues the task, wherein the flow of services for receiving the host of task is switched on the host of other batches.
7. Automation arranging method according to claim 1-6, wherein
The environmental form includes environment and test environment on line;
The task type includes first deployment and iteration deployment.
8. Automation arranging method according to claim 1-6, wherein
In the case where the environmental form is test environment, the task that the host in Xiang Suoshu host inventory issues includes centre Part service arrangement task.
9. a kind of automatically dispose device, comprising:
Configuration obtains module, for obtaining the current environment type of automatically dispose;
Host inventory obtains module, for obtaining corresponding host inventory according to the current environment type;
Script read module, for read automation deployment script in each task and corresponding task label, described Business label is used to indicate the environmental form that corresponding task is applicable in;
Mission dispatching module is issued for the host into the host inventory, is used to indicate the task mark of current environment type The corresponding task of label carries out the automatically dispose of corresponding contents to realize the host according to issuing for task.
10. automatically dispose device according to claim 9, wherein
The configuration obtains the current task type that module is also used to obtain automatically dispose;
The task label is also used to indicate the task type that corresponding task is applicable in;
The mission dispatching module is issued for host into the host inventory, is used to indicate current environment type and current Task corresponding to the task label of task type.
11. automatically dispose device according to claim 9, wherein
Corresponding to the task label that the mission dispatching module is used to skip the environmental form of instruction and current environment type is not inconsistent Task, by host of the remaining mission dispatching into the host inventory.
12. automatically dispose device according to claim 10, wherein
Corresponding to the task label that the mission dispatching module is used to skip the environmental form of instruction and current environment type is not inconsistent Task, and skip task corresponding to the task type of instruction and the task label of current task type mismatch, will be remaining Host of the mission dispatching into the host inventory.
13. automatically dispose device according to claim 9, wherein
The configuration obtains module and is also used to obtain host inventory mark;
It is clear for obtaining corresponding host according to the environmental form and host inventory mark that the host inventory obtains module It is single.
14. automatically dispose device according to claim 9, wherein
The mission dispatching module is used to determine in the case where the environmental form is environment on line into the host inventory Host the issuing of the task, each host flow of services corresponding with the task is obtained, according to each host and the task Each host is divided into different batches by corresponding flow of services, successively issues the task to each batch, wherein connect The flow of services of the host of receipts task is switched on the host of other batches.
15. according to the described in any item automatically dispose devices of claim 9-14, wherein
The environmental form includes environment and test environment on line;
The task type includes first deployment and iteration deployment.
16. according to the described in any item automatically dispose devices of claim 9-14, wherein
In the case where the environmental form is test environment, the task that the host in Xiang Suoshu host inventory issues includes centre Part service arrangement task.
17. a kind of automatically dispose device, comprising:
Memory;And
It is coupled to the processor of the memory, the processor is configured to based on the finger being stored in the memory devices It enables, executes such as the described in any item Automation arranging methods of claim 1-8.
18. a kind of computer readable storage medium, is stored thereon with computer program, wherein when the program is executed by processor The step of realizing any one of claim 1-8 the method.
19. a kind of automatically dispose system, comprising:
The described in any item automatically dispose devices of claim 9-16;And
Host carries out the automatically dispose of corresponding contents for receiving the task that the automatically dispose device issues.
CN201810179496.1A 2018-03-05 2018-03-05 Automatically dispose method, apparatus, system and computer readable storage medium Pending CN110231944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810179496.1A CN110231944A (en) 2018-03-05 2018-03-05 Automatically dispose method, apparatus, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810179496.1A CN110231944A (en) 2018-03-05 2018-03-05 Automatically dispose method, apparatus, system and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110231944A true CN110231944A (en) 2019-09-13

Family

ID=67862060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810179496.1A Pending CN110231944A (en) 2018-03-05 2018-03-05 Automatically dispose method, apparatus, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110231944A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855501A (en) * 2019-11-21 2020-02-28 广州西麦科技股份有限公司 Batch publishing system, method and storage medium for creating middleware
CN111309342A (en) * 2020-02-19 2020-06-19 北京中数智汇科技股份有限公司 Automatic deployment system and method for high-availability distributed file system
WO2021072861A1 (en) * 2019-10-17 2021-04-22 平安科技(深圳)有限公司 Application service processing method and apparatus, and terminal and storage medium
CN117851267A (en) * 2024-03-06 2024-04-09 湖南兴盛优选网络科技有限公司 Software multi-environment automatic test method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075381A (en) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 Automatic test platform server and system applied to cloud storage
CN102207859A (en) * 2010-03-31 2011-10-05 国际商业机器公司 Method, device and system for deploying solution plan
CN103064742A (en) * 2012-12-25 2013-04-24 中国科学院深圳先进技术研究院 Automatic deployment system and method of hadoop cluster
CN103189839A (en) * 2010-09-07 2013-07-03 惠普发展公司,有限责任合伙企业 System and method for automated deployment of a multi-component computer environment
US20150309833A1 (en) * 2010-05-18 2015-10-29 Salesforce.Com, Inc. Methods and systems for automating deployment of applications in a multi-tenant database environment
CN106775882A (en) * 2016-12-26 2017-05-31 中国银联股份有限公司 Cloud computing server batch dispositions method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207859A (en) * 2010-03-31 2011-10-05 国际商业机器公司 Method, device and system for deploying solution plan
US20150309833A1 (en) * 2010-05-18 2015-10-29 Salesforce.Com, Inc. Methods and systems for automating deployment of applications in a multi-tenant database environment
CN103189839A (en) * 2010-09-07 2013-07-03 惠普发展公司,有限责任合伙企业 System and method for automated deployment of a multi-component computer environment
CN102075381A (en) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 Automatic test platform server and system applied to cloud storage
CN103064742A (en) * 2012-12-25 2013-04-24 中国科学院深圳先进技术研究院 Automatic deployment system and method of hadoop cluster
CN106775882A (en) * 2016-12-26 2017-05-31 中国银联股份有限公司 Cloud computing server batch dispositions method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021072861A1 (en) * 2019-10-17 2021-04-22 平安科技(深圳)有限公司 Application service processing method and apparatus, and terminal and storage medium
CN110855501A (en) * 2019-11-21 2020-02-28 广州西麦科技股份有限公司 Batch publishing system, method and storage medium for creating middleware
CN110855501B (en) * 2019-11-21 2022-04-26 广州西麦科技股份有限公司 Batch publishing system, method and storage medium for creating middleware
CN111309342A (en) * 2020-02-19 2020-06-19 北京中数智汇科技股份有限公司 Automatic deployment system and method for high-availability distributed file system
CN117851267A (en) * 2024-03-06 2024-04-09 湖南兴盛优选网络科技有限公司 Software multi-environment automatic test method
CN117851267B (en) * 2024-03-06 2024-06-11 湖南兴盛优选网络科技有限公司 Software multi-environment automatic test method

Similar Documents

Publication Publication Date Title
CN110231944A (en) Automatically dispose method, apparatus, system and computer readable storage medium
US20210117210A1 (en) Methods and Systems for Integrated Development Environment Editor Support with a Single Code Base
EP3047376B1 (en) Type-to-type analysis for cloud computing technical components
KR101442360B1 (en) Porting virtual machine images between platforms
CN109542445A (en) A kind of method and apparatus that Android plug-in unit melts hair
CN109478180B (en) Cloud content state determination logic
CN108369514B (en) System and method for executable content and executable content stream creation
CN109981322A (en) The method and apparatus of cloud resource management based on label
CN109241033A (en) The method and apparatus for creating real-time data warehouse
CN106033388A (en) A test use case library management method and system
CN108475267B (en) System and method for executable content and executable content stream distribution
CN108958744A (en) Dispositions method, device, medium and the electronic equipment of big data distributed type assemblies
CN109683910A (en) Big data platform dispositions method and device
US20090198531A1 (en) Method and system for discovering dependencies in project plans of distributed system
CN114721686A (en) Configuration data updating method and device, electronic equipment and storage medium
CN113076186B (en) Task processing method, device, electronic equipment and storage medium
CN111435329A (en) Automatic testing method and device
CN113535220B (en) Code packet management method and device
CN110413285A (en) Method for deploying cloud service and method for developing cloud service
CN110443034A (en) The recognition methods of risk program file, calculates equipment and medium at device
IL216647A (en) Business service management system
Vijaya et al. A Model Driven Framework for Portable Cloud Services
EP3975605B1 (en) Base station type replacement method, sdr network management system, base station type replacement apparatus and computer-readable storage medium
CN109960526A (en) A kind of application program packaging method and device
CN114936152A (en) Application testing method and device

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

Application publication date: 20190913

RJ01 Rejection of invention patent application after publication