Comments (9)
Comment by ileitch from Wednesday Nov 20, 2013 at 10:42 GMT
Not much detail for me to work with here. Do you see an SQL activity in the log? Does sending USR2 signal print any debug info to the log?
from rpush.
Comment by navied from Wednesday Nov 20, 2013 at 20:30 GMT
Yeah sorry about, I actually looked at SQL logs around the same time the
last notification was sent and it looks like nothing weird has happened.
The problems started when I did a global notification to all our users
basically creating thousands of notifications at one time. It stalled
sending the notifications and I noticed that the ones that were already
marked as send were not marked as sent in the database. I had to manually
make sure all the notifications were marked as delivered because the next
time rapns restarted it would go through all those notifications again.
I will perform a USR2 signal when the problem pops up again to see if
anything useful shows up.
On Wednesday, November 20, 2013, Ian Leitch wrote:
Not much detail for me to work with here. Do you see an SQL activity in
the log? Does sending USR2 signal print any debug info to the log?—
Reply to this email directly or view it on GitHubhttps://github.com/ileitch/rapns/issues/179#issuecomment-28877814
.
Navied Shoushtarian
Founder & CTO, LISTN http://getlistn.com/
twitter.com/nshoush http://twitter.com/nshoush | linkd.in/URo4iO
http://linkd.in/URo4iO
e: [email protected]
from rpush.
Comment by ileitch from Thursday Nov 21, 2013 at 10:13 GMT
How long after creating the notifications did you then check the log?
I wonder if the batch size is too large. The default is to load 5000 notifications at a time, combined with the error detection option check_for_errors
with implies a sleep of 0.2s for every notification. With a single connection to the APNs, the best possible processing time for the batch is 16.6 minutes. In reality it could be at least 50% higher.
Try setting config.batch_size
to a lower value, say 100. Also, I'd recommend turning off config.check_for_errors
, it's an imperfect check anyway (I'm planning an improvement).
from rpush.
Comment by navied from Monday Nov 25, 2013 at 04:38 GMT
It has been behaving properly so far, I am not too sure why, could be less notifications being delivered or possibly because I enabled config.batch_storage_updates = true , but that could of always been true as a default.
What are the downsides to turning off check_for_errors would that effect feedback and disabling devices that do not have the app installed anymore?
from rpush.
Comment by j-mcnally from Thursday Nov 28, 2013 at 00:38 GMT
Is it possible if you are using MyISAM instead of INNODB tables that you are running into locks?
from rpush.
Comment by navied from Thursday Nov 28, 2013 at 00:50 GMT
Using PostgreSQL, which correct me if I am wrong uses neither but it's own storage engine.
from rpush.
Comment by j-mcnally from Thursday Nov 28, 2013 at 00:51 GMT
yeah, durr just throwing that out there.
from rpush.
Comment by navied from Monday Dec 23, 2013 at 20:25 GMT
So the rapns process did this again after not doing it for a while, I tried sending a USR2 signal doing "kill -USR2 pid" but nothing has been returned in the logs. I might be doing the USR2 signal wrong. I just ended up lowering the rapns batch size and turned off error checking to see if how that affects it now.
from rpush.
Please try 2.0.0.beta1
.
from rpush.
Related Issues (20)
- Rails 7 Time.now.to_s deprecation warning HOT 1
- How to switch from RPush APNS app to an APNS2/APNSP8 app? HOT 1
- 400/BadDeviceToken issue HOT 1
- HMS (Huawei Mobile Service) push notification HOT 2
- Pipelining commands on a Redis instance is deprecated and will be removed in Redis 5.0.0 HOT 5
- Psych::DisallowedClass exception is raised when creating a Webpush notification in Rails 6.1.6.1 HOT 1
- Interrupts stdout when running in foreground mode using foreman HOT 1
- Too many logs HOT 4
- BadDeviceToken on ios Testflight, but not when debugging HOT 2
- `content_available` stops sending push notification to Apple APNS silently. HOT 3
- APNSP8 : a very few amount of ios rpush notifications are stuck in processing mode HOT 5
- create an Apns2 app without persisting the certificate
- [Discussion] Consider migration to web-push fork? HOT 1
- [Query] What's the significance of connections attribute in Rpush::App model?
- How to add lockbox encryption for rpush columns HOT 1
- Name is already taken HOT 2
- APNS alerts with content_available not displayed
- Project status? HOT 2
- Why Rpush do not work with iOS simulators?
- Publish version for pull request 660 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpush.