Page MenuHomeSoftware Heritage

Add durations to nginx and swh-storage access log
ClosedPublic

Authored by vsellier on Dec 7 2021, 3:18 PM.

Details

Summary

It will help to diagnose the timeouts occuring during the jenkins builds

Related to T3778

  • nginx:
    • before:
nginx_1                             | 172.29.0.1 - - [07/Dec/2021:14:05:45 +0000] "GET / HTTP/1.1" 200 13867 "-" "curl/7.74.0"
  • after:
nginx_1                             | 172.29.0.1 - - [07/Dec/2021:14:05:45 +0000] "GET / HTTP/1.1" 200 13867 "-" "curl/7.74.0" 0.032
  • swh-storage:
    • before:
swh-storage_1                       | [2021-12-06 08:56:19 +0000] [87] [DEBUG] POST /directory/ls
  • after:
swh-storage_1                       | [07/Dec/2021:14:00:15 +0000] POST /directory/ls HTTP/1.1 200 48291 7

The format of the date changes but there is not way to configure it, except by creating a new log formatter

Diff Detail

Repository
rDENV Development environment
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Dec 7 2021, 3:26 PM
ardumont added a subscriber: ardumont.

I'd say the debug level change should go in another diff and maybe be parametric from the docker-compose instead.

it's related to this change because if it's let to DEBUG, the access log is logged 2 times.

The debug log and the newly configured access log