CN117640364A - Cluster deployment method and device of message system and electronic equipment - Google Patents
Cluster deployment method and device of message system and electronic equipment Download PDFInfo
- Publication number
- CN117640364A CN117640364A CN202311604138.8A CN202311604138A CN117640364A CN 117640364 A CN117640364 A CN 117640364A CN 202311604138 A CN202311604138 A CN 202311604138A CN 117640364 A CN117640364 A CN 117640364A
- Authority
- CN
- China
- Prior art keywords
- cluster
- target
- deployment
- locktmq
- script
- 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
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000009434 installation Methods 0.000 claims description 8
- 238000012360 testing method Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 239000011435 rock Substances 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/084—Configuration by using pre-existing information, e.g. using templates or copying from other elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/085—Retrieval of network configuration; Tracking network configuration history
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a cluster deployment method and device of a message system and electronic equipment, wherein the method is applied to a server; the server is configured with a container and a target cluster deployment script; the method comprises the following steps: executing a target cluster deployment script, and pulling a corresponding target locktmq image from a preset image library through a container according to a target locktmq version and a target IP address set in the target cluster deployment script; the preset mirror image library stores multiple versions of the locktmq mirror images; and completing the deployment of the corresponding brooker cluster and the corresponding nalmeserver cluster through the target locktmq image. The cluster deployment script is executed on one server, so that the cluster deployment is completed by pulling the corresponding mirror image through the container according to the IP address and version set in the script, and the method is convenient and quick, and the time consumption of the cluster deployment is greatly reduced.
Description
Technical Field
The present invention relates to the field of cluster deployment technologies, and in particular, to a method and an apparatus for deploying a cluster of a message system, and an electronic device.
Background
The message system is a very important basic component in enterprises, a plurality of common message systems are available, the rock tq is one of the main message systems, and the application of the rock tq is wide, and the rock tq is an open source message system. In a typical clustered deployment scheme of a locktmq message system, the typical clustered deployment scheme comprises two parts of a brooker cluster and a namerver cluster, each part of machines is at least three or four machines, a set of relatively complete whole message system is deployed, at least seven node application programs are required to be deployed, each node application program has a certain state, such as a brooker-a and a brooker-b, the IP and the like of which are different, and the states are inconsistent when deployed on different machines.
As a practical locktmq message system is more complex, a set of full-function locktmq clusters is often built quickly in development or testing, which requires several servers to be operated to solve the IP differences of different servers, and in addition, this is especially time-consuming when clusters under many versions need to be built at the same time.
Disclosure of Invention
The invention aims to provide a cluster deployment method, a cluster deployment device and electronic equipment of a message system, which are convenient and quick in the mode of completing cluster deployment by pulling a corresponding mirror image through a container according to an IP address and a version set in a script by executing a cluster deployment script on a server, and greatly reduce time consumption of cluster deployment.
In a first aspect, an embodiment of the present application provides a cluster deployment method of a message system, where the method is applied to a server; the server is configured with a container and a target cluster deployment script; the method comprises the following steps: executing a target cluster deployment script, and pulling a corresponding target locktmq image from a preset image library through a container according to a target locktmq version and a target IP address set in the target cluster deployment script; the preset mirror image library stores multiple versions of the locktmq mirror images; the image of the locktmq is packaged with installation programs respectively corresponding to the brooker cluster and the namerver cluster; and completing the deployment of the corresponding brooker cluster and the corresponding nalmeserver cluster through the target locktmq image.
In a preferred embodiment of the present application, the generation process of the target cluster deployment script is as follows: executing an initial cluster deployment script to display prompt input boxes respectively corresponding to the IP address and the version of the locktmq; and responding to the input operation of the IP address and the locktmq version in the prompt input box by the user, and generating a target cluster deployment script.
In a preferred embodiment of the present application, the step of pulling, by a container, a corresponding target docketmq image from a preset image library according to the target docketmq version and the target IP address set in the target cluster deployment script includes: starting a plurality of containers mapped to different ports of the target IP address according to the target IP address set in the target cluster deployment script; and pulling the target docktmq image corresponding to the target docktmq version from a preset image library through a plurality of containers.
In a preferred embodiment of the present application, the step of pulling, from a preset mirror library, the target docketmq mirror image corresponding to the target docketmq version through a plurality of containers includes: pulling a server installer from a target locktmq image corresponding to the target locktmq version to the local through the container for each container; the server installer includes a brooker or a namerserver server installer.
In a preferred embodiment of the present application, the step of completing the deployment of the corresponding brooker cluster and the nalmeserver cluster through the locktmq mirror includes: operating an installation program corresponding to the brooker cluster to finish deployment of the brooker cluster; and running an installation program corresponding to the NAmeserver cluster to complete the deployment of the NAmeserver cluster.
In a preferred embodiment of the present application, the aforementioned brooker cluster includes a plurality of brooker servers; the NAmeserver cluster comprises a plurality of NAmeserver servers.
In a preferred embodiment of the present application, the server deployed with the brooker cluster and the namerserver cluster performs data or information interaction with the producer cluster and the messenger cluster.
In a second aspect, an embodiment of the present application further provides a cluster deployment device of a message system, where the device is applied to a server; the server is configured with a container and a target cluster deployment script; the device comprises: the mirror image pulling module is used for executing the target cluster deployment script so as to pull a corresponding target docktq mirror image from a preset mirror image library through a container according to the target docktq version and the target IP address set in the target cluster deployment script; the preset mirror image library stores multiple versions of the locktmq mirror images; the image of the locktmq is packaged with installation programs respectively corresponding to the brooker cluster and the namerver cluster; the deployment module is used for completing the deployment of the corresponding brooker cluster and the corresponding namerserver cluster through the target locktmq mirror image.
In a third aspect, embodiments of the present application further provide an electronic device, including a processor and a memory, where the memory stores computer executable instructions executable by the processor, where the processor executes the computer executable instructions to implement the method according to the first aspect.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method of the first aspect.
The method and the device for deploying the clusters of the message system and the electronic equipment are applied to a server; the server is configured with a container and a target cluster deployment script; after the server executes the target cluster deployment script, a corresponding target docktq image can be pulled from a preset image library through a container according to a target docktq version and a target IP address set in the target cluster deployment script; the preset mirror image library stores multiple versions of the locktmq mirror images; the image of the locktmq is packaged with installation programs respectively corresponding to the brooker cluster and the namerver cluster; and completing the deployment of the corresponding brooker cluster and the corresponding nalmeserver cluster through the target locktmq image. In the embodiment of the invention, the cluster deployment script is executed on one server, so that the cluster deployment is completed by pulling the corresponding mirror image through the container according to the IP address and version set in the script, and the method is convenient and quick, and the time consumption of the cluster deployment is greatly reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a cluster deployment method of a message system according to an embodiment of the present application;
fig. 2 is a schematic overall functional diagram of a cluster deployment method of a message system according to an embodiment of the present application;
fig. 3 is a schematic diagram of script generation in a cluster deployment method of a message system according to an embodiment of the present application;
fig. 4 is a schematic diagram of cluster deployment in a method for deploying clusters in a message system according to an embodiment of the present application;
fig. 5 is a block diagram of a cluster deployment device of a message system according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
In the related art, in the building process of a set of full-function locktmq clusters, a plurality of servers need to be operated, and the following problems often exist:
1) Requiring logging into multiple servers for related operations
Because the brooker and the like are configured differently on different servers, and the local IP address is automatically identified and automatically registered to the name server cluster, the configuration and the like are required for the IP address, the NAmeserver server is complex in operation, and debugging is required frequently.
2) Solving IP (Internet protocol) etc. difference of different servers
Most of the servers for waiting for testing are shared by many people, and have many virtual network cards or IP addresses and the like, and the brooker often identifies errors when identifying the IP, and then handles the error IP addresses, so that errors are easily caused when other subsequent programs access, the time spent for checking is usually not normally known after testing, and the working efficiency is greatly reduced.
3) Especially in many versions, this is time consuming
When testing a message system, a plurality of message clusters are tested, and under the condition of multiple versions, more clusters with different versions are needed for testing, so that similar clusters are frequently built, and the current manual building method is very inconvenient and takes a long time.
Based on this, the embodiment of the application provides a cluster deployment method, a device and an electronic device of a message system, by executing a cluster deployment script on a server, the cluster deployment is completed by pulling a corresponding mirror image through a container according to an IP address and a version set in the script, and the method is convenient and quick, so that the time consumption of the cluster deployment is greatly reduced.
For the sake of understanding the present embodiment, a method disclosed in the embodiment of the present application will be described in detail first.
Fig. 1 is a flowchart of a cluster deployment method of a message system, where the method is applied to a server; the server is configured with a container and a target cluster deployment script; the method comprises the following steps:
step S102, executing a target cluster deployment script to pull a corresponding target docktq image from a preset image library through a container according to a target docktq version and a target IP address set in the target cluster deployment script;
the preset mirror image library stores multiple versions of the locktmq mirror images; and the image of the locktmq is packaged with installation programs respectively corresponding to the brooker cluster and the namerver cluster.
In this embodiment, the relevant locktmq program is packaged into a specific image in advance in a dock mode, and the specific image is uploaded to a corresponding hardor image warehouse, and in the program operation, the image is pulled from the hardor to the local through the dock.
Step S104, completing the deployment of the corresponding brooker cluster and the corresponding nalmeserver cluster through the target locktmq mirror image.
In the cluster deployment method of the message system, the cluster deployment script is executed on one server, so that the cluster deployment can be completed by pulling the corresponding mirror image through the container according to the IP address and the version set in the script, and the method is convenient and quick, and the time consumption of the cluster deployment is greatly reduced.
The embodiment of the application also provides another cluster deployment method of the message system, which is realized on the basis of the embodiment; the present embodiment focuses on the generation process and deployment process of the target cluster deployment script.
Referring to fig. 2, a complete functional schematic diagram of a cluster deployment method of a message system according to an embodiment of the present application is shown; the method comprises a process of specifically generating a target cluster deployment script by a single-machine starting script tool, and comprises a process of automatically deploying clusters after the target cluster deployment script is started on a single machine.
The generation process of the target cluster deployment script is as follows: executing an initial cluster deployment script to display prompt input boxes respectively corresponding to the IP address and the version of the locktmq; and responding to the input operation of the IP address and the locktmq version in the prompt input box by the user, and generating a target cluster deployment script.
Referring to fig. 3, after the initial cluster deployment script is run, the user is prompted to input the available access IP address of the running target host. After inputting the IP address, prompting to input a version of the locktmq; after the two parameters are input, a related operation script program, namely the target cluster deployment script, is generated. The user can copy the relevant script to the target server, and the relevant program runs on the target server to complete cluster deployment.
In the embodiment of the application, based on a docker container technology, related dockerq related installation programs including a braiker, a NAmeserver and the like are packaged into a docker mirror image, communication is carried out with a user through script interaction, and a script capable of automatically running is generated after related input information is confirmed, so that the method is convenient and quick.
In a preferred embodiment of the present application, the step of pulling, by a container, a corresponding target docketmq image from a preset image library according to the target docketmq version and the target IP address set in the target cluster deployment script includes:
starting a plurality of containers mapped to different ports of the target IP address according to the target IP address set in the target cluster deployment script; and pulling the target docktmq image corresponding to the target docktmq version from a preset image library through a plurality of containers. In the implementation, for each container, pulling a server installer from a target docketq image corresponding to a target docketq version through the container to a local place; the server installer includes a brooker or a namerserver server installer.
In a preferred embodiment of the present application, the step of completing the deployment of the corresponding brooker cluster and the nalmeserver cluster through the locktmq mirror includes: operating an installation program corresponding to the brooker cluster to finish deployment of the brooker cluster; and running an installation program corresponding to the NAmeserver cluster to complete the deployment of the NAmeserver cluster. The brooker cluster comprises a plurality of brooker servers; the NAmeserver cluster comprises a plurality of NAmeserver servers.
After uploading the single machine starting script generated before, namely the target cluster deployment script to the target server, the user starts a cluster as shown in fig. 4 by running the related script. The entire cluster runs in a stand-alone server, running in several docker containers, with the associated port of each container mapped onto a specific port of a single IP. The programs in the containers running independently are equivalent to an independent server, only the ports are different, and the ports are mutually cooperated and processed, so that a producer and a consumer see a complete cluster, and related access is carried out on the complete cluster through related independent IP and different ports. The server with the deployed brooker cluster and the deployed webserver cluster performs data or information interaction with the producer cluster and the message consumer cluster.
In the embodiment of the application, the script running automatically starts a plurality of docker containers on a specific single server according to the input information of the user, and each container can simulate the middleware of one message in each server, so that a related message cluster is formed. The environmental factors such as the IP address are shielded to the minimum through the dock technology, and a certain working capacity can be formed only by acquiring the IP address of the local machine.
The cluster deployment method of the message system provided by the embodiment of the application has the following advantages:
1. a complete cluster is realized by using a minimum of one server, so that the cost and the operation time are greatly saved.
In the traditional test, a full-function cluster must be built to simulate the actual message system to test each component and each working condition, so that the test is complete and feasible. However, building a complete set of clusters requires more servers, needs to log in each environment, solves the factors of different environments including IP, java version and the like, and has more time consumption and more problems.
In this embodiment, all clusters are started in a single server, and the clusters are exposed to the single server, so that the outside can conveniently access the clusters. The deployment is simplified, the cost is reduced, and the testing efficiency is improved.
2. A universal script is used to most quickly generate a script that can be run, configured, and to most quickly initiate a cluster.
A special script is generated through the tested script, and the configuration can be carried out according to a specific IP address, so that the version of the locketmq is independently set, the required script can be quickly generated, and the starting is convenient.
3. The working principle of the whole cluster is completely consistent with that of a real cluster in the cluster, so that the related test result can be completely relied.
The components in the docker container still operate in a standard cluster mode, which is completely the same as that of independently deploying different servers, so that the situation is very important, and the cluster to be tested in the test must be completely consistent with the actual cluster working situation to obtain an accurate test result.
Based on the method embodiment, the embodiment of the application also provides a cluster deployment device of the message system, which is applied to the server; the server is configured with a container and a target cluster deployment script; referring to fig. 5, the apparatus includes: the mirror image pulling module 52 is configured to execute a target cluster deployment script, so as to pull, through a container, a corresponding target docktq mirror image from a preset mirror image library according to a target docktq version and a target IP address set in the target cluster deployment script; the preset mirror image library stores multiple versions of the locktmq mirror images; the image of the locktmq is packaged with installation programs respectively corresponding to the brooker cluster and the namerver cluster; the deployment module 54 is configured to complete deployment of the corresponding brooker cluster and the namerserver cluster through the target locktmq image.
In a preferred embodiment of the present application, the apparatus further includes: the script generation module is used for executing the following generation process of the target cluster deployment script: executing an initial cluster deployment script to display prompt input boxes respectively corresponding to the IP address and the version of the locktmq; and responding to the input operation of the IP address and the locktmq version in the prompt input box by the user, and generating a target cluster deployment script.
In a preferred embodiment of the present application, the mirror pulling module 52 is configured to start a plurality of containers mapped to different ports of the target IP address according to the target IP address set in the target cluster deployment script; and pulling the target docktmq image corresponding to the target docktmq version from a preset image library through a plurality of containers.
In a preferred embodiment of the present application, the foregoing mirror image pulling module 52 is configured to, for each container, pull, by the container, a server installer from the target docketq mirror image corresponding to the target docketq version to the local; the server installer includes a brooker or a namerserver server installer.
In a preferred embodiment of the present application, the deployment module 54 is configured to run an installer corresponding to the brooker cluster, so as to complete deployment of the brooker cluster; and running an installation program corresponding to the NAmeserver cluster to complete the deployment of the NAmeserver cluster.
In a preferred embodiment of the present application, the aforementioned brooker cluster includes a plurality of brooker servers; the NAmeserver cluster comprises a plurality of NAmeserver servers.
In a preferred embodiment of the present application, the server deployed with the brooker cluster and the namerserver cluster performs data or information interaction with the producer cluster and the messenger cluster.
The device provided in the embodiments of the present application has the same implementation principle and technical effects as those of the foregoing method embodiments, and for a brief description, reference may be made to corresponding matters in the foregoing method embodiments where no reference is made to the description of the embodiments of the device.
The embodiment of the present application further provides an electronic device, as shown in fig. 6, which is a schematic structural diagram of the electronic device, where the electronic device includes a processor 61 and a memory 60, where the memory 60 stores computer executable instructions that can be executed by the processor 61, and the processor 61 executes the computer executable instructions to implement the above method.
In the embodiment shown in fig. 6, the electronic device further comprises a bus 62 and a communication interface 63, wherein the processor 61, the communication interface 63 and the memory 60 are connected by means of the bus 62.
The memory 60 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is achieved via at least one communication interface 63 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 62 may be an ISA (Industry Standard Architecture ) bus, a PCI (PerIPheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The bus 62 may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one bi-directional arrow is shown in FIG. 6, but not only one bus or type of bus.
The processor 61 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 61 or by instructions in the form of software. The processor 61 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory and the processor 61 reads the information in the memory and in combination with its hardware performs the steps of the method of the previous embodiment.
The embodiment of the present application further provides a computer readable storage medium, where a computer executable instruction is stored, where the computer executable instruction, when being called and executed by a processor, causes the processor to implement the foregoing method, and the specific implementation may refer to the foregoing method embodiment and is not described herein.
The method, the apparatus and the computer program product of the electronic device provided in the embodiments of the present application include a computer readable storage medium storing program codes, where the instructions included in the program codes may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
The relative steps, numerical expressions and numerical values of the components and steps set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present application, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of description of the present application and to simplify the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present application, and are not intended to limit the scope of the present application, but the present application is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, the present application is not limited thereto. Any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or make equivalent substitutions for some of the technical features within the technical scope of the disclosure of the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A cluster deployment method of a message system, wherein the method is applied to a server; the server is configured with a container and a target cluster deployment script; the method comprises the following steps:
executing the target cluster deployment script to pull a corresponding target docktq image from a preset image library through the container according to a target docktq version and a target IP address set in the target cluster deployment script; the preset mirror image library stores multiple versions of the locktmq mirror images; the rocketmq mirror image is packaged with installation programs respectively corresponding to the brooker cluster and the nameServer cluster;
and completing the deployment of the corresponding brooker cluster and the corresponding nalmeserver cluster through the target locktmq mirror image.
2. The method of claim 1, wherein the target cluster deployment script is generated by:
executing an initial cluster deployment script to display prompt input boxes respectively corresponding to the IP address and the version of the locktmq;
and responding to the input operation of the IP address and the locktmq version of the user in the prompt input box, and generating the target cluster deployment script.
3. The method according to claim 1, wherein the step of pulling, by the container, the corresponding target docketmq image from a preset image library according to the target docketmq version and the target IP address set in the target cluster deployment script includes:
starting a plurality of containers mapped to different ports of the target IP address according to the target IP address set in the target cluster deployment script;
and pulling the target docktmq image corresponding to the target docktmq version from a preset image library through a plurality of containers.
4. A method according to claim 3, wherein the step of pulling a target locktmq image corresponding to the target locktmq version from a preset image library by a plurality of containers comprises:
pulling a server installer from a target locktmq image corresponding to the target locktmq version to a local place through the container for each container; the server installation program comprises a browser or a namerserver server installation program.
5. The method of claim 4, wherein the step of completing deployment of the corresponding brooker cluster and the namerver cluster by the locktmq mirror comprises:
operating an installation program corresponding to the brooker cluster to finish deployment of the brooker cluster;
and running an installation program corresponding to the NAmeserver cluster to complete the deployment of the NAmeserver cluster.
6. The method of claim 3, wherein the broker cluster comprises a plurality of broker servers; the NAmeserver cluster comprises a plurality of NAmeserver servers.
7. A method according to claim 3, characterized in that the server deployed with the brooker cluster and the namerver cluster exchanges data or information with the producer cluster, the messenger cluster.
8. A cluster deployment device of a message system, wherein the device is applied to a server; the server is configured with a container and a target cluster deployment script; the device comprises:
the mirror image pulling module is used for executing the target cluster deployment script to pull a corresponding target docktq mirror image from a preset mirror image library through the container according to a target docktq version and a target IP address set in the target cluster deployment script; the preset mirror image library stores multiple versions of the locktmq mirror images; the rocketmq mirror image is packaged with installation programs respectively corresponding to the brooker cluster and the nameServer cluster;
the deployment module is used for completing the deployment of the corresponding brooker cluster and the corresponding namerver cluster through the target docktmq image.
9. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 7.
10. A computer readable storage medium storing computer executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311604138.8A CN117640364A (en) | 2023-11-28 | 2023-11-28 | Cluster deployment method and device of message system and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311604138.8A CN117640364A (en) | 2023-11-28 | 2023-11-28 | Cluster deployment method and device of message system and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117640364A true CN117640364A (en) | 2024-03-01 |
Family
ID=90031587
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311604138.8A Pending CN117640364A (en) | 2023-11-28 | 2023-11-28 | Cluster deployment method and device of message system and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117640364A (en) |
-
2023
- 2023-11-28 CN CN202311604138.8A patent/CN117640364A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106648556B (en) | Method and device for front-end and back-end integrated development test | |
CN110058998B (en) | Software testing method and device | |
CN111858296B (en) | Interface testing method, device, equipment and storage medium | |
CN110990269A (en) | Interface testing method, device and system | |
CN115934346B (en) | Operator automatic detection method and device, electronic equipment and medium | |
CN116719533A (en) | Environment automatic deployment method, deployment device, electronic equipment and storage medium | |
CN111669284A (en) | OpenStack automatic deployment method, electronic device, storage medium and system | |
CN111324540A (en) | Interface testing method and device | |
CN109144525A (en) | A kind of software installation method and system of network self-adapting | |
CN111597110A (en) | Page testing method and device, electronic equipment and storage medium | |
CN114281352A (en) | Service deployment method and related equipment | |
CN112115055A (en) | Multi-machine automatic testing method and device and computer equipment | |
CN108628733B (en) | Method and device for testing batch service processing operation | |
CN111338616A (en) | Protocol analysis code generation method and device and electronic equipment | |
CN109710479B (en) | Processing method, first device and second device | |
CN111949510B (en) | Test processing method, device, electronic equipment and readable storage medium | |
CN106302011B (en) | Multi-terminal-based test method and terminal | |
CN117640364A (en) | Cluster deployment method and device of message system and electronic equipment | |
CN112486497A (en) | Compiling configuration file generation method and device, electronic equipment and storage medium | |
CN113778895A (en) | Automatic interface testing method and device | |
CN114297088A (en) | Method, device, equipment and medium for testing front end vue frame assembly | |
CN113312148A (en) | Big data service deployment method, device, equipment and medium | |
CN111638905A (en) | Version number generation method and device, electronic equipment and readable storage medium | |
CN113608996B (en) | Mirror image compiling test method, system, device and readable storage medium | |
CN114297009B (en) | Method and device for testing server and electronic equipment |
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 |