Memcached 与 Windows 和 .NET [英] Memcached with Windows and .NET

查看:26
本文介绍了Memcached 与 Windows 和 .NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人已经在 Windows 环境中实现了用于生产用途的 memcached?因为我读过很多博客,不建议在 Windows 中运行 memcached,特别是用于生产用途,例如 在 windows 上运行 memcached.

Is there anyone already implement memcached for production use in Windows environment? Because many blogs that I've read, it's not recommended to run memcached in Windows especially for production use, for example running memcached on windows.

还有一件事,哪个 memcached 客户端适合与 c# 和 .net 3.5 一起使用?我发现了许多替代方法,例如 Memcached Providers @ CodeplexBeitmemcachedmemcached provider @ Sourceforge

And one more thing, which memcached client that is good to use with c# and .net 3.5 ? I've found many alternate such as Memcached Providers @ Codeplex, Beitmemcached, and memcached provider @ Sourceforge

推荐答案

为什么需要在 windows 上运行 memcached?在生产环境中这是一件昂贵的事情.

Why do you need to run memcached on windows? It’s an expensive affair in a production environment.

如果您的代码需要在 Windows 环境中运行,请获取 Windows memcached 客户端并与基于 *nix 的 memcached 机器对话.

If your code needs to run in a Windows environment get a windows memcached client and talk to a *nix based memcached machine.

在 Server 2003 或 2008 上运行 memcached 的生产环境中,您将获得所有这些机器的许可证.Linux 将为您提供所有 OSS 优势.TCO 将随着 Windows 上的 memcached 线性上升

In a production environment running memcached on Server 2003 or 2008 would mean that you get licenses for all those boxes. Linux will offer you all the OSS benefits. TCO will rise linearly with memcached on Windows

我写这个答案已经过去了大约 1.5 年,从那时起很多事情都发生了变化.你必须注意,尤其是当像达斯汀这样的人发表评论时.
因此,这里是如何在运行的 Windows 上获取 memcached 的方法.从 Couchbase(以前称为 Northscale)下载适用于 windows 的 memcached.
通常,如果您计划在同一台生产机器上运行 memcached,您希望在有限的内存中启动它,即定义允许使用的最大内存 memcached.

It’s been around 1.5 years since I wrote this answer and lot of things have changed since. You’ve to take notice, especially when someone like Dustin comments.
So here’s how you can get memcached on windows running. Download memcached for windows from Couchbase (formerly Northscale).
Typically if you plan to run memcached on the same production machine you’d want to start it in limited memory, i.e. define the maximum memory memcached is allowed to use.

c:程序Filesmemcached>memcached.exe -m 128.

c:Program Filesmemcached>memcached.exe -m 128.

这里的 memcached 运行时最大使用量为 128 mb.您不希望 memcached 占用您网络服务器上的所有内存.

当您决定扩展 memcached时,您将需要考虑一下我之前所说的.此外,在键值组合中压缩您的值.Web 服务器通常消耗很少的 CPU (2-3%) 使用率,与 CPU 使用率相比,压缩为整个网络带来了很多价值.如果您太在意正常压缩,请尝试 LZO

The moment you decided to scale out memcached you’ll need to consider what I said earlier. Additionally compress your values in the key value combinations. Web servers typically consume very little CPU (2-3%) usage and compression brings in a lot of value to network throughout in comparison to the CPU usage. If you are too concerned about normal compression, try LZO

这篇关于Memcached 与 Windows 和 .NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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