A Persistent Log Buffer Technique using Non-volatile Memory for In-Memory Key-Value Databases 


Vol. 45,  No. 11, pp. 1193-1202, Nov.  2018
10.5626/JOK.2018.45.11.1193


PDF

  Abstract

Redis, an In-Memory Key-Value Database, is widely used in services that require real time data processing and storage. Since main memory is volatile, Redis has a problem of data loss if the system is terminated abnormally. To prevent this problem, Redis stores logs on disk, preventing data loss by restoring logs when the system is terminated. The AOF recovery mechanism, a method of appending requested commands in disk as a log format, operates with the “everysec” policy that writes logs every second, and the “always” policy that writes a log every time a command is requested. The “everysec” policy does not degrade performance of Redis, but data loss can occur if the system is terminated abnormally within one second. Conversely, the “always” policy does not cause data loss, but it requires disk operation for every command, causing performance degradation. We propose a system model that constructs AOF buffer in non-volatile memory and stores logs in the buffer, which are not synchronized to disk in the “everysec” policy. The proposed model prevents data loss and has approximately 100 times better performance than the “always” policy.


  Statistics
Cumulative Counts from November, 2022
Multiple requests among the same browser session are counted as one view. If you mouse over a chart, the values of data points will be shown.


  Cite this article

[IEEE Style]

D. Kim, W. G. Choi, H. Sung, J. Lee, S. Park, "A Persistent Log Buffer Technique using Non-volatile Memory for In-Memory Key-Value Databases," Journal of KIISE, JOK, vol. 45, no. 11, pp. 1193-1202, 2018. DOI: 10.5626/JOK.2018.45.11.1193.


[ACM Style]

Doyoung Kim, Won Gi Choi, Hanseung Sung, Jihwan Lee, and Sanghyun Park. 2018. A Persistent Log Buffer Technique using Non-volatile Memory for In-Memory Key-Value Databases. Journal of KIISE, JOK, 45, 11, (2018), 1193-1202. DOI: 10.5626/JOK.2018.45.11.1193.


[KCI Style]

김도영, 최원기, 성한승, 이지환, 박상현, "인-메모리 키-값 데이터베이스를 위한 비 휘발성 메모리 기반 영속적 로그 버퍼 기법," 한국정보과학회 논문지, 제45권, 제11호, 1193~1202쪽, 2018. DOI: 10.5626/JOK.2018.45.11.1193.


[Endnote/Zotero/Mendeley (RIS)]  Download


[BibTeX]  Download



Search




Journal of KIISE

  • ISSN : 2383-630X(Print)
  • ISSN : 2383-6296(Electronic)
  • KCI Accredited Journal

Editorial Office

  • Tel. +82-2-588-9240
  • Fax. +82-2-521-1352
  • E-mail. chwoo@kiise.or.kr