Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/56.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 在New Relic配置yml中,capture_memcache_keys标志的具体作用是什么?_Sql_Ruby On Rails_Memcached_Analytics_Newrelic - Fatal编程技术网

Sql 在New Relic配置yml中,capture_memcache_keys标志的具体作用是什么?

Sql 在New Relic配置yml中,capture_memcache_keys标志的具体作用是什么?,sql,ruby-on-rails,memcached,analytics,newrelic,Sql,Ruby On Rails,Memcached,Analytics,Newrelic,在New Relic配置中(在本例中,上下文是一个利用memcache的Rails 3应用程序),有一个带有以下标志的部分: # 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 sec

在New Relic配置中(在本例中,上下文是一个利用memcache的Rails 3应用程序),有一个带有以下标志的部分:

# 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
默认情况下,将注释掉。我对描述不是特别清楚(因为已经保留了数周的数据工作),并且尝试两种方法并没有显示出我可以辨别的差异。通常,此标志是否允许捕获memcache跟踪/捕获?还是将memcache查询与SQL请求“混为一谈”


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

您不需要启用capture\u memcache\u keys标志来捕获memcache指标。如果找到memcache客户端,则禁用\u memcache\u检测标志将自动默认为false(从而测量memcache指标)。capture_memcache_keys标志基本上允许您使用附加选项以SQL格式捕获唯一的memcache密钥(如果需要)

您可以在上找到有关New Relic Ruby代理配置的更多详细信息