kavo’s diary

備忘録

2023-01-01から1年間の記事一覧

AWS re:Invent 2023参加記録

色々調べていったものの、現地に行ってわかったことも結構あったのでメモ。 電子機器 持っていったもの 社用Macbook Pro アイリスオーヤマ モバイルモニター 13.3インチ DP-BF132S-B 充電系 Anker 733 Power Bank (GaNPrime PowerCore 65W) 10000mAh Anker P…

ISUCON13(2013)参加記録

今年は2名で参戦。おおよそ22000点くらいが最高スコアだった。 https://github.com/shimodatkh/2023-11-25-isu13 決めていたこと pproteinで計測する go-callvisでコールグラフを見る コードはローカルで書いてmainにpush 流れ 初回3000点くらいだった git周…

pproteinを競技サーバとは別のサーバに置いて使う

今年のISUCONはpproteinを使ってみようと思う。 pprotein用サーバ作成 pprotein用のec2を立てる. 9000port開け static ip割当 pproteinインストール、起動、ブラウザアクセス pprotein→競技サーバアクセス疎通 最初IP直でsettingに書いたが穴開いてないので…

ISUCON練習会 過去問(11予選)並走会に参加した

2023/10/21にDiscordのISUCON精進鯖で開催された並走会に参加した。 ISUCON精進鯖(非公式)について - HackMD ISUCON練習会 過去問並走会 - HackMD GitHub - shimodatkh/isucon-practice-11q ssh接続 10:19 初回走行 2220点 サービス確認 ブラウザアクセス…

ISUCON練習 private-isu[4] ~16275点 アプリ書き換え時デバッグ、getIndex・getAccountNameのN+1解消

getIndexの改善 引き続き無駄な部分を改善する。 コメントは3個まででよい UserのデータはAccountNameだけしか使ってないと思われる GitHub - jmoiron/sqlx: general purpose extensions to golang's database/sql sqlxは多分、フィールドの配列構造体を直…

ISUCON練習 private-isu[3] ~13148点 Nginxログ解析、pprof、無効ユーザの除外とpost20個制限

Nginxログ解析 ログフォーマットを設定。 apt update && apt install -y vim vi /etc/nginx/nginx.conf # nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful…

ISUCON練習 private-isu[2] スロークエリ解析、インデックス作成 ~9315点

スロークエリログ設定 webapp\etc\my.cnfに追記 slow_query_log = 1 slow_query_log_file = /var/log/mysql/mysql-slow.log long_query_time = 0 出ないと思ったらパーミッション問題。 mysql: [Warning] World-writable config file '/etc/my.cnf' is ignor…

ISUCON練習 private-isu[1] Windows上構築~ベンチ成功(0点)

private-isuをやっていく。 github.com 環境 Windows 10 Docker Desktop 言語はGo ログ アプリ起動 Docker Desktopは起動しておく してないとerror during connect: this error may indicate that the docker daemon is not running: rubyで一回イメージ作っ…

ISUCON練習 ISUCON12予選環境構築(自己署名証明書利用)

久しぶりに構築。色々あったのでやり方メモ。 資材 aws-isucon/isucon12-qualify at main · matsuu/aws-isucon · GitHub 構築 インスタンス起動 インスタンスタイプ選択 https://ap-northeast-1.console.aws.amazon.com/ec2/home?region=ap-northeast-1#Spot…