incubator-openmeetings-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "seba.wagner@gmail.com" <seba.wag...@gmail.com>
Subject OpenJPA Clustering (and MySQL Replication)
Date Mon, 14 Jan 2013 20:42:06 GMT
Hi,

we are currently drafting/implementing some clustering mechanisms for
Apache OpenMeetings.

I have seen OpenJPA supports the MySQL Replication feature:
http://people.apache.org/~mikedd/nightly.builds/apache-openjpa-2.3.0-SNAPSHOT/docs/docbook/manual/ref_guide_dbsetup_dbsupport.html#ref_guide_dbsetup_dbsupport_mysql
which is great!

However it solves only one side of the cluster: Having the database
clustered.

What happens if you want to cluster OpenJPA itself on multiple nodes? Each
OpenJPA instance would have its own data-cache, how can you make sure those
caches are synchronized across all nodes in your cluster?
And how would you solve the primary key/sequencer issue? When multiple
instances write to the same database they could potentially try to create a
record with the same primary key.

Thanks!
Sebastian

-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wagner@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message