0

DIY墨盒是否支持在每个档位运行2个进程?如果我有 2 个齿轮运行,是否意味着它将同时运行 4 个进程?

开始

chmod +x ${OPENSHIFT_REPO_DIR}run/start

APP_COMMAND_1="${OPENSHIFT_REPO_DIR}run/start $PLAY_PARAMS "\
"-Dhttp.port=${OPENSHIFT_DIY_PORT} "\
"-Dhttp.address=${OPENSHIFT_DIY_IP} "\
"-Dlogger.resource=${LOGGER_RESOURCE} "\
"-Dconfig.resource=application-prod.conf"

echo $APP_COMMAND_1 &>> $LOG_FILE
nohup bash -c "${APP_COMMAND_1} &>> ${LOG_FILE} 2>&1" &> /dev/null &

APP_COMMAND_2="${OPENSHIFT_REPO_DIR}run/start $PLAY_PARAMS "\
"-Dhttp.port=${OPENSHIFT_DIY_PORT} "\
"-Dhttp.address=${OPENSHIFT_DIY_IP} "\
"-Dlogger.resource=${LOGGER_RESOURCE} "\
"-Dconfig.resource=application-prod.conf "\
"-Dapplication.global=Scheduler"

echo $APP_COMMAND_2 &>> $LOG_FILE
nohup bash -c "${APP_COMMAND_2} &>> ${LOG_FILE} 2>&1" &> /dev/null &
4

1 回答 1

0

如果你想在 Openshift 上实现 web/worker 模型,那么你需要使用 Redis 之类的东西。碰巧我们有一个可下载的 Redis 购物车https://www.openshift.com/blogs/enabling-redis-for-your-app

于 2014-03-06T21:24:41.040 回答