Skip to content

Commit

Permalink
Move nginx cache into /srv/pbench (#3603)
Browse files Browse the repository at this point in the history
* Move nginx cache into /srv/pbench

PBENCH-1316

Our deployed containerized server maps `/var/lib` (the default NGINX cache
location) to `/home`, which has only 26Gb free. Instead, point NGINX cache to
our large Pbench volume at `/srv/pbench/nginx` in order to be able to transfer
larger datasets.
  • Loading branch information
dbutenhof committed Jan 26, 2024
1 parent 01ce14d commit 4a02f97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions server/lib/config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;

client_body_temp_path /srv/pbench/nginx 1 2;
client_max_body_size 100G;
}

Expand Down
7 changes: 4 additions & 3 deletions server/pbenchinacan/run-pbench-in-a-can
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ sed -Ei \
podman unshare rm -rf ${SRV_PBENCH}/*
mkdir -p -m 0755 \
${SRV_PBENCH}/archive/fs-version-001 \
${SRV_PBENCH}/public_html/dashboard \
${SRV_PBENCH}/tmp \
${SRV_PBENCH}/backup \
${SRV_PBENCH}/cache
${SRV_PBENCH}/cache \
${SRV_PBENCH}/nginx \
${SRV_PBENCH}/public_html/dashboard \
${SRV_PBENCH}/tmp

# Set up the static fallback pages for Nginx.
#
Expand Down

0 comments on commit 4a02f97

Please sign in to comment.