When setting up the develop site I wanted to point docstore_hosts (for ddrpublic.ui) at the black ES cluster but have namesdb_hosts point at the orange cluster. This does not work.
elastictools.docstore.Docstore.__init__ takes a hosts arg and a settings arg. The idea is that the main ddrpublic.ui app would use settings.DOCSTORE_HOSTS while ddrpublic.namesdb could use settings.NAMESDB_DOCSTORE_HOSTS.
The problem is that docstore.es is set in elastictools.docstore.Docstore.get_elasticsearch, which uses settings.DOCSTORE_HOSTS to set the docstore.conn attribute.
When setting up the
develop
site I wanted to pointdocstore_hosts
(forddrpublic.ui
) at theblack
ES cluster but havenamesdb_hosts
point at theorange
cluster. This does not work.elastictools.docstore.Docstore.__init__
takes ahosts
arg and asettings
arg. The idea is that the mainddrpublic.ui
app would usesettings.DOCSTORE_HOSTS
whileddrpublic.namesdb
could usesettings.NAMESDB_DOCSTORE_HOSTS
.The problem is that
docstore.es
is set inelastictools.docstore.Docstore.get_elasticsearch
, which usessettings.DOCSTORE_HOSTS
to set thedocstore.conn
attribute.