简体   繁体   English

关联来自Visual Studio负载测试的服务器指标

[英]Correlate server metrics from visual studio load test

I have a coded web test being executed in visual studio load test. 我在Visual Studio负载测试中执行了一个编码的Web测试。 I deploy it so it runs in Azure. 我对其进行了部署,使其可以在Azure中运行。 The analysis is pretty cool, but I can't seem to figure out how to correlate remote server metrics into my load test results (ie metrics of the server receiving my load test requests). 该分析非常酷,但是我似乎无法弄清楚如何将远程服务器指标与我的负载测试结果(即接收我的负载测试请求的服务器的指标)相关联。

From what I can tell, it seems like I might have to install the "agent" software on my remote server. 据我所知,似乎我可能必须在远程服务器上安装“代理”软件。 How would I do this with an Azure cloud service deployment? 如何使用Azure云服务部署来做到这一点? It doesn't seem possible with a cloud service deployment. 云服务部署似乎不可能。

Also, it looks like a load test can aggregate App Insight data, but from what I can tell, App Insight doesn't give me the low-lever metrics I'm looking for. 同样,负载测试似乎可以聚合App Insight数据,但是据我所知,App Insight并没有为我提供所需的低杠杆指标。 I was "perf"-like data: Counters for CPU/Disk/Network/Kernel/etc. 我是“性能”之类的数据:CPU /磁盘/网络/内核/等计数器。 Please correct me if I'm wrong. 如果我错了,请纠正我。

Does anyone know of a way to automatically include remote server metrics into a Visual Studio load test? 有谁知道自动将远程服务器指标包含到Visual Studio负载测试中的方法吗?

A load test can collect performance counters from other computers. 负载测试可以从其他计算机收集性能计数器。 It should be able to collect any counter that Perfmon running on the computer running the load test can see. 它应该能够收集运行负载测试的计算机上运行的Perfmon可以看到的任何计数器。 If you set the permissions and firewalls etc so the computer that runs the tests can run Perfmon and collect the counters then the load test should also be able to collect them. 如果设置了权限和防火墙等,则运行测试的计算机可以运行Perfmon并收集计数器,那么负载测试也应该能够收集它们。

A load test that is run in the cloud using VSTS is run under a Microsoft account from one of their computers. 使用VSTS在云中运行的负载测试是通过其一台计算机上的Microsoft帐户运行的。 This means setting the permissions etc on the servers being load tested is difficult because the accounts are unknown. 这意味着很难对要进行负载测试的服务器设置权限等,因为这些帐户是未知的。

If a load test is run on your own computers then you know the accounts running the tests and can set the server permissions to allow those accounts the appropriate accesses. 如果负载测试在您自己的计算机上运行,​​则您知道运行测试的帐户,并且可以设置服务器权限以允许这些帐户进行适当的访问。

Visual Studio agents can be used on your computers to run the load tests. 可以在计算机上使用Visual Studio代理来运行负载测试。 They are most commonly used when the load required (the number of virtual users) is too high for one computer. 当所需负载(虚拟用户数量)对于一台计算机而言太高时,它们是最常用的。 Agents do not run on the servers being tested. 代理未在要测试的服务器上运行。 The Agent software is not used when a cloud load test is run by VSTS. 当VSTS运行云负载测试时,不使用代理软件。 (Actually it might be used by Microsoft, but it will be almost invisible to you when you run a test with VSTS.) (实际上,Microsoft可能会使用它,但是当您使用VSTS运行测试时,它几乎对您不可见。)

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

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