Tuning some numbers
This commit is contained in:
parent
902048e282
commit
dfa9419b67
3 changed files with 3 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ $PSQL -f update_indices.sql
|
||||||
|
|
||||||
echo "============ Updating HTML cache"
|
echo "============ Updating HTML cache"
|
||||||
test -f .config && source ./.config
|
test -f .config && source ./.config
|
||||||
./cache-html.pl --batch=5 --delay=0.5 --maxbatches=100
|
./cache-html.pl --batch=5 --delay=0.5 --maxbatches=1000
|
||||||
|
|
||||||
echo "============ Updating database dumps"
|
echo "============ Updating database dumps"
|
||||||
./export.sh
|
./export.sh
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ set -e
|
||||||
mkdir -p ../dl
|
mkdir -p ../dl
|
||||||
|
|
||||||
# Only run once a week
|
# Only run once a week
|
||||||
[ -e ../dl/current ] && [ -z $(find ../dl/current -daystart -mtime +7) ] && exit
|
[ -e ../dl/current ] && [ -z $(find ../dl/current -daystart -mtime +6) ] && exit
|
||||||
|
|
||||||
# Only keep the last dump
|
# Only keep the last dump
|
||||||
rm -rf $(printf '%s\n' ../dl/????-??-?? | sort | head -n -1)
|
rm -rf $(printf '%s\n' ../dl/????-??-?? | sort | head -n -1)
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ use ManUtils;
|
||||||
# Database must be configured through env vars
|
# Database must be configured through env vars
|
||||||
FU::init_db(sub { FU::Pg->connect('')->set_type(bytea => '$hex') });
|
FU::init_db(sub { FU::Pg->connect('')->set_type(bytea => '$hex') });
|
||||||
FU::debug_info('/fu-debug', 'debug~', 10);
|
FU::debug_info('/fu-debug', 'debug~', 10);
|
||||||
FU::log_slow_reqs 500;
|
FU::log_slow_reqs 200;
|
||||||
|
|
||||||
|
|
||||||
FU::before_request {
|
FU::before_request {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue