BaseX and docker

Friday, 23 November 2018 · 4 messages · last reply 2 Dec 2018
FB
France Baril23 Nov 2018 10:17 #
Hi, For one of my projects, we want to set up BaseX as part of an online application. I was wondering if anyone has experience installing BaseX in a Docker setup and if so how things got split up. In our case, each client will have many database, we're afraid that if we use a single baseX installation, it will have too many attached dbs. So we were thinking that we could use 1 application but save1 data/repo per client in their own docker unit , then again, since .basex can only link to 1 repo/data, it doesn't seem possible. If you consider 1000 clients with an average of 30 (1 per language) database each, would you use a single installation and manage security at the db level with all dbs for all clients in the same setup or would you suggest 1 full instance (server + set of db) per client? Links to any case study would be useful too.
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com
MG
Maximilian Gärber26 Nov 2018 20:59 #
Hi France, we decided not to follow the docker path (at the time there wasn't even a way to easily map host os to container users, so you had to work with fixed user ids...). You can set the path in the Context object, as I've tested here: https://github.com/axxepta/basex-multitenant/blob/master/src/main/java/de/axxepta/basex/App.java The idea here is to map the request, eg: /api/customer1/db2 to another Context than /api/customer2 Br, Max Am Fr., 23. Nov. 2018 um 10:17 Uhr schrieb France Baril <france.baril at architextus.com>:
Quoted text · France Baril · 15 lines
> > Hi, > > For one of my projects, we want to set up BaseX as part of an online application. I was wondering if anyone has experience installing BaseX in a Docker setup and if so how things got split up. > > In our case, each client will have many database, we're afraid that if we use a single baseX installation, it will have too many attached dbs. > > So we were thinking that we could use 1 application but save1 data/repo per client in their own docker unit , then again, since .basex can only link to 1 repo/data, it doesn't seem possible. If you consider 1000 clients with an average of 30 (1 per language) database each, would you use a single installation and manage security at the db level with all dbs for all clients in the same setup or would you suggest 1 full instance (server + set of db) per client? > > Links to any case study would be useful too. > > -- > France Baril > Architecte documentaire / Documentation architect > france.baril at architextus.com
BV
Bram Vanroyin reply to France Baril, 23 Nov 2018, 10:1729 Nov 2018 16:02 #
Hi Please don’t be afraid to use hundreds or even thousands of databases with BaseX. Colleagues of mine and I wanted to make querying huge (+500M tokens) treebanks (large, parsed corpora) faster. We preprocessed our data and ended up with millions of databases that were all served with a single BaseX instance. You can read about it here: Querying large treebanks : benchmarking GrETEL indexing Vanroy, Bram, Vandeghinste, Vincent and Augustinus, Liesbeth COMPUTATIONAL LINGUISTICS IN THE NETHERLANDS JOURNAL. 2017. 7 p.145-166 Bram
Quoted text · BaseX-Talk · 13 lines
From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de> On Behalf Of France Baril Sent: Friday, November 23, 2018 10:18 To: BaseX <basex-talk at mailman.uni-konstanz.de> Subject: [basex-talk] BaseX and docker Hi, For one of my projects, we want to set up BaseX as part of an online application. I was wondering if anyone has experience installing BaseX in a Docker setup and if so how things got split up. In our case, each client will have many database, we're afraid that if we use a single baseX installation, it will have too many attached dbs. So we were thinking that we could use 1 application but save1 data/repo per client in their own docker unit , then again, since .basex can only link to 1 repo/data, it doesn't seem possible. If you consider 1000 clients with an average of 30 (1 per language) database each, would you use a single installation and manage security at the db level with all dbs for all clients in the same setup or would you suggest 1 full instance (server + set of db) per client? Links to any case study would be useful too. -- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com<mailto:france.baril at architextus.com>
FB
France Baril2 Dec 2018 09:56 #
This is interesting. Thank you both. We're set on Docker for now, but these open up options if things don't go our way.
Quoted text · Bram Vanroy · 67 lines
On Thu, Nov 29, 2018 at 4:02 PM Bram Vanroy <Bram.Vanroy at ugent.be> wrote: > Hi > > > > Please don’t be afraid to use hundreds or even thousands of databases with > BaseX. Colleagues of mine and I wanted to make querying huge (+500M tokens) > treebanks (large, parsed corpora) faster. We preprocessed our data and > ended up with millions of databases that were all served with a single > BaseX instance. You can read about it here: > > > > *Querying large treebanks : benchmarking GrETEL indexing* > > Vanroy, Bram, Vandeghinste, Vincent and Augustinus, Liesbeth > COMPUTATIONAL LINGUISTICS IN THE NETHERLANDS JOURNAL. 2017. 7 p.145-166 > > > > Bram > > > > *From:* BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de> *On > Behalf Of *France Baril > *Sent:* Friday, November 23, 2018 10:18 > *To:* BaseX <basex-talk at mailman.uni-konstanz.de> > *Subject:* [basex-talk] BaseX and docker > > > > Hi, > > > > For one of my projects, we want to set up BaseX as part of an online > application. I was wondering if anyone has experience installing BaseX in a > Docker setup and if so how things got split up. > > > > In our case, each client will have many database, we're afraid that if we > use a single baseX installation, it will have too many attached dbs. > > > > So we were thinking that we could use 1 application but save1 data/repo > per client in their own docker unit , then again, since .basex can only > link to 1 repo/data, it doesn't seem possible. If you consider 1000 clients > with an average of 30 (1 per language) database each, would you use a > single installation and manage security at the db level with all dbs for > all clients in the same setup or would you suggest 1 full instance (server > + set of db) per client? > > > > Links to any case study would be useful too. > > > > -- > > France Baril > Architecte documentaire / Documentation architect > france.baril at architextus.com >
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com

⚡Generated with XQuery