How to Free Memory

Customer Managed Applies to customer-managed instances of Alation

Alation jobs require a certain amount of space to complete. If that space becomes constrained, the jobs fail to complete. When a job fails due to lack of space, Alation reports that the job failed due to space constraints.

Freeing Up Space on Alation

The process for freeing up space when Alation jobs fail involves two main steps:

  • Freeing up space in the directories

  • Running the QLI Event Archiver from the UI to archive processed QLI data

Step 1: Free Up Space in Directories

To free up space for Alation jobs to run:

  1. Check for available space in the root and home directories.

    df -h
    
  2. Delete any lingering installer files if they are crowding the root or home directories.

  3. Uninstall older versions of Alation if you are running successfully on the current version:

    update-alternatives --display alation
    # Remove the ones that aren't current
    rpm -e alation-1.2.3.44444
    alternatives --remove alation /opt/alation/alation-1.2.3.44444
    
  4. Enter the Alation shell:

    sudo /etc/init.d/alation shell
    
  5. Go to the ‘logs’ directory:

    cd /opt/alation/site/logs
    
  6. Delete the older log files.

  7. If backups are not configured to be stored on a separate drive, check for older backups that can be deleted.

    • Remove Dump files: Go to /opt/alation/site/dumps and empty the directory.

    • Remove old backup files: Go to /data2/backup and delete any old backup files you do not need.

  8. Go to the /opt/alation/site/tmp directory.

  9. Delete the following directories:

    • /extract_cache

    • /query_ingestion_buffer

    • /log_reporting

Step 2: Archive Processed QLI Data

From Alation UI > Admin Settings > Misc tab > Archive processed QLI data section, run the Event Archiver with the appropriate settings:

../../_images/Screen_Shot_2019-04-04_at_7.09.54_PM.png