节点文献

基于内存的分布式缓存系统设计

The Design of a Distributed Cache System Based on Memory

【作者】 陈涛

【导师】 黄光明;

【作者基本信息】 华中师范大学 , 通信与信息系统, 2012, 硕士

【摘要】 随着互联网WEB2.0时代的到来,信息传播的广度和深度都达到了一个新的高度。传统的网站都是用数据库来进行数据的存储、检索和更新,但随着访问量的增加,将导致数据库服务器系统资源紧缺,查询操作响应变慢,网站用户体验变差。因此,开发缓存系统具有广泛的应用前景。本文根据应用中一部分检索数据库的操作具有逻辑相同,请求频繁的特点,结合内存读写速率快的特点,提出并设计了一款分布式内存缓存系统。该系统采用物理内存作为数据存储介质,使用客户端/服务器的软件结构,通过在客户端应用分布式哈希算法实现了分布式存储的功能,并开发了PHP及Python的编程接口,给应用开发提供了一套可供简单调用的高性能存储服务。本文主要介绍了分布式内存缓存系统的体系结构以及各个层次的具体实现。本设计主要分为以下四个方面的内容:在数据库检索方案性能有限,迫切需要提高网站浏览体验的前提下,调研并提出了分布式内存缓存系统的完整设计方案;介绍了作为系统存储单元的内存缓存系统的设计及主要功能模块;通过采用哈希算法的客户端来将请求分散到不同的内存缓存节点上,达到分布式的效果;最后根据前台开发的特点,实现了PHP及Python的调用接口。通过将缓存系统读性能和数据库检索的压力测试结果进行对比,表明该系统具有较好的读性能和实用性。

【Abstract】 With the advent of WEB2.0era in the Internet revolution, the breadth and depth of information dissemination have reached a new height. Traditional sites use database system for data storage. But with the increase of the visits, the user experience becomes poor. Therefore, the development of the cache system has a wide range of prospect in application.According to some database search operations have the features of the same logic and frequent request, combined with the memory’s characteristics of fast access rate, the thesis proposes and designs a distributed memory cache system. The system uses physical memory as storage, adopts the client and server software architecture, implements the distributed storage functionality by using hash algorithm in the client and develops a high-performance storage services by the PHP and Python programming interface for application developers.The thesis describes the architecture of the distributed memory cache system, and each level of the system. The design is mainly divided into the following four aspects: because of the limited performance of the database system and an urgent need to improve the website’s user experience, research and propose a complete design of the distributed memory cache system; introduce the design of the memory based cache system as the system’s storage unit; the request by the client by using a hashing algorithm, make the request to the different memory based cache nodes; Finally, according to the characteristics of the application development, implement the application programming interface of PHP and Python.By comparing the performance of the cache system with database by running pressure test, indicate that the system has better read performance and practicality.

【关键词】 分布式内存缓存系统
【Key words】 DistributedMemorythe Cache System
  • 【分类号】TP333;TP311.13
  • 【被引频次】2
  • 【下载频次】182
节点文献中: