Kafka 消费者poll配置
消费者poll消息的细节与消费者心跳配置长轮询poll消息默认情况下,消费者⼀次会poll500条消息。//⼀次poll最⼤拉取消息的条数,可以根据消费速度的快慢来设置props.put(ConsumerConfig.MAX_POLL_RECORDS_CONFIG, 500);意味着:如果⼀次poll到500条,就直接执⾏for循环如果这⼀次没有poll到500条。且时间在1秒内,那么⻓轮询继续poll,要么到500条,要么到1s如果多次poll都没达到500条,且1秒时间到了,那么直接执⾏for循环如果两次poll的间隔超过30s,集群会认为该消费者的消费能⼒过弱,该消费者被踢出...
蜗牛星际之黑群晖修改SSD中的grub.cfg
详细步骤如何修改grub.cfg,可以直接PE启动,然后加载ssd第一个分区就能找到文件了,但本文提供另外一种通过ssh登陆在线修改的方法,挂载ssd盘,然后用vi修改找到34行, 改成set sata_args='DiskIdxMap=0F00'保存退出,开机从第三项启动
Linux安装NFS
1、创建共享目录和权限设置[root@k8s-master ~]# mkdir -p /data/nfs[root@k8s-master ~]# chown -R 755 /data/nfs/[root@k8s-master ~]# ll /data/ 2、通过yum进行安装[root@k8s-master ~]#yum -y install nfs-utils rpcbind3、配置 nfs,nfs 的默认配置文件在 /etc/exports 文件下,在该文件中添加下面的配置信息:[root@k8s-master ~]# vim /etc/exports /data/nfs *(rw,sync,no_root_squash)####备注相关配置说明/data/nfs:是共享的数据目录*:表示任何人都有权限连接,当然也可...
k8s搭建测试kafka
一、安装单节点kafka(自己测试过)1、创建zookeeper服务zookeeper-service.yaml内容如下:#ServiceapiVersion: v1kind: Servicemetadata: name: kafka-zookeeper-service labels: name: zookeeper-servicespec: selector: name: kafka-zookeeper-pod type: NodePort ports: - name: "zookeeper" port: 2181 targetPort: 2181zookeeper-deploy.yaml内容如下:#DeploymentapiVersion: apps/v1kind: Deploymentmetadata...
免费内网测试 DNS泛域名nip.io/sslip.io
官方网站:nip.iosslip.io 主要用途及备注:微信小程序调用,不用FRP了,可以直接 使用 http://192.168.1.100.nip.io或 https://192.168.1.100.sslip.ioK8S集群内也可以直接 用192.168.1.100.nip.io了 nip.ioDead simple wildcard DNS for any IP AddressStop editing your etc/hosts file with custom hostname and IP address mappings.nip.io allows you to do that by mapping any IP Address to a hostname using the following formats:Without a name:10.0.0.1.nip.io...
k3s+kuboard快速搭建K8s生产环境集群
提前准备3台机器,可以是云服务器,安装机器要求,请参考:https://docs.k3s.io/zh/installation/requirements 我准备了:192.168.2.195(master node)192.168.2.226(agent node1)192.168.2.227(agent node2) 在开始之前,我们先安装docker: #禁用防火墙systemctl disable firewalld#禁用selinxsetenforce 0#安装所需的软件包。yum-utils 提供了 yum-config-manager ,并且 device mapper 存储驱动程序需要 device-mapper-persistent-data 和 lvm2。sudo yum install ...
自制一键安装环境oneshell_v1.0.sh
echo install env...yum -y install gcc gcc-c++ make libtool zlib zlib-devel openssl openssl-devel pcre pcre-devel#下载Nginxecho downloading nginx-1.18.0wget -c https://nginx.org/download/nginx-1.18.0.tar.gz#安装 nginxecho install nginx-1.18.0tar -zxvf nginx-1.18.0.tar.gzcd nginx-1.18.0./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-stream --with-http_gzip_static_modulemake &...
ELK/EFK中ES使用IK分词器的方式步骤
1. 安装ES同时安装IK提前下载好IK分词器(版本和ES保持 一致):https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.8.0/elasticsearch-analysis-ik-6.8.0.zip下载后,在plugins下面创建文件夹IK,把ZIP解压到IK里面使用DOCKER启动ES:es: container_name: es image: docker.elastic.co/elasticsearch/elasticsearch:6.8.0 privileged: true ports: - "9200:9200" volumes: - ./efk/es/data:/usr/share/elasticsearch/data - ./efk/es...
kibana6.8.0禁用不用的模块
server.port: 5601server.host: "0.0.0.0"server.name: "kibana"elasticsearch.hosts: ["http://es:9200"]elasticsearch.ssl.verificationMode: none#elasticsearch.ssl.certificateAuthorities: ["/data/kibana/config/newfile.crt.pem"]elasticsearch.preserveHost: truekibana.index: ".kibana"i18n.locale: "en"server.defaultRoute: "/app/kibana#/discover"elasticsearch.username: "elastic"elasticsearch.password: "xxxxxxxxxxxxxxxxx"# 禁用可视化和仪表板xpack.monitori...