Commit 4092621e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent de4a4624
......@@ -13,13 +13,13 @@ cluster=pygotest
# M{py,go}
# spawn master
Mpy() {
# XXX --masters=?
# XXX --autostart=1 ?
neomaster --cluster=$cluster --bind=$Mbind -r 1 -p 1 --logfile=`pwd`/Mpy.log
neomaster --cluster=$cluster --bind=$Mbind --masters=$Mbind -r 1 -p 1 --logfile=`pwd`/Mpy.log &
}
Mgo() {
neo master -cluster=$cluster -bind=$Mbind -log_dir=`pwd`
exec -a Mgo \
neo --log_dir=`pwd` master -cluster=$cluster -bind=$Mbind
}
# TODO Spy
......@@ -27,10 +27,14 @@ Mgo() {
# Sgo <data>
# spawn storage
Sgo() {
neo storage -cluster=$cluster -bind=$Sbind -masters=$Mbind -log_dir=`pwd` $@
exec -a Sgo \
neo -log_dir=`pwd` storage -cluster=$cluster -bind=$Sbind -masters=$Mbind $@ &
}
# spawn Mpy + Sgo
Mpy &
Mpy
Sgo ../../zodb/storage/fs1/testdata/1.fs
wait
......@@ -46,6 +46,7 @@ def main(args=None):
config = ConfigurationManager(defaults, options, 'master')
# setup custom logging
logging.backlog(max_size=None) # log without delay
logging.setup(config.getLogfile())
# and then, load and run the application
......
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