PageRenderTime 21ms CodeModel.GetById 17ms RepoModel.GetById 1ms 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. COMMON_OPTS='--mysql-host=db209.phx --mysql-user=foo --mysql-passwd=bar --mysql-db=indra --timeout 10'
  3. CENTRAL_OPTS='--central -v ../logs/query-test-100k*'
  4. WORKER_OPTS='--amqp-host=chastity --asap --f-schema --fork 2 --worker 50 '
  5. WORKER_MACHINES='-m faith -m hope'
  6. HIVE=hive_indra.py
  7. # to run everything through rabbitmq, but not the database, use hive_indra_null.py
  8. #HIVE=hive_indra_null.py
  9. dsh -c ${WORKER_MACHINES} -- "cd /local/hive/hive && python ${HIVE} ${COMMON_OPTS} ${WORKER_OPTS} " & python ${HIVE} ${COMMON_OPTS} ${CENTRAL_OPTS}