Open txxxxc opened 2 months ago
一旦かけました。 git pullして再起動周りを全部できました。
rate-limitかけてみましょう
てか、普通にローカルでbench回せるようにしたくないか???
てかその前にファイルディスクリプタ足りてなかった説があるので、それだけ確認します。
goのサーバーの方のfdは足りてました。 それ以外だと普通にnginxのworkerとかが足りてないというのはありそうです。
nginx -Tこれで設定見れるっぽいです。
ま? https://stackoverflow.com/questions/37591784/nginx-worker-rlimit-nofile
worker_rlimit_nofile = worker_connections * 2 file descriptors
いうて定かではないらしい
a client request body is buffered to a temporary file /var/lib/nginx/body
これなに?
なんか色々あるっぽい。まあファイルに書き込まれたらI/Oで時間かかりそうだからええ感じに改善したいね
nginxのmaster processは何をやってるんや
workerとかを管理してるやつってことね
てか、nginxのworkerも一つしか建ってないし、goのfdも問題なさそうやから何が悪いのかあまり分からんですね
本格的にインスタンスが弱弱だから説出てきた。もう一回topで確認してみましょう
benchのときに100%なってるのはまずくないか?とかは思ってる
後普通に100%超えてそうではある
rate-limitがソリューション化怪しくなってきた
なんかcpu1個やし練習台としてあまり良くない気はしてきた
一旦デプロイのスクリプトをもっといい感じに書いてみたい