Verifying and tuning search indexing (AEN 4.1.3)
================================================

.. raw:: html

    <p>For search indexing to work correctly, a compute node must be
    able to communicate with the server. To verify this:</p>
    <ol class="arabic">
    <li><p class="first">Run:</p>
    <div class="highlight-bash"><div class="highlight"><pre><span></span>curl -m <span class="m">5</span> <span class="nv">$AEN_SERVER</span> &gt; /dev/null
    </pre></div>
    </div>
    </li>
    <li><p class="first">Verify that there are sufficient inotify watches available for
    the number of subdirectories within the project root file
    system:</p>
    <div class="highlight-bash"><div class="highlight"><pre><span></span>cat /proc/sys/fs/inotify/max_user_watches
    </pre></div>
    </div>
    <p>NOTE: Some Linux distributions default to a low number of
    watches, which may prevent the search indexer from monitoring
    project directories for changes.</p>
    </li>
    <li><p class="first">If necessary, increase the number of watches:</p>
    <div class="highlight-bash"><div class="highlight"><pre><span></span><span class="nb">echo</span> fs.inotify.max_user_watches<span class="o">=</span><span class="m">100000</span> <span class="p">|</span> sudo tee -a /etc/sysctl.conf <span class="o">&amp;&amp;</span> sudo sysctl -p
    </pre></div>
    </div>
    </li>
    <li><p class="first">Verify that there are sufficient inotify user instances
    available&#8212;at least one per project:</p>
    <div class="highlight-bash"><div class="highlight"><pre><span></span>cat /proc/sys/fs/inotify/max_user_instances
    </pre></div>
    </div>
    </li>
    <li><p class="first">If necessary, increase the number of inotify user instances:</p>
    <div class="highlight-bash"><div class="highlight"><pre><span></span><span class="nb">echo</span> fs.inotify.max_user_instances<span class="o">=</span><span class="m">1000</span> <span class="p">|</span> sudo tee -a /etc/sysctl.conf <span class="o">&amp;&amp;</span> sudo sysctl -p
    </pre></div>
    </div>
    </li>
    </ol>
