我当地的Neo4j有很多交易日志data/graph.db:
251M 3 Sep 16:44 neostore.transaction.db.0
255M 3 Sep 20:01 neostore.transaction.db.1
255M 3 Sep 23:20 neostore.transaction.db.2
251M 4 Sep 19:34 neostore.transaction.db.3
250M 4 Sep 22:16 neostore.transaction.db.4
134M 5 Sep 05:02 neostore.transaction.db.5
16B 5 Sep 09:57 neostore.transaction.db.6
16B 7 Sep 16:44 neostore.transaction.db.7
Run Code Online (Sandbox Code Playgroud)
我正在备份graph.db文件夹(我已经停止了neo4j实例)以便在另一个非现场实例中重新加载,因此减少文件夹大小会很好.
neostore.transaction.db.X文件是否已成功处理?逻辑日志在文档中引用,我认为这些文件是相同的文件:http: //neo4j.com/docs/stable/configuration-logical-logs.html
在conf/neo4j.properties我已经改变了选项keep_logical_logs来100M size:
# Keep logical logs, helps debugging but uses more disk space, enabled for
# legacy reasons To limit space needed to store historical logs use values such
# as: "7 days" or "100M size" instead of "true".
keep_logical_logs=100M size
Run Code Online (Sandbox Code Playgroud)
并重新启动neo4j,但它没有删除任何旧的日志文件.当neo4j停止时,我可以手动执行此操作吗?或者是否需要所有这些文件?我停止了neo4j,备份了graph.db目录,删除了所有栏neostore.transaction.db.7并再次启动了neo4j.它看起来很开心但......
谢谢!
Mic*_*ech 14
如果您的数据库状况良好,您可以删除所有neostore.transaction.db.x文件,但我建议您备份它们.
更新:
在neo4j 3.x中,配置已更改为:
dbms.tx_log.rotation.retention_policy=<true/false>
dbms.tx_log.rotation.retention_policy=<amount> <type>
Run Code Online (Sandbox Code Playgroud)
有关详细信息,请参阅https://neo4j.com/docs/operations-manual/current/configuration/transaction-logs/
| 归档时间: |
|
| 查看次数: |
6284 次 |
| 最近记录: |