ALTER-SYSTEM-MODIFY-BACKEND
ALTER-SYSTEM-MODIFY-BACKEND
Name
ALTER SYSTEM MKDIFY BACKEND
Description
Modify BE node properties (administrator only!)
grammar:
- Find backend through host and port
ALTER SYSTEM MODIFY BACKEND "host:heartbeat_port" SET ("key" = "value"[, ...]);
- Find backend through backend_id
ALTER SYSTEM MODIFY BACKEND "id1" SET ("key" = "value"[, ...]);
illustrate:
- host can be a hostname or an ip address
- heartbeat_port is the heartbeat port of the node
- Modify BE node properties The following properties are currently supported:
- tag.xxxx: resource tag
- disable_query: query disable attribute
- disable_load: import disable attribute
Note:
- A backend can be set multi resource tags. But must contain "tag.location" type.
Example
Modify the resource tag of BE
ALTER SYSTEM MODIFY BACKEND "host1:heartbeat_port" SET ("tag.location" = "group_a");
ALTER SYSTEM MODIFY BACKEND "host1:heartbeat_port" SET ("tag.location" = "group_a", "tag.compute" = "c1");ALTER SYSTEM MODIFY BACKEND "id1" SET ("tag.location" = "group_a");
ALTER SYSTEM MODIFY BACKEND "id1" SET ("tag.location" = "group_a", "tag.compute" = "c1");Modify the query disable property of BE
ALTER SYSTEM MODIFY BACKEND "host1:heartbeat_port" SET ("disable_query" = "true");
ALTER SYSTEM MODIFY BACKEND "id1" SET ("disable_query" = "true");
Modify the import disable property of BE
ALTER SYSTEM MODIFY BACKEND "host1:heartbeat_port" SET ("disable_load" = "true");
ALTER SYSTEM MODIFY BACKEND "id1" SET ("disable_load" = "true");
Keywords
ALTER, SYSTEM, ADD, BACKEND, ALTER SYSTEM