-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When activated for more than a day, it connects very slowly #201
Comments
@rawezhcode how much memory and CPU is in use when you notice the connections start to slow? |
CPU is less than 5% used, |
What is happening in your network tab when you reload the page? |
` BROADCAST_CONNECTION=reverb CACHE_STORE=redis ` `
` |
Hey @rawezhcode I wanted to see what was happening in the network tab to determine if it's definitely the connection to the WebSocket server which is delayed. It's likely there will be some more latency as there is a connection to an additional resource to handle, but it shouldn't make such a difference. Also, if you are on a single server setup, there really isn't a need to use Redis - it's only for scenarios where you wish to horizontally scale across servers. Finally, it's expected there are no keys in Redis as Reverb users the pubsub functionality of Redis and not the key/value storage. |
My.Video-1.mp4First: I have 3 VPS servers Note : *But the only problem is that I mentioned above that it is sometimes very slow. And after a lot of testing, this slowdown is when you want to get the total number of connections. |
You still don't need to use Redis if Reverb is only running on a single server. It's only useful if scaling connections across multiple servers running Reverb. |
I have no problem now, after I moved the redis server to another location as a test. But I had another problem, after I removed the redis server. [program:laravel-websocket] |
It's not possible to run multipled processes on the same port. |
Reverb Version
1.0.0-beta10
Laravel Version
11
PHP Version
8.3
Description
When activated for more than a day, it connects very slowly as shown in the video,
And be connected Redis server(https://www.digitalocean.com)
Steps To Reproduce
2024-05-18.21-41-35.mp4
But when I restart it, the problem disappears
The text was updated successfully, but these errors were encountered: