We are using 1.2.0-79 syncgw with couchbase server 4.0.0-4051 both in Community Edition
Traffic is pumped @200 ops. It is seen that few of the responses are very delayed ie more than 800ms whereas for lot of requests are processed within 1 to 5ms…Why is it that few responses are delayed??
15:36:06.078878 2016-05-26T15:36:06.078+05:30 HTTP+: #136153810: --> 201 (1.9 ms)
15:36:06.098106 2016-05-26T15:36:06.098+05:30 HTTP+: #136153815: --> 201 (1.9 ms)
15:36:06.108664 2016-05-26T15:36:06.108+05:30 HTTP+: #136153817: --> 201 (1.9 ms)
15:36:06.117947 2016-05-26T15:36:06.117+05:30 HTTP+: #136153822: --> 201 (2.1 ms)
15:36:06.118967 2016-05-26T15:36:06.118+05:30 HTTP+: #136153823: --> 201 (1.9 ms)
15:36:06.386150 2016-05-26T15:36:06.386+05:30 HTTP+: #136153833: --> 201 (220.1 ms)
15:36:06.437838 2016-05-26T15:36:06.437+05:30 HTTP+: #136153832: --> 201 (274.7 ms)
15:36:06.596281 2016-05-26T15:36:06.596+05:30 HTTP+: #136153885: --> 201 (244.9 ms)
15:36:06.596380 2016-05-26T15:36:06.596+05:30 HTTP+: #136153897: --> 201 (211.5 ms)
15:36:06.837080 2016-05-26T15:36:06.837+05:30 HTTP+: #136153904: --> 201 (429.7 ms)
…
15:36:06.908146 2016-05-26T15:36:06.908+05:30 HTTP+: #136153935: --> 201 (454.1 ms)
15:36:06.908635 2016-05-26T15:36:06.908+05:30 HTTP+: #136153887: --> 201 (555.0 ms)
15:36:06.909390 2016-05-26T15:36:06.909+05:30 HTTP+: #136153983: --> 201 (372.4 ms)
15:36:06.909349 2016-05-26T15:36:06.909+05:30 HTTP+: #136153947: --> 201 (445.2 ms)
15:36:06.951681 2016-05-26T15:36:06.951+05:30 HTTP+: #136154093: --> 201 (3.5 ms)
15:36:06.952128 2016-05-26T15:36:06.952+05:30 HTTP+: #136154095: --> 201 (3.9 ms)
15:36:06.953740 2016-05-26T15:36:06.953+05:30 HTTP+: #136154111: --> 201 (5.0 ms)
15:36:06.954059 2016-05-26T15:36:06.954+05:30 HTTP+: #136154115: --> 201 (5.2 ms)
Following error i am seeing in the syncgw error log during the same timestamp.
2016/05/26 15:36:06 go-couchbase: call to Do("_sync:rev:s919591210642_Location.doc:37:4854-a9a85ce88aec73a8fd16180997265f47") in github.com/couchbase/go-couchbase.(*Bucket).Write took 230.707033ms
2016/05/26 15:36:06 go-couchbase: call to Do(“s919591210774_Location.doc”) in github.com/couchbase/go-couchbase.(*Bucket).GetsRaw took 246.80042ms
2016/05/26 15:36:06 go-couchbase: call to Do(“s919591210674_Location.doc”) in github.com/couchbase/go-couchbase.(*Bucket).casNext took 240.351377ms
2016/05/26 15:36:06 go-couchbase: call to Do(“s919591214500_LocatedGroupsMap.doc”) in github.com/couchbase/go-couchbase.(*Bucket).GetsRaw took 276.108809ms
2016/05/26 15:36:06 go-couchbase: call to Do("_sync:rev:s919591210654_Location.doc:37:4855-35c251fc051ab3397a8fe3894505becd") in github.com/couchbase/go-couchbase.(*Bucket).Write took 291.707726ms
2016/05/26 15:36:06 go-couchbase: call to Do("_sync:rev:s919591210666_Location.doc:37:4854-716be7ca2aa4e2f99a0721c9121044b7") in github.com/couchbase/go-couchbase.(*Bucket).Write took 240.52547ms
2016/05/26 15:36:06 go-couchbase: call to Do(“s919591212478_SrvrProfile.doc”) in github.com/couchbase/go-couchbase.(*Bucket).GetsRaw took 232.270948ms
2016/05/26 15:36:06 go-couchbase: call to Do(“s919591210687_Location.doc”) in github.com/couchbase/go-couchbase.(*Bucket).casNext took 232.986553ms
2016/05/26 15:36:06 go-couchbase: call to Do(“s919591213825_ContactPresence.doc”) in github.com/couchbase/go-couchbase.(*Bucket).GetsRaw took 225.307305ms
2016/05/26 15:36:06 go-couchbase: call to Do("_sync:rev:s919591210653_Location.doc:37:4855-2edd5578f9c1c6014131c6e5dcbe709a") in github.com/couchbase/go-couchbase.(*Bucket).Write took 347.307214ms
2016/05/26 15:36:06 go-couchbase: call to Do("_sync:rev:s919591210667_Location.doc:37:4854-2d7679c5e7049b719af8f62a891bde1e") in github.com/couchbase/go-couchbase.(*Bucket).Write took 295.643024ms
2016/05/26 15:36:06 go-couchbase: call to Do("_sync:rev:s919591210685_Location.doc:37:4854-9d5d6065808f27c0decf56d15ae4a409") in github.com/couchbase/go-couchbase.(*Bucket).Write took 236.675357ms
2016/05/26 15:36:06 go-couchbase: call to Do("_sync:rev:s919591210643_Location.doc:37:4855-46bf1743153223723d7abdd6d54f105c") in github.com/couchbase/go-couchbase.(*Bucket).Write took 348.934783ms
Is it possible to know what is actually slowing down the response of syncgw intermittently??.. Is there any bottle neck seen from the log which is hindering 200 ops? We want to achieve appx 500 ops but is stucked here…Any pointer to analyse will be helpful…