Make pserver able to get server index without etcd (decouple pserver with etcd)
The pserver need to have server index for saving model on the distributed file system. The server index comes from etcd if etcd is used, or user can manually specify them. So we need pserver.NewService() to take index as an argument. Since index could come from etcd, it would be strange if pserver takes an index as argument, at the same time get the index from etcd. so we will need to decouple pserver with etcd.
Showing
go/pserver/etcd_client.go
0 → 100644
想要评论请 注册 或 登录