Version 2.0
Couchbase Mobile 2.x and greater now communicates via WebSockets.
This means it easier to track a mobile user's replication to see "Why is sync is slow?" or "Why is it not syncing?".
The sg-log-reader tool takes your SG log file and parses them to:
-
Aggregate
-
Count
-
Sum
-
and More
It takes the above information and puts it into a Couchbase Server bucket to query for a built-in web dashboard (ABOVE IMAGE).
You just need to:
- Pick a
sg_info.log
for the python script to process. - Have access to a CB Cluster for the script to insert data into.
- Go to (
http://127.0.0.1:8080
) to checkout the Dashboard above.
It will:
- Output all the Sync Gateway's databases
- Output a list of names of all device users.
- Output a graph of all the synced that happen from the: Begin & DateTime you picked.
- You can pick a specific user to drill down to.
- pick a specific sync(s) for a specific user.