server_cpu_quota_max 用于设置系统可以使用的最大 CPU 配额。
问题:
指的是整个OB集群的最大 CPU 配额? 还是单个observer进程的最大 CPU 配额?
server_cpu_quota_max 用于设置系统可以使用的最大 CPU 配额。
问题:
指的是整个OB集群的最大 CPU 配额? 还是单个observer进程的最大 CPU 配额?
SHOW parameters LIKE '%server_cpu%';
zone | svr_type | svr_ip | svr_port | name | data_type | value | info | section | scope | source | edit_level |
---|---|---|---|---|---|---|---|---|---|---|---|
zone2 | observer | 10.0.0.70 | 2882 | server_cpu_quota_max | 2 | the number of maximal vCPUs allocated to the server tenant(a special internal tenant that exists on every observer). Range: [1, 16] | TENANT | CLUSTER | DEFAULT | STATIC_EFFECTIVE | |
zone2 | observer | 10.0.0.70 | 2882 | server_cpu_quota_min | 2 | the number of minimal vCPUs allocated to the server tenant(a special internal tenant that exists on every observer). Range: [1, 16] | TENANT | CLUSTER | DEFAULT | STATIC_EFFECTIVE | |
zone1 | observer | 10.0.0.66 | 2882 | server_cpu_quota_max | 1 | the number of maximal vCPUs allocated to the server tenant(a special internal tenant that exists on every observer). Range: [1, 16] | TENANT | CLUSTER | DEFAULT | STATIC_EFFECTIVE | |
zone1 | observer | 10.0.0.66 | 2882 | server_cpu_quota_min | 1 | the number of minimal vCPUs allocated to the server tenant(a special internal tenant that exists on every observer). Range: [1, 16] | TENANT | CLUSTER | DEFAULT | STATIC_EFFECTIVE |
看描述这两个参数是控制以前版本常说的内部租户(500序列租户)的CPU 虚拟CPU个数,与机器物理 CPU 无直接关系,仅影响多租户线程池的初始大小和最大大小。3.2版本默认值分别是 [2, 5] . 4.2版本默认都变成 [1,1].
推测 4.x 由于有了 meta租户,以前常说的 500 租户的这个参数可能就没用了。
the number of minimal vCPUs allocated to the server tenant(a special internal tenant that exists on every observer). Range: [1, 16]
the number of maximal vCPUs allocated to the server tenant(a special internal tenant that exists on every observer). Range: [1, 16]
这个参数不能用 SQL 修改,只能在进程启动的时候指定。
[admin@server070 oceanbase]$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/admin/oceanbase/lib
[admin@server070 oceanbase]$ bin/observer -o "server_cpu_quota_max=2,server_cpu_quota_min=2"
bin/observer -o server_cpu_quota_max=2,server_cpu_quota_min=2
optstr: server_cpu_quota_max=2,server_cpu_quota_min=2
[admin@server070 oceanbase]$ ps -ef|grep observer
admin 1268 32334 0 22:29 pts/2 00:00:00 grep --color=auto observer
admin 32722 1 99 22:29 ? 00:00:23 bin/observer -o server_cpu_quota_max=2,server_cpu_quota_min=2
配置sys租户的默认cpu规格