# Name of the node
@CLOUDI_ARG_NODE_NAME@

# Cookie for distributed erlang
@CLOUDI_ARG_NODE_COOKIE@

# Ensure SMP is used
-smp

## heart VM monitoring (required for reboot command)
## (WARNING: (from http://erlang.org/doc/man/heart.html)
##  "When running on OSs lacking support for monotonic time, heart is
##   susceptible to system clock adjustments of more than HEART_BEAT_TIMEOUT
##   seconds. When this happens, heart times out and tries to reboot the
##   system. This can occur, for example, if the system clock is adjusted
##   automatically by use of the Network Time Protocol (NTP).")
#-heart

# Enable kernel poll and a few async threads
+K true
+A 5

# Increase number of Erlang processes
+P 65536

# Increase number of concurrent ports/sockets
+Q 32768

## Distributed Erlang buffer size
#+zdbbl 1024 # kB (valid values are 1 - 2097151)

# Allow Erlang system time to move backwards/forwards at any time
+C multi_time_warp
+c true

# Set the printable range to unicode for unicode logging
+pc unicode

# CloudI configuration arguments specifically for Erlang/OTP @ERLANG_OTP_VER@
@ERL_OPTS@

# node specific arguments
-args_file @cloudi_confdir@/@CLOUDI_NODE_NAME@.args
