Hi,

@thanks Aria Strwart

I have made it work socketClusters for server and client ( my map page ) 
location communication. Its working fine.

My server(VPS) configuration is as follows

Ubuntu 14.10 64bit
8GB RAM
4 core

I am using socketCluster <http://socketcluster.io/> on the server with the 
no of worker equivalent to the no of Core/CPU (i.e) 4 workers in my case
The CPU usage with the *htop* command in server terminal is *45%*
Memory usage was around *4GB / 8GB* & swap space not used
The *ab* command i used to load the server was

ab -n 20000 -c 20000 "http://IP_ADDRESS:8000/API_INFO";

when i load test my server with the above command i am getting the below 
error

apr_socket_recv: Connection reset by peer (104)  

i have increased the ulimit - n 999999 and
no of soft and hard files opening to 1000000

Thats neither fix the issue. 

What would be the cause? how can i achieve more concurrency. as i have 
mentioned in my first mail i need to scale the server that can handle 1M 
concurrent connection.


Thanks in advance,
josan

On Sunday, March 22, 2015 at 9:03:51 PM UTC+5:30, Jothi Sankar wrote:
>
> Hi Everyone,
>
> I am a beginner in Node.js. I have been working on some back-end server 
> API that will listen for location information from our client devices and 
> the API will drop a pin on google map that will be rendered in server ( 
> without reloading the page ). We have been discussing about the server 
> capabilities.In our case we are about to handle millions of server 
> requested so we need a concurrent server like Node.js. We have been 
> searching for the optimized way of implementing this in Node.js 
>
> Need clarification on some basic area. Hope the community will clarifies 
> our doubts. 
>
> Should our server as HTTP server? 
>   Coz on client devices does nothing with the responses from the server. 
> It can be avoidable. 
> What will be best suitable server for us like TCP?
> Shoule we use web-sockets for this?
>
> Share some tutorials that will really help us to understand the node 
> server better. We are happy to learn but we need some one to guide us in 
> right direction. So came here. 
>
> Thanks and Regards,
> Jothi sankar.
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/39b5e843-6053-4aac-b7d6-048246961dc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to