1. 部署galera集群

利用四台主机cicd、node1、node2、node3来搭建galera集群。

1> 上传压缩包至cicd,解压得到ansible配置文件

[root@cicd ~]# ls
anaconda-ks.cfg ansible-galera.tar.gz
[root@cicd ~]# tar zxf ansible-galera.tar.gz
[root@cicd ~]# ls
anaconda-ks.cfg ansible-galera ansible-galera.tar.gz
[root@cicd ~]# cd ansible-galera/
[root@cicd ansible-galera]# ls
bin delete.yml hosts install.yml roles

2> 安装ansible

[root@cicd ~]# mount /dev/cdrom  /mnt
mount: /dev/sr0 is write-protected, mounting read-only
[root@cicd ~]# yum install ansible -y

3> 清空ansible目录文件,将解压得到的文件复制到ansible目录下

[root@cicd ~]# cd /etc/ansible/
[root@cicd ansible]# ls
ansible.cfg hosts roles
[root@cicd ansible]# rm -rf *
[root@cicd ansible]# ls
[root@cicd ansible]# mv /root/ansible-galera/* .
[root@cicd ansible]# ls
bin delete.yml hosts install.yml roles

4> 集群进行域名解析,使每个节点都能静态解析。

[root@cicd ansible]# vim /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
:: localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.16.95 cicd
192.168.16.96 node1
192.168.16.98 node2
192.168.16.99 node3
[root@cicd ansible]# scp /etc/hosts 192.168.16.96:/etc/hosts
[root@cicd ansible]# scp /etc/hosts 192.168.16.98:/etc/hosts
[root@cicd ansible]# scp /etc/hosts 192.168.16.99:/etc/hosts

5> 在部署节点设置无秘钥登录

[root@cicd ansible]# ssh-keygen
[root@cicd ansible]# ssh-copy-id node1
[root@cicd ansible]# ssh-copy-id node2
[root@cicd ansible]# ssh-copy-id node3
[root@cicd ansible]# ssh-copy-id cicd

6> bin目录用来存放配置文件以及镜像、安装脚本,因此要将配置文件、镜像和安装版本放在该目录下。

[root@cicd ansible]# ls
bin delete.yml hosts install.yml roles
[root@cicd ansible]# cd bin
[root@cicd bin]# ls
VERSION.md
[root@cicd bin]# cd
[root@cicd ~]# ls
anaconda-ks.cfg ansible-galera ansible-galera.tar.gz galera.tar.gz
[root@cicd ~]# tar zxf galera.tar.gz
[root@cicd ~]# ls
anaconda-ks.cfg ansible-galera.tar.gz galera.tar.gz
ansible-galera config.tar.gz mariadb-galera.ta
[root@cicd ~]# mv config.tar.gz mariadb-galera.tar /etc/ansible/bin/
[root@cicd ~]# cd /etc/ansible/bin/
[root@cicd bin]# ls
config.tar.gz mariadb-galera.tar VERSION.md

7> 在四台机器上部署docker

[root@cicd ~]# wget http://download2.yunwei.edu/shell/docker.tar.gz
[root@cicd ~]# tar zxf docker.tar.gz
[root@cicd ~]# cd docker
[root@cicd docker]# bash docker.sh

四台均部署。

8> 编辑配置文件hosts

[root@cicd ~]# cd /etc/ansible
[root@cicd ansible]# ls
bin delete.yml hosts install.yml roles
[root@cicd ansible]# vim hosts
[all] #集群节点
192.168.16.96
192.168.16.98
192.168.16.99 [master] #主节点
192.168.16.96 [slave1] #从节点
192.168.16.98 [slave2] #从节点
192.168.16.99 [all:vars] #变量
#定义集群ip
master="192.168.16.96"
slave1="192.168.16.98"
slave2="192.168.16.99"
#部署目录,即 ansible 工作目录
base_dir="/etc/ansible"
#默认软件安装目录
opt_dir="/opt"

9> 执行yml文件,部署ansible集群,得到docker-galera集群

[root@cicd ~]# cd /etc/ansible/
[root@cicd ansible]# ls
bin delete.yml hosts install.yml roles
[root@cicd ansible]# ansible-playbook install.yml

10> 查看容器即数据库结果,验证是否安装成功。

[root@node1 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
10cda5ecde16 panubo/mariadb-galera "/galera-entrypoint.…" minutes ago Up minutes galera1
[root@node2 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bc1dca8dea63 panubo/mariadb-galera "/galera-entrypoint.…" minutes ago Up seconds galera2
[root@node3 ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fd542150b5cc panubo/mariadb-galera "/galera-entrypoint.…" minutes ago Up seconds galera3 [root@node1 ~]# docker exec -it 10cda5ecde16 /bin/bash
root@node1:/# mysql -uroot -p123
MariaDB [(none)]> SHOW STATUS LIKE 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | |
+--------------------+-------+ [root@node2 opt]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9abff0435fa2 panubo/mariadb-galera "/galera-entrypoint.…" hours ago Up hours galera2
[root@node2 opt]# docker exec -it 9abff0435fa2 /bin/bash
root@node2:/# mysql -uroot -p123
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is
Server version: 10.1.-MariaDB-~jessie mariadb.org binary distribution Copyright (c) , , Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> SHOW STATUS LIKE 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | |
+--------------------+-------+ [root@node3 opt]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@node3 opt]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
26b3b9dee6ea panubo/mariadb-galera "/galera-entrypoint.…" hours ago Up hours galera3
[root@node3 opt]# docker exec -it 26b3b9dee6ea /bin/bash
root@node3:/# mysql -uroot -p123;
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is
Server version: 10.1.-MariaDB-~jessie mariadb.org binary distribution
Copyright (c) , , Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> SHOW STATUS LIKE 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | |
+--------------------+-------+
row in set (0.01 sec)

11> 各文件内容

[root@node ansible]# cat install.yml
- hosts:
- all
roles:
- ready
- hosts:
- master
roles:
- master - hosts:
- slave1
roles:
- slave1 - hosts:
- slave2
roles:
- slave2

对应的main.yml文件在目录roles下面
[root@node ansible]# cd roles
[root@node roles]# ls
master ready slave1 slave2
[root@node ansible]# cd roles
[root@node roles]# ls
master ready slave1 slave2
[root@node roles]# cd master/
[root@node master]# ls
tasks
[root@node master]# cd tasks/
[root@node tasks]# ls
main.yml
[root@node tasks]# cat main.yml
#部署wsrep进程mariadb-master
- name: 启动wsrep进程
shell: "cd {{ opt_dir }}/mariadb/ && sh master.sh" [root@node tasks]# cd /etc/ansible/roles/ready/
[root@node ready]# ls
tasks templates
[root@node ready]# cd tasks/
[root@node tasks]# ls
main.yml
[root@node tasks]# cat main.yml
#准备工作目录:
- name: prepare some dirs
file: name={{ item }} state=directory mode=
with_items:
- "{{ opt_dir }}/mariadb" ## ---------下载 配置文件及镜像 -----------
- name: download configfile and iamge
copy: src={{ base_dir }}/bin/{{ item }} dest={{ opt_dir }}/mariadb/{{ item }} mode=
with_items:
- mariadb-galera.tar
- config.tar.gz #解压配置文件
- name: 解压config
shell: "tar zxf {{ opt_dir }}/mariadb/config.tar.gz -C {{ opt_dir }}/mariadb/"
#导入mariadb-galera镜像
- name: 导入mariadb-galera
shell: "cd {{ opt_dir }}/mariadb/ && docker load -i mariadb-galera.tar" ## ---------分发 脚本文件 -----------
- name: download configfile and iamge
template: src={{ item }} dest={{ opt_dir }}/mariadb/{{ item }} mode=
with_items:
- master.sh
- slave1.sh
- slave2.sh [root@node roles]# ls
master ready slave1 slave2
[root@node roles]# cd ready/
[root@node ready]# ls
tasks templates
[root@node ready]# cd templates/
[root@node templates]# ls
master.sh slave1.sh slave2.sh
[root@node templates]# cat master.sh
docker run -d --net host --name galera1 \
-e WSREP_NODE_ADDRESS={{ master }} \
-e WSREP_CLUSTER_ADDRESS=gcomm://{{ master }}:4567,{{ slave1 }}:4567,{{ slave2 }}:4567 \
-e MYSQL_ROOT_PASSWORD= \
-p : \
-p :/udp \
-p -:- \
-p : \
-v /opt/mariadb/config/mysql:/etc/mysql \
-v /opt/mariadb/config/data:/var/lib/mysql:Z \
--restart=always \
panubo/mariadb-galera mysqld --wsrep-new-cluster [root@node templates]# cat slave1.sh
docker run -d --net host --name galera2 \
-e WSREP_NODE_ADDRESS={{ slave1 }} \
-e WSREP_CLUSTER_ADDRESS=gcomm://{{ master }}:4567,{{ slave1 }}:4567,{{ slave2 }}:4567 \
-p : \
-p :/udp \
-p -:- \
-p : \
-v /opt/mariadb/config/mysql:/etc/mysql \
-v /opt/mariadb/config/data:/var/lib/mysql:Z \
--restart=always \
panubo/mariadb-galera mysqld [root@node templates]# cat slave2.sh
docker run -d --net host --name galera3 \
-e WSREP_NODE_ADDRESS={{ slave2 }} \
-e WSREP_CLUSTER_ADDRESS=gcomm://{{ master }}:4567,{{ slave1 }}:4567,{{ slave2 }}:4567 \
-p : \
-p :/udp \
-p -:- \
-p : \
-v /opt/mariadb/config/mysql:/etc/mysql \
-v /opt/mariadb/config/data:/var/lib/mysql:Z \
--restart=always \
panubo/mariadb-galera mysqld [root@node roles]# cd slave1
[root@node slave1]# ls
tasks
[root@node slave1]# cd tasks/
[root@node tasks]# ls
main.yml
[root@node tasks]# cat main.yml
#部署wsrep进程mariadb-master
- name: 启动salve进程
shell: "cd {{ opt_dir }}/mariadb/ && sh slave1.sh" [root@node tasks]# cat main.yml
#部署wsrep进程mariadb-master
- name: 启动salve进程
shell: "cd {{ opt_dir }}/mariadb/ && sh slave2.sh"
[root@node tasks]#

11> 删除部署的docker-galance

删除该集群用/etc/ansible/delete.yum文件

文件内容
[root@node ansible]# cat delete.yml
- hosts:
- master
tasks:
- name: stop mariadb-galera-docker
shell: "docker stop galera1 && docker rm galera1" - hosts:
- slave1
tasks:
- name: stop mariadb-galera-docker
shell: "docker stop galera2 && docker rm galera2" - hosts:
- slave2
tasks:
- name: stop mariadb-galera-docker
shell: "docker stop galera3 && docker rm galera3" - hosts:
- all
tasks:
#清理文件及镜像
- name: 清理目录和文件
file: name={{ opt_dir }}/mariadb state=absent
- name: rm image
shell: "docker rmi 75feb1db734a" 执行删除
[root@node ansible]# ansible-playbook delete.yml

2. 集群故障恢复

1> 集群中某slave节点down机,重启该节点后重启docker容器即可;

[root@node ~]# mysql -h 192.168.16.96 -uroot -p123   #-h:指定节点数据库登录
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is
Server version: 10.1.-MariaDB-~jessie mariadb.org binary distribution
Copyright (c) , , Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> SHOW STATUS LIKE 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | |
+--------------------+-------+ 模拟节点node3 down机
[root@node3 ~]# powerof MariaDB [(none)]> SHOW STATUS LIKE 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | |
+--------------------+-------+ 再将节点重新启动,查看数据库
Last login: Wed Jul :: from 192.168.16.95
[root@node3 ~]# MariaDB [(none)]> SHOW STATUS LIKE 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | |
+--------------------+-------+

2> 集群中master节点down机,因为master节点已经切换重启该master节点后master-docker容器不能正常启动,需要将原先master-docker容器删除,再以非wrster方式启动一个普通容器;

[root@node1 ~]# shutdown -h now

MariaDB [(none)]>  SHOW STATUS LIKE 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | |
+--------------------+-------+ 重启node1
Last login: Wed Jul :: from 192.168.16.95
[root@node1 ~]#
[root@node1 ~]# docker ps -a #由于被抢占了master,一直处于重启状态
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e919dd79cb44 panubo/mariadb-galera "/galera-entrypoint.…" minutes ago Restarting () seconds ago galera1 MariaDB [(none)]> SHOW STATUS LIKE 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | |
+--------------------+-------+ 将该容器删除,然后再以普通容器的方式启动
[root@node1 ~]# docker stop e919dd79cb44
e919dd79cb44
[root@node1 ~]# docker rm e919dd79cb44
e919dd79cb44
修改从节点启动脚本,以普通容器形式启动
[root@node1 opt]# cd
[root@node1 ~]# cd /opt/mariadb/
[root@node1 mariadb]# ls
config config.tar.gz mariadb-galera.tar master.sh slave1.sh slave2.sh
[root@node1 mariadb]# vim slave1.sh
docker run -d --net host --name galera1 \
-e WSREP_NODE_ADDRESS=192.168.16.96 \
-e WSREP_CLUSTER_ADDRESS=gcomm://192.168.16.96:4567,192.168.16.98:4567,192.168.16.99:4567 \
-p : \
-p :/udp \
-p -:- \
-p : \
-v /opt/mariadb/config/mysql:/etc/mysql \
-v /opt/mariadb/config/data:/var/lib/mysql:Z \
--restart=always \
panubo/mariadb-galera mysqld [root@node1 mariadb]# docker run -d --net host --name galera1 \
> -e WSREP_NODE_ADDRESS=192.168.16.96 \
> -e WSREP_CLUSTER_ADDRESS=gcomm://192.168.16.96:4567,192.168.16.98:4567,192.168.16.99:4567 \
> -p : \
> -p :/udp \
> -p -:- \
> -p : \
> -v /opt/mariadb/config/mysql:/etc/mysql \
> -v /opt/mariadb/config/data:/var/lib/mysql:Z \
> --restart=always \
> panubo/mariadb-galera mysqld
WARNING: Published ports are discarded when using host network mode
354383d0d45ee204e1cf5b9f5f0196216ea68a8df3b61a5618eb0cb1abe90e7b #重启成功
"slave1.sh" 11L, 383C written
[root@node1 mariadb]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
354383d0d45e panubo/mariadb-galera "/galera-entrypoint.…" minutes ago Up minutes galera1 MariaDB [(none)]> SHOW STATUS LIKE 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | |
+--------------------+-------+

3> 集群全部意外down机(如断电),强制找一台节点作为master节点,将/opt/mariadb/data目录中的文件grastate.dat文件的safe_to_bootstrap:0改为1,之后在该节点启动wsrap进程的docker。

模拟三个节点down
[root@node ~]# ansible all -m shell -a 'shutdown -h now'
192.168.16.96 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: Shared connection to 192.168.16.96 closed.",
"unreachable": true
}
192.168.16.99 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: Shared connection to 192.168.16.99 closed.",
"unreachable": true
}
192.168.16.98 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: Shared connection to 192.168.16.98 closed.",
"unreachable": true
} 再将三个节点开机
Last login: Wed Jul :: from 192.168.16.95
[root@node1 ~]#
Last login: Wed Jul :: from 192.168.16.95
[root@node2 ~]#
Last login: Wed Jul :: from 192.168.16.95
[root@node3 ~]# 无法登陆数据库
[root@node ~]# mysql -h 192.168.16.99 -uroot -p123
ERROR (HY000): Can't connect to MySQL server on '192.168.16.99' (111)
[root@node ~]# mysql -h 192.168.16.98 -uroot -p123
ERROR (HY000): Can't connect to MySQL server on '192.168.16.99' (111)
[root@node ~]# mysql -h 192.168.16.96-uroot -p123
ERROR (HY000): Can't connect to MySQL server on '192.168.16.99' (111) 但是各节点容器是启动的
[root@node ~]# ansible all -m shell -a 'docker ps'
192.168.16.96 | CHANGED | rc= >>
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
354383d0d45e panubo/mariadb-galera "/galera-entrypoint.…" minutes ago Up seconds galera1
192.168.16.99 | CHANGED | rc= >>
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
57f1d19388c2 panubo/mariadb-galera "/galera-entrypoint.…" About an hour ago Up seconds galera3
192.168.16.98 | CHANGED | rc= >>
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e96ee6196980 panubo/mariadb-galera "/galera-entrypoint.…" About an hour ago Up seconds galera2 修改文件grastate.dat
[root@node1 ~]# cd /opt/mariadb/config/data/
[root@node1 data]# ls
aria_log. grastate.dat ib_logfile1 performance_schema
aria_log_control ibdata1 multi-master.info
galera.cache ib_logfile0 mysql
[root@node1 data]# vim grastate.dat
# GALERA saved state
version: 2.1
uuid: 8c85e11d-f45d-11e8-8ed7-dbc6d595b08d
seqno: -
safe_to_bootstrap: 删除galera1容器,由于做了映射。并不会删除数据库
[root@node1 data]# docker stop 354383d0d45e
354383d0d45e
[root@node1 data]# docker rm 354383d0d45e
354383d0d45e 执行master.sh脚本,人为启动mode1为master
[root@node1 ~]# cd /opt/mariadb/
[root@node1 mariadb]# ls
config config.tar.gz mariadb-galera.tar master.sh slave1.sh slave2.sh
[root@node1 mariadb]# bash master.sh
WARNING: Published ports are discarded when using host network mode
2c9900b470a429484e1e959d9d4b4ab4bbfbd0238abaf67214c82cdf7388f404
[root@node1 mariadb]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2c9900b470a4 panubo/mariadb-galera "/galera-entrypoint.…" seconds ago Up seconds galera1 查看数据库,其他两节点自动加入
[root@node ~]# mysql -h 192.168.16.96 -uroot -p123
MariaDB [(none)]> SHOW STATUS LIKE 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | |
+--------------------+-------+

Docker 版ansible galera集群的更多相关文章

  1. Linux下MySQL/MariaDB Galera集群搭建过程【转】

    MariaDB介绍 MariaDB是开源社区维护的一个MySQL分支,由MySQL的创始人Michael Widenius主导开发,采用GPL授权许可证. MariaDB的目的是完全兼容MySQL,包 ...

  2. Galera集群server.cnf参数调整--前言

    文档安排: 前言部分会简述下galera集群,正文中会针对我们线上的环境,在不断业务的情况下,进行参数调整的话,有些参数不能够进行配置,会以#***的形式写入配置文件中,文档也会进行进一步说明. 如果 ...

  3. Docker 容器部署 Consul 集群

    Docker 容器部署 Consul 集群 一.docker安装与启动1.1安装docker[root@localhost /]# yum -y install docker-io 1.2更改配置文件 ...

  4. 使用docker安装部署Spark集群来训练CNN(含Python实例)

    使用docker安装部署Spark集群来训练CNN(含Python实例) http://blog.csdn.net/cyh_24/article/details/49683221 实验室有4台神服务器 ...

  5. 轻松搭建docker应用的mesos集群

    7条命令在docker中部署Mesos集群 所有使用的Docker容器构建文件是有也.您可以在本地构建每个容器或只使用位于Docker Hub预构建的容器.下面的命令会自动下载所需的预建的容器为您服务 ...

  6. MariaDB Galera集群部署--技术流ken

    Galera集群介绍 MariaDB集群是MariaDB同步多主机集群.它仅支持XtraDB/ InnoDB存储引擎. 主要功能 同步复制 真正的multi-master,即所有节点可以同时读写数据库 ...

  7. mysql主从配置和galera集群

    mariadb主从 主从多用于网站架构,因为主从的同步机制是异步的,数据的同步有一定延迟,也就是说有可能会造成数据的丢失,但是性能比较好,因此网站大多数用的是主从架构的数据库,读写分离必须基于主从架构 ...

  8. Docker Swarm java 服务集群

    Docker Swarm java 服务集群 环境1: 系统:Linux Centos 7.4 x64 内核:Linux docker 3.10.0-693.2.2.el7.x86_64 Docker ...

  9. 【ELK】【docker】6.Elasticsearch 集群启动多节点 + 解决ES节点集群状态为yellow

    本章其实是ELK第二章的插入章节. 本章ES集群的多节点是docker启动在同一个虚拟机上 ====================================================== ...

随机推荐

  1. 前端,DJ

    Vue模块 1.Vue都有哪些指令,简单说说? """ Vue里面常见指令有文本指令:v-text.v-html,属性指令:v-bind,方法指令:v-on,条件指令:v ...

  2. idea输出文件夹没有jsp页面

    目录 idea输出文件夹没有jsp页面 问题描述 解决办法 idea输出文件夹没有jsp页面 问题描述 开始创建没有使用web的模板, 自己创建tomcat等配置, 后来启动发现没有index.jsp ...

  3. [HeadFrist-HTMLCSS学习笔记]第三章构建模块:Web页面建设

    [HeadFrist-HTMLCSS学习笔记]第三章构建模块:Web页面建设 敲黑板!! <q>元素添加短引用,<blockquote>添加长引用 在段落里添加引用就使用< ...

  4. react-native 设置启动模拟器

    react-native 设置启动模拟器 查看iOS可选设备: xcrun simctl list devices iPhone7 Plus启动(下次启动会默认使用最后一次选择设备,直接启动npx r ...

  5. Apache Beam实战指南 | 大数据管道(pipeline)设计及实践

    Apache Beam实战指南 | 大数据管道(pipeline)设计及实践  mp.weixin.qq.com 策划 & 审校 | Natalie作者 | 张海涛编辑 | LindaAI 前 ...

  6. Spring boot2X集成zuul与consul实现负载均衡和反向代理

    zuul 是netflix开源的一个API Gateway 服务器 所有从设备或网站来的请求都会经过Zuul到达后端的Netflix应用程序. 作为一个边界性质的应用程序,Zuul提供了动态路由.监控 ...

  7. 技嘉Z390 AORUS MASTER+酷睿I9超频5.0GHz教程

    注:调整每项值的时候,需要手动用键盘输入数字,按回车确定.(只按回车并不会出现选择项) Core i9-9900K也出来了一段时间了,这个号称“地表最强游戏U”也成了很多人最新的目标.网上也有大佬表示 ...

  8. Tomcat通过脚本自动部署

    1:autodeploy_tomcat_app.sh now=`date +%Y%m%d%H%M%S` tomcatPath=/home/test/apache-tomcat- backupPath= ...

  9. Maven 教程(6)— Maven之pom.xml文件简单说明

    原文地址:https://blog.csdn.net/liupeifeng3514/article/details/79543963 通过前面几部分知识,我们对maven已经有了初步的印象,就像Mak ...

  10. Python【每日一问】32

    问: [基础题]:手机品牌存放在一个列表中 brandlist = ['华为','苹果','一加','OPPO','小米'],请实现以下功能:随机选择一个手机品牌屏幕输出 [提高题]:编写一个函数,输 ...