Hello.
I have two hosts where I would like to have the same content of low usage gallaries.
Just one instance should be changed from time to time, while other one could be considered as "read-only".
Link between the hosts is quite slow (~400kbps).
I was thinking about syncing "var/albums" content during the night, but what to do with database and the rest of "var" dir containing resizes and other dynamic data?
Can the same database be accessed by both gallery instances?
Link is slow, but database communication throughput should not be so demanding.
Should "read-only" gallery instance have "read-only" user for database access?
Or, I should not try this and should host two separatre databases syncing them during the night too?
If the original gallery instance already made some resize pic, will "read-only" instance make its' own resize once it notice there's no resized file in "var" ?
Is there maybe some more official/right way to achieve two identical galleries on two different hosts?
Hooh... A lot of questions.
Thx.
Posts: 8339
you could use a REST gallery http://gallery.menalto.com/node/106581
-s
Posts: 8
Hi suprsidr,
I was looking at the examples of your implementation of RESTful ( /node/106581 ) and I was wondering if that would work for a full-featured (as in a complete mirror) of a Gallery3 site. I see the original poster, tnt, didn't reply, and without having gone in depth reading the code and looking closely at the features/functionalities available through the API, I wondered if you might be able to give me a heads up on what and what NOT to expect... I saw, for example, that registered user-access was still an issue to be finalized.
In any event, great work and kudos to you for expanding the boundaries of Gallery3.
--a
Posts: 814
There is a 'folder sync' module that you could probably use to sync from the var/albums on your 'primary' gallery - might be what you're looking for...
For the module: http://codex.galleryproject.org/Gallery3:Modules:folder_sync
Forum Module Discussion: http://galleryproject.org/node/109161
Posts: 8339
RESTful is display only, I have not checked to see if the rest login is still broken in the latest G3.
-s
________________________________
All New jQuery Minislideshow for G2/G3
Posts: 8
jnash, will explore 'folder sync', although at first sight it doesn't tell me how would the database-related information be handled, other than manually importing new iterations of it.
suprsidr, 'display only' would be sufficient in the usecase I'm thinking about, Thanks.