mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Reduce phoenix startup time by setting RELEASE_MODE=interactive
This commit is contained in:
@@ -51,7 +51,6 @@ end
|
||||
if node['firezone']['phoenix']['enable']
|
||||
component_runit_service 'phoenix' do
|
||||
package 'firezone'
|
||||
control ['t']
|
||||
action :enable
|
||||
subscribes :restart, 'file[environment-variables]'
|
||||
end
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
echo "received TERM from runit, sending to process group (-PID)"
|
||||
pid=$(<%= node['firezone']['app_directory'] %>/bin/firezone pid)
|
||||
kill -- -$pid
|
||||
@@ -16,3 +16,8 @@
|
||||
# RELEASE_DISTRIBUTION variable below. Must be "sname", "name" or "none".
|
||||
export RELEASE_DISTRIBUTION=name
|
||||
export RELEASE_NODE=<%= @release.name %>@127.0.0.1
|
||||
|
||||
# Choices here are 'interactive' and 'embedded'. 'interactive' boots faster which
|
||||
# prevents some runit process management edge cases at the expense of the application
|
||||
# not technically being ready to serve requests "right away". This is a useful tradeoff.
|
||||
export RELEASE_MODE=interactive
|
||||
|
||||
Reference in New Issue
Block a user