摘要: filebeat.modules:- module: kafka log: enabled: truefilebeat.prospectors:- type: log enabled: true paths: - /opt/logs/jetty/xxx.log fields: name: study 阅读全文
posted @ 2018-07-04 17:30 清风木 阅读(454) 评论(0) 推荐(0)
摘要: global_defs { router_id k8s_master} vrrp_script chk_http_port {script "/etc/keepalived/check_haproxy.sh"interval 2} vrrp_instance k8s_master { state M 阅读全文
posted @ 2018-07-04 17:25 清风木 阅读(416) 评论(0) 推荐(0)
摘要: --user=nginx --group=nginx --prefix=/opt/app/nginx --with-http_v2_module --with-http_ssl_module --with-http_sub_module --with-http_stub_status_module 阅读全文
posted @ 2018-07-04 17:23 清风木 阅读(149) 评论(0) 推荐(0)
摘要: zabbix server:cat zabbix_server.confLogFile=/data/log/zabbix_server.logLogFileSize=250DebugLevel=3PidFile=/tmp/zabbix_server.pidDBHost=xxx-db-zabbix.i 阅读全文
posted @ 2018-07-04 17:16 清风木 阅读(120) 评论(0) 推荐(0)
摘要: 服务器:#vim /etc/hosts10.16.166.90 sh-xxx-xxx-xxx-online-0110.16.168.220 sh-xx-xxx-xxx-online-0210.16.167.15 sh-xxx-xxx-xxx-online-03 #vim /etc/yum.repos 阅读全文
posted @ 2018-07-04 17:13 清风木 阅读(357) 评论(0) 推荐(0)
摘要: #wget http://www.haproxy.org/download/1.7/src/haproxy-1.7.9.tar.gz #tar zxvf haproxy-1.7.9.tar.gz#make TARGET=linux26 PREFIX=/usr/local/haproxy #make 阅读全文
posted @ 2018-07-04 17:09 清风木 阅读(444) 评论(0) 推荐(0)
摘要: 创建软链:file: - name: create link hosts: "{{hosts_ip}}" tasks: - name: create link file: src={{src_path}} dest={{dest_link_path}} state=link 运行脚本: - name 阅读全文
posted @ 2018-07-04 17:01 清风木 阅读(1446) 评论(0) 推荐(0)
摘要: #cat jia.yml - hosts: test-gfs user: dev gather_facts: true vars: PORT: "3306" MESAGE: "wangrenqing" IP_local: "{{ansible_default_ipv4.address}}" IP_l 阅读全文
posted @ 2018-07-04 16:57 清风木 阅读(190) 评论(0) 推荐(0)
摘要: 修改cat /etc/ansible/hosts [test]10.27.235.108 host_name=test_host_name - hosts: test user: root gather_facts: true tasks: - name: rsync dir filebeat ho 阅读全文
posted @ 2018-07-04 16:56 清风木 阅读(4983) 评论(0) 推荐(1)
摘要: #cat /etc/sysctl.conffs.file-max = 1048576net.core.netdev_max_backlog = 262144net.core.somaxconn = 4096net.ipv4.tcp_max_orphans = 65536net.ipv4.ip_loc 阅读全文
posted @ 2018-07-04 16:52 清风木 阅读(196) 评论(0) 推荐(0)
摘要: 一、简介 GlusterFS 是近年兴起的一个高性能开源分布式文件系统,其目标是全局命名空间、分布式前端的高性能文件系统,目前已被 RedHat 看中,GlusterFS 具有高扩展、高可性、高性能、可横向扩展等特点,并且 GlusterFS 没有元数据服务器的设计,使其没有单点故障问题。 二、Gl 阅读全文
posted @ 2018-07-04 16:50 清风木 阅读(464) 评论(0) 推荐(0)
摘要: 可信存储池(Trusted Storage Pool)创建存储池例如要创建一个包含3个服务器的存储池,则需要从第一个服务器server1中把另外两个服务器加入存储池中:# gluster peer probe server2Probe successful # gluster pool peer s 阅读全文
posted @ 2018-07-04 16:49 清风木 阅读(2304) 评论(0) 推荐(0)
摘要: gluster配额管理gluster volume quota cloud enablegluster volume quota cloud limit-usage /mail/pbs 20MBdd if=/dev/zero of=test bs=1MB count=100 添加一个服务器加入到存储 阅读全文
posted @ 2018-07-04 16:45 清风木 阅读(437) 评论(0) 推荐(0)
摘要: #wget 'https://cloud.weave.works/launch/k8s/weavescope.yaml?k8s-service-type=NodePort&k8s-version=1.7.5' 或者 #kubectl apply -n kube-system -f weavescop 阅读全文
posted @ 2018-07-04 16:44 清风木 阅读(1015) 评论(0) 推荐(0)
摘要: Kubernetes的调度有简单,有复杂,指定NodeName和使用NodeSelector调度是最简单的,可以将Pod调度到期望的节点上。 1 NodeNamePod.spec.nodeName用于强制约束将Pod调度到指定的Node节点上,这里说是“调度”,但其实指定了nodeName的Pod会 阅读全文
posted @ 2018-07-04 16:42 清风木 阅读(640) 评论(0) 推荐(0)
摘要: 准备工作环境信息 修改dns配置 设置阿里源root@sh-saas-cs-manager-online-01:~# mv /etc/apt/sources.list /etc/apt/sources.list.bakroot@sh-saas-cs-manager-online-01:~# cat 阅读全文
posted @ 2018-07-04 16:41 清风木 阅读(1283) 评论(0) 推荐(0)
摘要: package mainimport "fmt" //一定要双引号func main() {/* test hello word *///test fmt.Println("hello world!") } go run helloworld.go 阅读全文
posted @ 2018-07-04 16:38 清风木 阅读(187) 评论(0) 推荐(0)
摘要: 部署环境: 1、下载所需的软件包(以下需要-翻-墙-下载的地方你们自己解决吧......): (1)下载docker-compose: (2)下载harbor: (3)解压,配置harbor: (4)配置docker: (5)执行安装脚本: 安装完成后会生成如下6个容器: Harbor容器的stop 阅读全文
posted @ 2018-07-04 16:15 清风木 阅读(200) 评论(0) 推荐(0)
摘要: nginx: FROM nginx:latest COPY nginx/sources.list /etc/apt/sources.list #RUN apt-get update && apt-get install -y curl unzip COPY . /usr/share/nginx/ht 阅读全文
posted @ 2018-07-04 16:12 清风木 阅读(181) 评论(0) 推荐(0)
摘要: 解决: dockerfile: RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime#update application timezoneRUN echo "Asia/Shanghai" >> /etc/timezon 阅读全文
posted @ 2018-07-04 16:10 清风木 阅读(244) 评论(0) 推荐(0)