简体   繁体   English

从客户端获取Redis Azure缓存的最大内存

[英]Get maxmemory of redis azure cache from client

We are using Azure Redis Cache and we need to monitor the state of it. 我们正在使用Azure Redis缓存,我们需要监视它的状态。 One of thing we need is information about maximum memory. 我们需要的一件事是有关最大内存的信息。 Currently, we enter the information manually, however we want to avoid it in future. 目前,我们手动输入信息,但是我们希望以后不再使用。 Standard command used for this purpose config get maxmemory is disabled in Azure. 在Azure中禁用了用于此目的config get maxmemory标准命令。 For completeness, we are using StackExchange.Redis as a client. 为了完整起见,我们使用StackExchange.Redis作为客户端。

Any idea, how to get the information? 任何想法,如何获取信息? Also, why is the get version of command disabled? 另外,为什么禁用命令的获取版本?

There is currently no way to get the maxmemory setting. 当前无法获取最大内存设置。 The "config" command is blocked for a few reasons. 由于某些原因,“ config”命令被阻止。 One is that setting certain config settings could impact the stability of our service. 一是设置某些配置设置可能会影响我们服务的稳定性。 Another is that any changes to config would be lost if the server instance was restarted. 另一个是如果重新启动服务器实例,对配置的任何更改都将丢失。 We are looking into ways to enable "config get" but keep "config set" blocked. 我们正在研究启用“ config get”但保持“ config set”被阻止的方法。

Here are the current values for maxmemory for each size cache offering: 以下是每种大小缓存产品的maxmemory的当前值:

Name      Size         maxmemory
C0      250 MB       285,000,000
C1      1   GB     1,100,000,000
C2      2.5 GB     2,600,000,000
C3      6   GB     6,100,000,000
C4      13  GB    13,100,000,000
C5      26  GB    26,200,000,000
C6      53  GB    53,300,000,000

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

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