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 cluster img #144

Merged
merged 2 commits into from
Jul 21, 2021
Merged
Show file tree
Hide file tree
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
Binary file modified docs/.vuepress/public/venus-cluster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 18 additions & 4 deletions docs/guide/Using-venus-Shared-Modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ CentOS:
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm; sudo yum install -y git gcc bzr jq pkgconfig clang llvm mesa-libGL-devel opencl-headers ocl-icd ocl-icd-devel hwloc-devel
```

### Rust

Install [rustup](https://rustup.rs/).

```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

#### Go

To build venus, you need a working installation of [Go 1.16 or higher](https://golang.org/dl/).
Expand Down Expand Up @@ -213,9 +221,15 @@ $ cd venus-sealer
$ git checkout <RELEASE_TAG>
# make dependency
$ make deps
$ make
$ RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE="1" make
```

:::warning

Please make sure you use these flags `RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE="1"` building venus-sealer to get best performance out of your machine.

:::

:::tip

If you are using sealer for the 1st time, it may start to download proof parameters, which may take quite some time. If you already downloaded the proof params, use `TRUST_PARAMS=1` to suppress downloading. If you are located in China, follow the tips [here](https://venus.filecoin.io/Tips-Running-In-China.html) to speed up the process.
Expand All @@ -224,7 +238,7 @@ If you are using sealer for the 1st time, it may start to download proof paramet

### Initialize sealer with a new miner id

If you don't have a miner id yet, run the following command to initialize sealer.
If you don't have a miner id yet, run the following command to initialize sealer. Make sure you have some funds in your `<OWNER_ADDRESS>` to cover the gas fee needed for initing a new miner id, or init will fail.

```bash
$ nohup ./venus-sealer init \
Expand Down Expand Up @@ -273,7 +287,7 @@ It may take couple minutes before `init` command finishes.

### Initialize sealer with an existing miner id

If you already have a miner id, run the following command to initialize sealer.
If you already have a miner id, run the following command to initialize sealer. Make sure you have some funds in your `<OWNER_ADDRESS>` to cover the gas fee, or init will fail.

```bash
$ ./venus-sealer init \
Expand Down Expand Up @@ -364,4 +378,4 @@ GLOBAL OPTIONS:

## Questions?

Find us on [Slack](https://filecoinproject.slack.com/archives/CEHHJNJS3)!
Find us on [Slack](https://filecoinproject.slack.com/archives/CEHHJNJS3)!
22 changes: 18 additions & 4 deletions docs/zh/guide/Using-venus-Shared-Modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ CentOS:
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm; sudo yum install -y git gcc bzr jq pkgconfig clang llvm mesa-libGL-devel opencl-headers ocl-icd ocl-icd-devel hwloc-devel
```

### Rust

安装[rustup](https://rustup.rs/)。

```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

#### Go

构建venus,您需要安装[Go 1.16 或更高版本](https://golang.org/dl/)。
Expand Down Expand Up @@ -207,9 +215,15 @@ $ cd venus-sealer
$ git checkout <RELEASE_TAG>
# make dependency
$ make deps
$ make
$ RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE="1" make
```

:::warning

确保编译时使用`RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE="1"`以充分利用机器资源。

:::

:::tip

如果您是第一次运行sealer,它会开始下载证明参数,这可能需要相当长的时间。如果您确认已下载`proof params`,可使用`TRUST_PARAMS=1`避免重新下载。如果您位于中国,请按照提示[此处](../advanced/Tips-Running-In-China.md)加快流程。
Expand All @@ -218,7 +232,7 @@ $ make

### 创建新的miner-id来初始化sealer

如果您还没有miner-id,请运行以下命令来初始化sealer。
如果您还没有miner-id,请运行以下命令来初始化sealer。请确保`<OWNER_ADDRESS>`中有足够资金支付gasfee,否则`init`将失败。

```bash
$ nohup ./venus-sealer init \
Expand Down Expand Up @@ -267,7 +281,7 @@ $ nohup ./venus-sealer init \

### 使用现有的miner-id初始化sealer

如果您已经有miner-id,请运行以下命令来初始化sealer。
如果您已经有miner-id,请运行以下命令来初始化sealer。请确保`<OWNER_ADDRESS>`中有足够资金支付gasfee,否则`init`将失败。

```bash
$ ./venus-sealer init \
Expand Down Expand Up @@ -358,4 +372,4 @@ GLOBAL OPTIONS:

## 问题?

来[Slack](https://filecoinproject.slack.com/archives/CEHHJNJS3)上找我们吧!
来[Slack](https://filecoinproject.slack.com/archives/CEHHJNJS3)上找我们吧!