Summary of the invention
The disclosure is designed to provide a kind of data deployment method and device, computer storage medium and electronic equipment,And then overcome the problems, such as to dispose that low efficiency, accuracy be poor, caused by O&M cost height at least to a certain extent due to data.ForRealize that the above technical effect, the disclosure adopt the following technical scheme that.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosurePractice and acquistion.
According to one aspect of the disclosure, a kind of data deployment method is provided, comprising:
According to the application installed in multiple cloud hosts to the multiple cloud host packet, one or more cloud hosts are formedGroup;
Determine deployment unit corresponding with the cloud host groups, and the cloud master in the deployment unit and the cloud host groupsMachine connection;
Data deployment request is obtained, and disposes request data deployment information according to the data and issues the documents;
Acquisition of information target deployment unit and target cloud host are disposed according to the data, and passes through the target deployment listDescribed issue the documents is issued to target cloud host by member.
In a kind of exemplary embodiment of the disclosure, the data deployment information includes Business Name, the business nameIt is known as issuing task type;
It is described to dispose request data deployment information according to the data and issue the documents, comprising:
Data deployment request is parsed, to obtain the Business Name and described issue the documents.
In a kind of exemplary embodiment of the disclosure, when according to installed in the multiple cloud host application will be described moreWhen a cloud host packet forms multiple cloud host groups, the corresponding deployment unit of the cloud host groups is multiple, and each deploymentUnit has different deployment unit names relevant to task type is issued;
It is described to dispose acquisition of information target deployment unit and target cloud host according to the data, and pass through the target portionIt affixes one's name to unit and described issue the documents is issued to target cloud host, comprising:
According to the matching result of the Business Name and the deployment unit name, the target deployment unit and described is obtainedTarget cloud host;
Described issue the documents is issued to the target cloud host by the target deployment unit.
It is described to issue the documents as installation code packet or installation code packet downloading in a kind of exemplary embodiment of the disclosureAddress.
It is described to be issued the documents down by the target deployment unit by described in a kind of exemplary embodiment of the disclosureIt is sent to the target cloud host, comprising:
By the interface of the target deployment unit and the target cloud host, the installation code packet is issued to describedTarget cloud host.
It is described to be issued the documents down by the target deployment unit by described in a kind of exemplary embodiment of the disclosureIt is sent to the target cloud host, comprising:
Target is obtained according to the installation code packet download address, and code packet is installed;
By the interface of the target deployment unit and the target cloud host, target installation code packet is issued toThe target cloud host.
In a kind of exemplary embodiment of the disclosure, the data deployment information further includes engineering name, the engineeringThe facility information of the entitled target cloud host;The method also includes:
Configuration key name corresponding with the cloud host is generated with the engineering name according to described issue the documents;
It issues the documents according to the configuration item star and the target cloud master is issued to by the target deployment unitMachine.
According to one aspect of the disclosure, a kind of data deployment device is provided, comprising:
Cloud host packet module, for according to installed in multiple cloud hosts application to the multiple cloud host packet, shapeAt one or more cloud host groups;
Deployment unit setup module, for determining deployment unit corresponding with the cloud host groups, and the deployment unitIt is connect with the cloud host in the cloud host groups;
Data obtaining module disposes the deployment of request data for obtaining data deployment request, and according to the dataIt information and issues the documents;
File issues module, for disposing acquisition of information target deployment unit and target cloud host according to the data, andDescribed issue the documents is issued to target cloud host by the target deployment unit.
According to one aspect of the disclosure, a kind of computer storage medium is provided, computer program is stored thereon with, it is describedData deployment method described in above-mentioned any one is realized when computer program is executed by processor.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute number described in above-mentioned any one via the executable instruction is executedAccording to dispositions method.
In data deployment method in the embodiment of the present disclosure, cloud host is divided according to the application installed in multiple cloud hostsGroup obtains one or more cloud host groups;Meanwhile the deployment unit corresponding with the cloud host groups of the cloud host in cloud host groupsConnection;After disposing request data deployment information by data and issuing the documents, information acquisition target is disposed according to dataDeployment unit and target cloud host, and will issue the documents and corresponding target cloud host is issued to by target deployment unit.One sideFace can will issue the documents by the corresponding target deployment unit of cloud host groups while be issued to the target in the cloud host groupsCloud host realizes the data deployment of mass, improves the efficiency of data deployment;On the other hand, according to data deployment informationTarget deployment unit and target cloud host can be accurately obtained, the accuracy of data deployment is improved, meanwhile, pass through target deploymentUnit, which will issue the documents, is handed down to target cloud host, participates in configuration without artificial, saves O&M manpower.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, notThe disclosure can be limited.
Specific embodiment
Illustrative embodiments are described more fully with reference to the drawings.However, illustrative embodiments can be with moreKind form is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will moreAdd fully and completely, and the design of illustrative embodiments is comprehensively communicated to those skilled in the art.It is identical in figureAppended drawing reference indicates same or similar structure, thus the detailed description that will omit them.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable mannerIn example.In the following description, many details are provided to provide and fully understand to embodiment of the disclosure.However,It will be appreciated by persons skilled in the art that can be with technical solution of the disclosure without one in the specific detail or moreIt is more, or can be using other methods, constituent element, device, step etc..In other cases, known in being not shown in detail or describingStructure, method, apparatus, realization or operation are to avoid fuzzy all aspects of this disclosure.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity.I.e., it is possible to realize these functional entitys using software form, or these are realized in the module of one or more softwares hardeningA part of functional entity or functional entity, or realized in heterogeneous networks and/or processor device and/or microcontroller deviceThese functional entitys.
This field in the related technology, to cloud host carry out data deployment when, if necessary to multiple cloud hosts carry outThe operation such as installation, update of application program or monitoring programme, since cloud host number is more, mutually indepedent, it usually needs technology peopleCarry out data deployment to member's one cloud host, one cloud host.
Correspondingly, data deployment is carried out to cloud host in the related technology to have following defects that
When carrying out data deployment to multiple cloud hosts, technical staff will respectively be disposed every cloud host, it is difficult to realExisting mass processing, causes data to dispose low efficiency;When receiving data deployment task, need by manpower for different cloudsHost is disposed accordingly, it is difficult to realize the automatically dispose of data;Further, when carrying out daily O&M to cloud host,Technical staff is needed to be responsible for specified cloud host, and the increase of cloud host number causes O&M to take time and effort.
Based on this, in this exemplary embodiment, a kind of data deployment method is provided firstly.Refering to what is shown in Fig. 1, the dataDispositions method may comprise steps of:
Step S110: according to the application installed in multiple cloud hosts to the multiple cloud host packet, one or more is formedA cloud host groups;
Step S120: deployment unit corresponding with the cloud host groups, and the deployment unit and the cloud host are determinedCloud host connection in group;
Step S130: data deployment request is obtained, and disposes request data deployment information under according to the dataFat file;
Step S140: acquisition of information target deployment unit and target cloud host are disposed according to the data, and by describedDescribed issue the documents is issued to target cloud host by target deployment unit.
According to the data deployment method in this example embodiment, on the one hand, the corresponding target portion of cloud host groups can be passed throughUnit is affixed one's name to, will issue the documents while being issued to the target cloud host in the cloud host groups, the data deployment of mass is realized, mentionsThe high efficiency of data deployment;On the other hand, target deployment unit and target cloud can accurately be obtained according to data deployment informationHost improves the accuracy of data deployment, meanwhile, it will be issued the documents by target deployment unit and be handed down to target cloud host,Without manually participating in configuring, O&M manpower is saved.
The data deployment of cloud host includes the installation to application program on cloud host, updates and to monitoring programme on cloud hostDeployment etc., in the following, by the data deployment method in the embodiment of the present disclosure is further detailed.
In step s 110, one is formed to the multiple cloud host packet according to the application installed in multiple cloud hostsOr multiple cloud host groups.
In this example embodiment, according to the difference applied on multiple cloud hosts, cloud host is grouped, to obtainOne or more cloud host groups.Wherein, the application on cloud host may include all kinds of website application programs, such as mobile phone application journeySequence, game application etc. also may include the monitoring programme etc. being monitored to cloud host system.Fig. 2 shows according to application pairThe structural schematic diagram of cloud host packet, as shown in Fig. 2, according to the difference for the application installed on each cloud host, by five cloud hostsIt is grouped, installation application is identical in medium cloud host 1, cloud host 2, therefore cloud host 1 and cloud host 2 are a cloud host groupsA, similarly, cloud host 3, cloud host 4 are a cloud host groups b, and only cloud host 5 is mounted with to be different from aforementioned applications programProgram, therefore in cloud host groups c only include cloud host 5.It should be noted that cloud host included in each cloud host groupsQuantity is determined by the quantity of the cloud host of installation included in the cloud host groups some same application, a cloud hostThe quantity of cloud host in group can be not limited to the quantity in this example embodiment, can also be 10,20, etc., the disclosureIncluding but not limited to above-mentioned quantity.Multiple cloud hosts are divided into multiple groups by the different application installed on multiple cloud hosts,Each cloud host groups realize the mass management of cloud host as a management group.
In the step s 120, deployment unit corresponding with the cloud host groups, and the deployment unit and the cloud are determinedCloud host connection in host groups.
It include multiple cloud hosts for installing same applications, determining and cloud master in this example embodiment, in cloud host groupsThe corresponding deployment unit of unit, makes the corresponding deployment unit of cloud host groups, and by deployment unit and corresponding cloud hostMultiple cloud hosts in group are connected by interface respectively, such as api interface.It further, can be according to more in cloud host groupsThe corresponding Business Name of same application of a cloud host installation, is arranged deployment unit name for corresponding deployment unit.For example,As shown in Fig. 2, if cloud host 1 and cloud host 2 have been respectively mounted same monitoring class application, it is determined that each cloud host in cloud host groups aThe Business Name type of the same application of installation is that class is applied in monitoring, then is the corresponding deployment unit setting deployment of cloud host groups aThe entitled monitoring deployment of unit, correspondingly, if cloud host 3 and cloud host 4 have been respectively mounted same mobile phone application class, cloud host 5 is installedCertain game application class, then be respectively set the entitled mobile phone of deployment unit for cloud host groups b and the corresponding deployment unit of cloud host c and answerWith deployment and game application deployment.Deployment unit is connect by an ingress interface with client, for receiving user's sendingData deployment request, and the interface by connecting with the cloud host in cloud host groups, will issue the documents and are issued to corresponding cloud masterMachine.It should be noted that the deployment unit name of deployment unit corresponding with cloud host groups be according to it is multiple in cloud host groupsBusiness Name setting belonging to the same application of cloud host installation, which could also belong to other Business Names, with cloud masterThe deployment unit name of the corresponding deployment unit of unit can also be arranged according to other Business Names, the disclosure include but is not limited onState deployment unit name.
In step s 130, data deployment request is obtained, and disposes request data deployment information according to the dataWith issue the documents.
It, will by data analysis module after obtaining the data deployment request that user sends in this example embodimentData dispose request analysis, and to obtain data deployment information from data deployment request and issue the documents, which analyzes mouldBlock can be the data analysis module in deployment unit, be also possible to and the mutually independent data analysis module of deployment unit;ToolBody, which can be panda data analysis module Pandas, can also be scientific algorithm analysis module scipyDeng the disclosure is not specifically limited in this embodiment.Wherein, data deployment information includes Business Name, and Business Name is that data deployment is askedMiddle user is asked to issue the type of task, such as monitoring application type, mobile phone application type.The type issued the documents can have twoKind: one is installation code packets, such as the installation code packet of certain monitoring application;Another kind is installation code packet download address, works as rootWhen the downloading file in data deployment information acquired according to data deployment request is installation code packet download address, need to pass throughData analysis module obtains installation code packet according to the installation code packet download address.
In step S140, acquisition of information target deployment unit and target cloud host are disposed according to the data, and pass throughDescribed issue the documents is issued to target cloud host by the target deployment unit.
In this example embodiment, since the corresponding deployment unit name of cloud host groups is according to clouds multiple in cloud host groupsThe setting of Business Name belonging to the same application installed in host, the Business Name that can will be obtained from data deployment informationDeployment unit name corresponding with cloud host groups is matched, and obtains target deployment unit and target cloud master according to matching resultMachine.As shown in Fig. 2, data are disposed request analysis by data analysis module, are obtained after obtaining the data sent deployment requestObtaining the Business Name in data deployment information is " updating certain monitoring application ", according to the Business Name and monitoring deployment, mobile phoneThree deployment unit names are disposed using deployment and game application to be matched, and are determined and the Business Name " updating certain monitoring to apply "The matched entitled monitoring deployment of deployment unit, it is determined that deployment unit corresponding with the monitoring deployment of deployment unit name is target deploymentUnit, cloud host 1 and cloud host 2 in the corresponding cloud host groups a of the target deployment unit are target cloud host.Further,By target deployment unit " monitoring deployment " by the installation code packet in data deployment information, pass through target deployment unit monitors portionIt affixes one's name to and disposes the interface N between corresponding cloud host groups a with the monitoring1, the installation code packet that will be obtained in data deployment informationThe cloud host 1 and cloud host 2 being issued in cloud host groups a.
Although obtaining target deployment unit and target cloud master in addition, match with deployment unit name by Business NameMachine, and there are difference, such as IP address of cloud host, the identification information of cloud host and equipment to compile for the engineering name of each target cloud hostCode etc.;There are difference for the example of each target cloud host, such as calculation type example C3, big data type example D1Deng different example typesCloud host CPU, memory and storage etc. is caused to have differences.Therefore, smoothly, exhaustive mesh is issued in order to which code packet will be installedMultiple target cloud hosts in the corresponding cloud host groups of deployment unit name are marked, it can be according to issuing the documents in data deployment informationConfiguration key name corresponding with each cloud host is generated with the engineering name in data deployment information, engineering name is target cloud hostFacility information such as needs to be implemented the identification code (such as IP address of cloud host, device coding) of the cloud host of data deployment;FinallyAccording to the configuration key name of target deployment unit and each cloud host, will issue the documents in installation code packet be issued to target cloud masterMachine disposes data deployment information accurately, avoids one, the cloud host cloud host of operation maintenance personnel one and goes to dispose, mentionsThe high efficiency of data deployment, reduces O&M manpower.
In addition, additionally providing a kind of data deployment device in this example embodiment.Referring to shown in Fig. 3, the data portionAffixing one's name to device 300 may include: cloud host packet module 310, deployment unit setup module 320, data obtaining module 330 and textPart issues module 340.Specifically,
Cloud host packet module 310, for according to the application installed in multiple cloud hosts to the multiple cloud host packet,Form one or more cloud host groups;
Deployment unit setup module 320, for determining deployment unit corresponding with the cloud host groups, and the deployment is singleFirst cloud host with the cloud host groups is connect;
Data obtaining module 330 for obtaining data deployment request, and disposes request data portion according to the dataIt affixes one's name to information and issues the documents;
File issues module 340, for disposing acquisition of information target deployment unit and target cloud host according to the data,And described issue the documents is issued to by target cloud host by the target deployment unit.
Due to each functional module of the data deployment device of disclosure embodiment and the hair of above-mentioned data deployment methodIt is identical in bright embodiment, therefore details are not described herein.
In addition, in an exemplary embodiment of the disclosure, additionally provides a kind of computer that can be realized the above method and depositStorage media.It is stored thereon with the program product that can be realized this specification above method.In some possible embodiments, this public affairsThe various aspects opened are also implemented as a kind of form of program product comprising program code, when described program product is at endWhen running in end equipment, said program code is for making the terminal device execute above-mentioned " illustrative methods " part of this specificationDescribed in exemplary embodiments various according to the disclosure the step of.
Refering to what is shown in Fig. 4, the program product 400 according to an embodiment of the present disclosure for realizing the above method is described,It can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, such asIt is run on PC.However, the program product of the disclosure is without being limited thereto, in this document, readable storage medium storing program for executing, which can be, appointsWhat include or the tangible medium of storage program that the program can be commanded execution system, device or device use or and itsIt is used in combination.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letterNumber medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray orSystem, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustiveList) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-onlyMemory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executingMatter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and itsThe program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, haveLine, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with any combination of one or more programming languages come write for execute the disclosure operation programCode, described program design language include object oriented program language-Java, C++ etc., further include conventionalProcedural programming language-such as " C " language or similar programming language.Program code can be fully in userIt calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculatingUpper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to farJourney calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISPTo be connected by internet).
In addition, in an exemplary embodiment of the disclosure, additionally providing a kind of electronic equipment that can be realized the above method.Person of ordinary skill in the field is it is understood that various aspects of the disclosure can be implemented as system, method or program product.Therefore, various aspects of the disclosure can be with specific implementation is as follows, it may be assumed that complete hardware embodiment, complete software are realThe embodiment combined in terms of applying example (including firmware, microcode etc.) or hardware and software, may be collectively referred to as " circuit ", " mould hereBlock " or " system ".
The electronic equipment 500 of this embodiment according to the disclosure is described referring to Fig. 5.The electronics that Fig. 5 is shown is setStandby 500 be only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 5, electronic equipment 500 is showed in the form of universal computing device.The component of electronic equipment 500 can wrapIt includes but is not limited to: at least one above-mentioned processing unit 510, at least one above-mentioned storage unit 520, the different system components of connectionThe bus 530 of (including storage unit 520 and processing unit 510), display unit 540.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 510Row, so that various according to the disclosure described in the execution of the processing unit 510 above-mentioned " illustrative methods " part of this specificationThe step of exemplary embodiment.
Storage unit 520 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit(RAM) 5201 and/or cache memory unit 5202, it can further include read-only memory unit (ROM) 5203.
Storage unit 520 can also include program/utility with one group of (at least one) program module 52055204, such program module 5205 includes but is not limited to: operating system, one or more application program, other program mouldsIt may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 530 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storageCell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structuresLocal bus.
Electronic equipment 500 can also be with one or more external equipments 600 (such as keyboard, sensing equipment, bluetooth equipmentDeng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 500 communicate, and/or with makeAny equipment (such as the router, modulation /demodulation that the electronic equipment 500 can be communicated with one or more of the other calculating equipmentDevice etc.) communication.This communication can be carried out by input/output (I/O) interface 550.Also, electronic equipment 500 can be withBy network adapter 560 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network,Such as internet) communication.As shown, network adapter 560 is communicated by bus 530 with other modules of electronic equipment 500.It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 500, including but notBe limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive andData backup storage system etc..
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described hereinIt can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosureThe technical solution of example can be embodied in the form of software products, which can store in a non-volatile memoriesIn medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (canTo be personal computer, server, terminal installation or network equipment etc.) it executes according to the method for the embodiment of the present disclosure.
In addition, above-mentioned attached drawing is only the schematic theory of the processing according to included by the method for disclosure exemplary embodimentIt is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitableSequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosureHis embodiment.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes orAdaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure orConventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claimIt points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, andAnd various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the attached claims.