Skip to content

Commit

Permalink
Installation Guide: many improvements #2884
Browse files Browse the repository at this point in the history
- enumerated all (?) config options #2283 #2661
  • Loading branch information
pdurbin committed Jan 28, 2016
1 parent 89e3a3f commit 585f11d
Show file tree
Hide file tree
Showing 5 changed files with 399 additions and 86 deletions.
50 changes: 48 additions & 2 deletions doc/sphinx-guides/source/installation/administration.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,59 @@
Administration
==============

This section focuses on system and database administration tasks. Please see the :doc:`/user/index` for tasks having to do with having the "Admin" role on a dataverse or dataset.

.. contents:: :local:

Solr Search Index
-----------------

Dataverse requires Solr to be operational at all times. If you stop Solr, you should see a error about this on the home page, which is powered by the search index Solr provides. You set up Solr by following the steps in the :doc:`prerequisites` section and the :doc:`config` section explained how to configure it. This section is about the care and feeding of the search index. PostgreSQL is the "source of truth" and the Dataverse application will copy data from PostgreSQL into Solr. For this reason, the search index can be rebuilt at any time but depending on the amount of data you have, this can be a slow process. You are encouraged to experiment with production data to get a sense of how long a full reindexing will take.

Full Reindex
++++++++++++

There are two ways to perform a full reindex of the Dataverse search index. Starting with a "clear" ensures a completely clean index but involves downtime. Reindexing in place doesn't involve downtime but does not ensure a completely clean index.

Clear and Reindex
~~~~~~~~~~~~~~~~~

Clearing Data from Solr
.......................

Please note that the moment you issue this command, it will appear to end users looking at the home page that all data is gone! This is because the home page is powered by the search index.

``curl http://localhost:8080/api/admin/index/clear``

Start Async Reindex
...................

Please note that this operation may take hours depending on the amount of data in your system. This known issue is being tracked at https://github.com/IQSS/dataverse/issues/50

``curl http://localhost:8080/api/admin/index``

Reindex in Place
~~~~~~~~~~~~~~~~

An alternative to completely clearing the search index is to reindex in place.

Clear Index Timestamps
......................

``curl -X DELETE http://localhost:8080/api/admin/index/timestamps``

Start or Continue Async Reindex
................................

If indexing stops, this command should pick up where it left off based on which index timestamps have been set, which is why we start by clearing these timestamps above. These timestamps are stored in the ``dvobject`` database table.

``curl http://localhost:8080/api/admin/index/continue``

User Administration
-------------------

Deleting an API token
~~~~~~~~~~~~~~~~~~~~~
Deleting an API Token
+++++++++++++++++++++

If an API token is compromised it should be deleted. Users can generate a new one for themselves, but someone with access to the database can delete tokens as well.

Expand Down
Loading

0 comments on commit 585f11d

Please sign in to comment.