在数据库重启时保留 Neo4j pagecache
从 Neo4j 3.4 版本开始,由于 PR 10957 的引入,并且当使用 Neo4j Enterprise 版本时,Neo4j pagecache 将在数据库重启时得到保留,因此可能不再需要预热 pagecache。
由于此 PR 的引入,每 60 秒我们将记录 Neo4j pagecache 中的页面,并将这些数据存储在 graph.db/profile
中。此目录的内容类似于
$ ls -al
total 80
drwxrwxr-x 2 neo4j neo4j 4096 Apr 18 12:12 .
drwxrwxr-x 6 neo4j neo4j 4096 Apr 18 12:06 ..
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.counts.db.a.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 18 12:11 neostore.counts.db.b.cacheprof
-rw-rw-r-- 1 neo4j neo4j 24 Apr 19 08:31 neostore.labelscanstore.db.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.labeltokenstore.db.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.labeltokenstore.db.names.cacheprof
-rw-rw-r-- 1 neo4j neo4j 28 Apr 19 08:31 neostore.nodestore.db.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.nodestore.db.labels.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.propertystore.db.arrays.cacheprof
-rw-rw-r-- 1 neo4j neo4j 29 Apr 19 08:31 neostore.propertystore.db.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.propertystore.db.index.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.propertystore.db.index.keys.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.propertystore.db.strings.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.relationshipgroupstore.db.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.relationshipstore.db.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.relationshiptypestore.db.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.relationshiptypestore.db.names.cacheprof
-rw-rw-r-- 1 neo4j neo4j 21 Apr 19 08:31 neostore.schemastore.db.cacheprof
由于每个文件代表给定文件中哪些页面在内存中的 gzip 压缩位图(即,每个 8 KiB 页面由一位表示),我们预计上述文件大小将保持相对较小。
此外,graph.db/profiles
将包含在备份中,因此在恢复和 Neo4j 启动时,pagecache 将根据备份时的 pagecache 状态重新加载。
此页面有帮助吗?