Skip to content

Commit

Permalink
increase unicorn process to 12 148263
Browse files Browse the repository at this point in the history
  • Loading branch information
mickamy committed Jan 3, 2024
1 parent fe46cb8 commit 81bf551
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions note.md
Original file line number Diff line number Diff line change
Expand Up @@ -778,3 +778,18 @@ docker exec -i ishocon2-bench-1 sh -c "./benchmark --ip app:443 --workload 8"
2024/01/03 04:01:37 投票者の感心がなくなりました
2024/01/03 04:01:37 {"score": 199340, "success": 142220, "failure": 0}
```

- increase unicorn process to 12

```
❯ make bench
docker exec -i ishocon2-bench-1 sh -c "./benchmark --ip app:443 --workload 8"
2024/01/03 04:05:01 Start GET /initialize
2024/01/03 04:05:01 期日前投票を開始します
2024/01/03 04:05:02 期日前投票が終了しました
2024/01/03 04:05:02 投票を開始します Workload: 8
2024/01/03 04:05:47 投票が終了しました
2024/01/03 04:05:47 投票者が結果を確認しています
2024/01/03 04:06:02 投票者の感心がなくなりました
2024/01/03 04:06:02 {"score": 148263, "success": 110631, "failure": 0}
```
2 changes: 1 addition & 1 deletion webapp/ruby/unicorn_config.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
worker_processes 8
worker_processes 12
preload_app true
pid '/tmp/unicorn.pid'
listen '/tmp/unicorn.sock'
Expand Down

0 comments on commit 81bf551

Please sign in to comment.