View Single Post
Old 07-23-2018, 12:49 AM   #9
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by rmzg View Post
What exactly is a calibre "v2 server"? Like, where would you get/run it and what would that difference be?
Calibre has had four major versions, 0, 1, 2, and 3. A "V2" server is a server running calibre V2, for example this one. A "V3" server is one running a current calibre release. The reason I suggested a V2 server is that V3 supports changing libraries. CC recognizes this fact and changes the URLs somewhat to make use of the feature.

As for where you would run it: up to you. Personally I would do development using a server attached to a calibre GUI instance. I run my production server on a Linode VPS.
Quote:
Also, will calibre-server complain if its metadata.db is changed out from underneath it?
No. However, depending on the calibre version it may or may not notice.
Quote:
How often does it actually read the database?
If memory serves me correctly, a V2 server reads the DB at startup. Depending on the underlying OS, it may reread the DB if it changes. I recall that on my Linux VPS the calibre V2 server never reread the DB. I used monit to detect a DB change and restart the server.

A V3 server will reread the DB if its timestamp changes.

It would be better to ask server questions on the dedicated server subforum in calibre. Kovid (author of calibre) hangs around there and can give definitive answers. I also check that subforum so could chime in if there is a CC interaction question or if you are asking about calibre code I wrote (not much in the server itself).
chaley is offline   Reply With Quote