playframework 2.0 - How Openshift DIY cartridge kicks off processes? -
does diy cartridge support running 2 processes in each gear? if have 2 gears running, mean have 4 processes running @ same time?
start
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 &
if want implement web / worker model on openshift you'll need use redis. , happens have downloadable redis cart https://www.openshift.com/blogs/enabling-redis-for-your-app.
Comments
Post a Comment