-
Notifications
You must be signed in to change notification settings - Fork 9
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
Refreshed token doesn't contain capabilities for all channels #55
Comments
A temporary solution for now would be to set maximum ABLY_TOKEN_EXPIRY in
|
|
Yeah seems I am experiecing this and this is killing my server, as all the clients seems to make tons of request again. |
@sacOO7 Any news on merging this and doing a release? |
Currently, this is kept on hold and will be picked up soon, can you try increasing |
Ok thanks! Seems the token expiry is not making a difference so maybe my issues is something different. |
@graphem okay, make sure to report whatever issue you are facing 👍 |
@sacOO7 Essentially I am using Laravel Echo with Ably and I am using the listen method on channels, but lately I have observed a spike in traffic on the website and after investiguation it comes for tons of call to /broadcasting/auth which is the endpoint to get the Ably token. But it is getting out of control, like I am getting 100s of calls per seconds from single client, like there are stuck in a loop, so I was curious if this issue was related with token expiration and having client on a loop getting the token over and over. This right now puts a lot of pressure on our system, it looks almost like a DDOS but with just normal user traffic since all our route are auth protected so only login user can access the web app. |
@graphem can you log userId or ip address of users requesting tokens? |
I am not using the presence channels. I am using very few channels basically the app might have up to 30 different private channel and might have 2-3 public channels. And we are running like 5 apps per server. I am going to try to log the entries to get more details but I was simply observing the access logs and it was just insane traffic. We have around 2000 users concurrent per servers right now. We use decent baremetal servers which can take the traffic but this is not sustainable right now as we grow. |
Okay, it will be great if you can analyse logs and check which requests users are sending consistently? |
Yes it is a tough one cause we are not able to reproduce locally our in our staging environment. I am going to analyse the log further today and see if I can find more info |
@graphem thanks. We will be eagerly waiting for your analysis 👍 |
Is there a way to send private files as I don't want to share sensitive info here |
Sure, you can open ticket at https://ably.com/support and share information there 👍 |
Ok cool I already have a ticket, I will gather more info |
Cool 👍 |
Actually seems the token expiry seems to make a difference today, so it might be that issue |
Okay ... I genuinely think it should. |
Ok I changed the settings on all my app that seems to do the trick, will have confirmation tomorrow when the app is more busy. |
Great 👍 |
@sacOO7 What is the setting for the timeout? |
I didn't get your question? You mean token expiry or something else |
You mentioned a timeout value here |
Ohh I meant this -> #55 (comment) |
Btw, were you able to achieve desired behaviour? |
Oh yeah sorry I increased it, our server load is 200% better this morning, this seems to have done the trick |
Good to hear that 👍 |
Ok thanks! Yeah it is much better looking forward for the merge here. Thanks! |
refreshed token
doesn't contain all channels, causing existing channels to reconnect again.┆Issue is synchronized with this Jira Bug by Unito
The text was updated successfully, but these errors were encountered: