Skip to content

Commit

Permalink
Add sworker v1.1.2 version description and upgrade guide to the 'sWor…
Browse files Browse the repository at this point in the history
…ker Version' page
  • Loading branch information
wuhaixian1984 committed Apr 25, 2024
1 parent 041258d commit d53ddf2
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 9 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 42 additions & 3 deletions packages/page-sworkerVersion/src/md/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Q: What versions are currently available?
- <a href="https://github.com/crustio/crust-sworker/releases/tag/v1.0.0" target="_blank" >V1.0.0 : First Version (0xe6f4e6ab58d6ba4ba2f684527354156c009e4969066427ce18735422180b38f4)</a>
- <a href="https://github.com/crustio/crust-sworker/releases/tag/v1.1.0" target="_blank" >V1.1.0 : Support Metaverse (0xff2c145fd797e1aef56b47a91adf3d3294c433bb29b035b3020d04a76200da0a)</a>
- <a href="https://github.com/crustio/crust-sworker/releases/tag/v1.1.1" target="_blank" >V1.1.1 : Protect Diskdrop (0xa61ea2065a26a3f9f1e45ad02d8b2965c377b85ba409f6de7185c485d36dc503)</a>
- <a href="https://github.com/crustio/crust-sworker/releases/tag/v1.1.2" target="_blank" >V1.1.2 : Fix Bugs (0x72041ba321cb982168beab2b3994f8b0b83a54e6dafaa95b444a3c273b490fb1)</a>


# **Nodes**
Expand All @@ -28,10 +29,14 @@ Q: What versions are currently available?

# **Recommended version**

<text style="color: red">V1.1.1 : Protect Diskdrop (0xa61ea2065a26a3f9f1e45ad02d8b2965c377b85ba409f6de7185c485d36dc503)</text>
<text style="color: red">V1.1.2 : Fix Bugs (0x72041ba321cb982168beab2b3994f8b0b83a54e6dafaa95b444a3c273b490fb1)</text>

# **2 Upgrade guide V1.0.0 -> V1.1.1**
# **Upgrade Guides**
- [V1.0.0->V1.1.1](#v100tov111)
- [V1.1.0->V1.1.1](#v110tov111)
- [V1.1.0/V1.1.1->V1.1.2](#v111tov112)

# **2 Upgrade guide V1.0.0 -> V1.1.1** <a id="v100tov111"></a>
## **2.1 Time**

Please perform the upgrade operation as soon as possible in the time between 0%-60% of each era to avoid the loss of an era's revenue caused by this upgrade. (Note: Upgrading at other times has a 50% probability of losing one era's computing power and income)
Expand Down Expand Up @@ -81,7 +86,7 @@ The upgrade process is a background process, which takes time ranging from 1000s

![sworker_version](../assets/version_v1.1.1_en.png)

# **3 Upgrade guide V1.1.0 -> V1.1.1**
# **3 Upgrade guide V1.1.0 -> V1.1.1** <a id="v110tov111"></a>

## **3.1 Steps**

Expand Down Expand Up @@ -114,3 +119,37 @@ The upgrade process is a background process, which takes time ranging from 1000s
<br>

![sworker_version](../assets/version_v1.1.1_en.png)

# **4 Upgrade guide V1.1.0/V1.1.1 -> V1.1.2** <a id="v111tov112"></a>

## **4.1 Steps**

### **4.1.1 Check sworker sending work report successfully**
Make sure that the sworker sent the work report successfully in the past hours. If not, please fix the error first before doing the upgrade steps.

Use the following command to check whether the workload is reported successfully

<div style="background: black; font-size: 18px; font-weight:bold; color: white">sudo crust logs --tail 10 sworker
</div>
<br>

![workreport_status](../assets/workreport_status.png)

### **4.1.2 sWorker Upgrade**
The upgrade process is a background process, which takes time ranging from 1000s to 10000s. <text style="color: red">**It is strongly recommended to execute the upgrade command manually**</text> to avoid unnecessary errors. If the upgrade is abnormal, <text style="color: red">**do not restart the sworker service, which will cause data loss**</text>.
<br>
<div style="background: black; font-size: 18px; font-weight:bold; color: white">nohup sudo crust tools sworker-ab-upgrade 72041ba321cb982168beab2b3994f8b0b83a54e6dafaa95b444a3c273b490fb1 > upgrade.log 2>&1 &</div>
<br>

## **4.2 Upgrade status detection**
<br>
<div style="background: black; font-size: 18px; font-weight:bold; color: white">tail 100 upgrade.log -f</div>
<br>

![sworker_version](../assets/upgrade_status.png)

<div style="background: black; font-size: 18px; font-weight:bold; color: white">sudo crust version
</div>
<br>

![sworker_version](../assets/version_v1.1.2_en.png)
46 changes: 43 additions & 3 deletions packages/page-sworkerVersion/src/md/basic_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,22 @@
- <a href="https://github.com/crustio/crust-sworker/releases/tag/v1.0.0" target="_blank" >V1.0.0 : First Version (0xe6f4e6ab58d6ba4ba2f684527354156c009e4969066427ce18735422180b38f4)</a>
- <a href="https://github.com/crustio/crust-sworker/releases/tag/v1.1.0" target="_blank" >V1.1.0 : Support Metaverse (0xff2c145fd797e1aef56b47a91adf3d3294c433bb29b035b3020d04a76200da0a)</a>
- <a href="https://github.com/crustio/crust-sworker/releases/tag/v1.1.1" target="_blank" >V1.1.1 : Protect Diskdrop (0xa61ea2065a26a3f9f1e45ad02d8b2965c377b85ba409f6de7185c485d36dc503)</a>
- <a href="https://github.com/crustio/crust-sworker/releases/tag/v1.1.2" target="_blank" >V1.1.2 : Fix Bugs (0x72041ba321cb982168beab2b3994f8b0b83a54e6dafaa95b444a3c273b490fb1)</a>

# **升级对象**

<text style="color: red">工作量上报正常的Member 节点,Isolation 节点</text>

# **推荐版本**

<text style="color: red">V1.1.1 : Protect Diskdrop (0xa61ea2065a26a3f9f1e45ad02d8b2965c377b85ba409f6de7185c485d36dc503)</text>
<text style="color: red">V1.1.2 : Fix Bugs (0x72041ba321cb982168beab2b3994f8b0b83a54e6dafaa95b444a3c273b490fb1)</text>

# **2 升级指南 V1.0.0 -> V1.1.1**
# **Upgrade Guides**
- [V1.0.0->V1.1.1](#v100tov111)
- [V1.1.0->V1.1.1](#v110tov111)
- [V1.1.0/V1.1.1->V1.1.2](#v111tov112)

# **2 升级指南 V1.0.0 -> V1.1.1** <a id="v100tov111"></a>

## **2.1 升级时间**

Expand Down Expand Up @@ -84,7 +90,7 @@

![sworker_version](../assets/version_v1.1.1_zh.png)

# **3 升级指南 V1.1.0 -> V1.1.1**
# **3 升级指南 V1.1.0 -> V1.1.1** <a id="v110tov111"></a>

## **3.1 升级步骤**

Expand Down Expand Up @@ -118,3 +124,37 @@

![sworker_version](../assets/version_v1.1.1_zh.png)

# **4 升级指南 V1.1.0/V1.1.1 -> V1.1.2** <a id="v111tov112"></a>

## **4.1 升级步骤**

### **4.1.1 确认sworker上报工作量正常**
通过sworker日志文件来确认近期工作量处于正常上报状态。如不正常,请优先修复后再进行升级操作。
通过命令查询工作量是否上报成功
<br>
<div style="background: black; font-size: 18px; font-weight:bold; color: white">sudo crust logs --tail 100 sworker</div>
<br>

![workreport_status](../assets/workreport_status_zh.png)

### **4.1.2 sWorker升级**
<br>

升级过程是一个后台进程,耗时在100s-10000s不等,<text style="color: red">**强烈建议手动执行升级命令**</text>,避免出现不必要的错误,如果升级出现异常,<text style="color: red">**切记不能reload sworker服务,以防数据丢失**</text>。
<br>
<div style="background: black; font-size: 18px; font-weight:bold; color: white">nohup sudo crust tools sworker-ab-upgrade 72041ba321cb982168beab2b3994f8b0b83a54e6dafaa95b444a3c273b490fb1 > upgrade.log 2>&1 &</div>
<br>

## **4.2 升级状态检测**
<br>
<div style="background: black; font-size: 18px; font-weight:bold; color: white">tail 100 upgrade.log -f</div>
<br>

![upgrade_status](../assets/upgrade_status_zh.png)

<div style="background: black; font-size: 18px; font-weight:bold; color: white">sudo crust version
</div>
<br>

![sworker_version](../assets/version_v1.1.2_zh.png)

Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,22 @@ interface AddressVersionState {
export const versionsRecord: Record<string, string> = {
'0xe6f4e6ab58d6ba4ba2f684527354156c009e4969066427ce18735422180b38f4': 'V1.0.0 : First Version',
'0xff2c145fd797e1aef56b47a91adf3d3294c433bb29b035b3020d04a76200da0a': 'V1.1.0 : Support Metaverse',
'0xa61ea2065a26a3f9f1e45ad02d8b2965c377b85ba409f6de7185c485d36dc503': 'V1.1.1 : Protect Diskdrop'
'0xa61ea2065a26a3f9f1e45ad02d8b2965c377b85ba409f6de7185c485d36dc503': 'V1.1.1 : Protect Diskdrop',
'0x72041ba321cb982168beab2b3994f8b0b83a54e6dafaa95b444a3c273b490fb1': 'V1.1.2 : Fix Bugs'
};

export const versionsStartBlockRecord: Record<string, number> = {
'0xe6f4e6ab58d6ba4ba2f684527354156c009e4969066427ce18735422180b38f4': 490089,
'0xff2c145fd797e1aef56b47a91adf3d3294c433bb29b035b3020d04a76200da0a': 1382305,
'0xa61ea2065a26a3f9f1e45ad02d8b2965c377b85ba409f6de7185c485d36dc503': 2143559
'0xa61ea2065a26a3f9f1e45ad02d8b2965c377b85ba409f6de7185c485d36dc503': 2143559,
'0x72041ba321cb982168beab2b3994f8b0b83a54e6dafaa95b444a3c273b490fb1': 14391273
};

export const versionsReleaseRecord: Record<string, string> = {
'0xe6f4e6ab58d6ba4ba2f684527354156c009e4969066427ce18735422180b38f4': 'https://github.com/crustio/crust-sworker/releases/tag/v1.0.0',
'0xff2c145fd797e1aef56b47a91adf3d3294c433bb29b035b3020d04a76200da0a': 'https://github.com/crustio/crust-sworker/releases/tag/v1.1.0',
'0xa61ea2065a26a3f9f1e45ad02d8b2965c377b85ba409f6de7185c485d36dc503': 'https://github.com/crustio/crust-sworker/releases/tag/v1.1.1'
'0xa61ea2065a26a3f9f1e45ad02d8b2965c377b85ba409f6de7185c485d36dc503': 'https://github.com/crustio/crust-sworker/releases/tag/v1.1.1',
'0x72041ba321cb982168beab2b3994f8b0b83a54e6dafaa95b444a3c273b490fb1': 'https://github.com/crustio/crust-sworker/releases/tag/v1.1.2'
};

function VersionState ({ address, className = '', current, isLoading: summaryLoading, pkInfos, setMessage, setStatus, setStatusOpen }: Props): React.ReactElement<Props> {
Expand Down

0 comments on commit d53ddf2

Please sign in to comment.