Changing watermark thresholds doesn't work in percentages


#1

When I start couchbase and set watermark limit in percents for warm-up - warming-up stops. Is it a bug?

The commands I use:
/opt/couchbase/bin/cbepctl localhost:11210 -b default set flush_param mem_log_wat 90
/opt/couchbase/bin/cbepctl localhost:11210 -b default set flush_param mem_high_wat 94

P.S. When I set limits in bytes - everything works fine.


#2

this is a bug https://www.couchbase.com/issues/browse/MB-10096


#3

This isn’t actually a bug. If you want to change the high/low watermarks by using a percentage you must end the number with ‘%’.

The correct command is below.

/opt/couchbase/bin/cbepctl localhost:11210 -b default set flush_param mem_log_wat 90%
/opt/couchbase/bin/cbepctl localhost:11210 -b default set flush_param mem_high_wat 94%