Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MB-47666 : Increase polling interval in pollForDeletedBuckets
This polling is calling bucket/<bucketName> which is a costly call.
Increasing the polling interval to reduce load on ns_server. This is
used to print numDocsPending stat in projector. This is used to cleanup
seqno reader when the buckets get deleted so increasing the interval
should not have high impact.

Change-Id: I9ff5cb6dfde57b60161b5ae3abe948ea656c613a
  • Loading branch information
ksaikrishnateja committed Aug 19, 2021
1 parent d6ce5ba commit f5acc40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secondary/projector/dcp_seqno_local.go
Expand Up @@ -415,7 +415,7 @@ func CollectSeqnos(kvfeeds map[string]*kvConn, cid string) (l_seqnos []uint64, e

func pollForDeletedBuckets() {
for {
time.Sleep(10 * time.Second)
time.Sleep(10 * time.Minute)
todels := []string{}
func() {
dcp_buckets_seqnos.rw.Lock()
Expand Down

0 comments on commit f5acc40

Please sign in to comment.