上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: 一、pathType 类型 1. Exact - 精确匹配 匹配规则:路径必须完全匹配,区分大小写 使用场景:特定 API 端点、固定路径 匹配示例: ✅ /api/metrics - 完全匹配 ❌ /api/metrics/ - 不匹配(尾部斜杠) ❌ /api/metrics/extra - 不 阅读全文
posted @ 2025-09-13 02:12 苦逼yw 阅读(141) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/ashic/article/details/104722975 参考:https://blog.csdn.net/nmsoftklb/article/details/149118188 canal的github地址:https://github.co 阅读全文
posted @ 2025-09-09 10:40 苦逼yw 阅读(41) 评论(0) 推荐(0)
摘要: 简单来说,重定向是告诉客户端“你要的资源在另一个地方,请去那里找”,而重写是服务器内部“悄悄地”把请求换个样子来处理,客户端对此一无所知。 下面我们详细解释并举例说明。 核心区别 特性重定向 (Redirect)重写 (Rewrite) 本质 客户端行为 服务器内部行为 HTTP响应 返回 3xx  阅读全文
posted @ 2025-09-02 14:08 苦逼yw 阅读(1612) 评论(0) 推荐(0)
摘要: 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 阅读(24) 评论(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 阅读(129) 评论(0) 推荐(0)
摘要: deepseek解释 一、服务器节点 1、cpu使用率 promql表达式:100 - (avg(irate(node_cpu_seconds_total{mode="idle"}[5m])) by(instance) * 100) 可以拆解为: node_cpu_seconds_total{mod 阅读全文
posted @ 2025-08-17 01:20 苦逼yw 阅读(546) 评论(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 阅读(441) 评论(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 阅读(347) 评论(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 阅读(184) 评论(0) 推荐(0)
摘要: deepseek 在 Go 语言中,bufio 包提供的 Reader 和 Writer 通过缓冲区(Buffer)优化 I/O 操作。以下是它们的核心概念和关系解析: 1. 缓冲区(Buffer)是什么? 本质:一块临时的内存区域(通常是字节数组),用于暂存数据。 作用: 减少系统调用次数:批量读 阅读全文
posted @ 2025-05-28 13:54 苦逼yw 阅读(222) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页