Hello guys,
I have subsonic up and running and it has worked fairly well (for the most part). Even though I have the following inconvenient issue that i haven't been able to figure out (yet):
My setup looks as following: Main Server - Varnish Cache:80 -> Apache2 Proxy Server:8080 -> Subsonic backend Server:4040
My Varnish Cache along with Apache2 Proxy servers all requests 80/443 from my internal servers. I have few servers in the backend and Subsonic is one of them.
I have properly set Varnish rules to pass the requests to my proxy without messing with anything if the request is made to my subsonic-server backend. The problem is that it takes about 8-10 seconds to play any song after clicking 'play'. Basically the request waits until the transcoding is completed to start playing the song. It happens only when the request goes through my apache2 proxy. If I browse locally to http://server-subsonic:4040 I can play the songs on the fly without waiting for the transcoding to complete.
Reading online I found a guy who mentioned "ProxyPass /subsonic/ ajp://localhost:4040/subsonic/" so he is using the AJP connector for tomcat but the AJP connector communicates with a web connector via the AJP protocol. This is used for cases where you wish to invisibly integrate Tomcat 6 into an existing (or new) Apache installation, and you want Apache to handle the static content contained in the web application, and/or utilize Apache's SSL processing. I'm not using SSL and I can play my music just fine EXCEPT for the delay of the transcoding as I mentioned earlier.
Can anyone give me a hint here or provide me with information to get over this transcoding delay and play the file on-the-fly as it happens in my local network?
Any comment, hint or suggestion is highly appreciated! Please!
