From 47b5976abd02a16db5f7fbc31c8a16bd618af660 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 7 May 2021 11:25:09 -0400 Subject: [PATCH] debuginfod: tweak server configuration and proxy frontend Codify a few debuginfod process parameters that appear to be working well. Adjust incoming proxies to redirect the "/" URL to a wiki page, as requested by FESCO. --- files/debuginfod/sysconfig.debuginfod | 4 ++-- playbooks/include/proxies-redirects.yml | 7 +++++++ playbooks/include/proxies-reverseproxy.yml | 13 +++++++++++-- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/files/debuginfod/sysconfig.debuginfod b/files/debuginfod/sysconfig.debuginfod index 5e8d2f1e9d..a55936067f 100644 --- a/files/debuginfod/sysconfig.debuginfod +++ b/files/debuginfod/sysconfig.debuginfod @@ -1,8 +1,8 @@ # DEBUGINFOD_PORT="8002" -DEBUGINFOD_VERBOSE="-vv" +#DEBUGINFOD_VERBOSE="-vv" -DEBUGINFOD_PATHS="--fdcache-fds=512 -t3600 -R /mnt/fedora_koji_prod/koji/packages -X /data/ -I \.(module_f|fc)(32|33|34|35)[.+].*\.rpm" +DEBUGINFOD_PATHS="--fdcache-fds=512 -t43200 -g604800 -c6 -vv -R /mnt/fedora_koji_prod/koji/packages -X /data/ -I \.(module_f|fc)(32|33|34|35)[.+].*\.rpm" # prefer reliability/durability over performance #DEBUGINFOD_PRAGMAS="-D 'pragma synchronous=full;'" diff --git a/playbooks/include/proxies-redirects.yml b/playbooks/include/proxies-redirects.yml index 3cb32aa888..309e375185 100644 --- a/playbooks/include/proxies-redirects.yml +++ b/playbooks/include/proxies-redirects.yml @@ -872,3 +872,10 @@ website: qa.fedoraproject.org path: / target: https://fedoraproject.org/wiki/QA + + # redirects for debuginfod main page + - role: httpd/redirect + shortname: debuginfod + website: debuginfod.fedoraproject.org + regex: /(index.html)?$ + target: https://fedoraproject.org/wiki/Debuginfod diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index 867bb724fa..aedf1b0a03 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -751,8 +751,17 @@ - role: httpd/reverseproxy website: debuginfod.fedoraproject.org destname: debuginfod - remotepath: / - localpath: / + remotepath: /buildid/ + localpath: /buildid/ + proxyurl: http://debuginfod01:8002 + proxyopts: "connectiontimeout=600 timeout=600 keepalive=on" + tags: debuginfod + + - role: httpd/reverseproxy + website: debuginfod.fedoraproject.org + destname: debuginfod + remotepath: /metrics + localpath: /metrics proxyurl: http://debuginfod01:8002 proxyopts: "connectiontimeout=600 timeout=600 keepalive=on" tags: debuginfod