Commit de4a4624 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 3c9b64ae
#!/bin/bash -e #!/bin/bash -e
# run 1 mixed py/go NEO cluster # run 1 mixed py/go NEO cluster
# Mpy <cluster> <bind> # port allocations
# spawn py master Abind=127.0.0.1:5551
Mbind=127.0.0.1:5552
Sbind=127.0.0.1:5553
# cluster name
cluster=pygotest
# M{py,go}
# spawn master
Mpy() { Mpy() {
# XXX --masters=? # XXX --masters=?
neomaster --cluster=$1 --bind=$2 -r 1 -p 1 --autostart=1 --logfile=`pwd`/master.log # XXX --autostart=1 ?
neomaster --cluster=$cluster --bind=$Mbind -r 1 -p 1 --logfile=`pwd`/Mpy.log
}
Mgo() {
neo master -cluster=$cluster -bind=$Mbind -log_dir=`pwd`
} }
# TODO Spy
# Sgo <cluster> <bind> <masters> <data> # Sgo <data>
# spwan go storage # spawn storage
Sgo() { Sgo() {
neo storage -cluster=$1 -bind=$2 -masters=$3 -logdir=`pwd` $4 neo storage -cluster=$cluster -bind=$Sbind -masters=$Mbind -log_dir=`pwd` $@
} }
# spawn Mpy + Sgo
Mpy &
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment