I’m running couchbase 6.5.0++ from git, community edition.
It’s a single standalone node, data only, no index, no search, no query.
I loaded the gamesim-sample bucket.
No users, no gui pages open.
When I look at the CPU usage, I notice memcached using between 1 and 20% of CPU, and beam.smp using between 0 and 5% CPU.
Then, stracing beam.smp for a period of 100 seconds, shows that it is generating queries to (on average):
/pools/default/remoteClusters every 5 seconds
/pools/default/replicationInfos every 5 seconds
/pools/default/replications every 5 seconds
/stats/buckets/gamesim-sample once every second
The one I’m most concerned about is the /stats/buckets/gamesim-sample query; once every second seems excessive. Why is it doing that? Can I eliminate that? Or, if not, can I lower the frequency?
When creating more buckets, I notice it starts querying every bucket stat once per second. I’m guessing that that is what is causing the senseless CPU load on memcached.
Raw list of requests from beam.smp:
[pid 1821] 08:24:15 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:16 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:17 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:17 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:24:17 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:24:18 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:19 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:19 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:24:20 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:21 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:22 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:22 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:24:22 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:24:23 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:24 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:24 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:24:25 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:26 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:27 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:27 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:24:27 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:24:28 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:29 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:29 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:24:30 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:31 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:32 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:32 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:24:32 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:24:33 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:34 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:34 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:24:35 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:36 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:37 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:37 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:24:37 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:24:38 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:39 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:39 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:24:40 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:41 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:42 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:42 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:24:42 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:24:43 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:44 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:44 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:24:45 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:46 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:47 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:47 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:24:47 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:24:48 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:49 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:49 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:24:50 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:51 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:52 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:52 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:24:52 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:24:53 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:54 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:54 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:24:55 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:56 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:57 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:57 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:24:57 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:24:58 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:59 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:24:59 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:25:00 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:01 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:02 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:02 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:25:02 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:25:03 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:04 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:04 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:25:05 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:06 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:07 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:07 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:25:07 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:25:08 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:09 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:09 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:25:10 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:11 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:12 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:12 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:25:12 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:25:13 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:14 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:14 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:25:15 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:16 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:17 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:17 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:25:17 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:25:18 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:19 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:19 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:25:20 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:21 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:22 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:22 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:25:22 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:25:23 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:24 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:24 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:25:25 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:26 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:27 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:27 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:25:27 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:25:28 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:29 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:29 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:25:30 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:31 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:32 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:32 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:25:32 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:25:33 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:34 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:34 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:25:35 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:36 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:37 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:37 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:25:37 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:25:38 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:39 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:39 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:25:40 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:41 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:42 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:42 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:25:42 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:25:43 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:44 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:44 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:25:45 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:46 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:47 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:47 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:25:47 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:25:48 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:49 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:49 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos
[pid 1821] 08:25:50 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:51 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:52 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:52 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/remoteClusters
[pid 1821] 08:25:52 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replications
[pid 1821] 08:25:53 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:54 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /stats/buckets/gamesim-sample
[pid 1821] 08:25:54 writev(82, [{iov_base=NULL, iov_len=0}, {iov_base="GET /pools/default/replicationInfos