目录
从Community升级到enterprize版本
bin/neo4j-admin dump --database=source --to=target_directory
dump file size : 12GB
for 3 core enterprize system
configure conf/neo4j.conf ⇒ for 3 instance
dbms.mode=CORE
causal_clustering.initial_discovery_members=localhost:5000,localhost:5001,localhost:5002
memory setup check ⇒ neo4j-admin memrec
maxfiles limit 65536
startup neo4j enterprize for first time
setup neo4j password
shutdown neo4j enterprize
load database from dump file ⇒ for 3 instance
- bin/neo4j-admin load --from=/source_path/db.dump --database=target_databasestartup neo4j enterprize
:sysinfo ⇒ check leader & follows
create database db
必须在leader那台主机上才能create database
check logs/neo4j.log,在follows应会有以下讯息
2021-06-08 16:17:02.307+0000 INFO Started downloading snapshot for database 'target_database'...
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.
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/