05 2020 档案
摘要:https://blog.51cto.com/536410/2350106 https://github.com/danielqsj/kafka_exporter 部署kafka-exporter,然后去试下监听端口有没有数据 docker run -ti --rm -p 9308:9308 dan
阅读全文
摘要:增加broker 增加2个broker,复制系数直接指定为3,指定原来的单机zook docker run -d --name kafka02 -p 9092:9092 -p 9999:9999 -e KAFKA_BROKER_ID=2 -e KAFKA_ZOOKEEPER_CONNECT=192.
阅读全文
摘要:创建一个三个broker的集群 修改副本默认值,KAFKA_DEFAULT_REPLICATION_FACTOR=3,默认是1,没有副本。设置为和broker数量一样 docker run -d --name kafka01 -p 9092:9092 -p 9999:9999 -e KAFKA_BR
阅读全文
摘要:deployment文件部署 # cat nginx_deployment apiVersion: apps/v1 kind: Deployment metadata: name: nginx spec: replicas: 2 selector: matchLabels: app: nginx s
阅读全文
摘要:下载 https://www.elastic.co/cn/downloads/logstash 基本测试:从命令行测试,input为stdin,output为stdout。启动成功后,在stdin输入内容,stdout会输出内容 bin/logstash -e 'input { stdin { }
阅读全文
摘要:以下是一个开源项目的Dockerfile # stage 1: builder FROM golang:1.14.2-alpine as builder ENV BURROW_SRC /usr/src/Burrow/ RUN apk add --no-cache git curl COPY . $B
阅读全文
摘要:https://www.cnblogs.com/toutou/archive/2019/10/06/kafka_command.html
阅读全文
摘要:https://github.com/linkedin/Burrow https://github.com/linkedin/Burrow/wiki/Configuration https://blog.51cto.com/professor/2119071?utm_source=oschina-a
阅读全文
摘要:注意和es要同版本 我这里是6.5.4,x-pack默认已经安装,所以kibana安装是很简单的 # vim kibana.yml 添加: server.host: "192.168.80.32" elasticsearch.url: "http://192.168.80.32:9200" 启动(r
阅读全文
摘要:https://www.elastic.co/guide/en/elasticsearch/reference/6.5/zip-targz.html#zip-targz 修改参数 cat /etc/sysctl.conf vm.max_map_count=262144 # cat /etc/secu
阅读全文
摘要:https://www.cnblogs.com/woshimrf/p/jenkins-pipeline.html 安装插件 (本机docker不需要)开启docker远程访问 vi /lib/systemd/system/docker.service 修改为 ExecStart=/usr/bin/d
阅读全文
摘要:https://www.jenkins.io/zh/doc/pipeline/tour/hello-world/ https://www.jianshu.com/p/f1167e8850cd maven项目jenkinsfile 目标是n多个maven项目公用一个jenkins模板文件,然后通过改环
阅读全文
摘要:https://jenkinsapi.readthedocs.io/en/latest/api.html
阅读全文
摘要:sysctl kernel.pid_max 查看pid的最大数字,服务器上的配置时3w多,服务端小伙伴给一个服务开了2w的线程,这个机器就变成下面这样的 Welcome to Qiniu Cloud Elastic Compute Service ! -bash: fork: Cannot allo
阅读全文
摘要:安装 yum install epel-release -y yum install ansible –y 显示信息 # ansible --version ansible 2.9.7 config file = /etc/ansible/ansible.cfg configured module
阅读全文
摘要:curl url | sh 方式: install.sh #!/bin/bash # VAR ABS_INSTALL_PATH=/usr/local/bin/ ABS_INSTALL_PREFIX=/usr/local/bin/node_exporter # FUN install_package(
阅读全文
摘要:开发反应程序起不来,日志报disk space 满了。 df -h看磁盘空间剩余多,df -i 看inode已用光600w个。 开始从根目录查 for i in /*; do echo $i; find $i | wc -l; done 然后定位到/opt for i in /opt/*; do e
阅读全文
摘要:启动kafka时,添加jvm参数(docker启动) 关闭认证、关闭ssl、设定jvm端口 -e KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dco
阅读全文
摘要:规划 docker采用systemd部署 pod网络172.7.0.0/16,docker bip设置为172.7.x.1/24 cluster网络 192.168.0.0/16 k8s版本 1.15.12 cni使用flannel VxLAN kubeproxy使用ipvs模式 master部署双
阅读全文
摘要:https://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_liunx_52_ldap_for_jenkins.html ldap 原来有一套phpLDAPadmin的用户管理系统 创建一个ou,直接导入以下模板 dn: ou=jenkins_test,ou=
阅读全文