2013-07-02 46 views
0

在新建遗物配置(在这种情况下,上下文是Rails 3应用程序,其利用记忆快取),存在用下列标志的区段:什么是capture_memcache_keys标志在New Relic配置yml中做了什么?

# If you're interested in capturing memcache keys as though they 
# were SQL uncomment this flag. Note that this does increase 
# overhead slightly on every memcached call, and can have security 
# implications if your memcached keys are sensitive 
# capture_memcache_keys: true 

默认情况下,注释。我的描述并不是特别清楚(由于已经保留了几周的数据工作),并且两种尝试都没有显示出我可以辨别的差异。此标志是否能够捕获一般的内存缓存跟踪/捕获?或者它是否将SQL请求中的“memcache查询”包含在内?

我想跟踪memcache,当然,看看它是否正常运行,以什么速度等等。这个标志应该设置为true,通常,在这种情况下?

回答

2

您不需要启用capture_memcache_keys标志来捕获一般的memcache指标。如果找到memcache客户端,disable_memcache_instrumentation标志将自动默认为false(从而测量memcache度量标准)。如果需要,capture_memcache_keys标志基本上允许您使用附加选项来捕获SQL格式的唯一内存缓存键。

您可以在https://newrelic.com/docs/ruby/ruby-agent-configuration上找到有关New Relic Ruby代理配置的更多详细信息。

相关问题