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

[Question] How to reduce volume of output / log ? #95

Open
davidBernardWefox opened this issue Jun 24, 2022 · 1 comment
Open

[Question] How to reduce volume of output / log ? #95

davidBernardWefox opened this issue Jun 24, 2022 · 1 comment

Comments

@davidBernardWefox
Copy link

davidBernardWefox commented Jun 24, 2022

Hi,

How I could reduce/filter/configure the output or log ?

Context:

  • I deployed Overpass-API into a kubernetes cluster with a deployement
  • overpass generate a bunch of log (when download, lot of read_bloc,...), yesterday I raise more than 12 000 000 event log collected from 1 overpass instance / pod (several deployment to try to fixe the issue) for a day with nearly no activity.
  • I diseabled the liveness (remove the log entry due to http get call to / or /api/status)

I searched but I was not able to find, So I ask here if someone know or have some links, tips to share. Maybe I misconfigured something.

Thank you.

@Xyaren
Copy link

Xyaren commented Oct 16, 2024

I put a script in /docker-entrypoint-initdb.d/00_tune-down-logging.sh :

#!/bin/bash
set -e

#by default the clone process will use wget with verbose logging. This will cause a flood of log statements increasing costs.
echo "verbose = off" > ~/.wgetrc

echo "Done"

This reduces the "progress" output from wget.
Still it's about 40000 log entries per day due to the update loop+healthchecks.

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