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

poor write performance with high measurement cardinality #13536

Closed
cfz opened this issue Apr 22, 2019 · 11 comments
Closed

poor write performance with high measurement cardinality #13536

cfz opened this issue Apr 22, 2019 · 11 comments

Comments

@cfz
Copy link

cfz commented Apr 22, 2019

when writing to a newly created database, with a high measurement cardinality, e.g. 100k, data set, the performance is poor.
after some digging, i found that the MeasurementFieldSet would synchronously overwrite and fsync the 'fields.idx' file within a mutex with each measurement/field update, which lead to all writing requests to queue up.
one solution is to involve some delay sync techniq like the one used in WAL

@kumud-pe
Copy link

@cfz Do you think #13319 is related to this?

@cfz
Copy link
Author

cfz commented Apr 22, 2019

@kumud-pe it happens when you write large amount of new measurements/fields in different requests in a very short period. does it sound familiar with your case?

@kumud-pe
Copy link

kumud-pe commented Apr 22, 2019

Yes. We were trying to push Kafka metrics through a StatsD server. There will be a bunch of new measurements. But, it's not a delay in our case, the new measurements are not being written at all. Now, even if I try to write one new dummy measurement (manually), it's not getting written.

@cfz
Copy link
Author

cfz commented Apr 22, 2019

i saw a 204 successful response in your log. i'm afraid it's not my case. in my case, the write request will hung for a long time until http timeout or an error.

@kumud-pe
Copy link

Oh. Ok. This could be a different issue then. Did you check disk I/O stats? That could be becoming a bottleneck.

@cfz
Copy link
Author

cfz commented Apr 22, 2019

yep, i will submit a PR later for this

@dgnorton
Copy link
Contributor

@cfz @kumud-pe what version are you running?

@kumud-pe
Copy link

@dgnorton Mine is a different issue (I was using 1.7.4 on K8s using tick-charts). I have closed #13319

@cfz
Copy link
Author

cfz commented Apr 23, 2019

i'm using 1.6.4, but i believe 1.7.x has the same behavior

@stale
Copy link

stale bot commented Jul 22, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 22, 2019
@stale
Copy link

stale bot commented Jul 29, 2019

This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.

@stale stale bot closed this as completed Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants