缓存可串行性:减少边缘事务中的不一致性
Cache Serializability: Reducing Inconsistency in Edge Transactions
摘要:
只读缓存广泛用于云基础设施中,以减少访问延迟和后端数据库上的负载。运营商认为相干缓存在真正的大规模上是不切实际的,并且许多面向客户端的缓存以异步方式通过尽力而为的管道进行更新。支持缓存一致性的现有解决方案不适用于此场景,因为它们需要在每个缓存事务上往返数据库。现有的非相干缓存技术对事务数据访问是不敏感的,即使后端数据库支持事务。我们提出了T-Cache,一种新的只读事务缓存策略,其中不一致是可以容忍的(不会导致安全违规),但不可取的(有成本)。T-Cache提高了缓存一致性,尽管缓存和数据库之间的通信是异步和不可靠的。我们定义了高速缓存串行化,串行化的一个变种,是不连贯的高速缓存,并证明了无限的资源T-Cache实现了这个新的规范。在资源有限的情况下,T-Cache允许系统管理员在性能和一致性之间进行权衡。我们的评估表明,T-Cache检测到许多不一致,只有名义上的开销。我们使用合成的工作负载来证明T-Cache的效率时,数据访问是集群和自适应的反应工作负载的变化。对于基于真实拓扑的工作负载,T-Cache可以检测到43-70%的不一致性,并将一致事务的比率提高33- 58%。
英文摘要:
Read-only caches are widely used in cloud infrastructures to reduce access latency and load on backend databases. Operators view coherent caches as impractical at genuinely large scale and many client-facing caches are updated in an asynchronous manner with best-effort pipelines. Existing solutions that support cache consistency are inapplicable to this scenario since they require a round trip to the database on every cache transaction. Existing incoherent cache technologies are oblivious to transactional data access, even if the backend database supports transactions. We propose T-Cache, a novel caching policy for read-only transactions in which inconsistency is tolerable (won't cause safety violations) but undesirable (has a cost). T-Cache improves cache consistency despite asynchronous and unreliable communication between the cache and the database. We define cache-serializability, a variant of serializability that is suitable for incoherent caches, and prove that with unbounded resources T-Cache implements this new specification. With limited resources, T-Cache allows the system manager to choose a trade-off between performance and consistency. Our evaluation shows that T-Cache detects many inconsistencies with only nominal overhead. We use synthetic workloads to demonstrate the efficacy of T-Cache when data accesses are clustered and its adaptive reaction to workload changes. With workloads based on the real-world topologies, T-Cache detects 43-70% of the inconsistencies and increases the rate of consistent transactions by 33-58%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。