Skip to content

hayaten0415/isukit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

isucon-toolkit

Packed tools

netdata Depends on packages

  • zlib1g-dev
  • uuid-dev
  • libuv1-dev
  • liblz4-dev
  • libjudy-dev
  • libssl-dev
  • libmnl-dev
  • gcc
  • make
  • git
  • autoconf
  • autoconf-archive
  • autogen
  • automake
  • pkg-config
  • curl
  • python

netdata

Loading sysctl conf file

  • ☓ /etc/sysctl.conf
  • ○ /etc/sysctl.d/*.conf

Ubuntu 18.04 LTS

Systemd Version

237

Notes

Check first

  • Security Group(Alibaba Cloud)
  • memory size
cat /proc/memoinfo
  • cpu information
cat /proc/cpuinfo
  • DB software
  • Web server middle

MySQL tuning?

netdata

Ansible Playbook Execution

Dry Run

-C

key (pemkey)

ansible-playbook -i isucon setup.yml -u isucon --private-key="rsa path"

user

ansible-playbook -i isucon -u username

ISUCON Cheat Sheet

h2o alp format(ltsv)

/etc/h2o/h2o.conf
access-log:
  path: /var/log/h2o/access.log
  format: "time:%t\thost:%h\treq:%r\tstatus:%s\turi:%U\tmethod:%m\tsize:%b\treferer:%{Referer}i\tua:%{User-Agent}i\tcache:%{X-Cache}o\truntime:%{X-Runtime}o\tvhost:%{Host}i\treqtime:%{request-total-time}x\truntime:%{process-time}x\tapptime:%{duration}x"
/etc/apache2/apache2.conf
LogFormat "time:%t\tforwardedfor:%{X-Forwarded-For}i\thost:%h\treq:%r\tstatus:%>s\tmethod:%m\turi:%U%q\tsize:%B\treferer:%{Referer}i\tua:%{User-Agent}i\treqtime_microsec:%D\tapptime:%D\tcache:%{X-Cache}o\truntime:%{X-Runtime}o\tvhost:%{Host}i" combined

apache default access log

/var/log/apache2/access.log

access log analyze by alp

cat /var/log/h2o/access.log | alp ltsv

Before BenchMark

1. systemctl restart mysql
2. systemctl restart *****.ruby
3. systemctl restart nginx

Pt-query-digest Latest

https://stackoverflow.com/questions/38245395/pipeline-process-5-iteration-caused-an-error-redundant-argument-in-sprintf-at

wget https://repo.percona.com/apt/percona-release_0.1-10.$(lsb_release -sc)_all.deb
dpkg -i percona-release_0.1-10.$(lsb_release -sc)_all.deb
apt-get install percona-toolkit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published