-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Crashing on sending push to all users #1662
Comments
I think parse-server needs to be chunking and yielding to the event loop on this, background-compute is a good example. Looks like its the deserialisation from the mongo transform. Similar issue on the |
Parse Server push isn't designed for high throughput, so with 300k users, you will need a lot of memory to push to all of them. Some workarounds might be to use another push provider (Urban Airship, Facebook analytics push, One Signal) or to increase the memory on your instance before sending a push, or to send pushes to smaller batches of users. |
I also faced the same issue when trying to send push to 30k users (all users). I had to increase the memory limit 10 time more to fix the issue :( |
@Jinoooo how did you increase the memory issue? |
Just increased the allocated memory on AWS hosting server. Wondering how parse.com is addressing this issue. Any plan to fix this roadblock? |
You can also change your code to send it to a smaller group based on your memory limit. In your case for 300K, you may need to break it to 10k bucket each time and repeat the process 30 times, ugly I know. |
We're closing this issue due to inactivity. If this is a bug you care about that is not getting attention, consider opening a pull request with a fix. |
I have around 300k users on my parse app. After trying to send push from the dashboard, the server crashed. Looks like its running out of memory, any hints on how to solve it?
Thanks!
Here are the logs
The text was updated successfully, but these errors were encountered: