![]() |
#1 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 7476
Join Date: Feb 2013
Location: To the left of your body, to the right of your mind, lost in a riddle.
Device: Android phone, Nook Touch Simple Glowlight
|
Multiple Libraries from a single server?
Hi All
I have 12 libraries (all pertaining to different topics, so it makes more sense to keep them like that rather than all on one huge library). I've just started playing about with the Calibre Server, and the only drawback is it seems to only be able to serve on library at a time. A quick google says this is indeed all it can do, but all of these articles seem to be quite old, and knowing the insane rate Calibre updates come out, they may no longer be accurate. Can it do more now? And if so how? I know another way to do this is to just run twelve instances of the CLI server, which frankly seems a very inelegant way of doing things, but also raises another question. Can the GUI version and the CLI version of Calibre coexist? i.e. if I have the CLI version serving a library, but then use the GUI version to edit a book in the same library will things break, or will it update without a hitch? ~Mex |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Code:
"C:\Program Files\Calibre2\calibre-server.exe" --port 8083 --with-library C:\Users\yyyy\MainLib IMHO Less Libraries is better. A Virtual Library may accomplish much of what you need. Reasons to keep separate: Structure (columns or allowed values) differences Content filter by audience (PG13,...) non-Shareable content (vs public domain) |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 7476
Join Date: Feb 2013
Location: To the left of your body, to the right of your mind, lost in a riddle.
Device: Android phone, Nook Touch Simple Glowlight
|
Quote:
Quote:
Assuming I am forced to go with the multiple cli instances, as I asked above how well do the cli and gui versions play together? Oh, I'm running on Linux by the way, if that affects anything. ~Mex |
||
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
They play nice
![]() Kovid made them do it ![]() The old saw... Just because you did it that way years ago... Calibre did not have VL's years ago. You had no choices then. And yes, I would expect a large, single would use less resources than multiple. So you have another choice (or at least, a test case) to make ![]() |
![]() |
![]() |
![]() |
#5 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The CLI server doesn't really use a lot of resources...
Let me check my servers (I have systemd user services running for them)... Well. Currently running at a combined 0.5% CPU and 3% memory. I imagine it may start to take up more resources once I actually hit them up. ![]() As for editing in the GUI, the server will automatically pick up the new changes. Last edited by eschwartz; 12-12-2015 at 07:58 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
And do note that the currently-underway server rewrite handles multiple libraries in one process, and I can only assume from the GUI as well.
Keep an eye out for calibre v3.0, coming... sometime vaguely soon-ish. (a/k/a whenever it is ready.) |
![]() |
![]() |
![]() |
#7 | ||||
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 7476
Join Date: Feb 2013
Location: To the left of your body, to the right of your mind, lost in a riddle.
Device: Android phone, Nook Touch Simple Glowlight
|
That's great news, I was rather concerned (I remember having problems with two instances of the GUI accessing the same library on a network drive in an early experiment years ago).
Quote:
Quote:
Quote:
Quote:
~Mex |
||||
![]() |
![]() |
![]() |
#8 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
2 GUI on same Library is a No No
GUI and server is good |
![]() |
![]() |
![]() |
#9 | |||
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
![]() (Well, if the database schema is upgraded then the CLI server will perform that update...) Quote:
I make extensive use of both VLs and multiple physical libraries. Quote:
![]() When calibre v.30 comes out, you can upgrade your startup routine. Multiple CLI invocations aren't really a bad thing, honestly... as I said, it's pretty lightweight, so why not? Also, what distro do you use (I use ArchLinux), and does it use systemd as its init system? Here is a systemd unit file which starts up a calibre library via drop-in config files. ![]() Code:
[eschwartz@arch ~]$ cat ~/.config/systemd/user/calibre-server@.service [Unit] Description=Main calibre server After=network.target [Service] EnvironmentFile=/%h/.config/calibre/servers/%i.conf ExecStart=/usr/bin/calibre-server \ --port "${port}" \ --with-library "${path}" \ --restriction "${restriction}" \ --user "${user}" \ --pass "${pass}" [Install] WantedBy=default.target Code:
[eschwartz@arch ~]$ cat ~/.config/calibre/servers/amazon.conf port="" path="/home/eschwartz/Calibre Libraries/Amazon" restriction="" user="" pass="" Code:
systemctl --user start calibre-server@libraryname Code:
systemctl --user enable calibre-server@libraryname When will the new server be available? I don't know. The rewrite started in May-June (basic infrastructure), took a siesta until October (another tool needed was being worked on outside of calibre's codebase), and you can see the current progress using Code:
calibre-debug --new-server Hey, we have a partially working demo. ![]() I just stick with "exciting things are ahead". Last edited by eschwartz; 12-12-2015 at 10:05 PM. |
|||
![]() |
![]() |
![]() |
#10 | |||||||
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 7476
Join Date: Feb 2013
Location: To the left of your body, to the right of your mind, lost in a riddle.
Device: Android phone, Nook Touch Simple Glowlight
|
Yea, it was just an experiment.
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
~Mex |
|||||||
![]() |
![]() |
![]() |
#11 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Happy to help.
![]() Some people approve of multiple physical libraries, some disapprove. I take the opinion that it is all good as long as there was an intelligent decision involved. ![]() Not my job to tell someone their thought-out decisions are stupid. It is possible I will scream bloody murder if they make decisions for no reason at all. One good reason to use multiple physical libraries, for example, is if they use wildly different sets of custom columns. I am looking forward to it as well, but one of my big reasons for doing so is in order to resolve the issue of "stupid distros patch out forked/modified-from-upstream modules". calibre v3.0 apparently won't use cherrypy, that'll stop people from complaining that their calibre-servers don't work with auth. Eventually they tell us they are using the distro package... Even Arch isn't immune. Last edited by eschwartz; 12-12-2015 at 11:02 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to Host Multiple Virtual Libraries On Single System With Reverse Proxy Support | bzowk | Related Tools | 1 | 08-04-2015 07:38 PM |
Multiple libraries on Calibre server? | omf | Library Management | 4 | 02-15-2014 05:59 PM |
Used to have multiple libraries, gonna change to a single one... | gers1978 | Library Management | 9 | 05-31-2013 11:45 AM |
libraries multiple vs single? | crazyfrank | Calibre | 16 | 01-27-2013 08:15 PM |
multiple libraries in the content server? | ottovdv | Calibre | 1 | 03-27-2011 05:52 PM |