Hi,
I am trying to copy/migrate enterprise engines from one server to other server. I have tried below snapshot and restore approach.
With this approach, Indexes are restored in new server and available in response of http://elastic-host1.com:9200/_cat/indices?v API with Open and green status.
But somehow those are not visible in elastic-host1.com:3002/api/as/v1/engines API response.
To transfer existing engines followed below steps:
1 Registered repository on existing enterprise server
curl --location --request PUT 'https://elastic-host1.com:9200/_snapshot/elastic-snapshots' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <<authentication>>' \
--data '{
"type": "fs",
"settings": {
"location": "/opt/elasticsearch/snapshot"
}
}'
2 Created snapshot
curl --location --request PUT 'https://elastic-host1.com:9200/_snapshot/elastic-snapshots/engines-backup' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <<authentication>>' \
--data '{
"indices": "*",
"ignore_unavailable": true,
"include_global_state": true
}'
3 copied created indices folder to new server(from elastic-host1 to elastic-host2)
4 created repository
curl --location --request PUT 'https://elastic-host2.com:9200/_snapshot/elastic-snapshots' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <<authentication>>' \
--data '{
"type": "fs",
"settings": {
"location": "/opt/elasticsearch/snapshot"
}
}'
5 Restored snapshot
curl --location 'https://elastic-host2.com:9200/_snapshot/elastic-snapshots/engines-backup/_restore' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <<authentication>>' \
--data '{
"indices": ".ent-search-engine-documents-*",
"ignore_unavailable": true,
"include_global_state": true
}'
Tried by deleting below indexes and restoring them from snapshot, that also did not work
.elastic-connectors-v1, .elastic-connectors-sync-jobs-v1
What am i missing? do i need to modify any config to display those engines in enterprise APIs?