Import the Membership Configuration File (membershipConfigImport)
The membershipConfigImport
command replaces the membership client configuration file in the latest model of the grid with the specified file.
ttGridAdmin membershipConfigImport filepath
Also see information for the gridCreate
-membershipConfig
option in Create a Grid (gridCreate).
Options
The membershipConfigImport
command has the option:
Option | Description |
---|---|
|
The path and name of the file that contains the new membership configuration. |
Examples
This example imports the file created in the example from the preceding section, shown again here:
% cd /sw/tten/grid/zkcfg % more membership2.conf Servers zk1.example.com!2181,zk2.example.com!2181,zk3.example.com!2181
Run the command:
% ttGridAdmin membershipConfigImport /sw/tten/grid/zkcfg/membership2.conf Membership configuration file /sw/tten/grid/zkcfg/membership2.conf imported
Notes
-
Any membership client configuration changes according to the new file are not applied until you run the
modelApply
command. -
Once you run
modelApply
, the specified file is copied to each instance of the grid and its settings will take effect on each instance the next time the instance is restarted.