Replication fails for some users

25 views
Skip to first unread message

Ioannis Sintos

unread,
Jan 29, 2016, 12:48:35 PM1/29/16
to Couchbase Mobile
Hi

In short it is what the title says, some of the users in our system fail to pull documents that are channeled to them.

The sync function first makes sure that if the document belongs to a user (contains userId property), then the document is channeled to the "userId" channel. Essentially each user has his own channel based on his id and he is the only one having access on that channel so it is only user private data that should go through that channel.

Secondly, we have group documents that are channeled to the name of the group and each member in that group is given access to that channel.

The system currently has a few hundred users. The problem appears randomly for some users. Basically, they fail to replicate both group and user private documents.

The version of SG is 1.1.0 and is running on a Windows server. In the logs this is one of the first things

WARNING: Error setting MaxFileDescriptors to 5000: Unsupported on Windows -- rest.setMaxFileDescriptors() at config.go:443

The solution we have for now is to restart the SG which seems somehow to solve the problem. But this only lasts for a couple of days till it appears again.

Anyone had something similar?

I don't think that we are hitting any kind of limit, number of connections, number of channels or something similar, number of docs per channel and so on. But i am curious about such limits. Can someone give a few numbers on those limits?

Thank you in advance



Adam Fraser

unread,
Jan 29, 2016, 2:50:44 PM1/29/16
to Couchbase Mobile
There were a number of issues fixed in 1.1.1 that sound similar to what your hitting - in particular https://github.com/couchbase/sync_gateway/issues/916.

It doesn't sound to me like the MaxFileDescriptors warning is related - that's just based on having the property set under Windows, and not an actual load issue.

With a few hundred users, and user and group channels for those, I wouldn't expect you to hitting hardware limits based on number of channels or even docs/channel.   


Reply all
Reply to author
Forward
0 new messages