Skip to main content
admin_alter_host(host=None, options=)[source]

Alter properties on an existing host in the cluster. Currently, the only property that can be altered is a hosts ability to accept failover processes.

Parameters

host (str) –

Identifies the host this applies to. Can be the host address, or formatted as ‘hostN’ where N is the host number as specified in gpudb.conf.

options (dict of str to str) –

Optional parameters. Allowed keys are:

  • accepts_failover – If set to true, the host will accept processes (ranks, graph server, etc.) in the event of a failover on another node in the cluster. Allowed values are:

    • true

    • false

    The default value is ‘false’.

The default value is an empty dict ( ).

Returns

A dict with the following entries–

info (dict of str to str) –

Additional information.