Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions xdl/ps-plus/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ps-plus使用
# ps-plus使用

ps-plus是底层的ps组件,可单独介入到其他的业务系统中。简单实用如下:

##编译
## 编译

```
git clone --recursive https://github.com/alibaba/x-deeplearning.git
Expand All @@ -13,30 +13,37 @@ cmake .. -DTF_BACKEND=1
make -j8
```

##运行Demo
## 运行Demo

make完成后,在xdl/build/ps-plus目录下,会生成ps-plus相关的lib以及test binary。目前提供一组Demo,可使用下面命令启动:

```

1. 首先在本地创建一个zk节点,scheduler需要。

```
apt-get install zookeeper
/usr/share/zookeeper/bin/zkServer.sh start
/usr/share/zookeeper/bin/zkCli.sh create /scheduler "scheduler"
/usr/share/zookeeper/bin/zkCli.sh get /scheduler
```

```

2. 启动scheduler

```
./ps -r scheduler -sp zfs://localhost:2181/scheduler -cp . -bc false -p 8801 -sn 1 -snet 10000 -smem 10000 -sqps 100000
```

```

3. 启动一个worker

```
./ps -r server -p 8802 -si 0 -sp zfs://localhost:2181/scheduler -bc false
```


4. 启动一个client
```
4. 启动一个clie nt
./tool -v val -sn 1 -sp zfs://localhost:2181/scheduler -a testxxx
```

Expand Down