...
Referensi
- Psalm, https://psalm.dev/
- It’s not legacy code — it’s PHP, https://medium.com/vimeo-engineering-blog/its-not-legacy-code-it-s-php-1f0ee0462580
...
...
Target 1000 concurrent users untuk TAO
CPU 10 core$ cat /proc/cpuinfo | grep "model name"
model name : Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz
model name : Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz
model name : Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz
model name : Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz
model name : Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz
model name : Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz
model name : Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz
model name : Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz
model name : Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz
model name : Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz
$free -gtotal used free shared buff/cache availableMem: 16 0 14 0 1 15Swap: 0 0 0
Untuk mengetahui concurrent user, jalankan perintah :
$ netstat -plan | grep :80 | wc -l
$ netstat -plan | grep :443 | wc -l
Terkadang, tiba-tiba server seperti hang tidak bisa menerima request sama sekali, menurut diskusi [7], solusi yg bisa dicoba mengubah kongurasi php-fpm.conf
emergency_restart_threshold=3
emergency_restart_interval=1m
process_control_timeout=5s
listen.backlog
fpm/pool.d/www.conf
listen.backlog = 65536
Pastikan limit OS nya melebihi diatas, jalankan :
sysctl net.core.somaxconn
echo "net.core.somaxconn=65536" >> /etc/sysctl.conf
sysctl -p