node.js - Low download speed -


hey guys having big problem , need advice .

i have dedicated server informations :

  • atom c2750 8/8t 2,4 / 2,6 ghz
  • 16 gb ram ddr3 1600mhz
  • 12tb
  • 500mbps bandwidth
  • list item
  • 1gbps network burst

i running website using nodejs users can download high volume files .

the website evolved rapidly , having 10k users per day , average of 1k concurrent users (downloads).

the problem server getting lower , lower download speed on client's side have added throttle downloads 800kb/s , did bit problem remains same should ?

thanks

you have figure out worst bottleneck is. have design measurements , tests , maybe calculations determine bottleneck is.

here possibilities:

  1. total server bandwidth on server ethernet connection internet. if have 1k users trying download , have 500mbps total bandwidth, you're going 0.5mbps or 500kbps per user. @ point, need either shrink data, reduce number of users or increase server bandwidth.

  2. server cpu. should easy detect. check cpu utilization. if node.js process using 100% of cpu, cpu bound , either need faster computer or if have multi-cpu processor, can cluster server on same host more cpus working you. if don't have multi-cpu process, 1 or cluster across multiple servers (the idea need more cpus). though have no idea if cpu bound (i suspect you're more bandwidth bound), atom c2750 has 8 cores clustering, each core not particularly fast compared other intel cpus.

  3. network card. it's possible network card holding , not saturating bandwidth. example, if had 100mbps network connection server, that's max bandwidth can use. if think should have 1gbps network connection server, need make sure getting fast link.

fyi, 1gbps network burst doesn't if have lots of users downloading stuff on longer period of time. useful sudden , short peak of activity, not continuous high load.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -