On 22.11.2013 12:56, Henning Hraban Ramm wrote:
Hi!
Am 2013-11-19 um 14:57 schrieb Henning Hraban Ramm <[email protected]>:
Hi again,
due to the nature of our project, we need a master-slave configuration:
Our master server is publicly accessible, the slave on a laptop with occasional
internet access (once a week or so), serving a few machines in a local network.
It’s not necessary to work (add/edit media) on the slave, it just needs to get
updates, as soon as it has internet access.
My idea was:
- update the installation from git, run make install etc.
- install the latest dbdump backup
- rsync /opt/invenio/var/data
Is that enough?
Or do you know a better way?
Would it make more sense to setup MySQL as master-slave?
No answer?
If it's only about serving the bibliographic data I'd go for OAI-PMH as
it makes a smaller footprint and scales way better than dumping. Just
set your master to expose the collection as OAI-PMH and harvest it from
your slave periodically. Depending on the nature of your project you'd
most likely want to have the OAI-Server anyway for visibility reasons.
I’m still working on it:
- MySQL replication works
- media files get rsync’ed (still manually)
You could include this in the postprocess of your OAI-harvesting as
Invenio exposes the URLs to the files on your master. So you could add
the neccessary fft-tag in your post.
- after that, I change the server URL in all records (like in
http://invenio-software.org/wiki/HowTo/HowToChangeSiteUrl)
This, however, would not be necessary if you harvest. Additionally,
harvesting has the charming aspect that you need to transfer only the
diff and not the whole bunch. (IMHO dbdumps are possible but not a real
solution. It could be that I differ here a bit from CERN usecases ;)
Doesn’t have anyone experiences with multi server setups to share?
Our partners just harvest JuSER every night. Works perfectly especially
as you can harvest MarcXML right away so no transition formats necessary.
Isn’t it possible to save media files only with relative paths (since those are
the same on all servers)?
I don't get that. If they are all on the same network, why the fuss with
the laptop? However, you could just not include the full texts and let
the URI point to your master. (However, then I still don't get the laptop.)
--
Kind regards,
Alexander Wagner
Scientific Services / Scientific Publishing
Central Library
52425 Juelich
mail : [email protected]
phone: +49 2461 61-1586
Fax : +49 2461 61-6103
http://www.fz-juelich.de/zb/wp
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------