上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: import json import requests import threading #多线程import osimport sysimport reimport time import pymysql import logging import pandas as pd import sign 阅读全文
posted @ 2025-08-22 00:54 苦逼yw 阅读(8) 评论(0) 推荐(0)
摘要: 1、创建指标采集脚本,该脚本结合crontab的* * * * *表示每15s运行一次 mkdir /opt/custom_metrics/ vim /opt/custom_metrics/disk_usage_monitor.sh #!/bin/bash # /opt/custom_metrics 阅读全文
posted @ 2025-08-17 01:35 苦逼yw 阅读(64) 评论(0) 推荐(0)
摘要: deepseek解释 1、cpu使用率 promql表达式:100 - (avg(irate(node_cpu_seconds_total{mode="idle"}[5m])) by(instance) * 100) 可以拆解为: node_cpu_seconds_total{mode="idle" 阅读全文
posted @ 2025-08-17 01:20 苦逼yw 阅读(229) 评论(0) 推荐(0)
摘要: 1、部署 MySQL(若无可先部署) 注意storageClassName名字 vim nacos-mysql.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: nacos-mysql namespace: nacos spec: 阅读全文
posted @ 2025-06-06 12:11 苦逼yw 阅读(359) 评论(0) 推荐(0)
摘要: Derby + PVC 方案 + 鉴权配置 1、创建configmap存储nacos配置 vim nacos-auth-configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: nacos-auth-config namespace: 阅读全文
posted @ 2025-06-05 15:26 苦逼yw 阅读(187) 评论(0) 推荐(0)
摘要: 1、创建configmap存储redis配置 vim redis-configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: redis-cluster-config data: redis.conf: | cluster-enable 阅读全文
posted @ 2025-06-04 10:41 苦逼yw 阅读(110) 评论(0) 推荐(0)
摘要: deepseek 在 Go 语言中,bufio 包提供的 Reader 和 Writer 通过缓冲区(Buffer)优化 I/O 操作。以下是它们的核心概念和关系解析: 1. 缓冲区(Buffer)是什么? 本质:一块临时的内存区域(通常是字节数组),用于暂存数据。 作用: 减少系统调用次数:批量读 阅读全文
posted @ 2025-05-28 13:54 苦逼yw 阅读(109) 评论(0) 推荐(0)
摘要: 1、问题:serviceMonitor类型的ingress-nginx没注册到Prometheus上,即没在页面上看到serviceMonitor类型的ingress-nginx yml配置: 关键点: ServiceMonitor 的 selector 必须匹配 ingress Service 的 阅读全文
posted @ 2025-05-21 15:33 苦逼yw 阅读(69) 评论(0) 推荐(0)
摘要: 一、停止相关服务 systemctl stop kubelet systemctl stop docker 二、清空K8S集群设置 在卸载K8s组件前,先在所有节点执行kubeadm reset命令,清空K8s集群设置 kubeadm reset -f 三、 删除calico或flannel网络等网 阅读全文
posted @ 2025-05-20 14:44 苦逼yw 阅读(224) 评论(0) 推荐(0)
摘要: https://www.ilovepdf.com/ 阅读全文
posted @ 2025-05-19 17:27 苦逼yw 阅读(10) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 14 下一页