-
Notifications
You must be signed in to change notification settings - Fork 658
Randomly "Failed connect to pusher" When Sending Message While Server Short Spike #623
Comments
Make sure you got enough file descriptors set https://beyondco.de/docs/laravel-websockets/faq/deploying#open-connection-limit Also check this: http://socketo.me/docs/deploy#ulimit |
Thank you for the lead! I did some research and I found a command to check my server's file descriptors status: Is this the correct place I could check whether file descriptors limit is the root cause? Thanks again! |
Update: My app have just been through the peak session again, and the failed connect to pusher problem happened 12 times in total. Due to my observation on the app, this time I confirmed that it did update on the clients after some delays (even it became failed job afterwards), means the failed jobs can be ignored. By the way, I have also logged the response status code in PusherBroadcaster.php, and the status was 0 for those failed jobs. Here are the logged items (While all message were sent successfully): [2020-12-02 19:54:46][20274] Processing: App\Events\UpdateResult Thank you! |
@kelvin195eclipse If you run with Supervisor, please add a |
Hi,
I have been using this package on my web app, running with Laravel Queue & Supervisord since June and everything was working great. My app is a lottery result announcing app, that running live from 7-8pm every Wed and Weekends. Which means, during these period of time, my app will have constant high volume of visitors and requests (~5-10 users per second).
However as my app user increases recently, I've been facing intermittent "Failed connect to pusher" problems since last month. I checked all the logs and tried to identify the error, it seems like happening in a pattern where especially during those short load spikes of the server (> 1 of load average, I have 6 cores CPU).
What is actually happening in the background that causing this random fails, and what approaches can I try to resolve it?
Thank you!
The text was updated successfully, but these errors were encountered: