标签: linux

k8s-prometheus “context deadline exceeded”问题处理

部署了node-exporter,prometheus却无法获取信息,报context deadline exceeded。 解决: 网上好多介绍说改prometheus的配置scrape_timeout:600s,加大参数即可。 实际上不好使。 最后加大exporter的资源限制解决 默认: resources: limits: cpu: 10m memory: 50Mi requests: cpu: 10m memory: 50Mi 修改为: resources: requests: memory: 30Mi cpu: 100m limits: memory: 200Mi cpu: 500

继续阅读 >>

nginx新增stream模块负载ftp请求

nginx 1.9版本之后直接使用Stream 安装stream模块: 1.nginx 增加tcp ./configure –with-stream (新增配置,其余根据自己需求不变) 2.配置nginx.conf stream { upstream ftp { hash $remote_addr consistent; server 192.168.1.2:21 max_fails=3 fail_timeout=30s; server 192.168.1.3:21 max_fails=3 fail_timeout=30s; } server { listen 2121; prox

继续阅读 >>

etcd集群安装配置

ETC集群配置 yum install etcd 安装 etcd每台安装步骤都一样,所以etcd2、etcd3都以etcd1步骤一样 安装只需一条命令即可: yum -y install etcd 修改配置文件 ETCD_DATA_DIR=”/var/lib/etcd/etcd01″ ETCD_LISTEN_PEER_URLS=”http://192.168.15.1:2380″ ETCD_LISTEN_CLIENT_URLS=”http://127.0.0.1:2379,http://192.168.15.1:2379″

继续阅读 >>

RabbitMQ脑裂问题解决方案调查

现象: RabbitMQ GUI上显示 Network partition detected Mnesia reports that this RabbitMQ cluster has experienced a network partition. There is a risk of losing data. Please read RabbitMQ documentation about network partitions and the possible solutions. 原因分析: 这是由于网络问题导致集群出现了脑裂临时解决办法: 在 相对不怎么信任的分区里,对那个分区的节点实

继续阅读 >>