Apply the Latest Version of the Model (modelApply)
The modelApply
command applies the latest version of the model to the grid, implementing previous operations. This includes actions such as creating physical installations and instances according to installation and instance objects that have been defined in the model.
ttGridAdmin modelApply [-nostart] [-details]
Options
The modelApply
command has the options:
Option | Description |
---|---|
|
By default, the |
|
Displays additional information about the operations being performed by the command. |
Examples
This example shows typical output.
% ttGridAdmin modelApply Creating new model version............................................OK Exporting current model (version 1)...................................OK Identifying any deleted objects.......................................OK Verifying installations...............................................OK Creating new installations............................................OK Verifying instances...................................................OK Creating new instances................................................OK Updating grid state...................................................OK Configuring instance authentication...................................OK Pushing new configuration files to each instance......................OK Making model version 1 current, version 2 writable....................OK Checking ssh connectivity of new instances............................OK Starting new management instance......................................OK Configuring standby management instance...............................OK ttGridAdmin modelApply complete
(Output will vary depending on your situation, such as whether installations or instances in the model already existed, either from being created manually or from any previous modelApply
commands that were only partially successful.)
Notes
-
When a grid is created, version 1 of the model is created automatically. When
modelApply
is run on the grid for the first time, version 1 of the model is made read-only and version 2 is created. Version 2 is an exact copy of version 1 and is read-write. Version 1 is then applied to the grid. Subsequent changes made to the model are made to version 2, untilmodelApply
is run again, at which time version 3 is created, and so on. There is always a writable version of the model available. -
At any given point, the writable version of the model, which has not yet been applied to the grid, is referred to as the latest version. The version that has been applied and is operational in the grid is referred to as the current version. (The current version and all previous versions are read-only.)
-
The
modelApply
command communicates with each instance in the grid and creates or updates configuration files on each instance, includingtimesten.conf
, as needed. The command runs these operations in parallel as much as possible, but still may take a significant amount of time to complete. Complete all the steps in getting from one desired configuration to another desired configuration before applying the model. -
It may not always be possible for
modelApply
to complete all of its operations, such as if a host is down. If there are problems,modelApply
creates error logs in thediag
directory of the management instance and indicates the names of those logs. The next time you runmodelApply
, it will try again to complete any operations that failed previously, in addition to completing any new operations. -
See Applying the Changes Made to the Model in Oracle TimesTen In-Memory Database Scaleout User's Guide for additional information.