博客园 - shhnwangjian
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=56805
2021-04-22T02:17:18Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
feed.cnblogs.com
https://www.cnblogs.com/shhnwangjian/p/14688193.html
CentOs 7 kong 2.3.X oss 自定义插件 - shhnwangjian
URL Rewrite https://docs.konghq.com/hub/stone-payments/kong-plugin-url-rewrite/ 1、创建handler.lua、schema.lua cd /usr/local/share/lua/5.1/kong/plugins mk
2021-04-22T02:09:00Z
2021-04-22T02:09:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】URL Rewrite https://docs.konghq.com/hub/stone-payments/kong-plugin-url-rewrite/ 1、创建handler.lua、schema.lua cd /usr/local/share/lua/5.1/kong/plugins mk <a href="https://www.cnblogs.com/shhnwangjian/p/14688193.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/14680693.html
CentOs 7 kong 2.3.X oss 部署安装 - shhnwangjian
PostgreSQL 9.6部署 参考:https://www.cnblogs.com/shhnwangjian/p/14680679.html Kong 2.3.x部署 https://docs.konghq.com/install/centos/ 1、添加RPM https://bintray.
2021-04-20T05:44:00Z
2021-04-20T05:44:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】PostgreSQL 9.6部署 参考:https://www.cnblogs.com/shhnwangjian/p/14680679.html Kong 2.3.x部署 https://docs.konghq.com/install/centos/ 1、添加RPM https://bintray. <a href="https://www.cnblogs.com/shhnwangjian/p/14680693.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/14680679.html
CentOS7 yum安装、配置PostgreSQL 9.6 - shhnwangjian
PostgreSQL 9.6安装 1、添加RPM sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm 2、安
2021-04-20T05:40:00Z
2021-04-20T05:40:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】PostgreSQL 9.6安装 1、添加RPM sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm 2、安 <a href="https://www.cnblogs.com/shhnwangjian/p/14680679.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/13321730.html
linux cpu 运行模式 - shhnwangjian
linux cpu 运行模式 CPU动态节能技术用于降低服务器功耗,通过选择系统空闲状态不同的电源管理策略,可以实现不同程度降低服务器功耗,更低的功耗策略意味着CPU唤醒更慢对性能 影响更大。 对于对时延和性能要求高的应用,建议关闭CPU的动态调节功能,禁止 CPU休眠,并把CPU频率固定到最高。
2020-07-16T03:28:00Z
2020-07-16T03:28:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】linux cpu 运行模式 CPU动态节能技术用于降低服务器功耗,通过选择系统空闲状态不同的电源管理策略,可以实现不同程度降低服务器功耗,更低的功耗策略意味着CPU唤醒更慢对性能 影响更大。 对于对时延和性能要求高的应用,建议关闭CPU的动态调节功能,禁止 CPU休眠,并把CPU频率固定到最高。 <a href="https://www.cnblogs.com/shhnwangjian/p/13321730.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/12017081.html
物理机自动化装机实现 - shhnwangjian
本文介绍pxe实现思路 DHCP -> TFTP -> PXE 细化流程思路,根据上图,我们可以梳理一下 1、物理机自生支持PXE 2、物理机装机上的网卡需要接入装机网段,通过DHCP自动发现分配这台物理机一个装机IP地址 3、根据DHCP的配置项next_server指明TFTP的地址,这样物理机
2019-12-10T07:44:00Z
2019-12-10T07:44:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】本文介绍pxe实现思路 DHCP -> TFTP -> PXE 细化流程思路,根据上图,我们可以梳理一下 1、物理机自生支持PXE 2、物理机装机上的网卡需要接入装机网段,通过DHCP自动发现分配这台物理机一个装机IP地址 3、根据DHCP的配置项next_server指明TFTP的地址,这样物理机 <a href="https://www.cnblogs.com/shhnwangjian/p/12017081.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/11958868.html
prometheus node_exporter相关监控指标 - shhnwangjian
https://lnsyyj.github.io/2019/05/27/prometheus-node-exporter-%E7%9B%91%E6%8E%A7%E9%A1%B9/ 网络指标 /proc/net/dev node_network_receive_packets_total -- 接收的
2019-11-29T08:52:00Z
2019-11-29T08:52:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】https://lnsyyj.github.io/2019/05/27/prometheus-node-exporter-%E7%9B%91%E6%8E%A7%E9%A1%B9/ 网络指标 /proc/net/dev node_network_receive_packets_total -- 接收的 <a href="https://www.cnblogs.com/shhnwangjian/p/11958868.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/11943087.html
nginx Linux内核参数的优化 - shhnwangjian
默认的Linux内核参数考虑的是最通用的场景,这明显不符合用于支持高并发访问的Web服务器的定义,所以需要修改Linux内核参数,使得Nginx可以拥有更高的性能。 这里针对最通用的、使Nginx支持更多并发请求的TCP网络参数做简单说明。需要修改/etc/sysctl.conf来更改内核参数,常用
2019-11-27T08:12:00Z
2019-11-27T08:12:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】默认的Linux内核参数考虑的是最通用的场景,这明显不符合用于支持高并发访问的Web服务器的定义,所以需要修改Linux内核参数,使得Nginx可以拥有更高的性能。 这里针对最通用的、使Nginx支持更多并发请求的TCP网络参数做简单说明。需要修改/etc/sysctl.conf来更改内核参数,常用 <a href="https://www.cnblogs.com/shhnwangjian/p/11943087.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/11866396.html
《高性能 Go 代码工坊》中译 - shhnwangjian
深入研究 Go 应用性能提升的英语系列文章,这里是中译 https://www.yuque.com/ksco/uiondt
2019-11-15T06:37:00Z
2019-11-15T06:37:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】深入研究 Go 应用性能提升的英语系列文章,这里是中译 https://www.yuque.com/ksco/uiondt <a href="https://www.cnblogs.com/shhnwangjian/p/11866396.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/11810293.html
docker仓库资源的地址修改 - shhnwangjian
docker仓库资源的地址修改 1、新增或者修改/etc/docker目录下的daemon.json文件 样例文件如下 2、保存退出,重启docker systemctl restart docker 3、测试 搜索 docker search centos 下载 docker pull cento
2019-11-07T02:06:00Z
2019-11-07T02:06:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】docker仓库资源的地址修改 1、新增或者修改/etc/docker目录下的daemon.json文件 样例文件如下 2、保存退出,重启docker systemctl restart docker 3、测试 搜索 docker search centos 下载 docker pull cento <a href="https://www.cnblogs.com/shhnwangjian/p/11810293.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/11429428.html
influxdb-1.7.8(centos 7) 部署 - shhnwangjian
1、官方下载: https://dl.influxdata.com/influxdb/releases/influxdb-1.7.8.x86_64.rpm 2、安装软件 sudo yum localinstall influxdb-1.7.8.x86_64.rpm 3、环境准备 mkdir -p /
2019-08-29T06:16:00Z
2019-08-29T06:16:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】1、官方下载: https://dl.influxdata.com/influxdb/releases/influxdb-1.7.8.x86_64.rpm 2、安装软件 sudo yum localinstall influxdb-1.7.8.x86_64.rpm 3、环境准备 mkdir -p / <a href="https://www.cnblogs.com/shhnwangjian/p/11429428.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/11249976.html
elk 7.2 - shhnwangjian
Elasticsearch 7.0开始内置了Java环境 1、jvm.options配置建议 Xmx和Xms设置成一样 Xmx不要超过机器内存的50% 不要超过30GB https://www.elastic.co/cn/blog/a-heap-of-trouble 2、元数据,用于标注文档的相关信
2019-07-26T06:05:00Z
2019-07-26T06:05:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】Elasticsearch 7.0开始内置了Java环境 1、jvm.options配置建议 Xmx和Xms设置成一样 Xmx不要超过机器内存的50% 不要超过30GB https://www.elastic.co/cn/blog/a-heap-of-trouble 2、元数据,用于标注文档的相关信 <a href="https://www.cnblogs.com/shhnwangjian/p/11249976.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/11126984.html
go-torch安装和使用 - shhnwangjian
go-torch安装 1、安装FlameGraph脚本 2、安装go-torch go-torch使用 用浏览器打开torch.svg
2019-07-03T07:57:00Z
2019-07-03T07:57:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】go-torch安装 1、安装FlameGraph脚本 2、安装go-torch go-torch使用 用浏览器打开torch.svg <a href="https://www.cnblogs.com/shhnwangjian/p/11126984.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/11038616.html
go ceph API调用样例 - shhnwangjian
go ceph API调用样例
2019-06-17T03:03:00Z
2019-06-17T03:03:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
该文只有注册用户登录后才能阅读。<a href='https://www.cnblogs.com/shhnwangjian/p/11038616.html' target='_blank'>阅读全文</a>。
https://www.cnblogs.com/shhnwangjian/p/10979227.html
go mail发送邮件 - shhnwangjian
通过golang发送邮件 代码样例 使用方式 参考文章:http://being23.github.io/2015/09/17/%E4%BD%BF%E7%94%A8golang%E5%8F%91%E9%80%81%E9%82%AE%E4%BB%B6/
2019-06-05T06:05:00Z
2019-06-05T06:05:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
该文只有注册用户登录后才能阅读。<a href='https://www.cnblogs.com/shhnwangjian/p/10979227.html' target='_blank'>阅读全文</a>。
https://www.cnblogs.com/shhnwangjian/p/10768749.html
prometheus 容器监控的相关指标 - shhnwangjian
容器内存相关的指标 container_memory_rss 字节数bytes RSS内存,即常驻内存集(Resident Set Size),是分配给进程使用实际物理内存,而不是磁盘上缓存的虚拟内存。RSS内存包括所有分配的栈内存和堆内存,以及加载到物理内存中的共享库占用的内存空间,但不包括进入交
2019-04-25T07:32:00Z
2019-04-25T07:32:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
该文只有注册用户登录后才能阅读。<a href='https://www.cnblogs.com/shhnwangjian/p/10768749.html' target='_blank'>阅读全文</a>。
https://www.cnblogs.com/shhnwangjian/p/10721054.html
kubernetes 部署 - shhnwangjian
kubernetes 部署(Centos 7) 一个或者多个兼容 deb 或者 rpm 软件包的操作系统,比如 Ubuntu 或者 CentOS 每台机器 2 GB 以上的内存,内存不足时应用会受限制 主节点上 2 CPU 以上 集群里所有的机器有完全的网络连接,公有网络或者私有网络都可以 关闭防火
2019-04-16T16:00:00Z
2019-04-16T16:00:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】kubernetes 部署(Centos 7) 一个或者多个兼容 deb 或者 rpm 软件包的操作系统,比如 Ubuntu 或者 CentOS 每台机器 2 GB 以上的内存,内存不足时应用会受限制 主节点上 2 CPU 以上 集群里所有的机器有完全的网络连接,公有网络或者私有网络都可以 关闭防火 <a href="https://www.cnblogs.com/shhnwangjian/p/10721054.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/10715679.html
prometheus api介绍 - shhnwangjian
官方文档:https://prometheus.io/docs/prometheus/latest/querying/api/ 1、GET /api/v1/query (实时查询) query=<string>: Prometheus表达式查询字符串. time=<rfc3339 | unix_ti
2019-04-16T03:05:00Z
2019-04-16T03:05:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
该文只有注册用户登录后才能阅读。<a href='https://www.cnblogs.com/shhnwangjian/p/10715679.html' target='_blank'>阅读全文</a>。
https://www.cnblogs.com/shhnwangjian/p/10706660.html
Pushgateway 介绍 - shhnwangjian
Pushgateway是一个独立的服务,Pushgateway位于应用程序发送指标和Prometheus服务器之间。 Pushgateway接收指标,然后将其作为目标被Prometheus服务器拉取。可以将其看作代理服务,或者与blackbox exporter的行为相反, 它接收度量,而不是探测它
2019-04-14T11:53:00Z
2019-04-14T11:53:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】Pushgateway是一个独立的服务,Pushgateway位于应用程序发送指标和Prometheus服务器之间。 Pushgateway接收指标,然后将其作为目标被Prometheus服务器拉取。可以将其看作代理服务,或者与blackbox exporter的行为相反, 它接收度量,而不是探测它 <a href="https://www.cnblogs.com/shhnwangjian/p/10706660.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/10706417.html
blackbox_exporter介绍 - shhnwangjian
Blackbox Exporter是Prometheus社区提供的官方黑盒监控解决方案,其允许用户通过:HTTP、HTTPS、DNS、TCP以及ICMP的方式对网络进行探测。 1、安装部署 2、配置 3、启动 4、prometheus.yml 配置 备注: 第一个relabel通过将__addres
2019-04-14T10:52:00Z
2019-04-14T10:52:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】Blackbox Exporter是Prometheus社区提供的官方黑盒监控解决方案,其允许用户通过:HTTP、HTTPS、DNS、TCP以及ICMP的方式对网络进行探测。 1、安装部署 2、配置 3、启动 4、prometheus.yml 配置 备注: 第一个relabel通过将__addres <a href="https://www.cnblogs.com/shhnwangjian/p/10706417.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/shhnwangjian/p/10704572.html
prometheus 集群 - shhnwangjian
思路一 统一区域的监控目标,prometheus server两台监控相同的目标群体。 改变后 上面这个变化对于监控目标端,会多出一倍的查询请求,但在一台prometheus server宕机的情况下,可以不影响监控。 思路二 这是一个金字塔式的层次结构,而不是分布式层次结构。Prometheus
2019-04-14T04:03:00Z
2019-04-14T04:03:00Z
shhnwangjian
https://www.cnblogs.com/shhnwangjian/
【摘要】思路一 统一区域的监控目标,prometheus server两台监控相同的目标群体。 改变后 上面这个变化对于监控目标端,会多出一倍的查询请求,但在一台prometheus server宕机的情况下,可以不影响监控。 思路二 这是一个金字塔式的层次结构,而不是分布式层次结构。Prometheus <a href="https://www.cnblogs.com/shhnwangjian/p/10704572.html" target="_blank">阅读全文</a>