anycable / anycable-go

AnyCable real-time server
https://anycable.io
MIT License
375 stars 65 forks source link

connection stress test outcomes #58

Closed jjhesk closed 4 years ago

jjhesk commented 5 years ago

I would like to ask what is the test figures for these outcomes

  1. connection with 1000 concurrent connections with open 65540 open files and unlimited processes
  2. operate over 10 hours
  3. see any race detections?
palkan commented 5 years ago

Hi @jjhesk!

Need some clarification.

  1. connection with 1000 concurrent connections with open 65540 open files and unlimited processes

Do you mean that you have a server with open files limit set to 65540 (via ulimit or sysctl), no limits on the number of processes. One anycable-go app instance is running and 1000 clients are connected, right?

2. operate over 10 hours

All the clients are stay connected for 10 hours? Or there could be different clients, connecting and disconnecting, but on average 1k at a time?

What about the number of incoming/outgoing messages (or the number of broadcasted messages)?

3. see any race detections?

Could you elaborate?

jjhesk commented 5 years ago
  1. given 32 core, 16GB ram, intel, ubuntu 18.0.1. try 65540 open files and process too.
  2. stay connected for 10 hrs with some operations maybe 1% of the operations. different clients connected with avg 1-2k clients. different ip (the best).
  3. yea, check for any race detections and the number of detects. health check these events:
    • broken pipe
    • refuse connection
    • unable to reconnect or simply stop connect
palkan commented 4 years ago

Closed as stale