Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

底层io.Worker由单线程改成并发 #381

Merged
merged 5 commits into from
Mar 7, 2018
Merged

底层io.Worker由单线程改成并发 #381

merged 5 commits into from
Mar 7, 2018

Conversation

GaoJiasheng
Copy link
Member

说明:底层io.Worker由单线程改成并发。可以更加充分发挥磁盘读写的性能,单线程io不再是性能瓶颈。
原理:按照rrdFile的md5进行分片。
分片方式:取md5前N位,求余。
验证:已经过线上生产环境验证。

附:N计算公式:len(strconv.FormatInt(int64(BatchNum), 16))

via 钱威

@laiwei laiwei merged commit ac859ef into open-falcon:master Mar 7, 2018
@laiwei
Copy link
Member

laiwei commented Mar 7, 2018

请同步修改一下 falcon-plus / config / graph.json @GaoJiasheng

@GaoJiasheng
Copy link
Member Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants