Skip to content
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

too_many_channels error: "{:error, :too_many_channels}" #843

Open
2 tasks done
barrownicholas opened this issue Apr 11, 2024 · 6 comments · May be fixed by #866
Open
2 tasks done

too_many_channels error: "{:error, :too_many_channels}" #843

barrownicholas opened this issue Apr 11, 2024 · 6 comments · May be fixed by #866
Labels
bug Something isn't working

Comments

@barrownicholas
Copy link

barrownicholas commented Apr 11, 2024

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

I'm occasionally getting a "{:error, :too_many_channels}" on self-hosted/local. Is there a way to increase the number of channels (env var, etc.)? I saw MAX_CONNECTIONS but that doesn't seem right (channels v. connections).

Edit 1

It looks like there is max_channels_per_client, but I'm not sure/don't see the ability to set this dynamically. I'm not familiar enough with the realtime component to know if this loads dynamically or is set in the db. (It looks like a db row?)

Edit 2

Okay so the true dev/local using the CLI does not use the same as self-hosted/docker supabase/realtime... I checked a deployment, and I see below. Is there a way to override the default of 100?

Screenshot 2024-04-10 at 10 53 54 PM
@barrownicholas barrownicholas added the bug Something isn't working label Apr 11, 2024
@barrownicholas
Copy link
Author

barrownicholas commented May 3, 2024

Hi All: would it be possible to get a simple MAX_CHANNELS_PER_CLIENT variable to override the hard-coded default of 100?

@barrownicholas
Copy link
Author

barrownicholas commented May 3, 2024

I attempted a solution (v unfamiliar with elixir) ^

@filipecabaco
Copy link
Contributor

this is an issue with CLI environment correct?

@barrownicholas
Copy link
Author

I get this in our production (self-hosted) environment as well, although theoretically this would exist with the Supabase-hosted too (just given that the default is at 100 with no way of overriding it, aside from the linked PR I submitted).

@filipecabaco
Copy link
Contributor

when you use it in self-hosted, do you use the seeded user? would increasing there be enough?

@barrownicholas
Copy link
Author

@filipecabaco I was trying to brainstorm a solution (like #866) that would work for both local and self-hosted if that makes sense; I think a CLI solution does definitely fix my localhost CLI issues, it just would leave the self-hosted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants