milvus-logo
LFAI
< Docs

transfer_node()

This method moves a specified number of query nodes from a resource group to another.

Invocation

transfer_node(source, target, num_nodes, using="default")

Parameters

ParameterDescriptionTypeRequired
sourceName of the resource group from which query nodes are movedStringTrue
targetName of the resource group to which query nodes are movedStringTrue
num_nodesNumber of nodes to be movedintTrue
usingMilvus connection used to create the collection.StringFalse

Return

No return

Example

source = '__default_resource_group'
target = 'rg'
num_nodes = 1

try:
    utility.transfer_node(source, target, num_nodes, using="default")
    print(f"Succeeded in moving {num_node} node(s) from {source} to {target}.")
except Exception:
    print("Something went wrong while moving nodes.")

# Succeeded in moving 1 node(s) from __default_resource_group to rg.
Feedback

Was this page helpful?