在 kubernetes 场景中,当软件说它受益于文件系统缓存的大量磁盘 space 时,它们指的是 PVC 吗?

In a kubernetes scenario, when software says it benefits from lots of disk space for filesystem cache, are they referring to PVCs?

MongoDB、ElasticSearch 和 SOLR 等应用程序都表示它们受益于空闲磁盘 space,因为它们依赖于文件系统缓存。

在 kubernetes 基础设施中,这是否意味着更大的 PVC 对他们有利?或者这是否意味着节点上更大的“临时存储”对他们有利?

链接:

MongoDB: https://docs.mongodb.com/manual/faq/storage/#to-what-size-should-i-set-the-wiredtiger-internal-cache-

SOLR: https://cwiki.apache.org/confluence/display/SOLR/SolrPerformanceProblems#SolrPerformanceProblems-OSDiskCache

弹性搜索:https://www.elastic.co/guide/en/elasticsearch/reference/current/preload-data-to-file-system-cache.html

谢谢!

磁盘缓存是指可用和使用的内存,因此根本不必考虑底层文件系统。据我所知,短暂或持久存储在这方面无关紧要。

The page cache 确保当前未使用的内存用于将文件系统中经常访问的部分保留在内存中。由于任何其他进程都不需要内存,因此它被用来加速通常最慢的内存——实际的磁盘。如果要解决查询时可以将整个数据库/索引保存在内存中而不是必须从磁盘读取,most/all 数据库的性能将大大提高。