Skip to content

Instantly share code, notes, and snippets.

@nishina555
Created July 31, 2018 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishina555/04e392ce58cfaa5756e2ee7332c7bb6c to your computer and use it in GitHub Desktop.
Save nishina555/04e392ce58cfaa5756e2ee7332c7bb6c to your computer and use it in GitHub Desktop.
ISUCON Cheat Sheet

初期設定

http {
  log_format ltsv "time:$time_local"
    "\thost:$remote_addr"
    "\tforwardedfor:$http_x_forwarded_for"
    "\treq:$request"
    "\tmethod:$request_method"
    "\turi:$request_uri"
    "\tstatus:$status"
    "\tsize:$body_bytes_sent"
    "\treferer:$http_referer"
    "\tua:$http_user_agent"
    "\treqtime:$request_time"
    "\truntime:$upstream_http_x_runtime"
    "\tapptime:$upstream_response_time"
    "\tcache:$upstream_http_x_cache"
    "\tvhost:$host";

  access_log  /var/log/nginx/access.log ltsv;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment