当前位置: 首页 > 工具软件 > cl-neo4j > 使用案例 >

Neo4j from community 4.2 to enterprize 4.2

白腾
2023-12-01

目录

 

内文

一、目标:

二、输入:

三、执行:

四、输出:

五、Reference:


内文

一、目标:

从Community升级到enterprize版本 

二、输入:

bin/neo4j-admin dump --database=source --to=target_directory

dump file size : 12GB

 

三、执行:

  1. for 3 core enterprize system

  2. configure conf/neo4j.conf ⇒ for 3 instance

    1. dbms.mode=CORE

    2. causal_clustering.initial_discovery_members=localhost:5000,localhost:5001,localhost:5002

    3. memory setup check ⇒ neo4j-admin memrec

    4. maxfiles limit 65536 

  3. startup neo4j enterprize for first time

  4. setup neo4j password

  5. shutdown neo4j enterprize

  6. load database from dump file ⇒ for 3 instance

    bin/neo4j-admin load --from=/source_path/db.dump --database=target_database
  7. startup neo4j enterprize

  8. :sysinfo ⇒ check leader & follows

  9. create database db

    1. 必须在leader那台主机上才能create database

    2. check logs/neo4j.log,在follows应会有以下讯息

    3. 2021-06-08 16:17:02.307+0000 INFO Started downloading snapshot for database 'target_database'...

  10. neo4j enterprize 4.2在同步上似乎不是非常稳定,试做了二次;第一次时只有二台成功的完成了同步,试着将第三台未同步之db删除,系统会自动启动同步;第二次试做时,在不到几分钟时间就顺利完成同步

四、输出:

- 2021-06-09 03:50:35. 800+0000 INFO Started downloading snapshot for database 'db'...

- 2021-06-09 03:51:07.878+0000 INFO Download of snapshot for database db complete.


 

五、Reference:

https://neo4j.com/docs /operations-manual/current/tutorial/local-causal-cluster/#tutorial-local-cluster-configure-cores

https://neo4j.com/developer/kb/comparing-ha-vs-causal-clusters/

https:/ /neo4j.com/docs/operations-manual/current/tools/neo4j-admin-memrec/

https://neo4j.com/docs/operations-manual/current/backup-restore/offline-backup/

https://neo4j .com/docs/operations-manual/current/backup-restore/restore-dump/

 类似资料:

相关阅读

相关文章

相关问答