2 XBMC PCs and 1 Database on the shared NAS - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Windows support (/forumdisplay.php?fid=59)
+---- Thread: 2 XBMC PCs and 1 Database on the shared NAS (/showthread.php?tid=70603)
- bradvido88 - 2010-03-25 22:24
MrDVD Wrote:For me the serverside image cache works also without any speed problems. .
Yes... please do explain this
- charrua - 2010-03-26 00:46
I'm finally home, so I've tested both options: central networked cache and running xbmc from the server on all the clients.
My setup: 1 server running win2008r2 and mysql server, 4 clients running win7, cabled gigabit network
Here's the results I got:
-Central Network Shared Cache: It does work, but in my trial it takes thrice the time of XBMC using a local cache to load the movie list screen. So (as expected) it works but it's noticeable slower, at least in my case.
-Running XBMC directly from the server: it works when running from only one client, if I try to run a second instance it doesn't even open the welcome screen...
Am I missing something?
- MrDVD - 2010-03-26 00:58
Hallo, my server is linux based and my xbmc clients also. (both on Ubuntu 9.10)
The image cache, mysql and all media are on the server.
Each clients run there own xbmc but the Thumbnails folder is on the server and only linked to the default folder on the clients.
The server itself run also an xbmc.
Total i run 3 clients and cant see any diff from the speed. (local / remote Thumbnails folder)
Now i cant wait for new funktions like "follow me" or something like this
A simple sql command inside mysql:
When i run the same command inside an SQLite Manager it takes ~ 3-4 sec.
- charrua - 2010-03-26 01:10
MrDVD Wrote:Hallo, my server is linux based and my xbmc clients also. (both on Ubuntu 9.10)
Thanks for your reply
I understood that you were running XBMC from the server as RenZ0R suggested...
Regarding the speed of the GUI while using a common networked cache, have you compared both options (local vs. networked cache) from the same XBMC instance and you didn't find any difference in response times?
The good news is that if you are running MySQL as the central db server for XBMC you already have the "follow me" functionality, because the position where you stop watching a video is stored in the db, so you can recover that position from any XBMC client accesing the MySQL db.
- charrua - 2010-03-26 01:18
MrDVD Wrote:Edit:The query you've presented here meassures the access times to the database not access times to the image cache.
Have you compared the access times to the image cache local vs networked?
- bradvido88 - 2010-03-26 03:23
charrua Wrote:Here's the results I got:How did you set up the folder redirection for the central shared cache?
- charrua - 2010-03-26 03:42
bradvido88 Wrote:How did you set up the folder redirection for the central shared cache?First I copied the thumbnails folder inside userdata to the server, then I shared that path from the server, renamed the thumbnails folder inside userdata folder in the client machine to thumbnails.old (to avoid its deletion) and finally made a NTFS directory symbolic link pointing to the shared folder in my server with the command:
- MrDVD - 2010-03-26 08:42
charrua Wrote:Thanks for your replyNo, each client have his own xbmc install.
- rtrimarchi - 2010-03-26 12:56
when you said:
Quote:The image cache, mysql and all media are on the server.you were referring to a LINUX environment.
In a WINDOWS environment, Where in XBMC do you create this LINK to the server thumbnails folder ON the SERVER
So far, as charrua said at the beginning, in XBMC you have ONLY to modify the ADVANCEDSETTINGS.XML like this:
- charrua - 2010-03-26 13:27
rtrimarchi Wrote:MrDVD,rtrimarchi, that is correct for the library database connection (also valid for linux environments), but MrDVD is trying to solve the thumbnail cache problem: XBMC clients connecting to a central MySQL database don't regenerate thumbnails for new media scraped by other XBMC clients storing info in the same database.
He is using a folder on his server to store the thumbnail cache, and then he shared it on his network and mapped the local thumbnail cache folder on each machine running XBMC to the one shared from his server. And IMHO is a fine temporary solution until a new and improved image cache system is in place, the biggest problem with his solution is that (at least in my case) performance of the XBMC GUI slows down noticeable when using the networked cache vs. the local one. If you want you can try it and see if it works for you and it's fast enough for what you need.
- rtrimarchi - 2010-03-26 13:50
since I wanna give it a try .......
where in XBMC should I change the path from local "thumbnail" folder to the remote "thumbnail folder"
I mean which configuration file tells XBMC the location where to store the thumbnails
Of course I should replace it with the remote path \\server address\shared name ..... right
Also.... if I understand correctly......the two solution (mysql + remote thumbnails) can be BOTH done simultaneously ... right
- MrDVD - 2010-03-26 14:16
I cant say it for windows but i think it works like charrua posted it here, just copy the tumbnail folder from on of your clients to an server and link the folder from your server back to the client.
If you dont like the remote rsync folder try something like this rsync im sure there is also something like this for windows.
- bradvido88 - 2010-03-26 14:17
charrua Wrote:First I copied the thumbnails folder inside userdata to the server, then I shared that path from the server, renamed the thumbnails folder inside userdata folder in the client machine to thumbnails.old (to avoid its deletion) and finally made a NTFS directory symbolic link pointing to the shared folder in my server with the command:
Perfect! I'll try that and report back about speed.
- rtrimarchi - 2010-03-26 14:51
But instead of creating a symbolic link with mklink, isn't there an .xml file in XBMC where we can modify this local path with the remote one
- charrua - 2010-03-26 14:56
rtrimarchi Wrote:Also.... if I understand correctly......the two solution (mysql + remote thumbnails) can be BOTH done simultaneously ... rightYes, you're right.
rtrimarchi Wrote:But instead of creating a symbolic link with mklink, isn't there an .xml file in XBMC where we can modify this local path with the remote oneNot that I know of...