Skip to content

Commit

Permalink
self-host the root dzns cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
kr committed Jun 13, 2011
1 parent 22d3c23 commit 8e35078
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/light
Expand Up @@ -10,6 +10,6 @@ test $# -eq 0 && n=1
p=`expr 8040 + $n`
w=`expr 8080 + $n`

test $n -ne 1 && args="-a 127.0.0.1:8041"
test $n -ne 1 && args="-b doozer:?ca=127.0.0.1:8041"

exec doozerd -l 127.0.0.1:$p -w :$w $args $*
3 changes: 3 additions & 0 deletions src/pkg/peer/peer.go
Expand Up @@ -83,6 +83,9 @@ func Main(clusterName, self, buri, rwsk, rosk string, cl *doozer.Conn, udpConn *
set(st, "/ctl/node/"+self+"/hostname", os.Getenv("HOSTNAME"), store.Missing)
set(st, "/ctl/node/"+self+"/version", Version, store.Missing)
set(st, "/ctl/cal/0", self, store.Missing)
if buri == "" {
set(st, "/ctl/ns/"+clusterName+"/"+self, listenAddr, store.Missing)
}
calSrv(<-st.Seqns)
// Skip ahead alpha steps so that the registrar can provide a
// meaningful cluster.
Expand Down

0 comments on commit 8e35078

Please sign in to comment.