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

UserPresenceMonitor.onSetUserStatus triggering much more frequently than expected #22

Open
gduquesnay opened this issue Jun 9, 2017 · 1 comment

Comments

@gduquesnay
Copy link

We have console.logs inside this callback that are trigger log velocity warnings sometimes over 25k lines of log messages within a minute. Our server has 12 cores and we are using meteorhacks:cluster. As far as I can tell we have correctly set up meteor-multiple-instances-status as directed. It's working as expected but I'm concerned about all the excess activity in the logs. Most of the log messages show that the user's status hasn't actually changed.

Here's a small sample from our logs

 Updating user status for User: ggXFMHvthnTTGQj6v
 Previous status: online
 new status: online
 status connection: online
 User is online so clearing users timeout warning
 Updating user status for User: ggXFMHvthnTTGQj6v
 Previous status: online
 new status: online
 status connection: online
 User is online so clearing users timeout warning
 Updating user status for User: ggXFMHvthnTTGQj6v
 Previous status: online
 new status: online
 status connection: online
 User is online so clearing users timeout warning
 Updating user status for User: ggXFMHvthnTTGQj6v
 Previous status: online
 new status: online
 status connection: online
 User is online so clearing users timeout warning
 Updating user status for User: ggXFMHvthnTTGQj6v
 Previous status: online
 new status: online
 status connection: online
 User is online so clearing users timeout warning
 Updating user status for User: ggXFMHvthnTTGQj6v
 Previous status: online
 new status: online

As you can see here all of these triggered for the same user and the status wasn't even changing. Sometimes we have thousands of lines like this all for the same user in our logs.

@pavanputhra
Copy link

I am having the same problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants