How to use and interpret the performance statistics collected using vSAN Observer (2064240)

How to use and interpret the performance statistics collected using vSAN Observer (2064240)

https://kb.vmware.com/s/article/2064240


Last updated: 2020/5/24 Category: How Total views: 42541  1 Language:                  Simplified Chinese) Japanese English                           Subscribe
 
 purpose
This article provides steps to start, collect and display vSAN Observer performance graphs and VMware vSAN information.

vSAN Observer is a monitoring and troubleshooting tool for Virtual SAN. It aims to:
  • Monitor performance statistics of the vSAN cluster
  • Provide access via a web browser
  • Capture statistics for customer use or for VMware use
For more information, see the " Getting Started with vSAN Observer" section in the Diagnostic and Troubleshooting Reference Manual .
 
 Resolution
 

vSAN Observer is a function of Ruby vSphere Console (RVC).

To start vSAN Observer:
  1. Log in to the Ruby vSphere Console (RVC) on the vCenter Server Appliance via SSH and run the following command:

    rvc  username  @localhost for example. rvc [email protected]@localhost
     
    • In vSAN 6.x, there are PROGRAMFILES \ VMware \ vCenter Server \ rvc \ rvc.bat
    • In vSAN 5.5, there are PROGRAMFILES \ VMware \ Infrastructure \ VirtualCenter Server \ support \ rvc \ rvc.bat
       
  2. Note : For vCenter Server running on Windows, please run the following batch file to start RVC:
     
  3. If prompted, enter the user password.
  4. Run the cd command to navigate to the vCenter Server directory.
    For example, localhost:

    cd localhost
     
  5. Run the cd command to navigate to the data center of the vSAN environment.
    For example, vSAN-DC:

    cd vSAN-DC
     
  6. Run the following command to enable real-time monitoring of the cluster:

    Note : The cluster name in this example is vSAN-Cluster

    vsan.observer~/computers/vSAN-Cluster --run-webserver --force
     
  7. To view real-time statistics in a web browser, point the browser URL to the vCenter Server hostname/IP address with the port number specified in the output of step 5.

    For example, on port 8010:

    https://  vCenterServer_hostname_or_ IP_Address : 8010
 
 Related Information
 
For more information on the following topics, see the corresponding section in the Diagnostic and Troubleshooting Reference Manual .
  • Use vSAN Observer statistics analysis of examples and explanations -vSAN Observer introductory part
  • Troubleshooting with vSAN Observer-vSAN Observer case study part
  • Other options available for vSAN Observer-v  SAN Observer command line options section
  • Start vSAN Observer- Start the vSAN Observer section
Output in Windows
For Windows computers, the username provided at username@localhost is a username with administrator privileges at the vCenter Server level, not the administrator of the Windows computer where vCenter Server is installed.

It is useful to edit the rvc.bat file by deleting the entry "Administrator @ localhost" and running the rvc.bat tool .

Therefore, when prompted to enter a user name, please provide a user name with administrator privileges at the vCenter Server level. For this vCenter Server device, the default administrator is "root" and provide vCenter Server permissions.
 
Example output path: C:/temp

Other options of vSAN Observer
 

--filename
or
-f
Output file path. For example, /tmp.
--port
or
-p
Port number for real-time statistics.

Note : The default port is 8010.
--run-webserver
or
-r
Run real-time statistics.
--force
or
-o
Applying force means giving up any warning messages about the action and continuing.
--keep-observation-in-memory

-k
Even if the command ends, the observed statistics will be kept in memory. This command allows you to resume later.
--generate-html-bundle

-g
Generate HTML bundle after completion. Pass location.
--interval
or
-I
The interval value (in seconds) for collecting statistics.

Note : The default value is 60.
--max-runtime
or
-m
The maximum number of hours to collect statistics. This command limits memory usage.

Note : The default value is 2.
--forever
or
-e
Run until it stops. Every --max-runtime interval will return the snapshot to disk. Pass a position.

Example:

vsan.observer~/ computers / VSAN --run-webserver --force --generate-html-bundle / --interval 30 --forever
--no-https
or
-n
Does not use HTTPS, and does not require login. Useful if you cannot connect via HTTPS.

Warning : Not secure, only use when you cannot connect via https.

 


Example

To generate a performance statistics package for a vSAN cluster named vSAN at 30 hour intervals and one hour to one hour intervals, and save the generated statistics package to the /tmp folder, run the following command:

vsan.observer ~/computers/vSAN --run-webserver --force --generate-html-bundle/tmp --interval 30 --max-runtime 1

For Windows-based vCenter:
create a c:\temp directory, and then run "vsan .observer". --run-webserver --force --generate-html-bundle c:\\ temp --interval 30 --max-runtime 1 "Collect 1 hour of data for analysis-please pay attention to the use of double backslashes  

to help calculations Maximum IOPS value and check whether your SSD is a performance bottleneck, please use the attached vSAN calculator spreadsheet 2064240_VSAN_Calculator.zip file.

 

 purpose
This article provides steps to start, collect and display vSAN Observer performance graphs and VMware vSAN information.

vSAN Observer is a monitoring and troubleshooting tool for Virtual SAN. It aims to:
  • Monitor performance statistics of the vSAN cluster
  • Provide access via a web browser
  • Capture statistics for customer use or for VMware use
For more information, see the " Getting Started with vSAN Observer" section in the Diagnostic and Troubleshooting Reference Manual .
 
 Resolution
 

vSAN Observer is a function of Ruby vSphere Console (RVC).

To start vSAN Observer:
  1. Log in to the Ruby vSphere Console (RVC) on the vCenter Server Appliance via SSH and run the following command:

    rvc  username  @localhost for example. rvc [email protected]@localhost
     
    • In vSAN 6.x, there are PROGRAMFILES \ VMware \ vCenter Server \ rvc \ rvc.bat
    • In vSAN 5.5, there are PROGRAMFILES \ VMware \ Infrastructure \ VirtualCenter Server \ support \ rvc \ rvc.bat
       
  2. Note : For vCenter Server running on Windows, please run the following batch file to start RVC:
     
  3. If prompted, enter the user password.
  4. Run the cd command to navigate to the vCenter Server directory.
    For example, localhost:

    cd localhost
     
  5. Run the cd command to navigate to the data center of the vSAN environment.
    For example, vSAN-DC:

    cd vSAN-DC
     
  6. Run the following command to enable real-time monitoring of the cluster:

    Note : The cluster name in this example is vSAN-Cluster

    vsan.observer~/computers/vSAN-Cluster --run-webserver --force
     
  7. To view real-time statistics in a web browser, point the browser URL to the vCenter Server hostname/IP address with the port number specified in the output of step 5.

    For example, on port 8010:

    https://  vCenterServer_hostname_or_ IP_Address : 8010
 
 Related Information
 
For more information on the following topics, see the corresponding section in the Diagnostic and Troubleshooting Reference Manual .
  • Use vSAN Observer statistics analysis of examples and explanations -vSAN Observer introductory part
  • Troubleshooting with vSAN Observer-vSAN Observer case study part
  • Other options available for vSAN Observer-v  SAN Observer command line options section
  • Start vSAN Observer- Start the vSAN Observer section
Output in Windows
For Windows computers, the username provided at username@localhost is a username with administrator privileges at the vCenter Server level, not the administrator of the Windows computer where vCenter Server is installed.

It is useful to edit the rvc.bat file by deleting the entry "Administrator @ localhost" and running the rvc.bat tool .

Therefore, when prompted to enter a user name, please provide a user name with administrator privileges at the vCenter Server level. For this vCenter Server device, the default administrator is "root" and provide vCenter Server permissions.
 
Example output path: C:/temp

Other options of vSAN Observer
 

--filename
or
-f
Output file path. For example, /tmp.
--port
or
-p
Port number for real-time statistics.

Note : The default port is 8010.
--run-webserver
or
-r
Run real-time statistics.
--force
or
-o
Applying force means giving up any warning messages about the action and continuing.
--keep-observation-in-memory

-k
Even if the command ends, the observed statistics will be kept in memory. This command allows you to resume later.
--generate-html-bundle

-g
Generate HTML bundle after completion. Pass location.
--interval
or
-I
收集统计信息的时间间隔值(以秒为单位)。

注意:默认值为60。
--max-runtime

-m
收集统计信息的最大小时数。此命令限制内存使用量。

注意:默认值为2。
--forever
or
-e
运行直到停止。每个--max-runtime间隔都会将快照退回到磁盘。通过一个位置。

示例:

vsan.observer〜/ computers / VSAN --run-webserver --force --generate-html-bundle / --interval 30 --forever
--no-https

-n
不使用HTTPS,并且不需要登录。如果无法通过HTTPS连接,则很有用。

警告:不安全,仅当无法通过https连接时使用。

 



要以30小时为间隔以一小时为一个小时的时间间隔为名为vSAN的vSAN集群生成性能统计数据包,并将生成的统计数据包保存到/ tmp文件夹,请运行以下命令:

vsan.observer〜/ computers / vSAN --run-webserver --force --generate-html-bundle / tmp --interval 30 --max-runtime 1

对于基于Windows的vCenter:
创建一个c:\ temp目录,然后运行“ vsan.observer”。--run-webserver --force --generate-html-bundle c:\\ temp --interval 30 --max-runtime 1“收集1个小时的数据进行分析–请注意使用双反斜杠  

以帮助计算最大IOPS值并检查您的SSD是否是性能瓶颈,请使用随附的vSAN计算器电子表格2064240_VSAN_Calculator.zip文件。

Guess you like

Origin blog.csdn.net/z136370204/article/details/113663118