Skip to content

Commit 531fe66

Browse files
committed
TD-44 document configuration options
1 parent fc18eb6 commit 531fe66

File tree

1 file changed

+44
-43
lines changed

1 file changed

+44
-43
lines changed

src/content/docs/customization/configuration.md

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,6 @@ Resist the urge to set this to a big number!
216216

217217
### OAI configuration options
218218

219-
#### `AppConfig[:oai_proxy_url]`
220-
221-
> TODO - Needs more documentation
222-
223-
`AppConfig[:oai_proxy_url] = 'http://your-public-oai-url.example.com'`
224-
225219
**NOTE: As of version 2.5.2, the following parameters (oai_repository_name, oai_record_prefix, and oai_admin_email) have been deprecated. They should be set in the Staff User Interface. To set them, select the System menu in the Staff User Interface and then select Manage OAI-PMH Settings. These three settings are at the top of the page in the General Settings section. These settings will be completely removed from the config file when version 2.6.0 is released.**
226220

227221
#### `AppConfig[:oai_repository_name]`
@@ -279,46 +273,32 @@ want ArchivesSpace to put its data files elsewhere.
279273

280274
#### `AppConfig[:backup_directory]`
281275

282-
> TODO - Needs more documentation
276+
Directory to store automated backups when using the embedded demo database (not mysql). This defaults to `demo_db_backups` within the `data` directory.
283277

284278
`AppConfig[:backup_directory] = proc { File.join(AppConfig[:data_directory], "demo_db_backups") }`
285279

286-
#### `AppConfig[:solr_index_directory]`
287-
288-
> TODO - Needs more documentation
289-
290-
`AppConfig[:solr_index_directory] = proc { File.join(AppConfig[:data_directory], "solr_index") }`
291-
292-
#### `AppConfig[:solr_home_directory]`
293-
294-
> TODO - Needs more documentation
295-
296-
`AppConfig[:solr_home_directory] = proc { File.join(AppConfig[:data_directory], "solr_home") }`
297-
298280
### Solr defaults
299281

300282
#### `AppConfig[:solr_indexing_frequency_seconds]`
301283

302-
> TODO - Needs more documentation
284+
The number of seconds between each run of the SUI and PUI indexers. The indexers will perform and indexing cycle every configured number of seconds.
303285

304286
`AppConfig[:solr_indexing_frequency_seconds] = 30`
305287

306288
#### `AppConfig[:solr_facet_limit]`
307289

308-
> TODO - Needs more documentation
290+
The maximum number of distinct facet terms Solr will include in the response for a given field.
309291

310292
`AppConfig[:solr_facet_limit] = 100`
311293

312294
#### `AppConfig[:default_page_size]`
313295

314-
> TODO - Needs more documentation
315-
296+
The number of records included in each page in all paginated backend api responses.
316297
`AppConfig[:default_page_size] = 10`
317298

318299
#### `AppConfig[:max_page_size]`
319300

320-
> TODO - Needs more documentation
321-
301+
Requests to the backend api can define a custom page_size param. This is the maximum allowed page size.
322302
`AppConfig[:max_page_size] = 250`
323303

324304
### Cookie prefix
@@ -332,71 +312,86 @@ Default is "archivesspace".
332312

333313
`AppConfig[:cookie_prefix] = "archivesspace"`
334314

335-
### Indexer settings
315+
### SUI Indexer settings
336316

317+
The size of each batch of records passed to each indexer worker-thread to process and push to solr.
337318
The periodic indexer can run using multiple threads to take advantage of
338319
multiple CPU cores. By setting these two options, you can control how many
339320
CPU cores are used, and the amount of memory that will be consumed by the
340321
indexing process (more cores and/or more records per thread means more memory used).
341-
342322
#### `AppConfig[:indexer_records_per_thread]`
343323

324+
The size of each batch of records passed to each indexer worker-thread to process and push to solr. More records per thread means that more memory will be used by the indexer process.
344325
`AppConfig[:indexer_records_per_thread] = 25`
345326

346327
#### `AppConfig[:indexer_thread_count]`
347328

329+
The number of worker-thread to be used by the SUI indexer. More worker-threads means that more CPU cores will be used.
348330
`AppConfig[:indexer_thread_count] = 4`
349331

350332
#### `AppConfig[:indexer_solr_timeout_seconds]`
351333

352-
> TODO - Needs more documentation
334+
The indexer is making requests to solr in order to push updated records to the solr index. This is the maximum number of seconds that the indexer will wait for solr to respond to a request.
353335

354336
`AppConfig[:indexer_solr_timeout_seconds] = 300`
355337

356338
### PUI Indexer Settings
357339

358340
#### `AppConfig[:pui_indexer_enabled]`
359341

360-
> TODO - Needs more documentation
361-
342+
If false no pui indexer is started. Set to false if not using the PUI at all.
362343
`AppConfig[:pui_indexer_enabled] = true`
363344

364345
#### `AppConfig[:pui_indexing_frequency_seconds]`
365346

366-
> TODO - Needs more documentation
367-
347+
The number of seconds between each run of the PUI indexer. The indexer will perform and indexing cycle every configured number of seconds.
368348
`AppConfig[:pui_indexing_frequency_seconds] = 30`
369349

370350
#### `AppConfig[:pui_indexer_records_per_thread]`
371351

372-
> TODO - Needs more documentation
352+
The size of each batch of records passed to each indexer worker-thread to process and push to solr.
353+
The PUI indexer can run using multiple threads to take advantage of
354+
multiple CPU cores. By setting these two options, you can control how many
355+
CPU cores are used, and the amount of memory that will be consumed by the
356+
indexing process (more cores and/or more records per thread means more memory used).
373357

374358
`AppConfig[:pui_indexer_records_per_thread] = 25`
375359

376360
#### `AppConfig[:pui_indexer_thread_count]`
377361

378-
> TODO - Needs more documentation
379-
362+
The number of worker-thread to be used by the PUI indexer. More worker-threads means that more CPU cores will be used.
380363
`AppConfig[:pui_indexer_thread_count] = 1`
381364

382365
### Index state
383366

384367
#### `AppConfig[:index_state_class]`
385368

386-
Set to 'IndexStateS3' for amazon s3
387-
388-
> TODO - Needs more documentation
369+
The indexer needs a place to store it's state (keep track of which records have already been indexed).
370+
Set to 'IndexState' (default) to store the state in the local `data` directory.
371+
Set to 'IndexStateS3' (optional) to store the state in an AWS S3 bucket in the Amazon Cloud.
389372

390373
`AppConfig[:index_state_class] = 'IndexState'`
391374

392-
#### `AppConfig[:index_state_s3]`
375+
#### `AppConfig[:index_state_s3]` - Relevant only when using S3 storage for the indexer state
393376

394-
Store indexer state in amazon s3 (optional)
395-
NOTE: s3 charges for read / update requests and the pui indexer is continually
396-
writing to state files so you may want to increase pui_indexing_frequency_seconds
377+
If using S3 storage for the indexer state in amazon s3 (optional), you need to configure the access to S3.
397378

398-
> TODO - Needs more documentation
379+
NOTE: S3 charges for read / update requests and the pui indexer is continually
380+
writing to state files so you may want to increase `pui_indexing_frequency_seconds` and `solr_indexing_frequency_seconds`
381+
382+
##### Default configuration using environment variables
383+
384+
By default, the S3 configuration is fetched from the following shell environment variables:
385+
- AWS_REGION
386+
- AWS_ACCESS_KEY_ID
387+
- AWS_SECRET_ACCESS_KEY
388+
- AWS_ASPACE_BUCKET
389+
390+
It is using the `:cookie_prefix` configuration as a prefix for the state files stored in the bucket - usefull when using the same bucket to store indexer state of multiple archivesspace instances.
391+
392+
##### Configuring S3 access directly in the `config.rb` file
399393

394+
TODO
400395
```ruby
401396
AppConfig[:index_state_s3] = {
402397
region: ENV.fetch("AWS_REGION"),
@@ -463,6 +458,12 @@ Proxy URL for the public interface
463458

464459
`AppConfig[:public_proxy_url] = proc { AppConfig[:public_url] }`
465460

461+
#### `AppConfig[:oai_proxy_url]`
462+
463+
Proxy URL for the oai service (if exposed, see OAI section)
464+
465+
`AppConfig[:oai_proxy_url] = 'http://your-public-oai-url.example.com'`
466+
466467
#### `AppConfig[:frontend_proxy_prefix]`
467468

468469
Don't override this setting unless you know what you're doing

0 commit comments

Comments
 (0)