Skip to content

Commit

Permalink
[ISSUE-642] update docker-compose (#644)
Browse files Browse the repository at this point in the history
* This generalizes test LuceneServerTest.testBackupWarmingQueries()

* following PR review, using pattern matching to check for any number of minutes

* increased 'nrtCachingDirectoryMaxSizeMB' to be above 0

* updated the docs

* updated the docs for phrasing and typos
  • Loading branch information
jpizagno authored Apr 9, 2024
1 parent d8189c0 commit b950526
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker-compose-config/settings_primary.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"indexName": "testIdx",
"directory": "MMapDirectory",
"nrtCachingDirectoryMaxSizeMB": -1.0,
"nrtCachingDirectoryMaxSizeMB": 1.0,
"indexMergeSchedulerAutoThrottle": false,
"concurrentMergeSchedulerMaxMergeCount": 16,
"concurrentMergeSchedulerMaxThreadCount": 8
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-config/settings_replica.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"indexName": "testIdx",
"directory": "MMapDirectory",
"nrtCachingDirectoryMaxSizeMB": -1.0
"nrtCachingDirectoryMaxSizeMB": 1.0
}
6 changes: 3 additions & 3 deletions docs/docker_compose.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ When the containers are started, no index is created. The index has to be starte
2. Primary: Start Index
^^^^^^^^^^^^^^^^^^^^^^^^^^^

Start primary index, and add docs for indexing:
Create the index and settings, register the fields, and start the index:

.. code-block::
Expand Down Expand Up @@ -96,7 +96,7 @@ Next go into any one of the replicas (i.e. nrtsearch_replica-node-1 here), and r
4. Replication
^^^^^^^^^^^^^^^^^^^^^^^^^^^

Search will work on replicas soon after documents are added on the primary.
Search will work on replicas soon after documents are added on the primary. Add the documents into the index, as shown below.

.. code-block::
Expand Down Expand Up @@ -186,7 +186,7 @@ To demonstrate how one can start nrtSearch and restore the index data from S3, o
}
}
If one then restarts the containers and index (do not need to register the fields), then the search in Step 5 above should work, even though no documents were indexed (skipping Step 4). This means that the index was correctly loaded from the S3 bucket on startup.
If one then restarts the containers and restarts the index (do not need to register the fields), then the search in Step 5 above should work, even though no documents were indexed (skipping Step 4). This means that the index was correctly loaded from the S3 bucket on startup.

.. code-block::
Expand Down

0 comments on commit b950526

Please sign in to comment.