NSX Advanced Load Balancer 用户界面上的服务引擎组页面中提供了包括或排除主机或集群的选项。

要编辑 SE 组,请导航到基础架构 > 云资源 > 服务引擎组。单击要编辑的 SE 组的编辑图标。在主机和数据存储范围部分下面,单击高级选项卡,然后单击以下对象中的主机范围服务引擎字段的集群主机

注:

目前,我们可以从 NSX Advanced Load Balancer UI 中对任何 SE 组的集群或主机执行包括或排除操作,但不能同时为集群和主机执行该操作。对于 SE 组,可以使用命令行界面 (CLI) 同时为集群和主机包括该操作。

从 CLI 中进行配置

在以下示例中,我们对服务引擎组 Default-Group 执行更改。我们使用 configure serviceenginegroup 命令更改集群或主机与 vCenter 云的 SE 组的关联。

[admin]: > configure serviceenginegroup Default-Group
Multiple objects found for this query.
[0]: serviceenginegroup-7aa0dd01-1c56-4310-a169-019e6105698e#Default-Group in tenant admin, Cloud vCenter-Cloud
[1]: serviceenginegroup-c1a4cf82-a783-4f24-916c-0f7e95fe0287#Default-Group in tenant admin, Cloud Default-Cloud
[2]: serviceenginegroup-765e68fa-e93e-45a1-b0a2-5667ffdc9653#Default-Group in tenant admin, Cloud Openstack
Select one: 0
Updating an existing object. Currently, the object is:
----------------------------------------------------------------------------------------------+
Field	Value
----------------------------------------------------------------------------------------------+
uuid	serviceenginegroup-7aa0dd01-1c56-4310-a169-019e6105698e
name	Default-Group
max_vs_per_se	10
min_scaleout_per_vs	1
max_scaleout_per_vs	4
max_se	10
vcpus_per_se	2
memory_per_se	2048
disk_per_se	10 gb
max_cpu_usage	80 gb
min_cpu_usage	30
se_deprovision_delay	60 min
auto_rebalance	False
se_name_prefix	Avi
vs_host_redundancy	True
vcenter_folder	test
vcenter_datastores_include	False
vcenter_datastore_mode	VCENTER_DATASTORE_ANY
vcenter_hosts	 
host_refs[1]	10.10.16.100
include	True
cpu_reserve	False
mem_reserve	True
mgmt_network_ref	Mgmt_N3k
ha_mode	HA_MODE_SHARED
algo	PLACEMENT_ALGO_PACKED
buffer_se	1
active_standby	False
placement_mode	PLACEMENT_MODE_AUTO
[admin]: serviceenginegroup> vcenter_clusters
[admin]: serviceenginegroup:vcenter_clusters>
cancel Exit the current submode without saving 
cluster_refs Help string not found for argument 
do Execute a show command 
include Help string not found for argument 
no Remove field 
save Save and exit the current submode 
show_schema show object schema 
watch Watch a given show command 
where Display the in-progress object 
[admin]: serviceenginegroup:vcenter_clusters> include cluster_refs
Arista N3K SSD-build-servers 
[admin]: serviceenginegroup:vcenter_clusters> include cluster_refs N3K
[admin]: serviceenginegroup:vcenter_clusters> save 
[admin]: serviceenginegroup> vcenter_hosts
[admin]: serviceenginegroup:vcenter_hosts>
cancel Exit the current submode without saving 
do Execute a show command 
host_refs Help string not found for argument 
include Help string not found for argument 
no Remove field 
save Save and exit the current submode 
show_schema show object schema 
watch Watch a given show command 
where Display the in-progress object 
[admin]: serviceenginegroup:vcenter_hosts> include host_refs
10.10.16.1 10.10.16.109 10.10.16.12 10.10.16.18 10.10.16.3 10.10.16.72 10.10.16.79 10.10.16.9 10.10.16.98 esx-64.avi.local
10.10.16.100 10.10.16.11 10.10.16.13 10.10.16.19 10.10.16.4 10.10.16.73 10.10.16.8 10.10.16.90 10.10.16.99 esx-65.avi.local
10.10.16.101 10.10.16.110 10.10.16.14 10.10.16.2 10.10.16.5 10.10.16.75 10.10.16.80 10.10.16.91 esx-57.avi.local esx-66.avi.local
10.10.16.102 10.10.16.111 10.10.16.15 10.10.16.20 10.10.16.6 10.10.16.76 10.10.16.81 10.10.16.93 esx-59.avi.local esx-67.avi.local
10.10.16.103 10.10.16.112 10.10.16.16 10.10.16.21 10.10.16.69 10.10.16.77 10.10.16.83 10.10.16.95 esx-61.avi.local esx-68.avi.local
10.10.16.104 10.10.16.113 10.10.16.17 10.10.16.22 10.10.16.70 10.10.16.78 10.10.16.84 10.10.16.97 esx-63.avi.local 
[admin]: serviceenginegroup:vcenter_hosts> include host_refs 10.10.16.18
[admin]: serviceenginegroup:vcenter_hosts> save
[admin]: serviceenginegroup> save
----------------------------------------------------------------------------------------------+
Field	Value
----------------------------------------------------------------------------------------------+
uuid	serviceenginegroup-7aa0dd01-1c56-4310-a169-019e6105698e
name	Default-Group
max_vs_per_se	10
min_scaleout_per_vs	1
max_scaleout_per_vs	4
max_se	10
vcpus_per_se	2
memory_per_se	2048
disk_per_se	10 gb
max_cpu_usage	80 gb
min_cpu_usage	30
se_deprovision_delay	60 min
auto_rebalance	False
se_name_prefix	Avi
vs_host_redundancy	True
vcenter_folder	test
vcenter_datastores_include	False
vcenter_datastore_mode	VCENTER_DATASTORE_ANY
vcenter_clusters	 
**cluster_refs[1]	N3K**
include	True
vcenter_hosts	 
**host_refs[1]	10.10.16.100**
**host_refs[2]	10.10.16.18**
include	True
cpu_reserve	False
mem_reserve	True
mgmt_network_ref	Mgmt_N3k
ha_mode	HA_MODE_SHARED
algo	PLACEMENT_ALGO_PACKED
buffer_se	1
active_standby	False
placement_mode	PLACEMENT_MODE_AUTO

为 SE 组包括的集群名称是 N3K。为 SE 组包括的主机为 10.10.16.100 和 10.10.16.18。请参见以下信息以检查云成员资格变化。

auto_rebalance False
se_name_prefix Avi
vs_host_redundancy True
vcenter_folder test
vcenter_datastores_include False
vcenter_datastore_mode VCENTER_DATAST0RE_ANY
vcenter_clusters
cluster_refs[l]	N3K
include True	
vcenter_hosts	
host_refs[l]	10.10.16.100
host_refs[2]	10.10.16.18
include True
cpu_reserve False
mem_reserve True
mgmt_network_ref Mgmt_N3k
ha_mode HA_M0DE_SHARED
algo PLACEMENT_ALG0_PACKED
buffer_se 1
active_standby False
placement_mode PLACEMENT_M0DE_AUTO

观察以下值的变化。

cluster_refs[l] N3K

host_refs[l] 10.10.16.100
host_refs[2] 10.10.16.18