Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-26161

WU subdirs in eclagent/temp causes hpcc-init status slowness

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.2.0
    • 8.2.4
    • Init system
    • None
    • LnP Prod

    Description

      On eclagents that have seen a lot of use, we are noticing /var/lib/HPCCSystems/eclagent/temp can be full of old WU subdirs. In this case 10.147.64.204 had 5.4 million subdirs. This causes issues when running hpcc-init status, as it kicks off the following find (seen on line 177):

       

      /opt/HPCCSystems/etc/init.d/pid.sh

      174 checkSentinelFile() {

      175     FILEPATH="${runtime}/${compName}"

      176     if [[ -d ${FILEPATH} ]]; then

      177        fileCheckOP=$(find ${FILEPATH} -name "senti")

      178        [[ ! -z "${fileCheckOP}" ]] && return 1

      179     fi

      180     return 0

      181 }

       

      Updating line 177 to include -maxdepth 1 makes hpcc-init status resume returning in sub-second speeds.

       

      Additionally, perhaps sasha should be removing the old WU dirs in the eclagent/temp dir?

      Attachments

        Activity

          People

            rwagner42 Russell Wagner
            eorochena Eduardo Orochena
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: