google-home / smart-home-nodejs

A sample of the Smart Home device control APIs in Actions on Google
Apache License 2.0
894 stars 292 forks source link

Lots of timeout on report state and big delay on smarthome action #493

Closed zoic21 closed 4 years ago

zoic21 commented 4 years ago

Since few days I have lot of (50% at 80%) timeout on report state home graph and big delay on smarthome action.

My smarthome application is in production and there is no change on it since few month. We manage more than 1700 users and there is about 30 requests/s. There is not overload on system (load avg at 0.35 and 1.3go free memory).

I think it's an issue on google side. Am the only one having this problem?

Thank in advance

zoic21 commented 4 years ago

I make some progress all m issue is due to timeout on homegraphApi, event with 60s I got timeout, that stack lot of connexion and impact smarthome action

zoic21 commented 4 years ago

I think i resolv my issue it's due to nodejs request, by defaut request use 5 socket per host. With traffic orverload it's not enought and it's overflow.