openedx-unsupported / devstack

Get up and running quickly to develop or extend Open edX services
GNU Affero General Public License v3.0
405 stars 426 forks source link

chore #1263

Open germanolleunlp opened 7 months ago

germanolleunlp commented 7 months ago

As part of the process to move to OpenSearch instead of ElasticSearch on lms and cms, we start adding services that will help to debug and control the process. Initially we need to have opensearch connected to lms and cms.

  1. Added Kibana as a service to debug indexes and data on elasticsearch:7.10.1
  2. Added opensearch dashboards to debug indexes and data on opensearch:1.2

If you need to copy existing data from elasticsearch to opensearch, you can do it with the following command updating the index with your index

curl --location 'http://localhost:9202/_reindex?pretty=true&scroll=10h&wait_for_completion=true' \
--header 'Content-Type: application/json' \
--data '{
  "source": {
    "remote": {
      "host": "http://edx.devstack.elasticsearch710:9200",
      "socket_timeout": "60m"
    },
    "size": 100,
    "index": "<index_name>"
  },
  "dest": {
    "index": "<index_name>"
  }
}'