DB replication
Wednesday, 16 May 2012 · 4 messages · last reply 18 May 2012
GC
Gilles CARRY16 May 2012 10:43 #
Hello,
Is there any simple way to perform a one-way replication with BaseX? The needed replication is: serverA -> serverB
Where serverB is read-only.
I would imagine a basic system such as server forwarding updates to server. Or more simply, is there any logging of the update queries so we can just feed them to serverB?
Thank-you,
Best regards,
Gilles.
AW
Andreas Weiler16 May 2012 10:59 #
Hello Gilles,
you could probably have a look at the event framework of BaseX to forward updates:
http://docs.basex.org/wiki/Events
However if serverB is read-only? How would you write the updates to that one?
-- Andreas
Quoted text · Gilles CARRY · 16 lines
Am 16.05.2012 um 10:43 schrieb Gilles CARRY: > Hello, > > Is there any simple way to perform a one-way replication with BaseX? > The needed replication is: serverA -> serverB > Where serverB is read-only. > I would imagine a basic system such as server forwarding updates to server. > Or more simply, is there any logging of the update queries so we can just feed them to serverB? > > Thank-you, > Best regards, > Gilles. > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
MH
Mike Hawkes16 May 2012 11:01 #
Actually, I would love this too - is there any chance of providing a log file option to allow the log to contain XML rather than text? Each query could then have a <query/> tag - a simple process then to read in all queries and recreate the entire database, to any given point?
Cheers
Mike
Quoted text · Andreas Weiler · 33 lines
On 16 May 2012, at 09:59, Andreas Weiler wrote: > Hello Gilles, > > you could probably have a look at the event framework of BaseX to forward updates: > > http://docs.basex.org/wiki/Events > > However if serverB is read-only? How would you write the updates to that one? > > -- Andreas > > Am 16.05.2012 um 10:43 schrieb Gilles CARRY: > >> Hello, >> >> Is there any simple way to perform a one-way replication with BaseX? >> The needed replication is: serverA -> serverB >> Where serverB is read-only. >> I would imagine a basic system such as server forwarding updates to server. >> Or more simply, is there any logging of the update queries so we can just feed them to serverB? >> >> Thank-you, >> Best regards, >> Gilles. >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CG
Christian Grün18 May 2012 04:44 #
Dear Mike,
currently, all server operations are logged as plain text and shortened to a maximum of 1000 characters per single command. If you want to have more control on logging, and provide it on a higher level, you can e.g. use functions like
file:append() to write your own logs to disk [1].
We may introduce more advanced logging and recovery/rollback mechanisms in future versions of BaseX.
Best,
Christian
[1] http://docs.basex.org/wiki/File#file:appendQuoted text · Mike Hawkes · 57 lines
On Wed, May 16, 2012 at 11:01 AM, Mike Hawkes <mikehawkes at me.com> wrote: > Actually, I would love this too - is there any chance of providing a log > file option to allow the log to contain XML rather than text? Each query > could then have a <query/> tag - a simple process then to read in all > queries and recreate the entire database, to any given point? > > Cheers > Mike > > > > On 16 May 2012, at 09:59, Andreas Weiler wrote: > > Hello Gilles, > > you could probably have a look at the event framework of BaseX to forward > updates: > > http://docs.basex.org/wiki/Events > > However if serverB is read-only? How would you write the updates to that > one? > > -- Andreas > > Am 16.05.2012 um 10:43 schrieb Gilles CARRY: > > Hello, > > Is there any simple way to perform a one-way replication with BaseX? > The needed replication is: serverA -> serverB > Where serverB is read-only. > I would imagine a basic system such as server forwarding updates to server. > Or more simply, is there any logging of the update queries so we can just > feed them to serverB? > > Thank-you, > Best regards, > Gilles. > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 7.2. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery