Skip to content

Commit

Permalink
Add PEER support for VALCACHE_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
fr33m0nk committed Feb 7, 2024
1 parent 8784ad6 commit cfece8f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions configure_and_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,14 @@ if [[ "${RUN_MODE}" = "PEER" ]]; then
fi
fi

# run_cmd = "-Xmx${$XMX} -Xms${XMS} -m datomic.peer-server -h ${PEER_HOST} -p ${PEER_PORT} -a ${PEER_ACCESSKEY},${PEER_SECRET} -d ${DATOMIC_DB_NAME},$(datomic_uri)"
# -Ddatomic.txTimeoutMsec=60000 -Ddatomic.memcachedServers=staging-datomic-memcached-cluster.zpto5z.cfg.use1.cache.amazonaws.com:11211 -Ddatomic.memcachedAutoDiscovery=true -Ddatomic.metricsCallback=fr33m0nk.datomic-datadog-reporter/send-metrics
bin/run -Xmx"$XMX" -Xms"$XMS" \
"${extended_peer_options}" \
if [[ ! -z "${VALCACHE_PATH}" ]]; then
extended_peer_options = "${extended_peer_options} -Ddatomic.valcachePath=${VALCACHE_PATH}"
if [[ ! -z "${VALCACHE_MAX_GB}" ]]; then
extended_peer_options = "${extended_peer_options} -Ddatomic.valcacheMaxGb=${VALCACHE_MAX_GB}"
fi
fi

bin/run -Xmx"$XMX" -Xms"$XMS" "${extended_peer_options}" \
-m datomic.peer-server \
-h "${PEER_HOST}" \
-p "${PEER_PORT}" \
Expand Down

0 comments on commit cfece8f

Please sign in to comment.