Skip to content

Commit

Permalink
Fixes #375 - Added CPU cores as an option for rebuilding ES index
Browse files Browse the repository at this point in the history
  • Loading branch information
ralf401 committed Oct 16, 2023
1 parent 328bfb0 commit 8bc3425
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
25 changes: 16 additions & 9 deletions appendix/troubleshooting/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Step 1: Verify Elasticsearch is running
# check elasticsearch status
$ systemctl status elasticsearch
.. note::
.. note::

This should output something like the following, make sure it says
``Active: active (running)``:

Expand All @@ -54,7 +54,7 @@ Step 1: Verify Elasticsearch is running
$ systemctl status elasticsearch
.. warning::

| If this fails, your Elasticsearch installation is probably broken.
| Try completely purging and reinstalling Elasticsearch according
to :doc:`/install/elasticsearch`
Expand All @@ -66,29 +66,36 @@ Step 2: Verify the ingest-attachment plugin is installed correctly
# list installed elasticsearch plugins
$ /usr/share/elasticsearch/bin/elasticsearch-plugin list
.. note::
.. note::
The output should include ``ingest-attachment``.

Otherwise, try reinstalling the ``ingest-attachment`` plugin and check
again:

.. code-block:: sh
$ /usr/share/elasticsearch/bin/elasticsearch-plugin remove ingest-attachment
$ /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
$ systemctl restart elasticsearch
$ /usr/share/elasticsearch/bin/elasticsearch-plugin list
Step 3: Verify Zammad can access Elasticsearch and rebuild the indexes
Step 3: Verify Zammad can access Elasticsearch and rebuild the indexes
.. code-block:: sh
# force zammad to drop and rebuild the elasticsearch indexes
$ zammad run rake zammad:searchindex:rebuild
.. note::

Optionally, you can specify a number of CPU cores which are used for rebuilding
the searchindex, as in the following example with 8 cores:

.. code-block:: sh
$ zammad run rake zammad:searchindex:rebuild[8]
.. note::

This should start rebuilding the indexes and output it's progress:

.. code-block:: sh
Expand All @@ -111,7 +118,7 @@ Step 3: Verify Zammad can access Elasticsearch and rebuild the indexes
back to the console.
.. warning::

| If this fails or throws an error, there might be something else
wrong with your installation.
| Make sure you followed the complete Elasticsearch set up and
Expand Down
7 changes: 7 additions & 0 deletions install/update.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@ use:
$ zammad run rake zammad:searchindex:rebuild
Optionally, you can specify a number of CPU cores which are used for rebuilding
the searchindex, as in the following example with 8 cores:

.. code-block:: sh
$ zammad run rake zammad:searchindex:rebuild[8]
.. hint:: **🤓 Zammad 5.2 comes with changes**

As of Zammad 5.2 the reindex command has changed!
Expand Down

0 comments on commit 8bc3425

Please sign in to comment.