PageRenderTime 82ms CodeModel.GetById 41ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/historical/do-run.sh

https://bitbucket.org/lindenlab/apiary/
Shell | 15 lines | 6 code | 6 blank | 3 comment | 1 complexity | e8d1946e8da893922d338d09259fcb0d MD5 | raw file
 1#!/bin/sh
 2
 3COMMON_OPTS='--mysql-host=db209.phx --mysql-user=foo --mysql-passwd=bar --mysql-db=indra --timeout 10'
 4CENTRAL_OPTS='--central -v ../logs/query-test-100k*'
 5WORKER_OPTS='--amqp-host=chastity --asap --f-schema --fork 2 --worker 50 '
 6
 7WORKER_MACHINES='-m faith -m hope'
 8
 9HIVE=hive_indra.py
10# to run everything through rabbitmq, but not the database, use hive_indra_null.py
11#HIVE=hive_indra_null.py
12
13dsh -c ${WORKER_MACHINES} -- "cd /local/hive/hive && python ${HIVE} ${COMMON_OPTS} ${WORKER_OPTS} " & python ${HIVE} ${COMMON_OPTS} ${CENTRAL_OPTS}
14
15