CN107659643A - Cloud platform construction method and device - Google Patents
Cloud platform construction method and device Download PDFInfo
- Publication number
- CN107659643A CN107659643A CN201710873765.XA CN201710873765A CN107659643A CN 107659643 A CN107659643 A CN 107659643A CN 201710873765 A CN201710873765 A CN 201710873765A CN 107659643 A CN107659643 A CN 107659643A
- Authority
- CN
- China
- Prior art keywords
- application
- main frame
- unit
- container
- mirror image
- 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
Links
- 238000010276 construction Methods 0.000 title description 3
- 238000000034 method Methods 0.000 claims abstract description 41
- 238000002955 isolation Methods 0.000 claims description 9
- 238000012544 monitoring process Methods 0.000 claims description 9
- 230000015572 biosynthetic process Effects 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 3
- 230000007613 environmental effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 244000035744 Hura crepitans Species 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a cloud platform architecture method and a cloud platform architecture device, wherein the method comprises the following steps: deploying a Docker environment in each of at least one host; setting a container cluster management tool; combining the hosts deployed with the Docker environment into a container cluster by using the container cluster management tool; acquiring at least one mirror image of external input; forming at least one application container in each of the hosts in which the Docker environment is deployed, using the at least one image; and determining at least one external interface corresponding to the container cluster according to the at least one application container. Therefore, the scheme provided by the invention can improve the speed of constructing the cloud platform.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of cloud platform framework method and device.
Background technology
With the continuous development of Internet technology, cloud platform obtains because it has the characteristics that efficient, convenient and configurable
More and more extensive application is arrived.
At present, the construction method of cloud platform is usually:The business personnel manual configuration behaviour in each main frame as requested
Make system, application and network interface.After the completion of to be configured, then each main frame is established and connected to form cloud platform.Due to behaviour
The setting up procedure for making system, application and network interface is completed by manually, and configuration process is relatively complicated, and error rate compared with
It is high.Therefore, the speed of existing mode framework cloud platform is slower.
The content of the invention
The embodiments of the invention provide a kind of cloud platform framework method and device, the speed of framework cloud platform can be improved.
In a first aspect, the embodiments of the invention provide a kind of cloud platform framework method, this method includes:
Docker environment is disposed in each described main frame at least one main frame;
Container cluster management instrument is set;
Using the container cluster management instrument, each main frame for deploying Docker environment is combined as sets of containers
Group;
Obtain at least one mirror image of outside input;
Using at least one mirror image, formed in each the described main frame for deploying Docker environment at least one
Application container;
According at least one application container, at least one external interface corresponding to the container cluster is determined.
Preferably,
It is described to utilize the container cluster management instrument, each main frame for deploying Docker environment is combined as holding
Device cluster, including:
Using the container cluster management instrument, enabled in each the described main frame for deploying Docker environment
Swarm patterns;
In each main frame of Docker environment is deployed, a main frame is specified as host node;
Pass through enabled swarm patterns using the host node and establish connection with unspecified main frame;
According to the connection established, each main frame for deploying Docker environment is combined as sets of containers group.
Preferably,
Each described application container corresponds at least one application;
Further comprise:
According at least one application corresponding to each described application container, version warehouse is created, wherein, the version storehouse
Storehouse includes version information corresponding to each described application;
When receiving the newly-increased mirror image of outside input, determined in the version warehouse corresponding with the newly-increased mirror image
Version information;
It is replaced using the newly-increased mirror image to being applied corresponding to identified version information;
Identified version information is updated using the version information of the newly-increased mirror image in the version warehouse.
Preferably,
Each described application container corresponds at least one application;
Further comprise:
Receive at least one application service of outside input;
It is performed both by for application service each described, determines that presently described application service is corresponding in each application
Each application;According to the execution sequence of determined each application, layout is carried out to identified each application, formation is directed to
The service orchestration of presently described application service;
Using service orchestration each described, each described application service is performed.
Preferably,
Further comprise:
The deployment volume plug-in unit agency in each described main frame;
Pass through disposed volume plug-in unit agency with the storage end of outside to be connected;
In the storage end storage region is divided for each described main frame;
Corresponding operation result is stored in corresponding storage region by each described main frame;
Monitor whether the vacant memory space in storage region corresponding to each described main frame is less than operation knot to be stored
The size of fruit, if it is, being to increase storage region newly corresponding to the main frame division in the storage end.
Preferably,
Each described application container corresponds at least one application;
Further comprise:
For user corresponding to application distribution each described;
The application of corresponding same user is divided into one and applies group;
For user tag information corresponding to application group setting each described;
According to the user tag information, each application group is isolated.
Second aspect, the embodiments of the invention provide a kind of cloud platform architecture device, the device includes:
Deployment unit, for disposing Docker environment in each described main frame at least one main frame;
Setting unit, for setting container cluster management instrument;
Assembled unit, for the container cluster management instrument set using the setting unit, it will deploy
Each main frame of Docker environment is combined as sets of containers group;
Processing unit, for obtaining at least one mirror image of outside input;Using at least one mirror image, deploying
At least one application container is formed in each described main frame of Docker environment;
Determining unit, for according at least one application container, determining at least one corresponding to the container cluster
External interface.
Preferably,
The assembled unit includes:Enable subelement, connection subelement and combination subelement;
It is described to enable subelement, for utilizing the container cluster management instrument, deploying each of Docker environment
Swarm patterns are enabled in the individual main frame;
The connection subelement, in each main frame of Docker environment is deployed, specifying a main frame to make
For host node;Pass through enabled swarm patterns using the host node and establish connection with unspecified main frame;
The combination subelement, according to the connection established, each main frame for deploying Docker environment is combined
For container cluster.
Preferably,
Each described application container corresponds at least one application;
Further comprise:Creating unit and replacement unit;
The creating unit, at least one application according to corresponding to each described application container, create version storehouse
Storehouse, wherein, the version warehouse includes version information corresponding to each described application;
The replacement unit, for when receiving the newly-increased mirror image of outside input, determined in the version warehouse with
Version information corresponding to the newly-increased mirror image;Replaced using the newly-increased mirror image to being applied corresponding to identified version information
Change;Identified version information is updated using the version information of the newly-increased mirror image in the version warehouse.
Preferably,
Each described application container corresponds at least one application;
Further comprise:Service orchestration unit;
The service orchestration unit, for receiving at least one application service of outside input;For being answered each Suo Shu
It is performed both by with service, each application corresponding to presently described application service is determined in each application;It is each according to determining
The execution sequence of individual application, layout is carried out to identified each application, forms the service for being directed to presently described application service
Layout;Using service orchestration each described, each described application service is performed.
Preferably,
Further comprise:Division unit and monitoring unit;
The division unit, for the deployment volume plug-in unit agency in each described main frame;Pass through disposed volume plug-in unit
Act on behalf of and be connected with the storage end of outside;In the storage end storage region is divided for each described main frame;Described in each
Corresponding operation result is stored in corresponding storage region by main frame;
Monitoring unit, for monitoring whether the vacant memory space in storage region corresponding to each described main frame is less than
The size of operation result to be stored, if it is, being to increase storage region newly corresponding to the main frame division in the storage end.
Preferably,
Each described application container corresponds at least one application;
Further comprise:User isolation unit;
The user isolation unit, for for each described application distribution corresponding to user;Will corresponding same user
Application be divided into one and apply group;For user tag information corresponding to application group setting each described;According to the user
Label information, each application group is isolated.
The embodiments of the invention provide cloud platform framework method and device, and Docker rings are disposed first in each main frame
Border, and using the container cluster management instrument set, each main frame for deploying Docker environment is combined as sets of containers group.So
Afterwards when getting each mirror image, application container is formed in each main frame using each mirror image.Finally according to each of formation
Application container determines at least one external interface corresponding to container cluster.By said process, this programme passes through Docker
Environment, container cluster management instrument and each mirror image, it is possible to form application container in each main frame, put down so as to form cloud
Platform.Therefore, scheme provided in an embodiment of the present invention can improve the speed of framework cloud platform.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of flow chart for cloud platform framework method that one embodiment of the invention provides;
Fig. 2 is a kind of flow chart for cloud platform framework method that another embodiment of the present invention provides;
Fig. 3 is a kind of hardware configuration of equipment where a kind of cloud platform architecture device that one embodiment of the invention provides
Figure;
Fig. 4 is a kind of structural representation for cloud platform architecture device that one embodiment of the invention provides;
Fig. 5 is a kind of structural representation for cloud platform architecture device that another embodiment of the present invention provides;
Fig. 6 is a kind of cloud platform architecture device including replacement unit and creating unit that one embodiment of the invention provides
Structural representation;
Fig. 7 is a kind of structure for cloud platform architecture device including service orchestration unit that one embodiment of the invention provides
Schematic diagram;
Fig. 8 is a kind of cloud platform architecture device including division unit and monitoring unit that one embodiment of the invention provides
Structural representation;
Fig. 9 is a kind of structure for cloud platform architecture device including user isolation unit that one embodiment of the invention provides
Schematic diagram.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide a kind of cloud platform framework method, this method can include following step
Suddenly:
Step 101:Docker environment is disposed in each described main frame at least one main frame;
Step 102:Container cluster management instrument is set;
Step 103:Using the container cluster management instrument, each main frame for deploying Docker environment is combined
For container cluster;
Step 104:Obtain at least one mirror image of outside input;
Step 105:Using at least one mirror image, formed in each the described main frame for deploying Docker environment
At least one application container;
Step 106:According at least one application container, determine at least one to external corresponding to the container cluster
Mouthful.
Embodiment according to Fig. 1, Docker environment is disposed first in each main frame, and utilize the container set
Cluster management instrument, each main frame for deploying Docker environment is combined as sets of containers group.Then each mirror image is being got
When, form application container in each main frame using each mirror image.Sets of containers is finally determined according to each application container of formation
At least one external interface corresponding to group.By said process, this programme passes through Docker environment, container cluster management work
Tool and each mirror image, it is possible to application container is formed in each main frame, so as to form cloud platform.Therefore, the present invention is implemented
The scheme that example provides can improve the speed of framework cloud platform.
In an embodiment of the invention, each mirror image can correspond at least one application, and the tool of corresponding application
Body form can determine according to business need.When getting at least one mirror image, it is performed both by for each mirror image, it is determined that working as
Main frame corresponding to preceding mirror image, application container is formed in corresponding main frame, and set currently in the application container formed
At least one application corresponding to mirror image.
In an embodiment of the invention, the step 103 in flow chart shown in above-mentioned Fig. 1 utilizes the container cluster management
Instrument, each main frame for deploying Docker environment is combined as sets of containers group, can be included:
Using the container cluster management instrument, enabled in each the described main frame for deploying Docker environment
Swarm patterns;
In each main frame of Docker environment is deployed, a main frame is specified as host node;
Pass through enabled swarm patterns using the host node and establish connection with unspecified main frame;
According to the connection established, each main frame for deploying Docker environment is combined as sets of containers group.
In the present embodiment, due to enabling swarm patterns in each main frame, as host node main frame with other
When each main frame establishes connection, it is possible to using the service discovery function of swarm patterns, include each main frame, hold so as to be formed
Device cluster.
According to above-described embodiment, due to starting swarm patterns in each main frame, and by swarm patterns by respectively
Individual main frame is combined as sets of containers group.Therefore automaticity that each main frame is combined as to sets of containers group is higher.
In an embodiment of the invention, each described application container involved in flow chart shown in above-mentioned Fig. 1
During corresponding at least one application,
Cloud platform framework method may further include:
According at least one application corresponding to each described application container, version warehouse is created, wherein, the version storehouse
Storehouse includes version information corresponding to each described application;
When receiving the newly-increased mirror image of outside input, determined in the version warehouse corresponding with the newly-increased mirror image
Version information;
It is replaced using the newly-increased mirror image to being applied corresponding to identified version information;
Identified version information is updated using the version information of the newly-increased mirror image in the version warehouse.
In the present embodiment, Github can be used as project warehouse, using Docker Hub officials mirror site from
Dynamic constructing function builds the Docker mirror images of Github projects.
In the present embodiment, version warehouse includes version information corresponding to each application.Wherein, wrapped in version information
Include version number corresponding to each Apply Names and each Apply Names.When newly-increased mirror image is pushed on Github, it is determined that
The version information of newly-increased mirror image, it is then determined that whether there is the version corresponding with the version information of newly-increased mirror image in version warehouse
Information.When it is determined that the version information corresponding with the version information of newly-increased mirror image is not present in version warehouse, newly-increased mirror is utilized
As forming at least one newly-increased application container, and version information corresponding to each application in new volume increasing device is added to version storehouse
In storehouse.When it is determined that the version information corresponding with the version information of newly-increased mirror image be present in version warehouse, newly-increased mirror image is utilized
To, using being replaced, being applied corresponding to identified version information so as to update corresponding to determined version information, so that its
In latest edition.
In the present embodiment, using newly-increased mirror image to corresponding to version information using after being replaced, it is necessary to utilize
The version information of newly-increased mirror image is updated to version information corresponding to being replaced application, so that the version information in version warehouse
It is corresponding with the application that each application container includes.
According to above-described embodiment, the version warehouse for including the corresponding version information of each application is created, to get newly
When increasing mirror image, each application can targetedly be updated according to version warehouse.So as to improve the efficiency of renewal.
In an embodiment of the invention, each described application container involved in flow chart shown in above-mentioned Fig. 1
During corresponding at least one application,
Cloud platform framework method may further include:
Receive at least one application service of outside input;
It is performed both by for application service each described, determines that presently described application service is corresponding in each application
Each application;According to the execution sequence of determined each application, layout is carried out to identified each application, formation is directed to
The service orchestration of presently described application service;
Using service orchestration each described, each described application service is performed.
In the present embodiment, when receiving application service, stack cluster service layouts can be passed through.Matched somebody with somebody by YAML
File is put, specifies the service list of each application service.Wherein, service list include service used in mirror image title and
Version, environmental variance and carry volume.Then by identifying YAML configuration files, application service can be created to perform.
In the present embodiment, execution sequence can be time sequencing or logical order.Such as should corresponding to application service A
With respectively " using 1, using 2 and using 3 ".Wherein using 1 need application 2 and application 3 before perform, using 2
Performed before using 3.Then being formed in service orchestration corresponding to application service A can include using 1, be held using 2 and application 3
Row order, and the information such as application container, version, environmental variance and carry volume corresponding to each application.
According to above-described embodiment, when receiving application service, each application can be held according to corresponding to application service
Row order, determines service orchestration corresponding to received application service.And performed and received according to identified service orchestration
The application service arrived.Therefore the smooth execution of each application service can be ensured, reduce and perform the general of application service appearance mistake
Rate.
In an embodiment of the invention, cloud platform framework method can dispose volume plug-in unit generation in each described main frame
Reason;
Pass through disposed volume plug-in unit agency with the storage end of outside to be connected;
In the storage end storage region is divided for each described main frame;
Corresponding operation result is stored in corresponding storage region by each described main frame;
Monitor whether the vacant memory space in storage region corresponding to each described main frame is less than operation knot to be stored
The size of fruit, if it is, being to increase storage region newly corresponding to the main frame division in the storage end.
In the present embodiment, the distributed storage of cloud platform can be realized using rolling up plug-in unit agency.Wherein, plug-in unit agency is rolled up
Pattern can be determined according to business need.Such as flocker volumes of plug-in unit agency.
In the present embodiment, storage region is divided for each main frame in storage end, when main frame performs operation operation,
In storage region corresponding to operation result and journal file being stored in.When storage region corresponding to main frame is hollow remaining
Can be in real time that the main frame marks off newly-increased memory block in storage end when memory space is less than operation result to be stored
Domain, to store operation result to be stored using newly-increased storage region.
According to above-described embodiment, the deployment volume plug-in unit agency in each main frame, passing through disposed volume plug-in unit agency will
Each main frame is connected with storage end.So that operation result is stored in corresponding storage region by each main frame.And work as main frame pair
During clearance spaces deficiency in the storage region answered, it can be that main frame mark off newly-increased storage region, be lost with reducing operation result
The probability of mistake.
In an embodiment of the invention, each described application container involved in flow chart shown in above-mentioned Fig. 1
Corresponding at least one application;
Cloud platform framework method may further include:
For user corresponding to application distribution each described;
The application of corresponding same user is divided into one and applies group;
For user tag information corresponding to application group setting each described;
According to the user tag information, each application group is isolated.
In the present embodiment, when multiple users be present, in order to improve each user it is safe to use when, it is necessary to be each
Individual user provides independent application deployment, running environment, to ensure that each user can not access the application outside oneself authority.
In the present embodiment, the application of corresponding same user is divided into one and applies group, and group is applied for each
The label information of corresponding user is set.It should be noted that the label information of user should have uniqueness, to ensure each user
Corresponding application can be accessed according to the user tag information.
In the present embodiment, each application group can be isolated using sandbox principle.
According to above-described embodiment, it is necessary to which the application of corresponding same user is divided into one applies group when multi-user be present.
And be user tag information corresponding to the setting of each application group, each application group is isolated according to user tag information, from
And realize the isolation of each user.Due to being isolated to being applied corresponding to each user, therefore security can be improved.
Below exemplified by it main frame 1, main frame 2 and main frame 3 be present.Expansion explanation cloud platform framework method, as shown in Fig. 2
The cloud platform framework method may include steps of:
Step 201:Docker environment is disposed in each main frame at least one main frame.
In this step, Docker environment is disposed respectively in main frame 1, main frame 2 and main frame 3.
Step 202:Container cluster management instrument is set.
In this step, swarm container cluster management instruments are set.
Step 203:Using container cluster management instrument, enabled in each main frame for deploying Docker environment
Swarm patterns.
In this step, swarm patterns are enabled respectively in main frame 1, main frame 2 and main frame 3.
Step 204:In each main frame of Docker environment is deployed, a main frame is specified as host node.
In this step, given host 1 is host node.
Step 205:Pass through enabled swarm patterns using host node and establish connection with unspecified main frame.
In this step, using the service discovery function that swarm patterns are enabled in main frame 1, main frame 2 and main frame 3 are included.
Step 206:According to the connection established, each main frame for deploying Docker environment is combined as sets of containers group.
In this step, main frame 1, main frame 2 and main frame 3 are combined as container cluster.
Step 207:Obtain at least one mirror image of outside input.
In this step, mirror image 1, mirror image 2 and mirror image 3 are obtained.
Step 208:Using at least one mirror image of acquisition, formed in each main frame for deploying Docker environment to
A few application container.
In this step, application container A is formd in main frame 1 using mirror image 1, is formd using mirror image 2 in main frame 2
Application container B and application container C, application container D is formd in main frame 3 using mirror image 3.
Step 209:According at least one application container, at least one external interface corresponding to container cluster is determined.
In this step, using the DNS domain name route service based on Swarm, and applied corresponding to each application container,
Container cluster to be combined into determines external interface.
Step 210:For user corresponding to each application distribution.
In this step, each application container corresponds at least one application.Can be each according to business need
Using user corresponding to distribution.
Step 211:The application of corresponding same user is divided into one and applies group.
It is divided into using group 1.Application corresponding to user 2 is divided into
Using group 2.
Step 212:For user tag information corresponding to each application group setting.
Step 213:According to user tag information, each application group is isolated.
In this step, according to each user tag information, each application group is isolated using sandbox principle.
Step 214:At least one application according to corresponding to each application container, version warehouse is created, wherein, version storehouse
Storehouse includes version information corresponding to each application.
In this step, for example exist in the version warehouse that creates and apply version information corresponding to 1 " 1.0 version "
Step 215:When receiving the newly-increased mirror image of outside input, determined in version warehouse corresponding with newly-increased mirror image
Version information.
In this step, newly-increased mirror image 1 is have received, version information corresponding with newly-increased mirror image is determined in version warehouse
For " applying version information corresponding to 1 ".
Step 216:It is replaced using newly-increased mirror image to being applied corresponding to identified version information.
In this step, the application 1 that the application 1 of " 1.0 version " is replaced with to " 2.0 version " using newly-increased mirror image is utilized.
Step 217:Identified version information is updated using the version information of newly-increased mirror image in version warehouse.
In this step, will be updated to " 2.0 version " using version information corresponding to 1 in version warehouse.
Step 218:Receive at least one application service of outside input.
In this step, for example application service A is received.
Step 219:An application service is selected at least one application service successively as current application service.
Step 220:Each application corresponding to current application service is determined in the respective applications;According to determined each application
Execution sequence, layout is carried out to identified each application, forms the service orchestration for being directed to current application service.
In this step, application corresponding to application service A is respectively " using 1, using 2 and using 3 ".Wherein apply 1
Need to perform before application 2 and application 3, performed using 2 before application 3.Service corresponding to application service A is then formed to compile
Can include in row using 1, using 2 and the execution sequence of application 3, and application container corresponding to each application, version,
The information such as environmental variance and carry volume.
Step 221:Judge whether current application service is last application service, if it is, performing step 222;It is no
Then, step 219 is performed.
Step 222:Using each service orchestration, each application service is performed.
Step 223:The deployment volume plug-in unit agency in each main frame.
In this step, flocker volumes of plug-in unit agency is deployed respectively in main frame 1, main frame 2 and main frame 3.
Step 224:Pass through disposed volume plug-in unit agency with the storage end of outside to be connected.
Step 225:In storage end storage region is divided for each main frame.
In this step, illustrated by taking main frame 1 as an example, storage region 1 is divided for main frame 1 in storage end.
Step 226:Corresponding operation result is stored in corresponding storage region by each main frame.
Step 227:Monitor whether the vacant memory space in storage region corresponding to each main frame is less than fortune to be stored
The size of row result, if it is, performing step 228;Otherwise, current process is terminated.
In this step, monitor that the hollow remaining memory space of storage region 1 corresponding to main frame 1 is less than operation to be stored
As a result, step 228 is performed.
Step 228:In storage end corresponding newly-increased storage region is drawn for main frame.
In this step, corresponding newly-increased storage region 1 is marked off in storage end for 1.
As shown in Figure 3, Figure 4, the embodiments of the invention provide a kind of cloud platform architecture device.Device embodiment can pass through
Software is realized, can also be realized by way of hardware or software and hardware combining.For hardware view, as shown in figure 3, being this
A kind of hardware structure diagram of equipment where the cloud platform architecture device that inventive embodiments provide, except the processor shown in Fig. 3, interior
Deposit, outside network interface and nonvolatile memory, it is hard that the equipment in embodiment where device can also generally include other
Part, such as it is responsible for the forwarding chip of processing message.Exemplified by implemented in software, as shown in figure 4, as on a logical meaning
Device, it is to be read corresponding computer program instructions in nonvolatile memory in internal memory by the CPU of equipment where it
What operation was formed.The cloud platform architecture device that the present embodiment provides, including:
Deployment unit 401, for disposing Docker environment in each described main frame at least one main frame;
Setting unit 402, for setting container cluster management instrument;
Assembled unit 403, for the container cluster management instrument set using the setting unit 402, it will dispose
The each main frame of Docker environment is combined as sets of containers group;
Processing unit 404, for obtaining at least one mirror image of outside input;Using at least one mirror image, in portion
Affix one's name in each described main frame of Docker environment and formed at least one application container;
Determining unit 405, for according at least one application container, determining at least one corresponding to the container cluster
Individual external interface.
Embodiment according to Fig. 4, the container cluster management instrument of setting unit setting is utilized using assembled unit, will
The each main frame for deploying Docker environment is combined as sets of containers group.When processing unit gets mirror image, each of acquisition is utilized
Individual mirror image forms application container in each main frame.And determine to hold according to each application container of formation using determining unit
Each external interface corresponding to device cluster.By said process, this programme passes through Docker environment, container cluster management work
Tool and each mirror image, it is possible to application container is formed in each main frame, so as to form cloud platform.Therefore, the present invention is implemented
The scheme that example provides can improve the speed of framework cloud platform.
In an embodiment of the invention, as shown in figure 5, the assembled unit 403 can include:Enable subelement 501,
Connect subelement 502 and combination subelement 503;
It is described to enable subelement 501, for utilizing the container cluster management instrument, deploying the every of Docker environment
Swarm patterns are enabled in one main frame;
The connection subelement 502, in each main frame of Docker environment is deployed, specifying a main frame
As host node;Pass through enabled swarm patterns using the host node and establish connection with unspecified main frame;
The combination subelement 503, according to the connection established, will deploy each host groups of Docker environment
It is combined into container cluster.
In an embodiment of the invention, as shown in fig. 6, corresponding at least one application in each described application container
When,
Cloud platform architecture device may further include:Creating unit 601 and replacement unit 602;
The creating unit 601, at least one application according to corresponding to each described application container, create version
Warehouse, wherein, the version warehouse includes version information corresponding to each described application;
The replacement unit 602, for when receiving the newly-increased mirror image of outside input, being determined in the version warehouse
Version information corresponding with the newly-increased mirror image;Carried out using the newly-increased mirror image to being applied corresponding to identified version information
Replace;Identified version information is updated using the version information of the newly-increased mirror image in the version warehouse.
In an embodiment of the invention, as shown in fig. 7, corresponding at least one application in each described application container
When,
Cloud platform architecture device may further include:Service orchestration unit 701;
The service orchestration unit 701, for receiving at least one application service of outside input;For described in each
Application service is performed both by, and each application corresponding to presently described application service is determined in each application;According to being determined
The execution sequence of each application, layout is carried out to identified each application, forms the clothes for being directed to presently described application service
Business layout;Using service orchestration each described, each described application service is performed.
In an embodiment of the invention, as shown in figure 8, cloud platform architecture device may further include:Division unit
801 and monitoring unit 802;
The division unit 801, for the deployment volume plug-in unit agency in each described main frame;Pass through disposed volume to insert
Part is acted on behalf of to be connected with the storage end of outside;In the storage end storage region is divided for each described main frame;Each institute
State main frame corresponding operation result is stored in corresponding storage region;
The monitoring unit 802, for monitoring the vacant memory space in storage region corresponding to each described main frame
Whether the size of to be stored operation result is less than, if it is, being to increase newly to deposit corresponding to the main frame division in the storage end
Storage area domain.
In an embodiment of the invention, as shown in figure 9, corresponding at least one application in each described application container
When,
Cloud platform architecture device may further include:User isolation unit 901;
The user isolation unit 901, for for each described application distribution corresponding to user;Will corresponding same use
The application at family is divided into one and applies group;For user tag information corresponding to application group setting each described;According to the use
Family label information, each application group is isolated.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method
Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
In summary, each embodiment of the present invention can at least realize following beneficial effect:
1st, in embodiments of the present invention, Docker environment is disposed first in each main frame, and utilizes the container set
Cluster management instrument, each main frame for deploying Docker environment is combined as sets of containers group.Then each mirror image is being got
When, form application container in each main frame using each mirror image.Sets of containers is finally determined according to each application container of formation
At least one external interface corresponding to group.By said process, this programme passes through Docker environment, container cluster management work
Tool and each mirror image, it is possible to application container is formed in each main frame, so as to form cloud platform.Therefore, the present invention is implemented
The scheme that example provides can improve the speed of framework cloud platform.
2nd, in embodiments of the present invention, due to starting swarm patterns in each main frame, and swarm patterns are passed through
Each main frame is combined as sets of containers group.Therefore automaticity that each main frame is combined as to sets of containers group is higher.
3rd, in embodiments of the present invention, creating includes the version warehouse of the corresponding version information of each application, to obtain
During to newly-increased mirror image, each application can targetedly be updated according to version warehouse.So as to improve renewal
Efficiency.
4th, in embodiments of the present invention, can each application according to corresponding to application service when receiving application service
Execution sequence, determine service orchestration corresponding to received application service.And institute is performed according to identified service orchestration
The application service received.Therefore the smooth execution of each application service can be ensured, execution application service is reduced and mistake occur
Probability.
5th, in embodiments of the present invention, the deployment volume plug-in unit agency in each main frame, passes through disposed volume plug-in unit generation
Each main frame is connected by reason with storage end.So that operation result is stored in corresponding storage region by each main frame.And as master
Can be that main frame mark off newly-increased storage region, to reduce operation knot during clearance spaces deficiency in storage region corresponding to machine
The probability that fruit is lost.
6th, in embodiments of the present invention, answered when multi-user be present, it is necessary to which the application of corresponding same user is divided into one
With group.And for each application group set corresponding to user tag information, according to user tag information to each application group carry out every
From so as to realize the isolation of each user.Due to being isolated to being applied corresponding to each user, therefore safety can be improved
Property.
7th, in embodiments of the present invention, the container cluster management instrument of setting unit setting is utilized using assembled unit, will
The each main frame for deploying Docker environment is combined as sets of containers group.When processing unit gets mirror image, each of acquisition is utilized
Individual mirror image forms application container in each main frame.And determine to hold according to each application container of formation using determining unit
Each external interface corresponding to device cluster.By said process, this programme passes through Docker environment, container cluster management work
Tool and each mirror image, it is possible to application container is formed in each main frame, so as to form cloud platform.Therefore, the present invention is implemented
The scheme that example provides can improve the speed of framework cloud platform.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity
Or operation makes a distinction with another entity or operation, and not necessarily require or imply and exist between these entities or operation
Any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, article or equipment including a series of elements not only include those key elements,
But also the other element including being not expressly set out, or also include solid by this process, method, article or equipment
Some key elements.In the absence of more restrictions, the key element limited by sentence " including one ", is not arranged
Except other identical factor in the process including the key element, method, article or equipment being also present.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in computer-readable storage medium, the program
Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, is merely to illustrate the skill of the present invention
Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention,
Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.
Claims (10)
- A kind of 1. cloud platform framework method, it is characterised in that including:Docker environment is disposed in each described main frame at least one main frame;Container cluster management instrument is set;Using the container cluster management instrument, each main frame for deploying Docker environment is combined as sets of containers group;Obtain at least one mirror image of outside input;Using at least one mirror image, at least one application is formed in each the described main frame for deploying Docker environment Container;According at least one application container, at least one external interface corresponding to the container cluster is determined.
- 2. according to the method for claim 1, it is characterised in thatIt is described to utilize the container cluster management instrument, each main frame for deploying Docker environment is combined as sets of containers Group, including:Using the container cluster management instrument, swarm moulds are enabled in each the described main frame for deploying Docker environment Formula;In each main frame of Docker environment is deployed, a main frame is specified as host node;Pass through enabled swarm patterns using the host node and establish connection with unspecified main frame;According to the connection established, each main frame for deploying Docker environment is combined as sets of containers group.
- 3. according to the method for claim 1, it is characterised in thatEach described application container corresponds at least one application;Further comprise:According at least one application corresponding to each described application container, version warehouse is created, wherein, in the version warehouse Including version information corresponding to application each described;When receiving the newly-increased mirror image of outside input, version corresponding with the newly-increased mirror image is determined in the version warehouse Information;It is replaced using the newly-increased mirror image to being applied corresponding to identified version information;Identified version information is updated using the version information of the newly-increased mirror image in the version warehouse.
- 4. according to the method for claim 1, it is characterised in thatEach described application container corresponds at least one application;Further comprise:Receive at least one application service of outside input;It is performed both by, is determined in each application each corresponding to presently described application service for application service each described Individual application;According to the execution sequence of determined each application, layout is carried out to identified each application, formation is directed to current The service orchestration of the application service;Using service orchestration each described, each described application service is performed.
- 5. according to the method for claim 1, it is characterised in thatFurther comprise:The deployment volume plug-in unit agency in each described main frame;Pass through disposed volume plug-in unit agency with the storage end of outside to be connected;In the storage end storage region is divided for each described main frame;Corresponding operation result is stored in corresponding storage region by each described main frame;Monitor whether the vacant memory space in storage region corresponding to each described main frame is less than operation result to be stored Size, if it is, being to increase storage region newly corresponding to the main frame division in the storage end;And/orEach described application container corresponds at least one application;Further comprise:For user corresponding to application distribution each described;The application of corresponding same user is divided into one and applies group;For user tag information corresponding to application group setting each described;According to the user tag information, each application group is isolated.
- A kind of 6. cloud platform architecture device, it is characterised in that including:Deployment unit, for disposing Docker environment in each described main frame at least one main frame;Setting unit, for setting container cluster management instrument;Assembled unit, for the container cluster management instrument set using the setting unit, Docker rings will be deployed Each main frame in border is combined as sets of containers group;Processing unit, for obtaining at least one mirror image of outside input;Using at least one mirror image, deploying At least one application container is formed in each described main frame of Docker environment;Determining unit, for according at least one application container, determining at least one external corresponding to the container cluster Interface.
- 7. device according to claim 6, it is characterised in thatThe assembled unit includes:Enable subelement, connection subelement and combination subelement;It is described to enable subelement, for utilizing the container cluster management instrument, deploying each institute of Docker environment State and swarm patterns are enabled in main frame;The connection subelement, in each main frame of Docker environment is deployed, specifying a main frame as master Node;Pass through enabled swarm patterns using the host node and establish connection with unspecified main frame;The combination subelement, according to the connection established, each main frame for deploying Docker environment is combined as holding Device cluster.
- 8. device according to claim 6, it is characterised in thatEach described application container corresponds at least one application;Further comprise:Creating unit and replacement unit;The creating unit, at least one application according to corresponding to each described application container, version warehouse is created, its In, the version warehouse includes version information corresponding to each described application;The replacement unit, for when receiving the newly-increased mirror image of outside input, determined in the version warehouse with it is described Version information corresponding to newly-increased mirror image;It is replaced using the newly-increased mirror image to being applied corresponding to identified version information; Identified version information is updated using the version information of the newly-increased mirror image in the version warehouse.
- 9. device according to claim 6, it is characterised in thatEach described application container corresponds at least one application;Further comprise:Service orchestration unit;The service orchestration unit, for receiving at least one application service of outside input;Taken for application each described Business is performed both by, and each application corresponding to presently described application service is determined in each application;According to it is determined it is each should Execution sequence, layout is carried out to identified each application, forms the service orchestration for being directed to presently described application service; Using service orchestration each described, each described application service is performed.
- 10. device according to claim 6, it is characterised in thatFurther comprise:Division unit and monitoring unit;The division unit, for the deployment volume plug-in unit agency in each described main frame;Pass through disposed volume plug-in unit agency It is connected with the storage end of outside;In the storage end storage region is divided for each described main frame;Each described main frame Corresponding operation result is stored in corresponding storage region;Monitoring unit, for monitor the vacant memory space in storage region corresponding to each described main frame whether be less than wait to deposit The size of operation result is stored up, if it is, being to increase storage region newly corresponding to the main frame division in the storage end;And/orEach described application container corresponds at least one application;Further comprise:User isolation unit;The user isolation unit, for for each described application distribution corresponding to user;By answering for corresponding same user Group is applied with being divided into one;For user tag information corresponding to application group setting each described;According to the user tag Information, each application group is isolated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710873765.XA CN107659643A (en) | 2017-09-25 | 2017-09-25 | Cloud platform construction method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710873765.XA CN107659643A (en) | 2017-09-25 | 2017-09-25 | Cloud platform construction method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107659643A true CN107659643A (en) | 2018-02-02 |
Family
ID=61130938
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710873765.XA Pending CN107659643A (en) | 2017-09-25 | 2017-09-25 | Cloud platform construction method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107659643A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108628664A (en) * | 2018-05-11 | 2018-10-09 | 北京辰森世纪科技股份有限公司 | A kind of method and device of container processing |
CN109189464A (en) * | 2018-07-11 | 2019-01-11 | 高新兴科技集团股份有限公司 | A kind of method and apparatus of version management |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105357296A (en) * | 2015-10-30 | 2016-02-24 | 河海大学 | Elastic caching system based on Docker cloud platform |
US20160350105A1 (en) * | 2015-05-27 | 2016-12-01 | Runnable Inc. | Automatic communications graphing for a source application |
CN106776960A (en) * | 2016-12-05 | 2017-05-31 | 公安部第三研究所 | Based on the big data cloud platform that micro- container is realized |
CN106878385A (en) * | 2016-12-30 | 2017-06-20 | 新华三技术有限公司 | Private clound dispositions method and device |
-
2017
- 2017-09-25 CN CN201710873765.XA patent/CN107659643A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160350105A1 (en) * | 2015-05-27 | 2016-12-01 | Runnable Inc. | Automatic communications graphing for a source application |
CN105357296A (en) * | 2015-10-30 | 2016-02-24 | 河海大学 | Elastic caching system based on Docker cloud platform |
CN106776960A (en) * | 2016-12-05 | 2017-05-31 | 公安部第三研究所 | Based on the big data cloud platform that micro- container is realized |
CN106878385A (en) * | 2016-12-30 | 2017-06-20 | 新华三技术有限公司 | Private clound dispositions method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108628664A (en) * | 2018-05-11 | 2018-10-09 | 北京辰森世纪科技股份有限公司 | A kind of method and device of container processing |
CN109189464A (en) * | 2018-07-11 | 2019-01-11 | 高新兴科技集团股份有限公司 | A kind of method and apparatus of version management |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106126521B (en) | The social account method for digging and server of target object | |
CN102984194B (en) | The synchronous method and system of the configuration file of virtual applications distribution frame | |
CN104253831B (en) | A kind of method and system for being used for the application deployment in cloud computing environment | |
CN103299602B (en) | Data syn-chronization | |
CN106576054A (en) | Network device configuration framework | |
CN103905508B (en) | Cloud platform application dispositions method and device | |
JP4746091B2 (en) | Network design processing apparatus, network design processing method, and network design processing program | |
CN105191215A (en) | Data plane learning of bi-directional service chains | |
CN104718723A (en) | A framework for networking and security services in virtual networks | |
CN104753968B (en) | Cloud computing cross-region multiple data centers and its schedule management method | |
JP2013520749A (en) | System and method for object migration using waves | |
CN106537350A (en) | Method for processing data quality exceptions in data processing system | |
CN107209695A (en) | System, virtualization control device, the methods and procedures for controlling virtualization control device | |
CN106202006A (en) | Document generating method and device | |
CN103207813B (en) | The method and apparatus for managing resource | |
CN110515896A (en) | Model resource management method, model file production method, device and system | |
CN103634147A (en) | Network topology management method and equipment | |
CN109379268A (en) | Creation method, device and the server of Virtual Private Network | |
WO2020106475A1 (en) | System and method for migrating existing access control list policies to intent based policies and vice versa | |
CN107659643A (en) | Cloud platform construction method and device | |
CN110232258A (en) | CAD diagram paper checks method, system, computer readable storage medium and the terminal of reference variation under editable environment | |
CN109150964A (en) | A kind of transportable data managing method and services migrating method | |
CN107357810A (en) | A kind of method and system for being used to export special topic landing page | |
CN107239568A (en) | Distributed index implementation method and device | |
CN114640678A (en) | Pod management method, device and medium based on SR-IOV |
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: 20180202 |