What are performance archives and how are they triggered?
Applies to
ONTAP 9
Answer
- Performance content is collected and stored (archived) on each system:
    
- Metrics like node and volume performance statistics are logged.
 - Data is kept on the root volume for a rolling 28 days by default.
 - Data is constantly logged, so there is no starting or stopping advanced logging.
 - There is minimal overhead to keep latency down.
 
 - Using the AutoSupport(tm) infrastructure, a Performance Archive can be created and uploaded to NetApp.
 - Performance archives do not replace performance monitoring or help with sizing as they are intended to troubleshoot ONTAP performance issues.
 
How to upload a Performance Archive?
- Confirm the AutoSupport transport is HTTP or HTTPS:
    
Cluster::> autosupport show -fields transport
node transport
--------------- ---------
node1 https- Performance archives are typically 50 MB or bigger when compressed so ONTAP is hard coded to not transmit if transport is SMTP.
 - To switch to HTTPS from SMTP, which does allow larger file sizes to be transferred, use the command: 
system node autosupport modify -node * -transport https - If the transport is SMTP and the other methods do not work or are not allowed in the environment, use the manual method with 7zip files or OneCollect to gather the data.
 
 
- Run the 
system node autosupport invoke-performance-archivecommand:Cluster::> system node autosupport invoke-performance-archive -start-date "11/31/2022 06:00:00" -duration 4h -case-number <case_number> -node *- The following are the options for the command:
        
-start-date <"MM/DD/YYYY HH:MM:SS">- Timezone will be the filer's time, as in the 
event log showoutput or EMS log. 
- Timezone will be the filer's time, as in the 
 -duration <[ h][ m][ s]> (or -end-date)-node *-case-number
 
 
Notes:
- It is important to note that the maximum duration for any single collection is 6 hours and the recommended sample period is 4 hours.
    
- Anything less than 2 hours will miss some hourly counters.
 - The time entered in 
-start-dateshould reflect the time in the filer's time zone. - The 
-start-datemust be at least the specified-durationhours in the past, otherwise complete time-frame will not be collected. - No error message will be displayed indicating that complete 
-durationwas not collected. 
 - It is best to start on the top of the hour and end on the top of the hour to capture the hourly counters.
    
- The whole cluster must be triggered since workload statistics are measured across the cluster.
 - Ideally getting the hour before and after the performance event is recommended.
 - It is recommended for the Date format to be in quotes.
 
 
- Use the following commands to view the progress of the Performance Archive upload:
 
::> autosupport history show-upload-details -node <node name> -seq-num <seq-num>
What if performance archive does not work?
- By default, Performance Archive data is kept for 28 days: No performance archives are available when attempting to invoke them
 - Troubleshoot Autosupports using the ONTAP AutoSupport Resolution Guide.
 - Verify if Performance Archive is enabled and the date of the archive you're requesting is less than retention period (28 days by default):
 
::> set diagnostic
::*> statistics archive config show
verify field:
Is the Performance Archive Enabled?: true
if false, enable it by running the following command:
::*> statistics archive config modify -is-enabled true
Note: EMS events will also report the following message when the Performance Archive is disabled:
::*> event log show  -event perf*
Time                Node             Severity      Event
------------------- ---------------- ------------- ---------------------------
INFORMATIONAL perf.ccma.off: Performance archiver is not enable
- Please make sure that both the 
stateandsupportparameters of AutoSupport are enabled. If not, useautosupport modifycommand to allow them. 
aff200-2n-dal-1::> autosupport show -node * -fields state,support
node          state  support
------------- ------ -------
aff200-dal-1a enable disable
aff200-dal-1b enable disable
2 entries were displayed.
Example of failure:
aff200-2n-dal-1::> autosupport show -instance
                                           Node: aff200-dal-1a
                                          State: enable
                                SMTP Mail Hosts: mailhost
                                   From Address: Postmaster
                           List of To Addresses: -
          (DEPRECATED) List of Noteto Addresses: -
                      List of Partner Addresses: -
    Send AutoSupport Messages to Vendor Support: disable 
                    Protocol to Contact Support: https
                     Support URL for HTTP/HTTPS: support.netapp.com/asupprod/post/1.0/postAsup
                     Support URL for HTTP/S PUT: support.netapp.com/put/AsupPut
                              Support Proxy URL:
                                Support Address: autosupport@netapp.com
                               Hostname Subject: false
                        (DEPRECATED) NHT Enable: true
                        Performance Data Enable: true
aff200-2n-dal-1::> system node autosupport invoke-performance-archive -start-date "10/15/2024 15:00:00" -duration 1h -node aff200-dal-1a  -uri "file:///mroot/etc/log/autosupport/perfachivefile1"
The AutoSupport was successfully invoked on node "aff200-dal-1a" (sequence number: 134).
AutoSupport will be saved to mroot/etc/log/autosupport/perfachivefile1.7z.
aff200-2n-dal-1::> autosupport history show -node aff200-dal-1a -seq-num 134
             Seq                                    Attempt  Percent  Last
Node         Num   Destination Status               Count    Complete Update
------------ ----- ----------- -------------------- -------- -------- --------
aff200-dal-1a
             134
                   retransmit  ignore               -        -        10/15/2024 16:17:52
Why would perfstat be needed?
- Support will request a perfstat.
 - On ONTAP releases up to 9.5, some data may be missing and Support will ask for a perfsat.
 - Only gather if requested by Support.
 - Sometimes the sales team may request to gather performance data for sizing.
 
How can a storage administrator look at the content within a performance archive?
- Active IQ Unified Manager utilizes the underlying data set that is stored within a Performance Archive.
 - Other tools such as Harvest and Cloud Insights also pull the same data and may be used
 - The data is a binary file that cannot be viewed manually and one of the above tools must be used
 
How long the performance test should be running?
- For optimal results, it is advisable to ensure that the performance test runs for at least 10-15 minutes.
 - However, running the test for a longer duration is even better as it allows for more comprehensive data collection and measurement.
 - This extended duration helps in capturing a more accurate representation of the system's performance under sustained workload conditions.
 
Additional Information
additionalInformation_text
