Multi-Tenancy Support - Solr in SiteWhere

150 views
Skip to first unread message

annesha dey

unread,
Aug 25, 2016, 3:48:36 PM8/25/16
to SiteWhere
Hi Derek,

As of now, SiteWhere supports Global configuration for Solr, where all the tenants contact a single Solr server/Core for indexing their Events data. 

If we want to leverage the multi-tenancy aspect of Apache Solr, where each SiteWhere tenant has its own Solr core to talk to and thereby having the separation of the tenant data(without which there are security implications to be addressed like,making sure a malicious query cannot get another tenants documents)...

How can this be achieved? Is SiteWhere planning to have such Multi-Tenancy support for Solr, where the configurations allow multiple Solr servers or Single Solr server with different Cores for each tenant(i.e Tenant-Level Solr configuration)? 

Is there a way where we can customise the schema.xml for each tenant?

Thanks & Regards,
Annesha 

Derek Adams

unread,
Aug 26, 2016, 9:25:05 AM8/26/16
to SiteWhere
Hi Annesha,

SiteWhere supports the ability to override the Solr base URL on a per-tenant basis. If you open the configuration editor for a tenant, choose Global Overrides and add the Override Solr Configuration component. This allows each tenant to have its own base URL for interacting with Solr. This may not cover your use case for using a separate Solr core per tenant though, so we will need to look into that further.


Regards,
Derek

annesha dey

unread,
Aug 30, 2016, 8:04:57 AM8/30/16
to SiteWhere
Thanks Derek..

It met my UseCase to an extent, where I am able to direct the tenant-wise events traffic to respective Solr cores, by using the Global Overrides component of the Tenant Configuration.

Thanks Again :)
Reply all
Reply to author
Forward
0 new messages