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

Nginx mirror feature instead of relay #61

Open
123BLiN opened this issue Nov 7, 2017 · 4 comments
Open

Nginx mirror feature instead of relay #61

123BLiN opened this issue Nov 7, 2017 · 4 comments

Comments

@123BLiN
Copy link

123BLiN commented Nov 7, 2017

Hi,

What do you think about new nginx feature - http://nginx.org/en/docs/http/ngx_http_mirror_module.html#mirror
Do you think it may replace relay modules?
What may be downsides of using this approach?

@iomatters
Copy link

From my understanding, the nginx mirror does not guarantee delivery to the mirror, though I am not sure the influxdb-relay does.

@iomatters
Copy link

Tested - the "buffering" is the key point.

@123BLiN
Copy link
Author

123BLiN commented Nov 13, 2017

@Geekio Could you please elaborate?
I do not expect large POST requests to the influxdb from the collectors, so I though that all data will be buffered in the memory, also nginx has settings for the buffer size http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_buffer_size
So it should be pretty cheap to use it?

@toomasp
Copy link

toomasp commented Jan 23, 2018

Tried it, couldn't really get nginx to store a reasonable amount of requests in its buffers. What exact settings do you use to store for example the last 4h of requests?

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

3 participants