How to configure Django to new Elatisc cloud deployment service
we have a Django application running for users, using Elasticsearch with a local setup, and everything is working fine. We need to scale up and move Elasticsearch from our local deployment to Elastic Cloud Deployment.
Current Hystack configuration:
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
'URL': 'http://127.0.0.1:9200/',
'INDEX_NAME': 'haystack',
'TIMEOUT': 60,
'INCLUDE_SPELLING': True,
},
}
We created our new Elastic Deployment on Elastic Cloud But I'm not familiar with it, How to update the current configuration with new cloud configurations.
Note that new credentials are provided from the Cloud Deployment server:
cloud_id
cluster_id
endpoint
deployment_name
My question is how to merge these new credentials to HAYSTACK_CONNECTIONS on my settings.py?
Also, any helpful reference is appreciated.
Thanks in advance.