Weitere ähnliche Inhalte Ähnlich wie Capistrano && SystemD (20) Mehr von Aleksandr Simonov (7) Kürzlich hochgeladen (20) Capistrano && SystemD6. Memory Usage After Boot
PostgreSQL - 500Mb
Puma Cluster - 120Mb
Sidekiq - 100Mb
Total: 500Mb DB + 440Mb Rails App
8. Memory Usage After One Week
PostgreSQL - 550Mb
Puma Cluster - 2Gb
Sidekiq - 1Gb
Total: 550Mb DB + 6GB Rails App
10. Memory Usage After One Month
PostgreSQL - 570Mb
Puma Cluster - 5Gb
Sidekiq - 2,5Gb
Total: 570Mb DB + 15GB Rails App
12. CPU Usage
4 CPUs
5 Nginx processes (master + 4 workers)
8 Puma processes (master + 3 workers )
2 Sidekiq processes
Max 192 PostgreSQL processes (fork on every connection)
14. IO Usage
PostgreSQL - multiple DB files, log files
Nginx - log files, requests cache, static files, file uploads
Rails - log files, cache files, file uploads, third party services
20. Linux Control Groups
CPU Time - max 20% of time
System memory - 1GB max
Disk bandwidth - 5Mb/sec
Network bandwidth - 2Mb/sec
32. Make a reality
Read about SystemD
Read about CGroups
Create service file
SSH to server and setup it
33. Make a reality
Read about SystemD
Read about CGroups
Create service file
SSH to server and setup it
SSH to all your servers and do the same
34. Make a reality
Read about SystemD
Read about CGroups
Create service file
SSH to server and setup it
SSH to all your servers and do the same
PROFIT!
40. Only 1 line setup on server
# loginctl enable-linger username