IBM Support

Troubleshooting API Connect Analytics - Analytics running out of disk space on 10.0.5.x

Troubleshooting


Problem

Analytics running out of disk space

Symptom

No disk space

Cause

Analytics indices taking up too much space

Resolving The Problem

There are 2 options.
1. Delete the indices manually which gives you control on which day of data you loose.
2. Configure retention and rollover which will delete automatically oldest data. 
Option 1 Steps: Delete the indices manually which gives you control on which day of data you loose.
  1. exec into a storage pod

    kubectl exec -it <storage-pod-name> -- bash
    
  2. set up the following environment variable:

    export CURL_CMD="curl -sk --cacert /etc/velox/certs/client/ca.crt --key /etc/velox/certs/client/tls.key --cert /etc/velox/certs/client/tls.crt https://localhost:9200"
    

N.B The CURL_CMD variable will already exist inside the storage container in 10.0.5.6+ and 10.0.8+, so this step can be skipped.

  1. List all indices

    $CURL_CMD/_cat/indices/?v
    
  2. Delete indices

    DANGER

    DO NOT DELETE THE CURRENT INDEX.

    The current index is the one that's currently being written to, and will be named with the latest date and sequence number. Deleting this will result in apic-api-w becoming an index instead of an alias. This is bad. Recovering from this will result in data loss.

    1. Delete a single index

      $CURL_CMD/<index> -XDELETE
      

      Example:

      $CURL_CMD/apic-api-2023.10.12-000009 -XDELETE
      
    2. Delete multiple indices using a comma-separated list

      $CURL_CMD/<index-1>,<index-2> -XDELETE
      

      Example:

      $CURL_CMD/apic-api-2023.10.12-000009,apic-api-2023.10.13-000010 -XDELETE
      
    3. Delete multiple indices using wildcard (*)

      The best way to illustrate this is using an example.

      To delete all event indices created in September (month 09) in 2023:

      $CURL_CMD/apic-api-2023.09.* -XDELETE
      

      I recommend trying out the wildcard expression with the list indices command first, to be sure it returns the list you were expecting.

      $CURL_CMD/_cat/indices/apic-api-2023.09.*?v
      
Option 2: Configure retention and rollover which will delete automatically oldest data. 
Please refer steps here
-------

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"ARM Category":[{"code":"a8m50000000CeBlAAK","label":"API Connect-\u003EManagement and Monitoring (MM)-\u003EAnalytics"},{"code":"a8m50000000CeDEAA0","label":"API Connect-\u003EResource\/Stability (RS)-\u003EDisk"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.0.5"}]

Document Information

Modified date:
12 February 2024

UID

ibm17116604