Skip to content

Commit

Permalink
Change mirrorbrain's check_large_file threshold again to ensure it ne…
Browse files Browse the repository at this point in the history
…ver runs
  • Loading branch information
benoit74 committed Dec 14, 2023
1 parent 752ca1a commit 1cb5450
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mirrorbrain/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,13 @@ COPY ./sql/* mirrorbrain-$MB_VERSION/sql/
#Install start script
COPY bin/* /usr/local/bin/
RUN chmod 0500 /usr/local/bin/*
# Hack: change scanner variable $gig2 from 2GiB to 256GiB
# Hack: change scanner variable $gig2 from 2GiB to 8EiB
# to completely disable the HTTP check
# this is used as a threshold on rsync scans
# Files larger than it trigger a Range-Request HTTP download.
# If the request fails a warning is printed
# Those requests are not necessary and create load on mirrors
RUN sed -i 's/gig2 = 1<<31;/gig2 = 1<<38; # HACKED --/' /usr/bin/scanner
RUN sed -i 's/gig2 = 1<<31;/gig2 = 1<<63; # HACKED --/' /usr/bin/scanner

#Start !
CMD ["start.sh"]

0 comments on commit 1cb5450

Please sign in to comment.