Can Subsonic support a great amount of simultaneous users?

General discussions.

Moderator: moderators

Can Subsonic support a great amount of simultaneous users?

Postby cfmoro » Sun Jun 05, 2011 9:51 pm

Hi all,

First of all congratulations to the whole development team for this great software.
I would like to ask if Subsonic can support streaming to a great amount of simultaneous users (in order of thousands or +). It would be the case of a service similar to grooveshark, but based on Subsonic platform. How much could the system escalate? Are there any decisive software limits or the decisive factor would be machine (hardware) and connection resources?

Keep the good work.
cfmoro
 
Posts: 2
Joined: Sun Jun 05, 2011 9:16 pm

Postby OlYeller21 » Sun Jun 05, 2011 11:37 pm

Are you actually planning on taking on such a venture? I'm hoping not as you'll undoubtedly get sued for sharing to thousands of people.

Regardless, from what I understand of the software, the issues you would face having 1k+ users would lie with your server(s) and connection. There's more to it than that but you're talking about starting something larger than your home computer and home connection would be able to handle.
OlYeller21
 
Posts: 86
Joined: Fri Aug 27, 2010 8:09 pm

Postby cfmoro » Mon Jun 06, 2011 1:25 am

Hi, OlYeller21

Thank you for your answer.

OlYeller21 wrote:Are you actually planning on taking on such a venture?


I'm interested in evaluating its technical feasibility.

It would require some modifications of Subsonic's base implementation. I list some that come to my mind:
a) A global robust database. By replacing HSQL for a standalone db server with replication and clustering capabilities (as PostgreSQL).
b) Several apache-tomcat instances connected to the central database. The number of instances (and bandwidth) would depend on the amount of users. Load balancing.
c) No on-the-fly transcoding for streaming. Maybe transcode after user uploads.
d) A global chat system, interfaced by all the instances, with diverse chatrooms.

Which other critical 'gross' technical issues could be considered?

Best regards
cfmoro
 
Posts: 2
Joined: Sun Jun 05, 2011 9:16 pm

Postby GJ51 » Mon Jun 06, 2011 1:41 am

Let's see ... 1000 users at 256kbps = 256,000kbps to 1000 different ip addresses ... what's your upload speed? What kind of router? how much ram, what cpu?

Who knows anything's possible if you have enopugh horsepower. I don't think any of us with decent hardware have ever had our systems stressed anywhere near to capacity just serving music. I'd love to see where the upper limits are and the hardware you use.

I've got about pretty solid 25 mbps upload speed so I guess you'd just about max me put at 100 users.

You'd need an upload speed of about 250Mbps. Or 10 FIOS connections using seperate connections. If you find an affordable 300Mbps upload connection, let us know. :wink:

EDIT: http://blog.tmcnet.com/blog/rich-tehran ... ocket.html

Maybe soon?
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby martyscholes » Mon Jun 06, 2011 3:22 pm

cfmoro wrote:Hi, OlYeller21

Thank you for your answer.

OlYeller21 wrote:Are you actually planning on taking on such a venture?


I'm interested in evaluating its technical feasibility.

It would require some modifications of Subsonic's base implementation. I list some that come to my mind:
a) A global robust database. By replacing HSQL for a standalone db server with replication and clustering capabilities (as PostgreSQL).
b) Several apache-tomcat instances connected to the central database. The number of instances (and bandwidth) would depend on the amount of users. Load balancing.
c) No on-the-fly transcoding for streaming. Maybe transcode after user uploads.
d) A global chat system, interfaced by all the instances, with diverse chatrooms.

Which other critical 'gross' technical issues could be considered?

Best regards


You've got me curious. Set up a bunch of faux clients on the LAN and see which pieces of the stack begin to stumble first. From my personal use -- five relatively heavy users of audio and video -- the CPU, memory and disk usage isn't even a blip on the reports, but I have orders of magnitude fewer users.

Try it out and report back what you see.
martyscholes
 
Posts: 41
Joined: Fri May 06, 2011 3:36 pm

Postby Kirk » Mon Jun 06, 2011 6:58 pm

If you're having to transcode the music, then the CPU of the system will probably be your bottleneck. If not, the bandwidth of the Internet connection will probably be the upper limit.

-Kirk
Image
User avatar
Kirk
 
Posts: 310
Joined: Tue Jun 08, 2010 5:45 pm
Location: Illinois, USA

Postby lovebags » Tue Jun 07, 2011 11:00 pm

I've maxed out my server a few times with too many users but I think it might have been due to available machine memory or a subsonic memory issue rather than CPU or bandwidth.

I have had around 40 users at once on a MacPro running on 3GB RAM, Gbit connection streaming 192kbps tracks. CPU usage was around 30-40% but as more users connected, available free memory on the system reduced to near zero. However, memory usage of subsonic was around 250MB and 85 threads. The server just stopped responding to requests although subsonic didn't crash during those times. Each time it has seized up I have rebooted the machine to get it freed up again.[/i]
User avatar
lovebags
 
Posts: 86
Joined: Wed Feb 02, 2011 1:49 am

Postby GJ51 » Tue Jun 07, 2011 11:34 pm

What is your internet upload speed?
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby lovebags » Wed Jun 08, 2011 10:39 pm

I have about 50Mbps upload so should be well within having at least 50 users stream 192kbps files.
User avatar
lovebags
 
Posts: 86
Joined: Wed Feb 02, 2011 1:49 am

Postby GJ51 » Wed Jun 08, 2011 11:35 pm

Should be good for about 250.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby lovebags » Thu Jun 09, 2011 2:41 am

Yes I theory but the real-world results didn't quite match due to the issues I had above. Would be interesting to know what the most simultaneous users anyone has ever been able to get out of a subsonic setup.
User avatar
lovebags
 
Posts: 86
Joined: Wed Feb 02, 2011 1:49 am


Return to General

Who is online

Users browsing this forum: No registered users and 15 guests