mirroring gallery

tnt

Joined: 2006-10-24
Posts: 14
Posted: Sun, 2012-06-10 14:11

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.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2012-06-11 00:30

you could use a REST gallery http://gallery.menalto.com/node/106581

-s

 
angelo.corbo
angelo.corbo's picture

Joined: 2010-07-19
Posts: 8
Posted: Fri, 2013-05-10 18:26

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

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Fri, 2013-05-10 19:03

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2013-05-10 19:15

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

 
angelo.corbo
angelo.corbo's picture

Joined: 2010-07-19
Posts: 8
Posted: Fri, 2013-05-10 19:57

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.