Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Update influxdb healthcheck #1986

Merged
merged 1 commit into from
Jun 18, 2020
Merged

Update influxdb healthcheck #1986

merged 1 commit into from
Jun 18, 2020

Conversation

jgrund
Copy link
Member

@jgrund jgrund commented Jun 18, 2020

Use a lower resource check.

Fixes #1984.

Signed-off-by: Joe Grund jgrund@whamcloud.io


This change is Reviewable

Use a lower resource check.

Fixes #1984.

Signed-off-by: Joe Grund <jgrund@whamcloud.io>
@jgrund jgrund added the bug label Jun 18, 2020
@jgrund jgrund requested a review from a team June 18, 2020 14:44
@jgrund jgrund self-assigned this Jun 18, 2020
@@ -33,9 +33,9 @@ services:
- influxdb:/var/lib/influxdb/
- "manager-config:/var/lib/chroma"
healthcheck:
test: ["CMD-SHELL", "influx -host influxdb -execute 'show databases'"]
test: ["CMD-SHELL", "curl --fail influxdb:8086/ping?wait_for_leader=10s"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can also just use influx -host influxdb -execute 'exit' instead. It's what's used during setup to wait for influx to be online.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like that takes ~ 50% of a core:

Screen Shot 2020-06-18 at 11 08 10 AM

Keep in mind this is being run every 5s.

@jgrund jgrund merged commit e4bb35f into master Jun 18, 2020
@jgrund jgrund deleted the fix-influx-healthcheck branch June 18, 2020 16:04
jgrund added a commit that referenced this pull request Jun 20, 2020
Use a lower resource check.

Fixes #1984.

Signed-off-by: Joe Grund <jgrund@whamcloud.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Influx healthcheck causes high CPU usage
4 participants