https://upload.jianshu.io/users/upload_avatars/9415503/6ac415b5-009a-4973-a794-ccade4c876b2.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240

Mysql事务详解

Mysql 事务说明 Mysql 事务特点 1、ACID Atomicity(原子性):一个事务必须被视为一个不可分割的最小工作单元,整个事务中的所有操作要么全部提交

Mysql主从复制

一、mysql主从同步原理 Mysql主从复制也可以称为Mysql主从同步,它是构建数据库高可用集群架构的基础。它通过将一台主机的数据复制到其

Prometheus监控规则说明

prometheus operator 监控指标 kubernetes 资源相关 CPUThrottlingHigh 关于 CPU 的 limit 合理性指标。查出最近5分钟,超过25%的 CPU 执行周期受到限制的容器。表达式: 1 2 3 4 sum(increase(container_cpu_cfs_throttled_periods_total{container!="", }[5m])) by (container, pod, namespace) / sum(increase(container_cpu_cfs_periods_total{}[5m])) by (container, pod, namespace)

Prometheus搭建使用

Prometheus Server 使用 目前环境中使用的架构 安装prometheus 其中 prometheus.yml 文件的基本配置如下: 1 2 3 4 5 6 7 8 9 10 11 12 global:scrape_interval:15sevaluation_interval:15srule_files:# - "first.rules"# - "second.rules"scrape_configs:- job_name:prometheusstatic_configs:- targets:['localhost:9090'] 上面这个配置文件中包含了

Prometheus介绍

Prometheus 简介 Prometheus 最初是 SoundCloud 构建的开源系统监控和报警工具,是一个独立的开源项目,于2016年加入了 CNCF 基金会,作为继 Kubernetes 之后的第二个托管项目。 特征 Prometheus 相比于其

Systemd管理服务

Systemd 服务管理 简介 Systemd 是一系列工具的集合,其作用也远远不仅是启动操作系统,它还接管了后台服务、结束、状态查询,以及日志归档、设备管理、电源管理、定

Ssl证书自动续签

自签证书 生成CA证书私钥 1 openssl genrsa -out ca.key 4096 生成CA证书 1 2 3 4 openssl req -x509 -new -nodes -sha512 -days 3650 \ -subj "/C=CN/ST=Beijing/L=Beijing/O=IT/OU=Docker/CN=domain.com" \ -key ca.key \ -out ca.crt 生成私钥 1 openssl genrsa -out domain.com.key 4096 生成证书签名请求 1 2 3 4 openssl req -sha512