Commit 7b0c05c3 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Tweaks to BIGDB/MAINSITE changes for mysqld>5.1

parent a3e674b1
......@@ -25,7 +25,7 @@ else
opts="$opts -O record_buffer=1M -O query_cache_size=16M"
opts="$opts -O join_buffer_size=256K -O thread_cache_size=4"
opts="$opts -O tmp_table_size=32M -O max_heap_table_size=32M"
opts="$opts -O max_connections=350"
opts="$opts -O max_connections=500"
fi
logopt="--log-long-format --log=@prefix@/log/mysql/base --log-bin=@prefix@/log/mysql/update --log-slow-queries=@prefix@/log/mysql/slowqueries"
......@@ -39,7 +39,7 @@ if [ $major -eq 5 ]; then
# XXX awkward: no -O, a couple of name changes
opts="--default-storage-engine=MyISAM --long_query_time=2"
if [ $MAINSITE == "0" ]; then
if [ $MAINSITE == "0" -a $BIGDB == "0" ]; then
opts="$opts --key_buffer_size=32M --table_open_cache=128"
opts="$opts --sort_buffer_size=2M"
opts="$opts --read_buffer_size=1M --max_connections=250"
......@@ -49,7 +49,7 @@ if [ $major -eq 5 ]; then
opts="$opts --read_buffer_size=1M --query_cache_size=16M"
opts="$opts --join_buffer_size=256K --thread_cache_size=4"
opts="$opts --tmp_table_size=32M --max_heap_table_size=32M"
opts="$opts --max_connections=350"
opts="$opts --max_connections=500"
fi
fi
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment