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

Add config option to set NATS max payload size #19713

Closed
Herr-Sepp opened this issue Oct 9, 2020 · 4 comments · Fixed by #20564
Closed

Add config option to set NATS max payload size #19713

Herr-Sepp opened this issue Oct 9, 2020 · 4 comments · Fixed by #20564
Assignees
Labels
area/configuration area/2.x OSS 2.0 related issues and PRs

Comments

@Herr-Sepp
Copy link

Yes i know that the scraper are currently broken in RC0 but i think this is a other issue.

Steps to reproduce:

  1. start 2.0rc0 Docker-Image: quay.io/influxdb/influxdb:2.0.0-rc
  2. add an new Scraper with Target URL to a cadvisor endpoint "/metrics" (https://github.com/google/cadvisor)

the endpoint sends 139kb (3,5mb not compressed)

Expected behavior:
Metrics are scraped into bucket
(prometheus has no problem with these endpoints)

Actual behavior:
No data is stored

Config:
default docker image config

Logs:
Include snippet of errors in log.

ts=2020-10-09T11:43:32.602125Z lvl=error msg="Unable to publish scraper metrics" log_id=0PkFudAG000 error="nats: maximum payload exceeded"
ts=2020-10-09T11:43:42.633417Z lvl=error msg="Unable to publish scraper metrics" log_id=0PkFudAG000 error="nats: maximum payload exceeded"
ts=2020-10-09T11:43:52.609966Z lvl=error msg="Unable to publish scraper metrics" log_id=0PkFudAG000 error="nats: maximum payload exceeded"
ts=2020-10-09T11:44:02.663961Z lvl=error msg="Unable to publish scraper metrics" log_id=0PkFudAG000 error="nats: maximum payload exceeded"
ts=2020-10-09T11:44:12.659194Z lvl=error msg="Unable to publish scraper metrics" log_id=0PkFudAG000 error="nats: maximum payload exceeded"
ts=2020-10-09T11:44:22.643043Z lvl=error msg="Unable to publish scraper metrics" log_id=0PkFudAG000 error="nats: maximum payload exceeded"
ts=2020-10-09T11:44:32.658815Z lvl=error msg="Unable to publish scraper metrics" log_id=0PkFudAG000 error="nats: maximum payload exceeded"
...

@wallyqs
Copy link

wallyqs commented Oct 12, 2020

Default Maximum Payload for NATS is 1MB, but this can be tuned in the config of the NATS Server max_payload: 5mb for example

@Herr-Sepp
Copy link
Author

@wallyqs thanks a lot for your answer.
Do you know where the configuration file is located in the Influxdb container?

Unfortunately I cannot find the configuration on my own.

@danxmoran danxmoran added area/2.x OSS 2.0 related issues and PRs area/docker labels Dec 22, 2020
@spiegela
Copy link

Is this parameter configurable through influxdb? I've also searched through the Docker container, and kind find any reference to max_payload or to NATS. I also don't see any reference to this parameter in the docs: https://docs.influxdata.com/influxdb/v2.0/reference/

@danxmoran
Copy link
Contributor

@spiegela looks like it's not currently configurable... I'll use this issue to track adding a new config parameter for it

@danxmoran danxmoran self-assigned this Jan 20, 2021
@danxmoran danxmoran changed the title 2.0rc0 Docker: Scrapper -> error="nats: maximum payload exceeded" Add config option to set NATS max payload size Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration area/2.x OSS 2.0 related issues and PRs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants