Merge pull request #33 from mcqueenorama/master

turn on filer when file.redirectOnRead
This commit is contained in:
chrislusf 2014-12-14 20:43:43 -08:00
commit 2b1369277f
3 changed files with 6 additions and 0 deletions

View file

@ -57,6 +57,7 @@ var cmdFiler = &Command{
}
func runFiler(cmd *Command, args []string) bool {
if err := util.TestFolderWritable(*f.dir); err != nil {
glog.Fatalf("Check Meta Folder (-dir) Writable %s : %s", *f.dir, err)
}

View file

@ -101,6 +101,10 @@ func runServer(cmd *Command, args []string) bool {
}
}
if *filerOptions.redirectOnRead {
*isStartingFiler = true
}
*filerOptions.master = *serverPublicIp + ":" + strconv.Itoa(*masterPort)
if *filerOptions.defaultReplicaPlacement == "" {

View file

@ -47,6 +47,7 @@ func NewRaftServer(r *mux.Router, peers []string, httpAddr string, dataDir strin
var err error
transporter := raft.NewHTTPTransporter("/cluster", 0)
transporter.Transport.MaxIdleConnsPerHost = 1024
glog.V(1).Infof("Starting RaftServer with IP:%v:", httpAddr)
// Clear old cluster configurations if peers are set
if len(s.peers) > 0 {