<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>运维管理 :: 红山开源知识库</title>
    <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/index.html</link>
    <description># 设置CPU阈值 kubectl autoscale deployment osredm-pms --cpu-percent=10 --min=1 --max=3 -n microservices # 实时监测CPU使用情况： kubectl get hpa -n microservices # 删除CPU阈值设置 kubectl delete hpa osredm-pms -n microservices</description>
    <generator>Hugo</generator>
    <language>zh</language>
    <atom:link href="http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>注册中心</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/01-%E6%B3%A8%E5%86%8C%E4%B8%AD%E5%BF%83/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/01-%E6%B3%A8%E5%86%8C%E4%B8%AD%E5%BF%83/index.html</guid>
      <description>路由：/managements/registerCenter 参考nacos：http://172.20.32.140:30002/nacos nacos/nacos&#xA;注册中心 服务列表 查看服务列表 字段 说明 服务名称 分组名称 集群数目 实例数 健康实例数 操作 “示例代码”“订阅者”“删除” 订阅者列表 查看订阅者列表 字段 说明 服务名称 地址 应用名</description>
    </item>
    <item>
      <title>配置中心</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/02-%E9%85%8D%E7%BD%AE%E4%B8%AD%E5%BF%83/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/02-%E9%85%8D%E7%BD%AE%E4%B8%AD%E5%BF%83/index.html</guid>
      <description>路由：/managements/configuration 参考nacos：http://172.20.32.140:30002/nacos nacos/nacos&#xA;创建配置 字段 说明 *配置标识 必填，配置标识只允许字母数字以及_-.: *配置分组 必填，长度200 标签 选填，长度200 归属应用 选填，长度200 配置格式 必填，默认“TEXT”， 可选“TEXT”， “JSON”， “XML”， “YAML”， “HTML”， “Properties”， “TOML” 配置内容 操作 “发布”“返回” Text datasource.url=jdbc:mysql://localhost:3306/userdb datasource.username=root datasource.password=root123 driver=com.mysql.cj.jdbc.Driver log.level=debug cache.enabled=true Yaml spring: datasource: url: jdbc:mysql://localhost:3306/userdb username: root password: root123 driver-class-name: com.mysql.cj.jdbc.Driver logging: level: com.example.user: debug Json { &#34;spring&#34;: { &#34;datasource&#34;: { &#34;url&#34;: &#34;jdbc:mysql://localhost:3306/userdb&#34;, &#34;username&#34;: &#34;root&#34;, &#34;password&#34;: &#34;root123&#34;, &#34;driver-class-name&#34;: &#34;com.mysql.cj.jdbc.Driver&#34; } }, &#34;logging&#34;: { &#34;level&#34;: { &#34;com.example.user&#34;: &#34;debug&#34; } } } Xml &lt;configuration&gt; &lt;spring&gt; &lt;datasource&gt; &lt;url&gt;jdbc:mysql://localhost:3306/userdb&lt;/url&gt; &lt;username&gt;root&lt;/username&gt; &lt;password&gt;root123&lt;/password&gt; &lt;driver-class-name&gt;com.mysql.cj.jdbc.Driver&lt;/driver-class-name&gt; &lt;/datasource&gt; &lt;/spring&gt; &lt;logging&gt; &lt;level&gt; &lt;com.example.user&gt;debug&lt;/com.example.user&gt; &lt;/level&gt; &lt;/logging&gt; &lt;/configuration&gt; Html &lt;!DOCTYPE html&gt; &lt;html lang=&#34;en&#34;&gt; &lt;head&gt; &lt;meta charset=&#34;UTF-8&#34;&gt; &lt;title&gt;User Service Config&lt;/title&gt; &lt;meta name=&#34;spring.datasource.url&#34; content=&#34;jdbc:mysql://localhost:3306/userdb&#34;&gt; &lt;meta name=&#34;spring.datasource.username&#34; content=&#34;root&#34;&gt; &lt;meta name=&#34;spring.datasource.password&#34; content=&#34;root123&#34;&gt; &lt;meta name=&#34;spring.datasource.driver-class-name&#34; content=&#34;com.mysql.cj.jdbc.Driver&#34;&gt; &lt;meta name=&#34;logging.level.com.example.user&#34; content=&#34;debug&#34;&gt; &lt;/head&gt; &lt;body&gt; &lt;div class=&#34;welcome&#34;&gt; &lt;h1&gt;Hello, HTML!&lt;/h1&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; Properties spring.datasource.url=jdbc:mysql://localhost:3306/userdb spring.datasource.username=root spring.datasource.password=root123 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver logging.level.com.example.user=debug -Toml</description>
    </item>
    <item>
      <title>集群状态监控</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/03-%E9%9B%86%E7%BE%A4%E7%8A%B6%E6%80%81%E7%9B%91%E6%8E%A7/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/03-%E9%9B%86%E7%BE%A4%E7%8A%B6%E6%80%81%E7%9B%91%E6%8E%A7/index.html</guid>
      <description>路由：/managements/ColonyStatusMonitor&#xA;https://172.20.32.234:30206/dashboard/c/local/explorer/pod/microservices/osredm-dss-84fd4bdcfb-xqmwk#containers&#xA;admin/hnxjy123456789&#xA;Prometheus: http://172.20.32.234:32002/query&#xA;nacos：http://172.20.32.234:30002/nacos/#/configurationManagement?dataId=&amp;group=&amp;appName=&amp;namespace=&amp;pageSize=&amp;pageNo= nacos/nacos&#xA;Skywalking：http://172.20.32.205:8080/General-Service/Services Portainer：http://172.20.32.205:9000/#!/home admin/123456789012 Nacos：http://172.20.32.234:30002/nacos/#/login nacos/nacos Sentinel: http://172.20.32.201:8858/#/dashboard/home sentinel/sentinel&#xA;集群状态 接口：/api/mon/dashboard/cluster/status&#xA;集群节点数量 可用数量： Prometheus上查询-sum(kube_node_info) 不可用数量： Prometheus上查询-sum(kube_node_spec_unschedulable)&#xA;服务器上查询节点：kubectl get nodes&#xA;目前234服务器上的节点是：osredm-master&#xA;CPU使用率 Prometheus上查询:(sum(kube_pod_container_resource_requests{resource=&#34;cpu&#34;})/ sum(kube_node_status_allocatable{resource=&#34;cpu&#34;}))*100</description>
    </item>
    <item>
      <title>微服务可视化面板</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/04-%E5%BE%AE%E6%9C%8D%E5%8A%A1%E5%8F%AF%E8%A7%86%E5%8C%96%E9%9D%A2%E6%9D%BF/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/04-%E5%BE%AE%E6%9C%8D%E5%8A%A1%E5%8F%AF%E8%A7%86%E5%8C%96%E9%9D%A2%E6%9D%BF/index.html</guid>
      <description>路由：/managements/server/panelview&#xA;参考Rancher地址（用户名：admin 密码：hnxjy123456789）：https://172.20.32.234:30206/dashboard/c/local/explorer/pod&#xA;微服务可视化面板 查看列表 字段 说明 状态 名称 所属命名空间 镜像 所属权 重启次数 IP地址 容器端口 存活时间 操作 “运行状态” “删除” 运行状态 CPU使用率 sum without (dc,from,id) (irate(container_cpu_user_seconds_total{container_label_io_kubernetes_docker_type=\&#34;container\&#34;,container_label_io_kubernetes_pod_name=&#34;xxxxxxx&#34;}[5m]) * 100) 内存使用率 sum without (dc,from,id) (container_memory_usage_bytes{container_label_io_kubernetes_docker_type=\&#34;container\&#34;,container_label_io_kubernetes_pod_name=&#34;xxxxxxx&#34;} - container_memory_cache{container_label_io_kubernetes_docker_type=\&#34;container\&#34;,container_label_io_kubernetes_pod_name=&#34;xxxxxxx&#34;}) I/O使用情况 # 容器硬盘写入情况 sum without (dc,from,id) (irate(container_fs_writes_bytes_total{container_label_io_kubernetes_docker_type=&#34;container&#34;,container_label_io_kubernetes_pod_name=~&#34;xxxxxxx&#34;,image!=&#34;&#34;,device!~&#34;/dev/dm.*&#34;}[5m])) #容器硬盘读取情况 sum without (dc,from,id) (irate(container_fs_reads_bytes_total{container_label_io_kubernetes_docker_type=&#34;container&#34;,container_label_io_kubernetes_pod_name=~&#34;xxxxxxx&#34;,image!=&#34;&#34;,device!~&#34;/dev/dm.*&#34;}[5m])) 网络使用情况 #容器网络发送情况 sum(irate(container_network_transmit_bytes_total{container_label_io_kubernetes_pod_name=~&#34;xxxxxxx&#34;,image!=&#34;&#34;}[5m])) #容器网络接收情况 sum (irate(container_network_receive_bytes_total{container_label_io_kubernetes_pod_name=~&#34;xxxxxxx&#34;,image!=&#34;&#34;}[5m]))</description>
    </item>
    <item>
      <title>微服务编排</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/05-%E5%BE%AE%E6%9C%8D%E5%8A%A1%E7%BC%96%E6%8E%92/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/05-%E5%BE%AE%E6%9C%8D%E5%8A%A1%E7%BC%96%E6%8E%92/index.html</guid>
      <description>路由：/managements/server&#xA;参考Rancher地址（用户名：admin 密码：hnxjy123456789）：hhttps://172.20.32.234:30206/dashboard/c/local/explorer/apps.deployment/microservices/osredm-mon#pods&#xA;微服务编排 查看容器列表 字段 说明 状态 名称 标识 应用类型 镜像 就绪 重启次数 存活时间 操作 “停止” “强制停止” “重启” “暂停” “编辑配置” “环境变量管理” “删除” “下载YAML” 新建应用 示例文件：</description>
    </item>
    <item>
      <title>微服务流量控制-其他服务</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/06-02-%E5%BE%AE%E6%9C%8D%E5%8A%A1%E6%B5%81%E9%87%8F%E6%8E%A7%E5%88%B6-%E5%85%B6%E4%BB%96%E6%9C%8D%E5%8A%A1/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/06-02-%E5%BE%AE%E6%9C%8D%E5%8A%A1%E6%B5%81%E9%87%8F%E6%8E%A7%E5%88%B6-%E5%85%B6%E4%BB%96%E6%9C%8D%E5%8A%A1/index.html</guid>
      <description>路由：/managements/flowMonitor&#xA;参考Sentinel:http://172.20.32.234:30014/#/login sentinel/sentinel&#xA;实时监控 Sentinel 客户端会在本地收集各种与流量控制相关的数据，如请求的计数、异常情况、响应时间等信息。 客户端会周期性地将这些数据上报给 Sentinel 控制台（Dashboard）。默认情况下，客户端每隔一秒向控制台发送一次统计数据。 Sentinel 控制台提供了图形化的界面，可以显示多个维度的数据，包括但不限于各个资源的QPS、异常比例、慢请求比例等。 可以针对特定的资源或整个应用进行监控，通过图表形式展示过去一段时间内的流量趋势。&#xA;以microservices-modules-pms为例，用户访问项目管理页面，实时监控页面就会实时监控到用户的请求数据；&#xA;请求链路（簇点链路） 以microservices-modules-pms为例，簇点链路就是项目内的调用链路，链路中被监控的每个接口就是一个资源。默认情况下 Sentinel 会监控 Spring MVC 的每一个端点（Endpoint），因此 SpringMVC 的每一个端点（Endpoint）就是调用链路中的一个资源。 流控、熔断等都是针对簇点链路中的资源来设置的。&#xA;查看网关服务请求链路列表 字段 说明 资源名 通过QPS 拒绝QPS 并发 平均RT 分钟通过 分钟拒绝 操作 “流控”“降级”“热点”“授权” 流控规则 以microservices-modules-pms为例</description>
    </item>
    <item>
      <title>微服务流量控制-网关服务</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/06-01-%E5%BE%AE%E6%9C%8D%E5%8A%A1%E6%B5%81%E9%87%8F%E6%8E%A7%E5%88%B6-%E7%BD%91%E5%85%B3%E6%9C%8D%E5%8A%A1/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/06-01-%E5%BE%AE%E6%9C%8D%E5%8A%A1%E6%B5%81%E9%87%8F%E6%8E%A7%E5%88%B6-%E7%BD%91%E5%85%B3%E6%9C%8D%E5%8A%A1/index.html</guid>
      <description>路由：/managements/flowMonitor&#xA;参考Sentinel:http://172.20.32.234:30014/#/login sentinel/sentinel&#xA;以网关服务microservices-gateway为例&#xA;实时监控 Sentinel 客户端会在本地收集各种与流量控制相关的数据，如请求的计数、异常情况、响应时间等信息。 客户端会周期性地将这些数据上报给 Sentinel 控制台（Dashboard）。默认情况下，客户端每隔一秒向控制台发送一次统计数据。 Sentinel 控制台提供了图形化的界面，可以显示多个维度的数据，包括但不限于各个资源的QPS、异常比例、慢请求比例等。 可以针对特定的资源或整个应用进行监控，通过图表形式展示过去一段时间内的流量趋势。&#xA;系统规则 Sentinel系统自适应限流是从整体维度对应用入口流量进行控制，结合应用的load、CPU使用率、总体平均RT、入口QPS和并发线程数等几个维度的监控指标，通过自适应的流控策略，来让系统入口流量和系统负载达到一个平衡，让系统尽可能的在面对高并发访问的同时保证系统整体稳定。&#xA;新增系统规则-LOAD LOAD自适应：针对linux/unix机器有效，系统load(一分钟平均负载)作为启发指标，进行自适应系统保护。&#xA;字段 说明 *阈值类型 必填， 该项选择&#34;LOAD&#34; *阈值 必填， 输入0只1的小数，代表百分比 新增系统规则-RT RT：单台机器上所有入口流量平均RT达到阈值时，触发系统保护，单位为毫秒。</description>
    </item>
    <item>
      <title>网关管理</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/07-%E7%BD%91%E5%85%B3%E7%AE%A1%E7%90%86/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/07-%E7%BD%91%E5%85%B3%E7%AE%A1%E7%90%86/index.html</guid>
      <description>路由：/managements/gateway&#xA;参考Sentinel:http://172.20.32.234:30014/#/login sentinel/sentinel&#xA;网关管理</description>
    </item>
    <item>
      <title>微服务运行状态监控</title>
      <link>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/08-%E5%BE%AE%E6%9C%8D%E5%8A%A1%E8%BF%90%E8%A1%8C%E7%8A%B6%E6%80%81%E7%9B%91%E6%8E%A7/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>http://localhost:1313/07-%E5%90%8E%E5%8F%B0%E7%AE%A1%E7%90%86/%E8%BF%90%E7%BB%B4%E7%AE%A1%E7%90%86/08-%E5%BE%AE%E6%9C%8D%E5%8A%A1%E8%BF%90%E8%A1%8C%E7%8A%B6%E6%80%81%E7%9B%91%E6%8E%A7/index.html</guid>
      <description>路由：/managements/server/runMonitor&#xA;参考cAdvisor:http://172.20.32.234:32003/d/htoVWdxGt/docker-cadvisor?orgId=1&amp;refresh=5s admin/admin&#xA;路由管理 安全认证 路由管理 白名单处理 网关异常处理 网关限流</description>
    </item>
  </channel>
</rss>