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

Slow writes into influx #11

Closed
Korkd opened this issue May 5, 2015 · 5 comments
Closed

Slow writes into influx #11

Korkd opened this issue May 5, 2015 · 5 comments

Comments

@Korkd
Copy link

Korkd commented May 5, 2015

I've been trying to troubleshoot an issue where writes into influx seem to come in very slowly over time. My setup is as follows:

influxdb 0.8.8
fluent-plugin-influxdb (0.1.4)
fluentd (0.12.8)

fluentd config:
<match fuse.**>
type influxdb
host ***
port 8086
dbname ***
user ***
password ***
time_precision ms
buffer_type memory
buffer_chunk_limit 524288 # 512 * 1024
buffer_queue_limit 1024
flush_interval 30
retry_limit 17
retry_wait 1.0

I've played around and tried a number of different combinations of the config.

I have 2 fluentd instances dumping into a single influxdb instance. All machines are barely registering any CPU usage when messages are being sent, but it takes 20-30 minutes for the buffers to clear out into influx after all the data has been written to fluentd. This is around 72000 messages total (each message is ~100 bytes) being sent.

Turning debug logging on in influx I see a ton of spam about authenticating the user specified in the fluentd config, 10-20 a second. Any thoughts on what the issue might be?

@repeatedly
Copy link
Collaborator

Hmm...

@influxdb.write_point(tag, record)

Currently, we use write_ponit for each record.
It may causes slowly insertion. I will check the performance with array version.

@repeatedly
Copy link
Collaborator

Sorry for the delay.
Could you try this PR code? > #12

@repeatedly
Copy link
Collaborator

@Korkd ping? If you okay, I will merge PR and release new version.

@Korkd
Copy link
Author

Korkd commented Jun 1, 2015

Sorry to take so long to get back to you, haven't had a chance to look into this again until today. Good news though, it appears to have solved the problem. I'm no longer getting long delays between results!

@Korkd Korkd closed this as completed Jun 1, 2015
@repeatedly
Copy link
Collaborator

Good :)

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

No branches or pull requests

2 participants