2020年12月17日

Dynamic Monitoring of PostgreSQL Instances Using pg_top

摘要: 转自:https://severalnines.com/database-blog/dynamic-monitoring-postgresql-instances-using-pgtop Monitoring PostgreSQL can, at times, be like trying to w 阅读全文

posted @ 2020-12-17 21:04 荣锋亮 阅读(133) 评论(0) 推荐(0) 编辑

What to Check if PostgreSQL Memory Utilization is High

摘要: 转自:https://severalnines.com/database-blog/what-check-if-postgresql-memory-utilization-high Reading from memory will always be more performant than goi 阅读全文

posted @ 2020-12-17 21:02 荣锋亮 阅读(262) 评论(0) 推荐(0) 编辑

How To Use Mytop to Monitor MySQL Performance

摘要: 转自:https://www.digitalocean.com/community/tutorials/how-to-use-mytop-to-monitor-mysql-performance Introduction Mytop is an open source, command line t 阅读全文

posted @ 2020-12-17 21:00 荣锋亮 阅读(155) 评论(0) 推荐(0) 编辑

class.getClassLoader().getResourceAsStream(file) class.getResourceAsStream(file)区别

摘要: 通过源码阅读是最好的方法,我们可以快速的查看区别 整体说明 class.getClassLoader().getResourceAsStream(String name) 默认从classpath中找文件(文件放在resources目录下),name不能带“/”,否则会抛空指针 class.getR 阅读全文

posted @ 2020-12-17 17:54 荣锋亮 阅读(280) 评论(0) 推荐(0) 编辑

patroni 管理pg 集群修改运行参数的方法

摘要: patroni是一个很不错的pg 高可用方案,但是有些参数我们是不能直接修改的,实际上官方提供了一个restapi 而且大部分操作也是基于restapi的 参考修改命令 比如修改pg work_mem curl -s -XPATCH -d '{"postgresql":{"parameters":{ 阅读全文

posted @ 2020-12-17 17:53 荣锋亮 阅读(542) 评论(0) 推荐(0) 编辑

timescaledb-tune timescaledb 官方提供的db 优化配置

摘要: timescaledb-tune 是timescaledb官方出的一个db 优化cli 工具,使用比较简单,同时会自动基于 系统资源情况给我们一个较优的db 运行参数,可以简化timescaledb系统优化 参考资料 https://github.com/timescale/timescaledb- 阅读全文

posted @ 2020-12-17 17:51 荣锋亮 阅读(874) 评论(0) 推荐(0) 编辑

google/renameio golang 原子文件操作的包

摘要: google/renameio 是一个很不错的文件原子操作的包,比较适合的场景是进行配置管理(以及haproxy,nginx) 实际上如果了解haproxy 的dataplain 他实际上就是使用了google/renameio 进行配置管理的 参考资料 https://github.com/goo 阅读全文

posted @ 2020-12-17 17:50 荣锋亮 阅读(266) 评论(0) 推荐(0) 编辑

golang excel 操作

摘要: 只是一个简单的记录 参考代码 package main ​ import ( "fmt" ​ "github.com/360EntSecGroup-Skylar/excelize/v2" ) ​ func main() { categories := map[string]string{"A2": 阅读全文

posted @ 2020-12-17 12:48 荣锋亮 阅读(1036) 评论(2) 推荐(0) 编辑

使用arthas 分析java 应用的一个流程总结

摘要: arthas 是阿里巴巴开源的一个java 应用分析利器,但是很多时候我们在碰到一个陌生系统需要进行 性能优化的时候会有好多不知道如何下手的问题,以下是自己的一些实践总结 整体了解系统运行以及框架的 这类还好,我们可以通过项目的代码结构,通过sc 查找相关的类然后通过trace,stack 以及wa 阅读全文

posted @ 2020-12-17 12:47 荣锋亮 阅读(344) 评论(0) 推荐(0) 编辑

mysql 5.6 numa 禁用参考

摘要: 核心还是安装 numactl 我们基于numactl 进行参数调整 需要修改的启动配置 numactl --interleave=all /usr/bin/mysqld_safe --basedir=/usr systemd 参考 [Unit] Description=MySQL Community 阅读全文

posted @ 2020-12-17 11:36 荣锋亮 阅读(175) 评论(0) 推荐(0) 编辑

导航