Closed fsteeg closed 7 years ago
Required to deploy #1
Proxy setup is more complex than expected, since the prototype UI uses Elasticsearch query URLs, which don't work in the proxy setup. Will deploy #1 to separate internal instance, moving this to backlog.
Proxies set up at http://dd.lobid.org and http://dd-test.lobid.org, domain is handled in separate issue #12.
Remaining (to do after #12, with actual domains):
Monitoring is set up, here's what I did:
sudo pico /etc/monit/conf.d/play-instances.rc
Added:
check process digitalisiertedrucke with pidfile "/home/sol/git/digitalisiertedrucke/target/universal/stage/RUNNING_PID"
start program = "/home/sol/git/digitalisiertedrucke/monit_restart.sh digitalisiertedrucke start 4999"
as uid sol and gid sol
stop program = "/home/sol/git/digitalisiertedrucke/monit_restart.sh digitalisiertedrucke stop 4999"
as uid sol and gid sol
if failed host 127.0.0.1 port 4999 then start
if 5 restarts within 5 cycles then timeout
check process digitalisiertedrucke-beta with pidfile "/home/sol/git/digitalisiertedrucke-beta/target/universal/stage/RUNNING_PID"
start program = "/home/sol/git/digitalisiertedrucke-beta/monit_restart.sh digitalisiertedrucke-beta start 5000"
as uid sol and gid sol
stop program = "/home/sol/git/digitalisiertedrucke-beta/monit_restart.sh digitalisiertedrucke-beta stop 5000"
as uid sol and gid sol
if failed host 127.0.0.1 port 5000 then start
if 5 restarts within 5 cycles then timeout
check process digitalisiertedrucke-staging with pidfile "/home/sol/git/digitalisiertedrucke-staging/target/universal/stage/RUNNING_PID"
start program = "/home/sol/git/digitalisiertedrucke-staging/monit_restart.sh digitalisiertedrucke-staging start 5001"
as uid sol and gid sol
stop program = "/home/sol/git/digitalisiertedrucke-staging/monit_restart.sh digitalisiertedrucke-staging stop 5001"
as uid sol and gid sol
if failed host 127.0.0.1 port 5001 then start
if 5 restarts within 5 cycles then timeout
sudo monit reload
sudo monit status
looks good.
@dr0i: Assigning for review, if this looks good to you, you can close this.
+1, closing.