Comments (4)
@laiwei @niean 谁来说明一下?看了代码,貌似没有找到数据库连接池里处理mysql wait_timeout的检测。
from graph.
稍等,我们来确认下
from graph.
- broken pipe的错误,是由于mysql的server端wait_timeout后、连接不可用导致的。我们选用的mysql连接池有错误重试功能,虽然打印了错误日志,但数据最终可以正确写入到mysql
- graph已经修复了这个问题,不会再有这个错误日志,请注意查看最新代码commit
- 是否可以通过设置wait_timeout、来避免这个错误日志,正在尝试中,有结论了,会贴出
from graph.
可以通过设置server端的wait_timeout,来防止mysql连接broken pipe的错误。
修改方式为: 配置文件中db.dsn配置,添加一个参数"wait_timeout=604800"。一个例子,如下:
"dsn": "root:@tcp(1:3306)/graph2.0.0.172?loc=Local&parseTime=true&wait_timeout=604800",wait_timeout设置为7天。
from graph.
Related Issues (20)
- graph突然停止&&panic: runtime error: cgo argument has Go pointer to Go pointer HOT 1
- push监控数据时,出现 write tcp 127.0.0.1:3306: broken pipe HOT 2
- when i setup graph, got some errors, please help HOT 1
- 多次上报某个metric在同一个timestamp的数据 HOT 3
- graph连接mysql的疑问 HOT 3
- graph 的broken pipe的错误
- 还是关于 errno: 0x023a, str:opening error 的问题 HOT 4
- 为什么代码要写死MIN_STEP = 30s呢 HOT 1
- 手动上报的单点数据随机丢失
- graph-0.5.6内存增长 HOT 1
- graph 崩溃(concurrent map read and map write) HOT 2
- 关于rrd存储的疑问 HOT 2
- errno: 0x023d, str:mmap error HOT 2
- 绘图的数值精度问题
- graph/api/graph.go中的代码怎么理解
- [Bug] graph http api broken
- 为什么查询结果的timestamp和push data时给定的不一样
- 如何通过修改rrdtool.go文件来修改绘图曲线精度 HOT 2
- 可否在windows下编译??
- graph启动报错IOWorkerNum must be 2^N, current IOWorkerNum is 0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graph.