[dspace-tech] Issue with Two Dspace servers with common NAS for bitstore (assetstore)

140 views
Skip to first unread message

Ravi Konila

unread,
Jul 25, 2023, 12:44:23 PM7/25/23
to dspac...@googlegroups.com
Hi,
 
Hope all are doing good.
 
I have successfully installed two Dspace 7.6 servers with a common NAS storage connected to both the servers used for bitstore/assetstore.
Both the servers works fine individually with the shared storage. But items/community/collection created in one is not visible in other one.
Please note that, both the servers use same Postgresql 15 server/db.
 
The Dspace configurations are identical (dspace and dspace-ui). Both can communicate successfully to common Dspace database.
 
Could anyone please clarify, if someone has done & configured load balancing or HA between two Dspace servers using shared storage (NAS).
Please guide me to take this forward.
 
Thanks in advance
 
With Warm Regards
Ravi Konila

Mark H. Wood

unread,
Jul 25, 2023, 12:56:18 PM7/25/23
to dspac...@googlegroups.com
On Tue, Jul 25, 2023 at 10:14:10PM +0530, Ravi Konila wrote:
> I have successfully installed two Dspace 7.6 servers with a common NAS storage connected to both the servers used for bitstore/assetstore.
> Both the servers works fine individually with the shared storage. But items/community/collection created in one is not visible in other one.
> Please note that, both the servers use same Postgresql 15 server/db.
>
> The Dspace configurations are identical (dspace and dspace-ui). Both can communicate successfully to common Dspace database.
>
> Could anyone please clarify, if someone has done & configured load balancing or HA between two Dspace servers using shared storage (NAS).
> Please guide me to take this forward.

I have not attempted this. But I think that the two instances must
also share a single Solr instance.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

Ravi Bhat

unread,
Jul 30, 2023, 1:32:43 PM7/30/23
to DSpace Technical Support
Hi Mark, 
Thanks for the suggestion but still the same problem. 

I have tried below
1. Single solr service but still same problem, but I need solr also in HA mode
2. Kept Dspace backend in common NAS but can specify only one frontend URL and one backend URL in local.cfg. Only one DSpace instance works at a time, the other one shows error 500. But again items/collections/communities created in one cannot be seen in another even though, DSpace backend is common to both the frontends. 

Does anyone have any idea or suggestion on at least DSpace frontend HA with a common DSpace backend?

Regards
Ravi Konila

DSpace Technical Support

unread,
Jul 31, 2023, 11:01:40 AM7/31/23
to DSpace Technical Support
Hi Ravi,

I've not done this myself before, but you might want to look closely at the underlying error behind that 500 exception.  Sometimes a simple configuration issue can be the cause of the 500.


One other thing to check is that the backend (REST API) "trusts" the User Interface.  This is controlled by the "rest.cors.allowed-origins" setting (in the rest.cfg). That setting must list all web-based clients which are using the REST API, otherwise they may be blocked with a 500 exception.

Tim

Ravi Konila

unread,
Jul 31, 2023, 12:13:16 PM7/31/23
to DSpace Technical Support
Hi Tim
 
Thanks for the reply.
 
What should be dspace.ui.url and solr.server (in local.cfg) since I am using two frontends in two different servers?. Dspace backend is in common NAS mounted on /dspace.
I am only confused how do I make my backend pointing to frontend since there are 2 frontends.
 
Individually, each Dspace instance works fine. But how do I load balance them? at least I need to load balance front end UI.
 
Please note my postgres servers are in already HA in two different servers.
 
With Warm Regards
Ravi

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/80dc838f-935b-4b85-8c80-8feecf7e41f4n%40googlegroups.com.

Raghwendra Narayan

unread,
Jul 31, 2023, 1:36:49 PM7/31/23
to Ravi Konila, DSpace Technical Support
Hi Ravi,

U can use main DB to both front end.  It will work 💯.  I am using similar configuration.

Regards.

Ravi Konila

unread,
Aug 1, 2023, 12:52:48 AM8/1/23
to Raghwendra Narayan, DSpace Technical Support
Hi Raghwendra
 
Could you please elaborate on what you are suggesting. My postgres is already in HA and I do not have any problems with the db.
If you are referring DB as Dspace Backend, it is already common to both the frontends.
 
With Warm Regards
Ravi K.
Ph: +91-9901072688

Mark H. Wood

unread,
Aug 3, 2023, 12:26:21 PM8/3/23
to dspac...@googlegroups.com
On Sun, Jul 30, 2023 at 10:32:43AM -0700, Ravi Bhat wrote:
> Hi Mark,
> Thanks for the suggestion but still the same problem.
>
> I have tried below
> 1. Single solr service but still same problem, but I need solr also in HA
> mode

Again, not something I have attempted. If you need HA Solr then read
up on "Solr Cloud". Your cores become "collections" replicated across
several Solr instances. (This is orthogonal to "sharding": each core
in a collection can hold replicas of all records.)

When you have this working, I'm sure we would appreciate hearing the
details and your experience.
signature.asc

Ravi Bhat

unread,
Aug 7, 2023, 12:14:50 AM8/7/23
to DSpace Technical Support
Hi Mark & Tim

I have installed Solr cloud successfully but I am not able to understand where to copy Dspace Solr files. Tried to copy them to the data location as well as to cloud/solr location but Solr doesn't recognize them. Any idea where to place Dspace Solr files in Solr cloud scenario?

Thanks for support
Regards
Ravi

Mark H. Wood

unread,
Aug 21, 2023, 11:32:47 AM8/21/23
to dspac...@googlegroups.com
On Sun, Aug 06, 2023 at 09:14:50PM -0700, Ravi Bhat wrote:
> I have installed Solr cloud successfully but I am not able to understand
> where to copy Dspace Solr files. Tried to copy them to the data location as
> well as to cloud/solr location but Solr doesn't recognize them. Any idea
> where to place Dspace Solr files in Solr cloud scenario?

SolrCloud works differently. You cannot simply copy an empty core
into a Cloud instance; collection configurations are installed in
Zookeeper, which will distribute them to all of its dependent
Solr instances. I would start reading at
https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html#collections-and-cores
and get some practice with a non-production cloud first.
signature.asc
Reply all
Reply to author
Forward
0 new messages