Overpass-API icon indicating copy to clipboard operation
Overpass-API copied to clipboard

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

Open davidBernardWefox opened this issue 3 years ago • 1 comments

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.

davidBernardWefox avatar Jun 24 '22 15:06 davidBernardWefox

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.

Xyaren avatar Oct 16 '24 09:10 Xyaren