New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

やったこと #1

Closed
nonylene opened this Issue Sep 15, 2018 · 21 comments

Comments

Projects
None yet
2 participants
@nonylene
Collaborator

nonylene commented Sep 15, 2018

No description provided.

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator

go 実装

screen shot 2018-09-15 at 10 10 07

Collaborator

nonylene commented Sep 15, 2018

go 実装

screen shot 2018-09-15 at 10 10 07

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator

パスワード: マイページが isucon:isucon admin は admin:admin

Collaborator

nonylene commented Sep 15, 2018

パスワード: マイページが isucon:isucon admin は admin:admin

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator

nginx ではなく h2o!!!!!

Collaborator

nonylene commented Sep 15, 2018

nginx ではなく h2o!!!!!

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator

isucon-1 が h2o 立っててそれ以外は立ってなさそう

Collaborator

nonylene commented Sep 15, 2018

isucon-1 が h2o 立っててそれ以外は立ってなさそう

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator

nginx に変える方針

Collaborator

nonylene commented Sep 15, 2018

nginx に変える方針

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator
sudo systemctl stop firewalld
sudo systemctl disable firewalld
Collaborator

nonylene commented Sep 15, 2018

sudo systemctl stop firewalld
sudo systemctl disable firewalld
@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator
sudo yum install zsh tmux htop
sudo systemctl stop firewalld
sudo systemctl disable firewalld

function add-user {
  user=$1
  sudo useradd $1
  sudo -u $1 mkdir -p /home/$1/.ssh
  sudo -u $1 chmod 700 /home/$1/.ssh
  sudo -u $1 touch /home/$1/.ssh/authorized_keys
  sudo -u $1 chmod 600 /home/$1/.ssh/authorized_keys
}

add-user nonylene
add-user utgw
add-user wass80
Collaborator

nonylene commented Sep 15, 2018

sudo yum install zsh tmux htop
sudo systemctl stop firewalld
sudo systemctl disable firewalld

function add-user {
  user=$1
  sudo useradd $1
  sudo -u $1 mkdir -p /home/$1/.ssh
  sudo -u $1 chmod 700 /home/$1/.ssh
  sudo -u $1 touch /home/$1/.ssh/authorized_keys
  sudo -u $1 chmod 600 /home/$1/.ssh/authorized_keys
}

add-user nonylene
add-user utgw
add-user wass80
@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator
nonylene ALL=(ALL) NOPASSWD: ALL
utgw ALL=(ALL) NOPASSWD: ALL
wass80 ALL=(ALL) NOPASSWD: ALL
Collaborator

nonylene commented Sep 15, 2018

nonylene ALL=(ALL) NOPASSWD: ALL
utgw ALL=(ALL) NOPASSWD: ALL
wass80 ALL=(ALL) NOPASSWD: ALL
@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator

hostname 設定した

Collaborator

nonylene commented Sep 15, 2018

hostname 設定した

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator

nginx に載せ替えた

Collaborator

nonylene commented Sep 15, 2018

nginx に載せ替えた

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator

キャッシュするようにした

Collaborator

nonylene commented Sep 15, 2018

キャッシュするようにした

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator

percona-toolkit を入れた

Collaborator

nonylene commented Sep 15, 2018

percona-toolkit を入れた

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator

mysql の conf をとりあえずいい感じにした

Collaborator

nonylene commented Sep 15, 2018

mysql の conf をとりあえずいい感じにした

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator

slow log

Collaborator

nonylene commented Sep 15, 2018

slow log

@wass88

This comment has been minimized.

Show comment
Hide comment
@wass88

wass88 Sep 15, 2018

Owner

access.log を出しました

Owner

wass88 commented Sep 15, 2018

access.log を出しました

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator
  • nginx が isucon user で動いていたら、 octet-stream かなにかがうまく行かなかったので root で動かす
Collaborator

nonylene commented Sep 15, 2018

  • nginx が isucon user で動いていたら、 octet-stream かなにかがうまく行かなかったので root で動かす
@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator
  • サーバーは app / app / db
Collaborator

nonylene commented Sep 15, 2018

  • サーバーは app / app / db
@wass88

This comment has been minimized.

Show comment
Hide comment
@wass88

wass88 Sep 15, 2018

Owner

netdataを眺めていた。
utgwのバックエンドになって論理演算を眺めていた。

Owner

wass88 commented Sep 15, 2018

netdataを眺めていた。
utgwのバックエンドになって論理演算を眺めていた。

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator

mysql に変えたらエラーになった。 mariadb と mysql の互換性は思ったよりなかった

-> slow log が出ないとか

Collaborator

nonylene commented Sep 15, 2018

mysql に変えたらエラーになった。 mariadb と mysql の互換性は思ったよりなかった

-> slow log が出ないとか

@wass88

This comment has been minimized.

Show comment
Hide comment
@wass88

wass88 Sep 15, 2018

Owner

アクセスログを眺めた

Owner

wass88 commented Sep 15, 2018

アクセスログを眺めた

@nonylene

This comment has been minimized.

Show comment
Hide comment
@nonylene

nonylene Sep 15, 2018

Collaborator
  • smartd を止めた
  • max open files とか
  • vm の max を変えるかと思ったけど関係なさそうだったのでしなかった
  • sysctl は systemd を変えれば十分だった
  • grant 、ドメイン名で指定しないとだめだったりした
Collaborator

nonylene commented Sep 15, 2018

  • smartd を止めた
  • max open files とか
  • vm の max を変えるかと思ったけど関係なさそうだったのでしなかった
  • sysctl は systemd を変えれば十分だった
  • grant 、ドメイン名で指定しないとだめだったりした

@nonylene nonylene closed this Sep 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment