Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
7b0c05c3
Commit
7b0c05c3
authored
Mar 01, 2016
by
Leigh B Stoller
Browse files
Tweaks to BIGDB/MAINSITE changes for mysqld>5.1
parent
a3e674b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
rc.d/2.mysql-server.sh.in
View file @
7b0c05c3
...
...
@@ -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=
3
50"
opts
=
"
$opts
-O max_connections=5
0
0"
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=
3
50"
opts
=
"
$opts
--max_connections=5
0
0"
fi
fi
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment