CN113407257A - Mysql cluster deployment method and device, electronic equipment and storage medium - Google Patents

Mysql cluster deployment method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113407257A
CN113407257A CN202110704251.8A CN202110704251A CN113407257A CN 113407257 A CN113407257 A CN 113407257A CN 202110704251 A CN202110704251 A CN 202110704251A CN 113407257 A CN113407257 A CN 113407257A
Authority
CN
China
Prior art keywords
cluster
mysql
helm
tool
deployment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110704251.8A
Other languages
Chinese (zh)
Inventor
王猛
苗东博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Traffic Control Technology TCT Co Ltd
Original Assignee
Traffic Control Technology TCT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Traffic Control Technology TCT Co Ltd filed Critical Traffic Control Technology TCT Co Ltd
Publication of CN113407257A publication Critical patent/CN113407257A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a Mysql cluster deployment method, a Mysql cluster deployment device, electronic equipment and a storage medium, wherein the method comprises the following steps: under a Kubernetes environment, Mysql clusters are containerized, configured and deployed by using Helm tools. According to the invention, the Kubernets containerized Mysql cluster is adopted, and the system is easier to use, has higher expandability and maintainability and can reasonably use hardware resources through containerization and container arrangement technologies.

Description

Mysql cluster deployment method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a Mysql cluster deployment method and device, electronic equipment and a storage medium.
Background
In the application of data storage, Mysql, as a relational database management system, is concerned by users due to the characteristics of small size, high speed, low total cost of ownership and the like. Mysql stores data splits in different tables instead of storing all data in one large repository, thus increasing storage speed and flexibility.
Currently, when Mysql is deployed, the Mysql is generally deployed through an installation package by using a script, and operation management needs to depend on a physical host or a virtual host. In this processing mode, the operation, configuration, management, all life cycles, and the like of Mysql are bound to the current operating system, which is not favorable for the operations such as upgrade update or rollback of the application, and has poor portability.
Disclosure of Invention
The invention provides a Mysql cluster deployment method, a Mysql cluster deployment device, electronic equipment and a storage medium, which are used for overcoming the defects of poor maintainability and transportability and the like in the prior art and achieving the aim of effectively improving the maintainability of a Mysql cluster.
The invention provides a Mysql cluster deployment method, which comprises the following steps:
under a Kubernetes environment, Mysql clusters are containerized, configured and deployed by using Helm tools.
According to the Mysql cluster deployment method provided by the invention, under a Kubernets environment, a Helm tool is utilized to containerize, configure and deploy the Mysql cluster, and the Mysql cluster deployment method comprises the following steps:
deploying a Kubernetes cluster to form the Kubernetes environment, and installing the Helm tool in the Kubernetes environment;
and modifying the configuration of the Helm tool, and configuring and deploying the Mysql cluster by using the modified Helm tool.
According to the Mysql cluster deployment method provided by the invention, the configuring and deploying the Mysql cluster by using the modified Helm tool comprises the following steps:
creating a Mysql namespace by using kubecects cluster kubecects, and installing a Mysql instance based on the Mysql namespace by using the modified Helm tool;
and deploying the Mysql cluster by using the modified Helm tool.
The Mysql cluster deployment method provided by the invention further comprises the following steps:
and deploying distributed storage, and storing the data of the Mysql cluster by adopting a network based on the distributed storage.
According to the Mysql cluster deployment method provided by the invention, the deployment distributed storage comprises the following steps:
and entering a ceph directory, and respectively creating a storage instance, a look cluster, a file system and a storage type by using the kubecetes cluster kubecect under the ceph directory to realize the deployment of the distributed storage.
The Mysql cluster deployment method provided by the invention further comprises the following steps:
and installing an Ingress cluster, and exposing the Mysql cluster by using the Ingress cluster and exposing the service of the Kubernets cluster to the outside.
The invention also provides a Mysql cluster deployment device, which comprises:
and the deployment module is used for containerization configuration and deployment of the Mysql cluster by utilizing a Helm tool in a Kubernets environment.
According to the Mysql cluster deployment device provided by the present invention, the deployment module is configured to:
deploying a Kubernetes cluster to form the Kubernetes environment, and installing the Helm tool in the Kubernetes environment;
and modifying the configuration of the Helm tool, and configuring and deploying the Mysql cluster by using the modified Helm tool.
The invention further provides an electronic device, which includes a memory, a processor, and a program or an instruction stored in the memory and executable on the processor, and when the processor executes the program or the instruction, the steps of the Mysql cluster deployment method described in any of the above are implemented.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a program or instructions which, when executed by a computer, implement the steps of the Mysql cluster deployment method as described in any of the above.
According to the Mysql cluster deployment method, the Mysql cluster deployment device, the electronic equipment and the storage medium, the Kubernets containerization deployment Mysql cluster is adopted, and the containerization and container arrangement technology is adopted, so that the system is easier to use, higher expandability and maintainability are achieved, and hardware resources can be reasonably used.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the following briefly introduces the drawings needed to be used in the embodiments of the present invention or the description of the prior art, and obviously, the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings by those skilled in the art without creative efforts.
Fig. 1 is one of the flow diagrams of the Mysql cluster deployment method provided by the present invention;
FIG. 2 is a second schematic flow chart of the Mysql cluster deployment method provided by the present invention;
fig. 3 is a schematic structural diagram of a Mysql cluster deployment device provided in the present invention;
fig. 4 is a schematic physical structure diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Aiming at the problems of poor maintainability, poor transportability and the like in the prior art, the Mysql cluster is deployed in a Kubernetes containerization mode, and the system is easier to use, has higher expandability and maintainability and can reasonably use hardware resources through the containerization and container arrangement technology. The present invention will now be described and explained with reference to the drawings, in particular, by means of embodiments.
Fig. 1 is one of the flow diagrams of the Mysql cluster deployment method provided by the present invention, and as shown in fig. 1, the method includes:
s101, under a Kubernetes environment, utilizing a Helm tool to containerize, configure and deploy the Mysql cluster.
It can be understood that, aiming at the problems and disadvantages of the existing Mysql cluster deployment mode, the invention deploys the Mysql cluster by adopting Kubernets and a containerization mode so as to improve the availability, expandability and maintainability of the cluster. Specifically, based on the Helm tool in the Kubernetes cluster, the Mysql cluster is installed and configured. The Helm tool is used as a pack manager of Kubernets, and automatic deployment of the Mysql cluster can be achieved by designing a Chart pack of the Helm tool.
Wherein, containerization refers to packaging together an application program and its required libraries, frameworks and configuration files so as to run on a server. Containers are similar to virtual machines, but have more relaxed isolation properties; the simulation hardware layer is not needed, and the operating system can be shared among application programs; and the system is provided with a file system, a CPU, a memory, a process space and the like. In addition, the container can be decoupled from the underlying infrastructure and thus can be ported across cloud hosts and operating systems.
Kubernetes is an open source container orchestration engine that provides a distributed architectural approach to containerization techniques for managing containers for running applications. By utilizing Kubernetes, the method can automatically balance service load, is convenient for automatic deployment and rollback, and can check the running state of the application and perform self-repairing.
Optionally, a developer may package the application and the dependency into a portable container by using an open-source application container engine, which is Docker, and issue the package to a Linux server to implement virtualization, thereby facilitating deployment, development and maintenance. On the basis of the Docker technology, a series of complete functions such as deployment and operation, resource scheduling, service discovery, dynamic scaling and the like can be provided for containerized application, and the convenience of large-scale container cluster management can be further improved.
The Mysql cluster deployment method provided by the invention realizes containerization automatic deployment of the Mysql cluster based on Kubernets, and enables the system to be easier to use, has higher expandability and maintainability and can reasonably use hardware resources through containerization and container arrangement technologies.
Optionally, according to the Mysql cluster deployment method provided in each of the above embodiments, in a kubernets environment, a Helm tool is used to containerize, configure and deploy the Mysql cluster, including: deploying a Kubernetes cluster to form the Kubernetes environment, and installing the Helm tool in the Kubernetes environment; and modifying the configuration of the Helm tool, and configuring and deploying the Mysql cluster by using the modified Helm tool.
It can be understood that, as shown in fig. 2, a second flow diagram of the Mysql cluster deployment method provided by the present invention mainly includes:
first, to apply kubernets, a kubernets cluster may be installed and deployed first to build and provide a kubernets environment.
The kubernets cluster generally needs to deploy a plurality of main (Mater) nodes and a plurality of auxiliary (Worker) nodes, and the Master node is used for receiving a user request, monitoring the cluster resource state and managing the life cycle of a copy (pod). And running a pod on the Worker node, interacting with the Master component through the kubel, and receiving the management and scheduling of the Master. The whole Mysql cluster is configured to run on the Kubernets cluster, and the Mysql cluster has a master-slave structure and a multi-slave structure, and supports master-slave switching and read-write separation.
And then, installing a Kubernetes software package management tool, namely a Helm tool, in a Kubernetes environment, wherein the Kubernetes software package management tool is used for solving the problem of the co-cooperation of a large number of Kubernetes resources involved in the process of deploying the Mysql cluster in the Kubernetes. Specifically, the Helm installation resources of the required version can be obtained first, and then the Helm can be automatically installed according to the installation mode provided by the Helm.
Helm is a pack manager of Kubernets, packs Kubernets resources (such as deployments, services or ingress) into a chart, packs applications, manages application dependency, manages application versions, releases applications and the like through Helm. Among these, the palm can be installed with the following code:
tar-xvf helm-v3.0.2-linux-amd64.tar.gz
cd linux-amd64/
# moves to/usr/local/bin
cp./helm/usr/local/bin/
# see if available
helm version
Optionally, as shown in fig. 2, the Mysql cluster deployment method provided by the present invention may further include: and deploying distributed storage, and storing the data of the Mysql cluster by adopting a network based on the distributed storage. That is to say, the invention can also deploy a specific storage mode in the process of deploying the Mysql cluster, and the storage mode is deployed as distributed storage in consideration of the characteristics of the Mysql cluster.
And then, modifying and configuring the installed Helm tool according to the specific requirements of deploying the Mysql cluster, and forming the modified Helm tool by the modified Helm tool.
The Helm package configuration can be modified through the following codes:
Figure BDA0003131540900000061
Figure BDA0003131540900000071
and finally, installing and configuring the Mysql cluster by using the modified Helm tool, and completing the deployment of the Mysql cluster.
Optionally, according to the Mysql cluster deployment method provided in each of the embodiments, the configuring and deploying the Mysql cluster by using the modified hellm tool includes: creating a Mysql namespace by using kubecects cluster kubecects, and installing a Mysql instance based on the Mysql namespace by using the modified Helm tool; and deploying the Mysql cluster by using the modified Helm tool.
It can be understood that when the modified Helm tool is used for deploying the Mysql cluster, specific installation configuration can be performed on the Mysql cluster at first, wherein the specific installation configuration comprises a namespace, an application instance and the like of Mysql cluster application. Specifically, a Mysql namespace is created by using kubernets cluster kubecect, and then Mysql instances are installed on the basis to deploy specific Mysql clusters.
For example, the Mysql cluster can be installed by Helm by the following code:
# creation of namespace
kubectl create namespace mysql
# install mysql-operator, executed under the mysql-operator directory
helm install mysql-op–namespace mysql.
# helm installs the mysql cluster, executing under the mysql-cluster
helm install mysql-ha--namespace mysql.
Wherein kubecect is a command line tool to operate kubernets cluster, is installed in the master node of kubernets, and finds a file named config in the $ HOME/. kube directory. In addition, other Kubeconfig files may be specified by setting a Kubeconfig environment variable or setting Kubeconfig. kubecect can realize the increasing, deleting, modifying and checking of various resources in the Kubernetes cluster through interacting with apiserver.
Optionally, according to the Mysql cluster deployment method provided in each of the above embodiments, the deploying distributed storage includes: and entering a ceph directory, and respectively creating a storage instance, a look cluster, a file system and a storage type by using the kubecetes cluster kubecect under the ceph directory to realize the deployment of the distributed storage.
It can be understood that the distributed storage deployment of the Mysql cluster in the invention is performed under the ceph directory, and therefore, the ceph directory is entered first. The ceph is a distributed storage system, which can be deployed on multiple servers, and provides high-performance read-write blocks to the outside by parallel processing of the multiple servers.
And then respectively creating a storage instance, a look cluster, a file system, a storage type and the like related to the distributed storage on the basis of entering the ceph directory. The specific code may be as follows:
# entry into ceph directory
cd rook/cluster/examples/kubernetes/ceph
# create operator
kubectl apply-f crds.yaml-f common.yaml-f operator.yaml
# Create look Cluster
kubectl apply-f cluster.yaml
# creation of filesystem
kubectl apply-f filesystem.yaml
# Create Storageclass
cd csi/cephfs
kubectl apply-f storageclass.yaml。
According to the invention, data loss caused by node drift can be prevented by adopting a network to perform distributed storage on Mysql data.
Further, on the basis of the foregoing embodiments, the Mysql cluster deployment method provided by the present invention further includes: and installing an Ingress cluster, and exposing the Mysql cluster by using the Ingress cluster and exposing the service of the Kubernets cluster to the outside.
It can be understood that, as shown in fig. 2, on the basis of the deployment of the Mysql cluster, the Mysql cluster can be exposed to provide specific data services to the outside. Specifically, an Ingress cluster tool may be installed in a kubernets environment, and the Ingress cluster tool is used to expose the services of the kubernets cluster to the outside, so as to implement the external exposure of the Mysql cluster.
The Ingress cluster comprises two components: ingress Controller and Ingress. The Ingress is an Ingress object, and in kubernets application, the Ingress object is an abstraction for modifying a Nginx configuration action, that is, an abstraction for configuring various domain names and corresponding actions of corresponding services. The Ingress Controller is used for solving the problem of how to process Nginx, and the Ingress Controller dynamically senses and reads the change of Ingress rules in the cluster through interaction with an Application Programming Interface (API) of Kubernetes, and generates a segment of Nginx configuration according to a built-in template and writes the segment of Nginx configuration to Nginx Pod for loading.
The external exposure service through Ingress can be realized through the following codes:
Figure BDA0003131540900000101
based on the same inventive concept, the present invention further provides a Mysql cluster deployment device according to the above embodiments, where the device is used to implement Mysql cluster deployment in the above embodiments. Therefore, the description and definition in the Mysql cluster deployment method in each embodiment described above may be used for understanding each execution module in the present invention, and reference may be specifically made to the above method embodiment, which is not described herein again.
According to an embodiment of the present invention, a structure of the Mysql cluster deployment device is shown in fig. 3, which is a schematic structural diagram of the Mysql cluster deployment device provided in the present invention, and the device may be used to implement Mysql cluster deployment in the foregoing method embodiments, and the device includes: a deployment module 301 for:
under a Kubernetes environment, Mysql clusters are containerized, configured and deployed by using Helm tools.
Specifically, the deployment module 301 deploys the Mysql cluster in a containerization manner by using kubernets, aiming at the problems and disadvantages of the existing Mysql cluster deployment manner, so as to improve the availability, expandability and maintainability of the cluster. Specifically, the deployment module 301 installs and configures the Mysql cluster based on the Helm tool in the kubernets cluster. The Helm tool is used as a pack manager of Kubernets, and automatic deployment of the Mysql cluster can be achieved by designing a Chart pack of the Helm tool.
The Mysql cluster deployment device provided by the invention adopts Kubernets containerization to deploy the Mysql cluster, and through the containerization and container arrangement technology, the system is easier to use, has higher expandability and maintainability, and can reasonably use hardware resources.
Optionally, the deployment module is configured to:
deploying a Kubernetes cluster to form the Kubernetes environment, and installing the Helm tool in the Kubernetes environment;
and modifying the configuration of the Helm tool, and configuring and deploying the Mysql cluster by using the modified Helm tool.
Optionally, the deployment module, when configured to configure and deploy the Mysql cluster by using the modified Helm tool, is configured to:
creating a Mysql namespace by using kubecects cluster kubecects, and installing a Mysql instance based on the Mysql namespace by using the modified Helm tool;
and deploying the Mysql cluster by using the modified Helm tool.
Optionally, the deployment module is further configured to:
and deploying distributed storage, and storing the data of the Mysql cluster by adopting a network based on the distributed storage.
Optionally, the deployment module, when used to deploy distributed storage, is configured to:
and entering a ceph directory, and respectively creating a storage instance, a look cluster, a file system and a storage type by using the kubecetes cluster kubecect under the ceph directory to realize the deployment of the distributed storage.
Optionally, the Mysql cluster deployment device further includes:
and the service exposure module is used for installing an Ingress cluster and exposing the Mysql cluster by using the Ingress cluster and exposing the service of the Kubernetes cluster to the outside.
It is understood that the relevant program modules in the devices of the above embodiments can be implemented by a hardware processor (hardware processor) in the present invention. Moreover, the Mysql cluster deployment device of the present invention can implement the Mysql cluster deployment process of each method embodiment by using the program modules, and when the Mysql cluster deployment device of each method embodiment is used to implement Mysql cluster deployment, the beneficial effects produced by the device of the present invention are the same as those of each corresponding method embodiment, and reference may be made to each method embodiment, which is not described herein again.
As another aspect of the present invention, the present embodiment provides an electronic device according to the foregoing embodiments, where the electronic device includes a memory, a processor, and a program or an instruction stored in the memory and executable on the processor, and when the processor executes the program or the instruction, the steps of the Mysql cluster deployment method according to the foregoing embodiments are implemented.
Further, the electronic device of the present invention may further include a communication interface and a bus. Referring to fig. 4, an entity structure diagram of the electronic device provided by the present invention includes: at least one memory 401, at least one processor 402, a communication interface 403, and a bus 404.
The memory 401, the processor 402 and the communication interface 403 complete mutual communication through the bus 404, and the communication interface 403 is used for information transmission between the electronic device and kubernets cluster resource device; the memory 401 stores a program or instructions that can be executed on the processor 402, and when the program or instructions are executed by the processor 402, the steps of the Mysql cluster deployment method according to the embodiments are implemented.
It is understood that the electronic device at least includes a memory 401, a processor 402, a communication interface 403 and a bus 404, and the memory 401, the processor 402 and the communication interface 403 are connected in communication with each other through the bus 404, and can complete communication with each other, for example, the processor 402 reads program instructions of the Mysql cluster deployment method from the memory 401. In addition, the communication interface 403 may also implement communication connection between the electronic device and a kubernets cluster resource device, and may complete mutual information transmission, for example, implement acquisition of kubernets cluster resource through the communication interface 403.
When the electronic device is running, the processor 402 calls the program instructions in the memory 401 to perform the methods provided by the above-mentioned method embodiments, including for example: under a Kubernetes environment, Mysql clusters and the like are containerized, configured and deployed by using a Helm tool.
The program instructions in the memory 401 may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Alternatively, all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, where the program may be stored in a computer-readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The present invention further provides a non-transitory computer-readable storage medium according to the above embodiments, on which a program or instructions are stored, and when the program or instructions are executed by a computer, the program or instructions implement the steps of the Mysql cluster deployment method according to the above embodiments, for example, including: under a Kubernetes environment, Mysql clusters and the like are containerized, configured and deployed by using a Helm tool.
As a further aspect of the present invention, the present embodiment further provides a computer program product according to the above embodiments, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer being capable of executing the Mysql cluster deployment method provided by the above method embodiments, the method including: under a Kubernetes environment, Mysql clusters are containerized, configured and deployed by using Helm tools.
According to the electronic device, the non-transitory computer readable storage medium and the computer program product provided by the invention, the steps of the Mysql cluster deployment method described in each embodiment are executed, the Kubernets containerization Mysql cluster is adopted, and the containerization and container arrangement technology is adopted, so that the system is easier to use, has higher expandability and maintainability, and can reasonably use hardware resources.
It is to be understood that the above-described embodiments of the apparatus, the electronic device and the storage medium are merely illustrative, and that elements described as separate components may or may not be physically separate, may be located in one place, or may be distributed on different network elements. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the technical solutions mentioned above may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a usb disk, a removable hard disk, a ROM, a RAM, a magnetic or optical disk, etc., and includes several instructions for causing a computer device (such as a personal computer, a server, or a network device, etc.) to execute the methods described in the method embodiments or some parts of the method embodiments.
In addition, it should be understood by those skilled in the art that the terms "comprises," "comprising," or any other variation thereof, in the specification of the present invention, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In the description of the present invention, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description. Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A Mysql cluster deployment method is characterized by comprising the following steps:
under a Kubernetes environment, Mysql clusters are containerized, configured and deployed by using Helm tools.
2. The Mysql cluster deployment method according to claim 1, wherein the containerization configuring and deploying Mysql cluster in a Kubernets environment by using Helm tool comprises:
deploying a Kubernetes cluster to form the Kubernetes environment, and installing the Helm tool in the Kubernetes environment;
and modifying the configuration of the Helm tool, and configuring and deploying the Mysql cluster by using the modified Helm tool.
3. The Mysql cluster deployment method of claim 2, wherein the configuring and deploying the Mysql cluster using the modified Helm tool comprises:
creating a Mysql namespace by using kubecects cluster kubecects, and installing a Mysql instance based on the Mysql namespace by using the modified Helm tool;
and deploying the Mysql cluster by using the modified Helm tool.
4. The Mysql cluster deployment method of any of claims 1-3, further comprising:
and deploying distributed storage, and storing the data of the Mysql cluster by adopting a network based on the distributed storage.
5. The Mysql cluster deployment method of claim 4, wherein deploying distributed storage comprises:
and entering a ceph directory, and respectively creating a storage instance, a look cluster, a file system and a storage type by using the kubecetes cluster kubecect under the ceph directory to realize the deployment of the distributed storage.
6. The Mysql cluster deployment method of claim 2 or 3, further comprising:
and installing an Ingress cluster, and exposing the Mysql cluster by using the Ingress cluster and exposing the service of the Kubernets cluster to the outside.
7. A Mysql cluster deployment device, comprising:
and the deployment module is used for containerization configuration and deployment of the Mysql cluster by utilizing a Helm tool in a Kubernets environment.
8. The Mysql cluster deployment device of claim 7, wherein the deployment module is configured to:
deploying a Kubernetes cluster to form the Kubernetes environment, and installing the Helm tool in the Kubernetes environment;
and modifying the configuration of the Helm tool, and configuring and deploying the Mysql cluster by using the modified Helm tool.
9. An electronic device comprising a memory, a processor, and a program or instructions stored on the memory and executable on the processor, wherein the processor, when executing the program or instructions, performs the steps of the Mysql cluster deployment method of any of claims 1-6.
10. A non-transitory computer readable storage medium having stored thereon a program or instructions, which when executed by a computer, carry out the steps of the Mysql cluster deployment method as claimed in any of claims 1 to 6.
CN202110704251.8A 2021-06-09 2021-06-24 Mysql cluster deployment method and device, electronic equipment and storage medium Pending CN113407257A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2021106432795 2021-06-09
CN202110643279 2021-06-09

Publications (1)

Publication Number Publication Date
CN113407257A true CN113407257A (en) 2021-09-17

Family

ID=77682922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110704251.8A Pending CN113407257A (en) 2021-06-09 2021-06-24 Mysql cluster deployment method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113407257A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253628A (en) * 2021-12-22 2022-03-29 金蝶软件(中国)有限公司 Automatic deployment device and automatic deployment method for middleware
CN115426373A (en) * 2022-08-23 2022-12-02 浪潮软件科技有限公司 Method for deploying distributed storage system in private cloud and deployment system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107016059A (en) * 2017-03-10 2017-08-04 北京聚睿智能科技有限公司 A kind of data-base cluster dispositions method, device and physical server
WO2017161984A1 (en) * 2016-03-24 2017-09-28 中兴通讯股份有限公司 Method, device and system for deploying data clusters, and computer storage medium
CN111930465A (en) * 2020-05-28 2020-11-13 武汉达梦数据库有限公司 Kubernetes-based dreams master-slave cluster deployment method and device
WO2021017279A1 (en) * 2019-07-30 2021-02-04 平安科技(深圳)有限公司 Cluster security management method and apparatus based on kubernetes and network domain, and storage medium
CN112558987A (en) * 2020-12-16 2021-03-26 中盈优创资讯科技有限公司 Helm-based automatic deployment method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017161984A1 (en) * 2016-03-24 2017-09-28 中兴通讯股份有限公司 Method, device and system for deploying data clusters, and computer storage medium
CN107016059A (en) * 2017-03-10 2017-08-04 北京聚睿智能科技有限公司 A kind of data-base cluster dispositions method, device and physical server
WO2021017279A1 (en) * 2019-07-30 2021-02-04 平安科技(深圳)有限公司 Cluster security management method and apparatus based on kubernetes and network domain, and storage medium
CN111930465A (en) * 2020-05-28 2020-11-13 武汉达梦数据库有限公司 Kubernetes-based dreams master-slave cluster deployment method and device
CN112558987A (en) * 2020-12-16 2021-03-26 中盈优创资讯科技有限公司 Helm-based automatic deployment method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253628A (en) * 2021-12-22 2022-03-29 金蝶软件(中国)有限公司 Automatic deployment device and automatic deployment method for middleware
CN115426373A (en) * 2022-08-23 2022-12-02 浪潮软件科技有限公司 Method for deploying distributed storage system in private cloud and deployment system

Similar Documents

Publication Publication Date Title
US11405274B2 (en) Managing virtual network functions
US11334396B2 (en) Host specific containerized application configuration generation
Azab Enabling docker containers for high-performance and many-task computing
US9569198B2 (en) Release lifecycle management system for multi-node application
US20190190776A1 (en) Deployment state based configuration generation
US11385883B2 (en) Methods and systems that carry out live migration of multi-node applications
US9298482B2 (en) Plug-in based templatization framework for automating the creation of open virtualization format virtual appliances
CN112416524A (en) Implementation method and device of cross-platform CI/CD (compact disc/compact disc) based on docker and kubernets offline
WO2019199495A1 (en) Method for managing application configuration state with cloud based application management techniques
US10057377B2 (en) Dynamic resolution of servers in a distributed environment
Mavridis et al. Orchestrated sandboxed containers, unikernels, and virtual machines for isolation‐enhanced multitenant workloads and serverless computing in cloud
Kehrer et al. TOSCA-based container orchestration on Mesos: two-phase deployment of cloud applications using container-based artifacts
CN113407257A (en) Mysql cluster deployment method and device, electronic equipment and storage medium
Caballer et al. A platform to deploy customized scientific virtual infrastructures on the cloud
CN115794253A (en) Application integration method and device, electronic equipment and computer readable storage medium
US20200371853A1 (en) Secure backwards compatible orchestration of isolated guests
CN113507489B (en) Visual deployment, operation and maintenance method of financial private cloud
US20240054000A1 (en) Container scheduling and deployment method and apparatus, and domain controller system
CN114465914B (en) Server cluster construction method, computing device and storage medium
US20240069883A1 (en) Deriving a container from a package set
US20240126903A1 (en) Simulation of edge computing nodes for hci performance testing
CN117472509A (en) Non-containerized application management method based on Kubernetes cluster equipment
Liang et al. Hybrid computer cluster with high flexibility
Borin et al. Deploying and Configuring Infrastructure
US11900091B2 (en) Extensible upgrade and modification as a service

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