Details
-
Bug
-
Resolution: Not a Bug
-
Major
-
7.6.0
-
Operating System : Debian GNU/Linux 11 (bullseye)
Couchbase Enterprise Edition build 7.6.0-2054
-
Untriaged
-
Linux x86_64
-
0
-
Unknown
Description
Installed Couchbase Enterprise Edition build 7.6.0-2054 on one node
Cluster setup on UI shows "Max Allowed Quota 1600MiB"
The REST API for setting quota on the node shows the same
curl -X POST -u Administrator:password \
|
-d memoryQuota=3000 \ |
-d indexMemoryQuota=512 \ |
-d ftsMemoryQuota=512 \ |
-d cbasMemoryQuota=1024 \ |
-d eventingMemoryQuota=512 \ |
http://172.23.123.131:8091/pools/default |
|
{"errors":{"_":"Total quota (3000MB) exceeds the maximum allowed quota (1600MB) on node 'ns_1@cb.local'"}} |
The CLI initialization also fails with the same errors
/couchbase-cli cluster-init -c 172.23.123.131 --cluster-username Administrator --cluster-password password --services data,index,query --cluster-ramsize 2048 --cluster-index-ramsize 256 ERROR: Total quota (2048MB) exceeds the maximum allowed quota (1600MB) on node 'ns_1@cb.local' |
The node itself has enough memory
This is seen in /proc/meminfo which says 15GB available
cat /proc/meminfo | grep 'MemFree\|MemAvailable\|MemTotal\|^Cached' |
MemTotal: 16355384 kB |
MemFree: 11083312 kB |
MemAvailable: 15242788 kB |
Cached: 3881752 kB |
The free command returns the same
free -h
|
total used free shared buff/cache available
|
Mem: 15Gi 729Mi 10Gi 34Mi 4.3Gi 14Gi |
Swap: 979Mi 168Mi 811Mi
|
The nodes/self endpoint returns 15.611162624 GB
curl -u Administrator:password http://172.23.123.131:8091/nodes/self | jq | grep memoryFree |
% Total % Received % Xferd Average Speed Time Time Time Current
|
Dload Upload Total Spent Left Speed
|
100 2269 100 2269 0 0 3522 0 --:--:-- --:--:-- --:--:-- 3573 |
|
|
"memoryFree": 15611162624, |
Also seen in the debug logs on the node
[ns_server:info,2024-02-01T01:05:40.833-08:00,ns_1@cb.local:ns_server_cluster_sup<0.235.0>:log_os_info:start_link:19]OS type: {unix,linux} Version: {5,10,0} |
Runtime info: [{otp_release,"25"}, |
{erl_version,"13.2.2.3"}, |
{erl_version_long,
|
"Erlang/OTP 25 [erts-13.2.2.3] [source-15104f9619] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:16] [jit:ns]\n"}, |
{system_arch_raw,"x86_64-pc-linux-gnu"}, |
{system_arch,"x86_64-pc-linux-gnu"}, |
{localtime,{{2024,2,1},{1,5,40}}}, |
{memory,
|
[{total,34949920}, |
{processes,10021184}, |
{processes_used,10014760}, |
{system,24928736}, |
{atom,540873}, |
{atom_used,522802}, |
{binary,124672}, |
{code,10728254}, |
{ets,2637760}]}, |
The total here mentioned do not seem to match with any of the above mentioned total memory count