ruby on rails - What's the best way to 'ping' thousands of servers every minute? -


I run a server monitoring site for a video game. It monitors thousands of servers (currently 15,000 or so).

My current setup is a little bit, and I want to improve it. Currently I use Cron to submit each server in a rickety job queue. I repeat the queue as soon as it is empty, essentially creating a continuous working queue will only try to use a socket connection in server ip and port, and mark it if it connects Fails

I have 20 employees, and this job is about 5 minutes. I think it should be able to go very fast

Is there a better, better way to do this?

So, what are you doing at present I think that is doing a TCP socket connection Pinging Your Game Server Problems using TCPI is obviously that it is very slow with the UDP, what would I suggest, which is making a UDP socket that only checks the game server port.

Here's a good quote from another question:

  & gt; UDP is actually faster than TCP, and it is a simple reason because & gt; This is a non-existent accepted packet (ACK) that is a continuous & gt;   

Read this question here:

From my experience with the game server, the majority < / Strong> If 100% of all the modern game servers do not allow you to ask them on the UDP socket, then it will respond with details on the game server. (I used to host myself a lot of servers).

So basically, make sure you are using UDD instead of TCP ...

Example query

I just Looking for information now and I will update my question ... when I get some source .. then what is the game that you are trying to get information for?

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -