简体   繁体   English

缓存集群部署拓扑

[英]Cache Cluster deployment topology

I'm going to deploy an in-memory cache cluster (current thinking Redis) for some public facing web workloads and was wondering where the cluster should live (deployment topology), two options IMO: 我将为一些面向公众的Web工作负载部署一个内存中的缓存群集(当前认为是Redis),并且想知道群集应该放在哪里(部署拓扑),这是IMO的两个选择:

  1. Sitting on the Web tier (which is horizontally scalable) 坐在Web层(可水平扩展)上
  2. Create a dedicated cache cluster behind the Web Tier and in-front of the DB Tier. 在Web层后面和DB层前面创建专用的缓存集群。

Background, application on Web and DB Tier running on Windows, so if I stick the cluster on the Web Tier then it needs to be supported on Windows (MSFT have a stable Redis port), if I go with the dedicated cache tier I was thinking of some lightweight Linux servers (HA cluster) meaning as the Web Tier horizontally scaled it used this cache cluster for its lookups eg reference data etc. 背景,Web上的应用程序和Windows上运行的DB Tier,因此,如果我将群集粘贴在Web Tier上,则需要在Windows上支持它(MSFT具有稳定的Redis端口),如果我使用的是专用的缓存层一些轻量级Linux服务器(HA集群)的意思是,随着Web层水平扩展,它使用此缓存集群进行查找,例如参考数据等。

Pros, cons thoughts, other option I'm missing? 优点,缺点,其他选择?

*Note, I don't have the luxury of utilising a cloud service provider "cache as a service", not an option unfortunately ... *请注意,我没有奢侈地利用云服务提供商的“缓存即服务”功能,不幸的是没有选择...

Cheers, 干杯,

Surprised at the lack of community support around Redis and caching in general. 对Redis周围缺乏社区支持和缓存感到惊讶。

To answer my question, I ended up going with a Linux (RHEL) master/slave Redis cache tier, opted for master/slave deployment topology giving me HA at the cache tier (as opposed to a Redis cache cluster). 为了回答我的问题,我最终使用了Linux(RHEL)主/从Redis缓存层,选择了主/从部署拓扑,使我在缓存层具有HA(与Redis缓存集群相对)。 Master gives me writes, master/slave allows for reads. 主人给我写,主人/奴隶允许读书。 Suits my needs as I will go to the DB on a cache miss, configured Redis to never persist to disk (in-memory only). 满足我的需求,因为我将在缓存未命中时进入数据库,将Redis配置为永不持久到磁盘(仅在内存中)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM