mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
add memory tuning to examples
This commit is contained in:
parent
822a75db12
commit
6e79f2a860
2 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,10 @@ User=deploy
|
|||
Group=deploy
|
||||
UMask=0002
|
||||
|
||||
# Greatly reduce Ruby memory fragmentation and heap usage
|
||||
# https://www.mikeperham.com/2018/04/25/taming-rails-memory-bloat/
|
||||
Environment=MALLOC_ARENA_MAX=2
|
||||
|
||||
# if we crash, restart
|
||||
RestartSec=1
|
||||
Restart=on-failure
|
||||
|
|
|
@ -31,6 +31,10 @@ description "Sidekiq Background Worker"
|
|||
# setgid deploy
|
||||
# env HOME=/home/deploy
|
||||
|
||||
# Greatly reduce Ruby memory fragmentation and heap usage
|
||||
# https://www.mikeperham.com/2018/04/25/taming-rails-memory-bloat/
|
||||
env MALLOC_ARENA_MAX=2
|
||||
|
||||
respawn
|
||||
respawn limit 3 30
|
||||
|
||||
|
|
Loading…
Reference in a new issue