Validated on 7.0.2-6671
Stats are being persisted every 15min. However, I changed, the interval to 15s and tried it.
curl -u Administrator:password -X POST http://10.112.205.101:9102/settings -d '{"indexer.statsPersistenceInterval": 15}'
|
hemantrajput@LFC testrunner % curl -s -v -u Administrator:password http://10.112.205.101:9102/stats 2>/dev/null | jq | grep num_rollbacks
|
"MAINT_STREAM:travel-sample:num_rollbacks": 0,
|
"MAINT_STREAM:travel-sample:num_rollbacks_to_zero": 0,
|
|
Flush the bucket
|
sleep(15s)
|
pkill indexer
|
|
hemantrajput@LFC testrunner % curl -s -v -u Administrator:password http://10.112.205.101:9102/stats 2>/dev/null | jq | grep num_rollbacks
|
"MAINT_STREAM:travel-sample:num_rollbacks": 1,
|
"MAINT_STREAM:travel-sample:num_rollbacks_to_zero": 1,
|
|
Flush the bucket
|
sleep(15s)
|
pkill indexer
|
|
hemantrajput@LFC testrunner % curl -s -v -u Administrator:password http://10.112.205.101:9102/stats 2>/dev/null | jq | grep num_rollbacks
|
"MAINT_STREAM:travel-sample:num_rollbacks": 2,
|
"MAINT_STREAM:travel-sample:num_rollbacks_to_zero": 2,
|
Build couchbase-server-7.0.2-6654 contains indexing commit d5ef38c with commit message:
MB-48336Persist num_rollback and num_rollbacks_to_zero stats