我可以为不同的应用程序分离缓存吗? [英] Can I seperate caching for different apps?

查看:91
本文介绍了我可以为不同的应用程序分离缓存吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的公司有3个网站,我正在考虑使用缓存。我对Velocity很新,所以也许我想问的一些问题很简单。

My company has 3 web sites, wich I am thinking of using caching on. I am quite new to Velocity, so maybe some questions I want to ask are quite simple.

1。在Web服务器上安装Velocity是一个好习惯吗?例如,一个站点在两个Web服务器上运行(win 2008)。如果我在两个Web服务器上安装Velocity使其成为一个集群,这样做是否是一个好习惯?

1. Is it a good practice to install Velocity on the web server? For example, one site is running on two web servers (win 2008). If I install Velocity on both web server to make it a cluster, is it a good practice to do so?

2。我可以为每个Web应用程序设置一个硬限制,允许每个允许的缓存数量吗?

2. Can I set up a hard limit for each web application on how much cache each allowed?

3。如果我有一些东西,例如usersessiondetails存储在缓存中,我需要每天刷新到数据库(例如在下午6点之后),实现该目的的bset方式是什么?

3. If I have things for example usersessiondetails stored in cache and I need to flush out to database every day (e.g. after 6pm), what is the bset way achieving that?

4。如果我有两个节点,但不知何故一个节点关闭(例如服务停机或服务器重启等),我想我不会丢失所有缓存的东西,因为它是自动复制的?或者我必须自己设置复制?

4. If I have two nodes but somehow one node is down (e.g. service is down or server restarted etc), I think I will not lose all the cached things as it is replicated automatically? Or I have to set up replication myself?

5。是否有关于设定速度的最佳做法的文件?

5. Is there a document on best practices in setting up velocity?

非常感谢

Jerry

 

推荐答案

1。在Web服务器上安装Velocity是一个好习惯吗?例如,一个站点在两个Web服务器上运行(win 2008)。如果我在两个Web服务器上安装Velocity使其成为一个集群,这样做是否是一个好习惯?

1. Is it a good practice to install Velocity on the web server? For example, one site is running on two web servers (win 2008). If I install Velocity on both web server to make it a cluster, is it a good practice to do so?

- 不,缓存服务应该在他们的专用盒子上运行。

- No, Cache service should be running on their dedicated boxes.

2。我可以为每个Web应用程序设置一个硬限制,允许每个允许的缓存量吗?

2. Can I set up a hard limit for each web application on how much cache each allowed?

  - 否。您可以明智地执行应用程序。您必须计算所有应用程序的要求才能进行容量规划。

 - No. You can do the application wise. You will have to calculate the requirement of all the application togather for capacity planning.

3。如果我有一些东西,例如usersessiondetails存储在缓存中,我需要每天刷新到数据库(例如在下午6点之后),实现这个的bset方式是什么?

3. If I have things for example usersessiondetails stored in cache and I need to flush out to database every day (e.g. after 6pm), what is the bset way achieving that?

- 没有冲洗当前版本中提供的功能,您将编写代码将对象写入DB。

- There is not flush feature available in the current release, you will have write code to write objects to DB.

4。如果我有两个节点,但不知何故一个节点关闭(例如服务停机或服务器重启等),我想我不会丢失所有缓存的东西,因为它是自动复制的?或者我必须自己设置复制?

4. If I have two nodes but somehow one node is down (e.g. service is down or server restarted etc), I think I will not lose all the cached things as it is replicated automatically? Or I have to set up replication myself?

- 有缓存的HA功能,提供1 + 1复制。如果您只丢失了一份副本,那么您的数据仍然是安全的。

- There is HA feature for caching, that provide 1+1 replication. If you only lose one copy, your data will still be safe.

5。是否有关于设置速度的最佳做法的文件?

5. Is there a document on best practices in setting up velocity?

  - http://msdn.microsoft.com/en-us/library/gg186017.aspx

 - http://msdn.microsoft.com/en-us/library/gg186017.aspx

http://msdn.microsoft.com/en-us/library/ff383731.aspx

 

 

 


这篇关于我可以为不同的应用程序分离缓存吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆