Skip to content

Commit

Permalink
Update upgrade-nebula-graph-to-latest.md (#2412)
Browse files Browse the repository at this point in the history
  • Loading branch information
foesa-yang committed Dec 23, 2022
1 parent 2ec2859 commit 47e42e3
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

- 必须在原服务器上原地升级,不能修改原机器的 IP 地址、配置文件,不可更改集群拓扑。

- 硬盘空间要求:各机器硬盘剩余空间都需要是原数据目录的**二倍**。其中一倍空间用于容纳手动备份的数据,另一倍空间用于容纳复制到`dst_db_path`的 WAL,以及原有数据中新增的用于支持无 tag 点的 key。

- 已知会造成数据丢失的 4 种场景,和 alter schema 以及 default value 相关,参见 [github known issues](https://github.com/vesoft-inc/nebula-graph/issues/857)

- 数据目录不要使用软连接切换,避免失效。
Expand All @@ -30,12 +28,6 @@

## 升级影响

- 数据膨胀

NebulaGraph 3.x 版本扩展了原有的数据格式,每个点多出一个 key,所以升级后数据会占用更大的空间。

新增 key 的格式为: Type 字段(1 字节)+ Partition ID 字段(3 字节)+ VID(大小根据类型而定)。key 的 value 为空。多占用的空间可以根据点的数量和 VID 的数据类型计算。例如,数据集中有 1 亿个点,且 VID 为 INT64,则升级后这个 key 会占用 1 亿 * (1 + 3 + 8)= 12 亿字节,约等于 1.2 GB。

- 客户端兼容

升级后旧版本客户端将无法连接 NebulaGraph,需将所有客户端都升级到兼容 NebulaGraph {{nebula.release}} 的版本。
Expand Down

0 comments on commit 47e42e3

Please sign in to comment.