Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Orion high availability support

Hi Sergio,
 
This is certainly supported, but how to do it is not very well documented. I found this blog post that gives some of the explanation:
 
http://pweclipse.blogspot.ca/2014/09/looking-at-high-availablility-with.html
 
I have just copied some of the core information into the orion server admin guide:
 
https://wiki.eclipse.org/Orion/Server_admin_guide#Configuring_Orion_for_clustering_and_high_availability
 
If you follow these steps and still see problems, please follow up here with more questions!
 
John
 
----- Original message -----
From: "Rozenszajn, Sergio" <sergio.rozenszajn@xxxxxxx>
Sent by: orion-dev-bounces@xxxxxxxxxxx
To: "orion-dev@xxxxxxxxxxx" <orion-dev@xxxxxxxxxxx>
Cc:
Subject: [orion-dev] Orion high availability support
Date: Wed, Oct 21, 2015 2:40 AM
 

Hi,

 

We are trying to implement Orion 8 with high availability. We will have multiple VM's that run Orion with a shared file system where the workspace files are maintained. We have turned on FileLocker.locking.

In one of our automatic tests we log on with same user id from different sessions/different VM's. In this test each session tries to create multiple projects in parallel.

As a result we get this error:

2015 10 21 05:40:09#+00#ERROR#org.eclipse.orion.server.config##anonymous#http-bio-8041-exec-6#na#hcproxy#orion#web#hcproxy#Meta File Error, cannot read JSON file /mnt/perm_storage/persistent/orion_web/xe/xeee1cc67/P9/P900902/xeee1cc67$P900902-OrionContent.json from disk, reason: A JSONObject text must begin with '{' at character 0

 

 

When doing the same from a single VM, it works fine.

 

I assume that we have here a locking issue when updating metastore.json file from different processes.

I was planning to use a FileLocker lock in SimpleMetaStore.java, instead of the ReadWriteLock to have a lock on file level that protects from cross process access.

 

The question is if you have already noticed this issue and if there is a proposed solution.

 

Best Regards

 

Sergio Rozenszajn

 

_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev
 


Back to the top