GBase 8a
运维管理
文章

GBase8a性能优化——优先级

发表于2025-12-05 14:21:1537次浏览6个评论

1.         显示优先级状态

1)        语法

Show priorities [where conditions]

2)        显示

node_name:集群节点名称。

Group:资源组编号。

Priority:优先级编号。

priority_weight:优先级配重。

Status:优先级开启状态 ON/OFF。

Description:优先级控制参数描述。

3)        权限要求

有show权限用户。

4)        示例

•     需要配置cgconfig.conf文件。在配置文件中为资源组0、1进行设置。

•     启动cgconfig服务。

•     重启gcware:

 

$gcluster_services gcware restart

完成以上配置操作后,再执行下面示例的命令,0、1两个控制组的优先级将为开启状态。

  示例1:查看集群全部节点优先级状态。

 

gbase> show priorities;

+-----------+-------+----------+----------------+--------+-------------+

| node_name | group | priority | priority-weight | status | description|

+-----------+-------+----------+-----------------+-------+-------------+

| node1     |      0|        0 |              20 | ON     |......       |

| node1     |      0|        1 |              40 | ON     |......       |

| node1     |      0|        2 |              60 | ON     |......       |

| node1     |      0|        3 |              80 | ON     |......       |

| node1     |      1|        0 |              20 | ON     |......       |

| node1     |      1|        1 |              40 | ON     |......       |

| node1     |      1|        2 |              60 | ON     |......       |

| node1     |      1|        3 |              80 | ON     |......       |

| node1     |      2|        0 |              20 | OFF    |......       |

| node1     |      2|        1 |              40 | OFF    |......       |

| node1     |      2|        2 |              60 | OFF    |......       |

| node1     |      2|        3 |              80 | OFF    |......       |

......

| node2     |     15|        0 |              20 | OFF    |......       |

| node2     |     15|        1 |              40 | OFF    |......       |

| node2     |     15|        2 |              60 | OFF    |......       |

| node2     |     15|        3 |              80 | OFF   |......      |

+-----------+-------+----------+-----------------+-------+-------------+

128 rows in set

评论

登录后才可以发表评论
GBase用户31099发表于 8个月前
123
GBase用户31099发表于 8个月前
666
GBase用户31099发表于 8个月前
路过
ljt98发表于 2个月前
厉害了
GBase用户51840发表于 2个月前
厉害了
xiaowuyun发表于 2个月前
继续努力