From 7c444dea6e3eb14e3c3da69acc345fa6e0b0f685 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 19 Sep 2014 22:09:58 +0200 Subject: doc/user: add section "Satellite setup" --- doc/user.xml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 2 deletions(-) (limited to 'doc/user.xml') diff --git a/doc/user.xml b/doc/user.xml index 489696d01..82b5c9866 100644 --- a/doc/user.xml +++ b/doc/user.xml @@ -195,7 +195,9 @@ systemctl start mpd.socket files on a remote file server. For example, to use music from the SMB/CIFS server "myfileserver" on the share called "Music", configure the music directory - "smb://myfileserver/Music". + "smb://myfileserver/Music". For a + recipe, read the Satellite + MPD section. @@ -1078,6 +1080,66 @@ systemctl start mpd.socket + + Advanced configuration + +
+ Satellite setup + + + MPD runs well on weak machines such + as the Raspberry + Pi. However, such hardware tends to not have storage + big enough to hold a music collection. Mounting music from a + file server can be very slow, especially when updating the + database. + + + + One approach for optimization is running + MPD on the file server, which not + only exports raw files, but also provides access to a readily + scanned database. Example configuration: + + + music_directory "nfs://fileserver.local/srv/mp3" +#music_directory "smb://fileserver.local/mp3" + +database { + plugin "proxy" + host "fileserver.local" +} + + + + The music_directory + setting tells MPD to read files + from the given NFS server. It does this by connecting to the + server from userspace. This does not actually mount the file + server into the kernel's virtual file system, and thus + requires no kernel cooperation and no special privileges. It + does not even require a kernel with NFS support, only the + nfs + storage plugin (using the libnfs + userspace library). The same can be done with SMB/CIFS using + the smbclient + storage plugin (using libsmbclient). + + + + The database + setting tells MPD to pass all + database queries on to the MPD + instance running on the file server (using the proxy + plugin). + +
+
+ Using <application>MPD</application> @@ -1361,7 +1423,7 @@ buffer_size: 16384 -
+
<varname>proxy</varname> -- cgit v1.2.3