CN109857516A - Cluster moving method and device based on container - Google Patents
Cluster moving method and device based on container Download PDFInfo
- Publication number
- CN109857516A CN109857516A CN201811646278.0A CN201811646278A CN109857516A CN 109857516 A CN109857516 A CN 109857516A CN 201811646278 A CN201811646278 A CN 201811646278A CN 109857516 A CN109857516 A CN 109857516A
- Authority
- CN
- China
- Prior art keywords
- cluster
- kafka
- zookeeper
- migrated
- container
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000005012 migration Effects 0.000 claims abstract description 20
- 238000013508 migration Methods 0.000 claims abstract description 20
- 238000012217 deletion Methods 0.000 claims description 15
- 230000037430 deletion Effects 0.000 claims description 15
- 238000010586 diagram Methods 0.000 description 11
- 238000004590 computer program Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 244000035744 Hura crepitans Species 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of cluster moving method and device based on container, the method are applied in server, and the server application includes Kafka cluster and/or zookeeper cluster;The described method includes: judge current server apply comprising group type;When the group type is Kafka cluster and zookeeper cluster, following step is executed: according to the new zookeeper node container of zookeeper clustered deploy(ment) to be migrated;All Kafka node containers in Kafka cluster to be migrated are deleted, the node listing of the zookeeper cluster in the new Kafka cluster is updated according to the new zookeeper node container;According to the new Kafka node container of Kafka clustered deploy(ment) to be migrated, and by the Data Migration in the Kafka node container in Kafka cluster to be migrated to the new Kafka node container;It changes to zookeeper cluster notice Kafka cluster.Cluster moving method and device provided in an embodiment of the present invention based on container, when being able to solve progress cluster migration in the prior art the problem of loss of data.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of cluster moving methods and device based on container.
Background technique
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein
Description recognizes it is the prior art not because not being included in this section.
Kafka is that a kind of distributed post of high-throughput subscribes to message system, can handle the website of consumer's scale
In everything flow data, usually in the form of cluster occur.Zookeeper is that a distributed application program coordinates clothes
Business, is commonly used to solve the problems, such as the distributed consensus of kafka cluster, also occurs in the form of cluster.
Docker container is a burning hot in recent years technology, and developer, which can be packaged, is applied to a transplantable container
In, it is then published on the linux machine of any prevalence, also may be implemented to virtualize.Container uses sandbox mechanism completely, can be with
It is easily run in machine and data center, and not depending on any language, frame includes system, therefore is become
The only selection that many service routines are realized in Linux system, Kafka and zookeeper service are just typically located in container and run.
But after some server breaks down in Kafka and zookeeper service cluster, it may cause serious number
According to loss, or even can not occur the case where networking, or when some server is replaced, require progress cluster and move
It moves, however there is no a kind of cluster moving methods for preventing loss of data at present.
Summary of the invention
The embodiment of the present invention provides a kind of cluster moving method based on container, is able to solve and carries out cluster in the prior art
When migration the problem of loss of data.
A kind of cluster moving method based on container, the method are applied in server, and the server application includes
Kafka cluster and/or zookeeper cluster;The described method includes:
Judge current server apply comprising group type;
When the group type is Kafka cluster and zookeeper cluster, following step is executed:
According to the new zookeeper node container of zookeeper clustered deploy(ment) to be migrated;
All Kafka node containers in Kafka cluster to be migrated are deleted, according to the new zookeeper node container
Update the node listing of the zookeeper cluster in the new Kafka cluster;
According to the new Kafka node container of Kafka clustered deploy(ment) to be migrated, and will be in Kafka cluster to be migrated
Data Migration in Kafka node container is to the new Kafka node container;
It changes to zookeeper cluster notice Kafka cluster.
Further, it is described to zookeeper cluster notice Kafka cluster change after, the method is also wrapped
It includes:
Delete the Kafka node container in Kafka cluster to be migrated.
Further, before the Kafka node container new according to Kafka clustered deploy(ment) to be migrated, the side
Method further include:
Delete zookeeper node container and corresponding data in zookeeper cluster to be migrated.
A kind of cluster moving method based on container, the method is applied in server, and the server application includes
Kafka cluster and/or zookeeper cluster;The described method includes:
Judge current server apply comprising group type;
When the group type is zookeeper cluster, following step is executed:
According to the new zookeeper node container of zookeeper clustered deploy(ment) to be migrated;
Delete zookeeper node container and corresponding data in zookeeper cluster to be migrated.
A kind of cluster moving method based on container, the method are applied in server, and the server application includes
Kafka cluster and/or zookeeper cluster;The described method includes:
Judge current server apply comprising group type;
When the group type is Kafka cluster, following step is executed:
According to the new Kafka node container of Kafka clustered deploy(ment) to be migrated, and will be in Kafka cluster to be migrated
Data Migration in Kafka node container is to the new Kafka node container;
Delete the Kafka node container in Kafka cluster to be migrated.
A kind of cluster moving apparatus based on container, described device are applied in server, and the server application includes
Kafka cluster and/or zookeeper cluster;Described device include: judging unit, deployment unit, delete unit, updating unit,
Notification unit;Wherein,
The judging unit, for judge current server apply comprising group type;
When the group type is Kafka cluster and zookeeper cluster;
The deployment unit, for the zookeeper node container new according to zookeeper clustered deploy(ment) to be migrated;
The deletion unit, for deleting all Kafka node containers in Kafka cluster to be migrated;
The updating unit, for being updated in the new Kafka cluster according to the new zookeeper node container
The node listing of zookeeper cluster;
The deployment unit, is also used to the Kafka node container new according to Kafka clustered deploy(ment) to be migrated, and will be to
The Data Migration in Kafka node container in the Kafka cluster of migration is to the new Kafka node container;
The notification unit, for changing to zookeeper cluster notice Kafka cluster.
Further, the deletion unit is also used to notify Kafka collection to zookeeper cluster in the notification unit
After group changes, the Kafka node container in Kafka cluster to be migrated is deleted.
Further, the deletion unit is also used to new according to Kafka clustered deploy(ment) to be migrated in the deployment unit
Kafka node container before, delete zookeeper node container and corresponding data in zookeeper cluster to be migrated.
A kind of cluster moving apparatus based on container, described device are applied in server, and the server application includes
Kafka cluster and/or zookeeper cluster;Described device includes: judging unit, deployment unit, deletes unit;Wherein,
The judging unit, for judge current server apply comprising group type;
When the group type is zookeeper cluster,
The deployment unit, for the zookeeper node container new according to zookeeper clustered deploy(ment) to be migrated;
The deletion unit, for deleting zookeeper node container and corresponding number in zookeeper cluster to be migrated
According to.
A kind of cluster moving apparatus based on container, described device are applied in server, and the server application includes
Kafka cluster and/or zookeeper cluster;Described device includes: judging unit, deployment unit, deletes unit;Wherein,
The judging unit, for judge current server apply comprising group type;
When the group type is Kafka cluster,
The deployment unit, for the Kafka node container new according to Kafka clustered deploy(ment) to be migrated, and will be wait move
The Data Migration in Kafka node container in the Kafka cluster of shifting is to the new Kafka node container;
The deletion unit, for deleting the Kafka node container in Kafka cluster to be migrated.
Cluster moving method and device provided in an embodiment of the present invention based on container, by judging current server application
The group type for including;When the group type be Kafka cluster and zookeeper cluster when, execute following step: according to
The new zookeeper node container of the zookeeper clustered deploy(ment) of migration;Delete all Kafka sections in Kafka cluster to be migrated
Point container, the section of the zookeeper cluster in the new Kafka cluster is updated according to the new zookeeper node container
Point list;According to the new Kafka node container of Kafka clustered deploy(ment) to be migrated, and will be in Kafka cluster to be migrated
Data Migration in Kafka node container is to the new Kafka node container;Kafka cluster is notified to zookeeper cluster
It changes.It can be in server fail or when needing replacing server, according to the characteristic of different clusters by former server
Application cluster and Data Migration to new demand servicing device, it is therefore prevented that loss of data.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation
Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the implementation principle schematic diagram of the cluster moving method provided in an embodiment of the present invention based on container;
Fig. 2 is the cluster moving method another kind implementation principle schematic diagram provided in an embodiment of the present invention based on container;
Fig. 3 is another implementation principle schematic diagram of the cluster moving method based on container provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the cluster moving apparatus provided in an embodiment of the present invention based on container.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Referring to Fig.1, the embodiment of the present invention provides a kind of cluster moving method based on container, and the method is applied to service
In device, the server application includes Kafka cluster and/or zookeeper cluster;The described method includes:
Step 101, judge current server apply comprising group type;
When the group type is Kafka cluster and zookeeper cluster, following step is executed:
Step 102, the zookeeper node container new according to zookeeper clustered deploy(ment) to be migrated;
Step 103, all Kafka node containers in Kafka cluster to be migrated are deleted, according to the new zookeeper
Node container updates the node listing of the zookeeper cluster in the new Kafka cluster;
Step 104, the Kafka node container new according to Kafka clustered deploy(ment) to be migrated, and by Kafka to be migrated
The Data Migration in Kafka node container in cluster is to the new Kafka node container;
Step 105, it changes to zookeeper cluster notice Kafka cluster.
Further, after step 105, the method also includes: delete in Kafka cluster to be migrated Kafka section
Point container.
Before the step 104 is according to the new Kafka node container of Kafka clustered deploy(ment) to be migrated, the method
Further include:
Delete zookeeper node container and corresponding data in zookeeper cluster to be migrated.
Cluster moving method provided in an embodiment of the present invention based on container, by by Kafka cluster and zookeeper collection
Kafka node and the operation of zookeeper node in group can be realized the simple portable of cluster in a reservoir;And Kafka
Cluster depends on zookeeper, when both sides change, can all notice other side;Newly added zookeeper node confirmation is added to
Migrating data is not needed after in cluster, kafka needs migrating data, while can be realized the migration of efficient cluster, guarantees data
It does not lose.
Should be appreciated that the cluster moving method provided in an embodiment of the present invention based on container, can also be applied to only include
In the server of Kafka cluster or zookeeper cluster;With specific reference to Fig. 2, which comprises
Step 201, judge current server apply comprising group type;
When the group type is zookeeper cluster, following step is executed:
Step 202, the zookeeper node container new according to zookeeper clustered deploy(ment) to be migrated;
Step 203, zookeeper node container and corresponding data in zookeeper cluster to be migrated are deleted.
Cluster moving method provided in an embodiment of the present invention based on container can also be applied to only include Kafka cluster
Or in the server of zookeeper cluster;With specific reference to Fig. 3, which comprises
Step 301, judge current server apply comprising group type;
When the group type is Kafka cluster, following step is executed:
Step 302, the Kafka node container new according to Kafka clustered deploy(ment) to be migrated, and by Kafka to be migrated
The Data Migration in Kafka node container in cluster is to the new Kafka node container;
Step 303, the Kafka node container in Kafka cluster to be migrated is deleted.
Based on the same inventive concept, a kind of cluster moving apparatus based on container is additionally provided in the embodiment of the present invention, by
It is similar to the cluster moving method based on container in the principle that above-mentioned apparatus solves the problems, such as, therefore the implementation of above-mentioned apparatus can be joined
The implementation of square method, overlaps will not be repeated.
As shown in figure 4, it is the structural schematic diagram of the cluster moving apparatus provided in an embodiment of the present invention based on container, institute
Device is stated applied in server, the server application includes Kafka cluster and/or zookeeper cluster;Described device can
To include: judging unit 41, deployment unit 42, delete unit 43, updating unit 44, notification unit 45;Wherein,
The judging unit 41, for judge current server apply comprising group type;
When the group type is Kafka cluster and zookeeper cluster;
The deployment unit 42, for holding according to the new zookeeper node of zookeeper clustered deploy(ment) to be migrated
Device;
The deletion unit 43, for deleting all Kafka node containers in Kafka cluster to be migrated;
The updating unit 44, for being updated in the new Kafka cluster according to the new zookeeper node container
Zookeeper cluster node listing;
The deployment unit 42 is also used to the Kafka node container new according to Kafka clustered deploy(ment) to be migrated, and will
The Data Migration in Kafka node container in Kafka cluster to be migrated is to the new Kafka node container;
The notification unit 45, for changing to zookeeper cluster notice Kafka cluster.
The deletion unit 43 is also used to become in the notification unit to zookeeper cluster notice Kafka cluster
After dynamic, the Kafka node container in Kafka cluster to be migrated is deleted.
Wherein, the deletion unit 43 is also used to new according to Kafka clustered deploy(ment) to be migrated in the deployment unit 42
Kafka node container before, delete zookeeper node container and corresponding data in zookeeper cluster to be migrated.
The embodiment of the present invention also provides a kind of cluster moving apparatus based on container, and described device is applied in server,
The server application includes Kafka cluster and/or zookeeper cluster;Described device include: judging unit, deployment unit,
Delete unit;Wherein,
The judging unit, for judge current server apply comprising group type;
When the group type is zookeeper cluster,
The deployment unit, for the zookeeper node container new according to zookeeper clustered deploy(ment) to be migrated;
The deletion unit, for deleting zookeeper node container and corresponding number in zookeeper cluster to be migrated
According to.
The embodiment of the present invention also provides a kind of cluster moving apparatus based on container, and described device is applied in server,
The server application includes Kafka cluster and/or zookeeper cluster;Described device include: judging unit, deployment unit,
Delete unit;Wherein,
The judging unit, for judge current server apply comprising group type;
When the group type is Kafka cluster,
The deployment unit, for the Kafka node container new according to Kafka clustered deploy(ment) to be migrated, and will be wait move
The Data Migration in Kafka node container in the Kafka cluster of shifting is to the new Kafka node container;
The deletion unit, for deleting the Kafka node container in Kafka cluster to be migrated.
For convenience of description, above each section is divided by function describes respectively for each module (or unit).Certainly, exist
Implement to realize the function of each module (or unit) in same or multiple softwares or hardware when the present invention.
After describing the cluster moving method and device based on container of exemplary embodiment of the invention, connect down
Come, introduces the computing device of another exemplary embodiment according to the present invention.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
In some possible embodiments, it is single can to include at least at least one processing for computing device according to the present invention
Member and at least one storage unit.Wherein, the storage unit is stored with program code, when said program code is described
When processing unit executes, so that the processing unit executes the exemplary implementations various according to the present invention of this specification foregoing description
Step in the cluster moving method based on container of mode.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.
Claims (10)
1. a kind of cluster moving method based on container, which is characterized in that the method is applied in server, the server
Using including Kafka cluster and/or zookeeper cluster;The described method includes:
Judge current server apply comprising group type;
When the group type is Kafka cluster and zookeeper cluster, following step is executed:
According to the new zookeeper node container of zookeeper clustered deploy(ment) to be migrated;
All Kafka node containers in Kafka cluster to be migrated are deleted, are updated according to the new zookeeper node container
The node listing of zookeeper cluster in the new Kafka cluster;
According to the new Kafka node container of Kafka clustered deploy(ment) to be migrated, and by the Kafka in Kafka cluster to be migrated
Data Migration in node container is to the new Kafka node container;
It changes to zookeeper cluster notice Kafka cluster.
2. the method as described in claim 1, which is characterized in that occur described to zookeeper cluster notice Kafka cluster
After variation, the method also includes:
Delete the Kafka node container in Kafka cluster to be migrated.
3. method according to claim 1 or 2, which is characterized in that described new according to Kafka clustered deploy(ment) to be migrated
Before Kafka node container, the method also includes:
Delete zookeeper node container and corresponding data in zookeeper cluster to be migrated.
4. a kind of cluster moving method based on container, which is characterized in that the method is applied in server, the server
Using including Kafka cluster and/or zookeeper cluster;The described method includes:
Judge current server apply comprising group type;
When the group type is zookeeper cluster, following step is executed:
According to the new zookeeper node container of zookeeper clustered deploy(ment) to be migrated;
Delete zookeeper node container and corresponding data in zookeeper cluster to be migrated.
5. a kind of cluster moving method based on container, which is characterized in that the method is applied in server, the server
Using including Kafka cluster and/or zookeeper cluster;The described method includes:
Judge current server apply comprising group type;
When the group type is Kafka cluster, following step is executed:
According to the new Kafka node container of Kafka clustered deploy(ment) to be migrated, and by the Kafka in Kafka cluster to be migrated
Data Migration in node container is to the new Kafka node container;
Delete the Kafka node container in Kafka cluster to be migrated.
6. a kind of cluster moving apparatus based on container, which is characterized in that described device is applied in server, the server
Using including Kafka cluster and/or zookeeper cluster;Described device include: judging unit, deployment unit, delete unit,
Updating unit, notification unit;Wherein,
The judging unit, for judge current server apply comprising group type;
When the group type is Kafka cluster and zookeeper cluster;
The deployment unit, for the zookeeper node container new according to zookeeper clustered deploy(ment) to be migrated;
The deletion unit, for deleting all Kafka node containers in Kafka cluster to be migrated;
The updating unit, for being updated in the new Kafka cluster according to the new zookeeper node container
The node listing of zookeeper cluster;
The deployment unit is also used to the Kafka node container new according to Kafka clustered deploy(ment) to be migrated, and will be to be migrated
Kafka cluster in Kafka node container in Data Migration to the new Kafka node container;
The notification unit, for changing to zookeeper cluster notice Kafka cluster.
7. device as claimed in claim 6, which is characterized in that the deletion unit, be also used to the notification unit to
After zookeeper cluster notice Kafka cluster changes, the Kafka node container in Kafka cluster to be migrated is deleted.
8. device as claimed in claim 8, which is characterized in that the deletion unit, be also used to the deployment unit according to
Before the new Kafka node container of Kafka clustered deploy(ment) to be migrated, zookeeper in zookeeper cluster to be migrated is deleted
Node container and corresponding data.
9. a kind of cluster moving apparatus based on container, which is characterized in that described device is applied in server, the server
Using including Kafka cluster and/or zookeeper cluster;Described device includes: judging unit, deployment unit, deletes unit;
Wherein,
The judging unit, for judge current server apply comprising group type;
When the group type is zookeeper cluster,
The deployment unit, for the zookeeper node container new according to zookeeper clustered deploy(ment) to be migrated;
The deletion unit, for deleting zookeeper node container and corresponding data in zookeeper cluster to be migrated.
10. a kind of cluster moving apparatus based on container, which is characterized in that described device is applied in server, the service
Device, which is applied, includes Kafka cluster and/or zookeeper cluster;Described device includes: judging unit, deployment unit, deletes list
Member;Wherein,
The judging unit, for judge current server apply comprising group type;
When the group type is Kafka cluster,
The deployment unit, for the Kafka node container new according to Kafka clustered deploy(ment) to be migrated, and will be to be migrated
The Data Migration in Kafka node container in Kafka cluster is to the new Kafka node container;
The deletion unit, for deleting the Kafka node container in Kafka cluster to be migrated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811646278.0A CN109857516B (en) | 2018-12-29 | 2018-12-29 | Cluster migration method and device based on container |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811646278.0A CN109857516B (en) | 2018-12-29 | 2018-12-29 | Cluster migration method and device based on container |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109857516A true CN109857516A (en) | 2019-06-07 |
CN109857516B CN109857516B (en) | 2023-12-12 |
Family
ID=66893499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811646278.0A Active CN109857516B (en) | 2018-12-29 | 2018-12-29 | Cluster migration method and device based on container |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109857516B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110389766A (en) * | 2019-06-21 | 2019-10-29 | 深圳市汇川技术股份有限公司 | HBase container cluster dispositions method, system, equipment and computer readable storage medium |
CN112445574A (en) * | 2020-11-27 | 2021-03-05 | 中国工商银行股份有限公司 | Application container multi-cluster migration method and device |
CN112506606A (en) * | 2020-11-23 | 2021-03-16 | 北京达佳互联信息技术有限公司 | Migration method, device, equipment and medium for containers in cluster |
CN113347263A (en) * | 2021-06-11 | 2021-09-03 | 上海中通吉网络技术有限公司 | Message cluster management method and system |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104503882A (en) * | 2014-12-25 | 2015-04-08 | 北京京东尚科信息技术有限公司 | Container management method and device |
CN105607954A (en) * | 2015-12-21 | 2016-05-25 | 华南师范大学 | Stateful container online migration method and apparatus |
CN106096038A (en) * | 2016-06-28 | 2016-11-09 | 浪潮软件股份有限公司 | A kind of distributed database architecture under cloud computing framework |
CN106385449A (en) * | 2016-09-13 | 2017-02-08 | 哈尔滨工程大学 | Heterogeneous cluster service migration transfer system and transfer method based on container |
US9621643B1 (en) * | 2015-07-31 | 2017-04-11 | Parallels IP Holdings GmbH | System and method for joining containers running on multiple nodes of a cluster |
CN106603592A (en) * | 2015-10-15 | 2017-04-26 | 中国电信股份有限公司 | Application cluster migrating method and migrating device based on service model |
CN106790483A (en) * | 2016-12-13 | 2017-05-31 | 武汉邮电科学研究院 | Hadoop group systems and fast construction method based on container technique |
CN107145380A (en) * | 2017-03-27 | 2017-09-08 | 华为技术有限公司 | Virtual resource method of combination and device |
CN108073402A (en) * | 2017-11-30 | 2018-05-25 | 山东鲁能软件技术有限公司 | Kafka clusters automatic deployment method and device based on linux system |
US10095547B1 (en) * | 2015-03-13 | 2018-10-09 | Twitter, Inc. | Stream processing at scale |
CN109063838A (en) * | 2018-08-17 | 2018-12-21 | 广州城市信息研究所有限公司 | A kind of knowledge model serviceization and flow custom system |
-
2018
- 2018-12-29 CN CN201811646278.0A patent/CN109857516B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104503882A (en) * | 2014-12-25 | 2015-04-08 | 北京京东尚科信息技术有限公司 | Container management method and device |
US10095547B1 (en) * | 2015-03-13 | 2018-10-09 | Twitter, Inc. | Stream processing at scale |
US9621643B1 (en) * | 2015-07-31 | 2017-04-11 | Parallels IP Holdings GmbH | System and method for joining containers running on multiple nodes of a cluster |
CN106603592A (en) * | 2015-10-15 | 2017-04-26 | 中国电信股份有限公司 | Application cluster migrating method and migrating device based on service model |
CN105607954A (en) * | 2015-12-21 | 2016-05-25 | 华南师范大学 | Stateful container online migration method and apparatus |
CN106096038A (en) * | 2016-06-28 | 2016-11-09 | 浪潮软件股份有限公司 | A kind of distributed database architecture under cloud computing framework |
CN106385449A (en) * | 2016-09-13 | 2017-02-08 | 哈尔滨工程大学 | Heterogeneous cluster service migration transfer system and transfer method based on container |
CN106790483A (en) * | 2016-12-13 | 2017-05-31 | 武汉邮电科学研究院 | Hadoop group systems and fast construction method based on container technique |
CN107145380A (en) * | 2017-03-27 | 2017-09-08 | 华为技术有限公司 | Virtual resource method of combination and device |
CN108073402A (en) * | 2017-11-30 | 2018-05-25 | 山东鲁能软件技术有限公司 | Kafka clusters automatic deployment method and device based on linux system |
CN109063838A (en) * | 2018-08-17 | 2018-12-21 | 广州城市信息研究所有限公司 | A kind of knowledge model serviceization and flow custom system |
Non-Patent Citations (1)
Title |
---|
周佳威: "Kubernetes跨集群管理的设计与实现", pages 138 - 344 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110389766A (en) * | 2019-06-21 | 2019-10-29 | 深圳市汇川技术股份有限公司 | HBase container cluster dispositions method, system, equipment and computer readable storage medium |
CN110389766B (en) * | 2019-06-21 | 2022-12-27 | 深圳市汇川技术股份有限公司 | HBase container cluster deployment method, system, equipment and computer readable storage medium |
CN112506606A (en) * | 2020-11-23 | 2021-03-16 | 北京达佳互联信息技术有限公司 | Migration method, device, equipment and medium for containers in cluster |
CN112445574A (en) * | 2020-11-27 | 2021-03-05 | 中国工商银行股份有限公司 | Application container multi-cluster migration method and device |
CN112445574B (en) * | 2020-11-27 | 2024-01-26 | 中国工商银行股份有限公司 | Application container multi-cluster migration method and device |
CN113347263A (en) * | 2021-06-11 | 2021-09-03 | 上海中通吉网络技术有限公司 | Message cluster management method and system |
CN113347263B (en) * | 2021-06-11 | 2022-10-11 | 上海中通吉网络技术有限公司 | Message cluster management method and system |
Also Published As
Publication number | Publication date |
---|---|
CN109857516B (en) | 2023-12-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109857516A (en) | Cluster moving method and device based on container | |
KR102354536B1 (en) | Hyperledger fabric network creation method, controller and storage medium | |
CN110058856A (en) | Page configuration method and device | |
CN108023742A (en) | A kind of expansion method of application, device and system | |
CN105426223B (en) | Using loading method and device | |
CN109460439A (en) | A kind of data processing method, device, medium and electronic equipment | |
CN108268609A (en) | A kind of foundation of file path, access method and device | |
CN109634682A (en) | The configuration file update method and device of application program | |
CN111651219A (en) | Method and equipment for managing multi-module project configuration file | |
CN109657427A (en) | The method and device of permission control | |
CN108390914A (en) | A kind of service update method and device, system | |
CN110134646B (en) | Knowledge platform service data storage and integration method and system | |
CN110069488A (en) | A kind of date storage method, method for reading data and its device | |
CN109558143A (en) | The method and device of application deployment in a kind of cluster | |
CN109597627A (en) | A kind of component mounting method, device, storage medium and processor | |
Srinivasan et al. | Google Cloud Platform for Architects: Design and manage powerful cloud solutions | |
US10552188B2 (en) | Virtual private cloud services with physical machine servers and virtual machines | |
CN111444309A (en) | System for learning graph | |
CN110958138B (en) | Container expansion method and device | |
CN109683887A (en) | A kind of construction method and device for supporting the customized web project of multi-scheme | |
CN109885425A (en) | Backup method, back-up device, storage medium and the processor of data | |
CN107402749B (en) | Method and device for realizing picture loading library | |
CN115712794A (en) | Page management method and device, processor and electronic equipment | |
CN109598016A (en) | Robot adding method and device | |
CN109086362A (en) | The management method of multimode project |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |