Skip to content
Permalink
Browse files

Split database to isu03

  • Loading branch information...
takonomura authored and isucon committed Sep 8, 2019
1 parent cfab62b commit c74a0569985e5b768fcc01138100ab453b95f456
Showing with 21 additions and 143 deletions.
  1. +1 −1 env.sh
  2. +0 −105 isu01/mysqld.cnf
  3. +4 −4 isu03/mysqld.cnf
  4. +0 −32 isu03/nginx.conf
  5. +16 −1 recipe.rb
2 env.sh
@@ -1,4 +1,4 @@
MYSQL_HOST=127.0.0.1
MYSQL_HOST=172.24.83.45
MYSQL_PORT=3306
MYSQL_USER=isucari
MYSQL_DBNAME=isucari

This file was deleted.

@@ -40,7 +40,7 @@ skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
bind-address = 172.24.83.45
#
# * Fine Tuning
#
@@ -73,9 +73,9 @@ query_cache_size = 16M
log_error = /var/log/mysql/error.log
#
# Here you can see queries with especially long duration
#slow_query_log = 1
#slow_query_log_file = /var/log/mysql/mysql-slow.log
#long_query_time = 2
slow_query_log = 1
slow_query_log_file = /var/log/mysql/mysql-slow.log
long_query_time = 0
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.

This file was deleted.

@@ -2,7 +2,11 @@
USER = 'isucon'

service 'isucari.golang.service' do
action %i[enable start]
if HOST != 'isu03'
action %i[enable start]
else
action %i[disable stop]
end
end

###
@@ -30,6 +34,17 @@
# action %i[enable start]
#end

if HOST == 'isu01'
service 'mysql' do
action %i[disable stop]
end
end
if HOST == 'isu03'
service 'nginx' do
action %i[disable stop]
end
end

{
'nginx' => '/etc/nginx/nginx.conf',
'mysql' => '/etc/mysql/mysql.conf.d/mysqld.cnf',

0 comments on commit c74a056

Please sign in to comment.
You can’t perform that action at this time.