-
Notifications
You must be signed in to change notification settings - Fork 126
Solr on ECS EFS
Tyler Burton edited this page May 6, 2024
·
5 revisions
EFS Backups are taken daily and automatically thanks to https://github.com/GSA/datagov-brokerpak-solr/pull/40
EFS Restores can be completed using the following procedure (originally created in https://github.com/GSA/data.gov/issues/3869):
- Turn off Harvesting and make sure no changes are happening in Solr and/or DB
- Follow AWS Documentation for restoring an EFS Backup
- In practice, there is no need to update Access Policy roles, and EFS can be restored by simply clicking restore on the relevant backup in the backup manager (Step #4).
- Wait for backup to restore
- Perform an update-service (see below) on the solr instance referencing the restore script as the "setupLink" in the service configuration,
- Wait for the update to complete and verify that Solr is started by inspecting the logs in the AWS Console.
Gold Nugget: See this slack discussion for information about update-service
.
cf update-service catalog-solr -c "\
{
"solrImageRepo": unchanged,
"solrImageTag": unchanged,
"solrMem": unchanged,
"solrCpu": unchanged,
"setupLink": "https://raw.githubusercontent.com/GSA/catalog.data.gov/main/solr/restore_backups.sh",
"efsProvisionedThroughput": unchanged
}