Browse > Article
http://dx.doi.org/10.5626/JCSE.2017.11.3.92

A Data-Consistency Scheme for the Distributed-Cache Storage of the Memcached System  

Liao, Jianwei (College of Computer and Information Science, Southwest University of China)
Peng, Xiaoning (College of Computer Science and Engineering, Huaihua University)
Publication Information
Journal of Computing Science and Engineering / v.11, no.3, 2017 , pp. 92-99 More about this Journal
Abstract
Memcached, commonly used to speed up the data access in big-data and Internet-web applications, is a system software of the distributed-cache mechanism. But it is subject to the severe challenge of the loss of recently uncommitted updates in the case where the Memcached servers crash due to some reason. Although the replica scheme and the disk-log-based replay mechanism have been proposed to overcome this problem, they generate either the overhead of the replica synchronization or the persistent-storage overhead that is caused by flushing related logs. This paper proposes a scheme of backing up the write requests (i.e., set and add) on the Memcached client side, to reduce the overhead resulting from the making of disk-log records or performing the replica consistency. If the Memcached server fails, a timestamp-based recovery mechanism is then introduced to replay the write requests (buffered by relevant clients), for regaining the lost-data updates on the rebooted Memcached server, thereby meeting the data-consistency requirement. More importantly, compared with the mechanism of logging the write requests to the persistent storage of the master server and the server-replication scheme, the newly proposed approach of backing up the logs on the client side can greatly decrease the time overhead by up to 116.8% when processing the write workloads.
Keywords
Memcached; Data consistency; Buffering logs on client; Overhead; Timestamp-based recovery;
Citations & Related Records
연도 인용수 순위
  • Reference
1 S. Ristov, Y. Weinsberg, D. Dolev, and T. Anker, "LogMemcached: an RDMA based continuous cache replication," in Proceedings of ACM Workshop on Kernel-Bypass Networks (KBNets'17), Los Angeles, CA, 2017, pp. 1-6.
2 P. Stuedi, A. Trivedi, and B. Metzler, "Wimpy nodes with 10GbE: leveraging one-sided operations in soft-RDMA to boost memcached," in Proceedings of the 2012 USENIX Annual Technical Conference (USENIX ATC'12), Boston, MA, 2012, pp. 347-353.
3 H. Zhang, M. Dong, and H. Chen, "Efficient and available in-memory KV-store with hybrid erasure coding and replication," in Proceedings of the 14th USENIX Conference on File and Storage Technologies (FAST'16), Santa Clara, CA, 2016, pp. 167-180.
4 S. Chu, "Memcachedb: the complete guide," 2008, http://memcachedb.org/memcachedb-guide-1.0.pdf.
5 S. Yao, D. Agrawal, and G. Chen, B. C. Ooi, and S. Wu, "Adaptive logging: optimizing logging and recovery costs in distributed in-memory databases," in Proceedings of the 2016 International Conference on Management of Data (SIGMOD), San Francisco, CA, 2016, pp. 1119-1134.
6 C. Mohan, D. J. Haderle, B. G. Lindsay, H. Pirahesh, and P. M. Schwarz. "ARIES: a transaction recovery method supporting fine-granularity locking and partial rollbacks using write-ahead logging," ACM Transactions on Database Systems (TODS), vol. 17, no. 1, pp. 94-162, 1992.   DOI
7 W. Zheng, S. Tu, E. Kohler, and B. Liskov, "Fast databases with fast durability and recovery through multicore parallelism," in Proceedings of the 11th USENIX Symposium on Operating Systems Design and Implementation (OSDI'14), Broomfield, CO, 2014, pp. 465-477.
8 Gfarm File System, https://sourceforge.net/projects/gfarm/.
9 S. Ghemawat, H. Gobioff, and S. T. Leung, "The Google file system," in Proceedings of the 19th ACM Symposium on Operating Systems Principles (SOSP), Bolton Landing, NY, 2003, pp. 29-43.
10 Redis: in-memory data structure store, https://redis.io/.
11 Seattle Conference on Scalability: YouTube Scalability, https://www.youtube.com/watch?v=ZW5_eEKEC28.
12 R. Nishtala, H. Fugal, and S. Grimm, M. Kwiatkowski, H. Lee, H. C. Li, et al., "Scaling memcache at Facebook," in Proceedings of 10th USENIX Conference on Networked Systems Design and Implementation, Lombard, IL, 2013, pp. 385-398.
13 Memcached, http://memcached.org/.
14 B. Fitzpatrick, "Distributed caching with memcached," Linux Journal, vol. 2004, no. 124, pp. 72-76, 2004.
15 P. Talaga and S. Chapin, "Reducing latency and network load using location-aware memcache architectures," in Web Information Systems and Technology. Cham: Springer International Publishing, 2012, pp. 53-69.
16 Twitter Engineering, "Memcached SPOF Mystery," 2010, https://blog.twitter.com/engineering/en_us/a/2010/memcachedspof-mystery.html.
17 A. Wiggins and J. Langston, "Enhancing the scalability of memcached," Intel Corporation, Technique Report, 2012.
18 H. Wada, A. Fekete, L. Zhao, K. Lee, and A. Liu, "Data consistency properties and the trade-offs in commercial cloud storage: the consumers' perspective," in Proceedings of 5th Biennial Conference on Innovative Data Systems Research (CIDR), Asilomar, CA, 2011, pp. 134-143.
19 Couchbase: NoSQL database, https://www.couchbase.com/.
20 Y. Lu, H. Sun, X. Wang, and X. Liu, "R-memcached: a consistent cache replication scheme with memcached," in Proceedings of the Middleware '14 Posters & Demos Session, Bordeaux, France, 2014, pp. 29-30.
21 repcached, http://repcached.lab.klab.org.