Import Instance Configuration Attributes (instanceConfigImport)

The instanceConfigImport command imports configuration attribute settings into the latest version of the model, to be used by every instance in the grid.

ttGridAdmin instanceConfigImport [filepath]

After you run modelApply, the configuration file for each instance is updated to include the imported attributes. You must restart the TimesTen daemon on each instance for the changes to take effect.

See Notes below for a list of attributes you cannot import.

Options

The instanceConfigImport command has the option:

Option Description

filepath

The path and name of the file to import configuration attribute settings from. If no file is specified, the information is read from stdin.

Examples

Import from this file.

% more /tmp/instanceconfigimp1
# Set maximum number of connections.
max_conns_per_server=500
% ttGridAdmin instanceConfigImport /tmp/instanceconfigimp1
Instance configuration file /tmp/instanceconfigimp1 imported

Apply the model (output is not shown):

% ttGridAdmin modelApply
...
ttGridAdmin modelApply complete

Now import from this file:

% more /tmp/instanceconfigimp2
# Set maximum number of connections.
max_conns_per_server=1000
% ttGridAdmin instanceConfigImport /tmp/instanceconfigimp2
Instance configuration file /tmp/instanceconfigimp2 imported

After these steps, the latest version of the model will have a maximum connections setting of 500 and the current version of the model will have a setting of 1000. This is shown in the examples in the previous section, Export Instance Configuration Attributes (instanceConfigExport).

Notes

  • As shown in the example, each entry that is imported is of the form name=value. You can also include comments, indicated by #.

  • The timesten.conf files are updated when you run modelApply.

  • The following attributes are set automatically when the modelApply command creates or configures instances and cannot be imported:

    admin_uid
    admin_user
    client_only
    daemon_port
    grid_external_addr
    grid_guid
    grid_host
    grid_instance
    grid_internal_addr
    grid_name
    guid
    hostname
    instance_guid
    instance_name
    listen_addr
    server_port
    timesten_release
    tns_admin
    
  • Refer to TimesTen Instance Configuration File for information about TimesTen configuration attributes.