Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1098 from sul-dlss/rolling-index-in-dsa
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgiarlo authored Jan 29, 2024
2 parents d92aeda + c0c5fa2 commit de27e4d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ gem 'bootsnap', '>= 1.1.0', require: false # Reduces boot times through caching;
gem 'bunny', '~> 2.19' # for rabbitmq
gem 'committee' # Validates HTTP requests/responses per OpenAPI specification
gem 'config'
gem 'daemons' # for rolling indexer
gem 'dry-monads', '~> 1.3'
gem 'erubis'
gem 'faraday'
Expand Down
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ GEM
crack (0.4.5)
rexml
crass (1.0.6)
daemons (1.4.1)
date (3.3.4)
deep_merge (1.2.2)
deprecation (1.1.0)
Expand Down Expand Up @@ -460,7 +459,6 @@ DEPENDENCIES
capistrano-shared_configs
committee
config
daemons
dlss-capistrano
dor-services-client (~> 14.1)
dor-workflow-client (~> 7.0)
Expand Down
24 changes: 1 addition & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,7 @@ For more information about the fields and their purpose see: https://docs.google

## Rolling indexer

This helps keep the index fresh by reindexing the oldest data. It is managed as a systemd service. To interact with it from your machine, you can use Capistrano:

```shell
$ cap ENV rolling_indexer:status
$ cap ENV rolling_indexer:start
$ cap ENV rolling_indexer:stop
$ cap ENV rolling_indexer:restart
```

Or if you're on a server that has the `rolling_indexer` capistrano role, use systemd commands:

```shell
$ sudo systemctl status rolling-index
$ sudo systemctl start rolling-index
$ sudo systemctl stop rolling-index
$ sudo systemctl restart rolling-index
```

**NOTE 1**: The rolling indexer is automatically restarted during deployments.

**NOTE 2**: The rolling indexer runs only on one node per environment. Conventionally, this is the `-a` node.

**NOTE 3**: The rolling indexer logs to `{capistrano_shared_dir}/log/rolling_indexer.log`
This has been moved to dor-services-app for more efficient access to cocina-models for objects.

## API

Expand Down

0 comments on commit de27e4d

Please sign in to comment.