Sometimes you need to understand whats going on on SG. Here is a basic set of tools to use to understand whats going on in SG logs.
Note this is NOT a real time tool. Its a more of a post analysis tool to figure out how long different HTTP ops took
I need more understanding about it like what is the meaning of value on Y axix. what these two numbers mean.
Following is the graph. Machine is running on AWS with 8 Cores ,16 GB RAM , 9 buckets out of which 8 are handled by the sync gateway. with no accelerator. Its a dev envioment where the number of connection are very less netstat -tup gives 711 lines.
looks like your _changes feed is return very slow.
EXAMPLE
your first datapoint on September 23 @10:08:25 … (the blue graph = POST _changes) you did 8 _changes request that second and the longest one took 40.007 seconds to respond. Which is slow. I normally see a _bulk_get after the _changes feed.
Is this a logs of _changes POST coming from CBL
or
browser / backend script looking at _changes?
as you can see the above image attached is a normal CBL feed with …
GET _local/checkpoint with the old seq it processed.
POST _changes?since=seq_from_checkpoint
POST _bulk_get of docs and revs that CBL wants from the _changes feed.
PUT _local/checkpoint with the newest seq it processed.
It looks like channel_cache_max_length has improved things drastically. What logging I should now have to get good logs and required graph. I will try to create a web solution so copy pasting of json wont required and it will be able to give almost real time graph. Then I would love to share it.