The day of the week selector in "Auto-Compaction" > "Index Fragmentation" is not working

[Community 7.2.2 (Docker)]

Suppose I want to run index compaction only on Tuesdays:

Click [Save]

only to get

Am I doing it wrong?

When I save, it shows what I selected. But if I go away from the tab and come back to the tab - it shows as yours - all the days selected.

Yes, that better describes the issue I encountered with the UI in question.

Here’s how to work around it. When you run docker, also expose the indexer ports (9100-9105)

docker run -t --name db -p 8091-8096:8091-8096 -p 9100-9105:9100-9105 -p 11210-11211:11210-11211 couchbase/server:community

Now you can capture the index settings. You don’t need jq, but it formats nice.

curl -u Administrator:password http://localhost:9102/settings | jq > settings.json

Now edit the settings.json - this line:

"indexer.settings.compaction.days_of_week":"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday"

Now POST the settings.json

curl -u Administrator:password http://localhost:9102/settings -XPOST -H "Content-Type: application/json" -d@settings.json

Now go to the UI and you will see the update you made.

I opened an issue for this - MB-59396

Got it, I ended up using the REST API, although I would have much preferred sticking to the UI. After that my schedule update is retained on the UI, at least. Now, I’ll see if it actually impacts the compaction schedule as intended. (my original issue: Index compaction repeated too often unnecessarily )

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.