Skip to content

Commit

Permalink
Merge pull request #257 from kiwix/mb_http
Browse files Browse the repository at this point in the history
Changing mirrorbrain's check_large_file threshold
  • Loading branch information
rgaudin authored Dec 13, 2023
2 parents fa864b7 + e658cbc commit 752ca1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mirrorbrain/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ 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
# 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

#Start !
CMD ["start.sh"]

0 comments on commit 752ca1a

Please sign in to comment.