Monitoring the Management Instances
A management instance can get full because it stores information about your grid, previous grid model versions, and logs of your grid. It is important for the management instances to have enough free space to function properly. If your management instance begins to get full, any command that you run with the ttGridAdmin
utility outputs a warning.
You can perform these tasks to maintain the management instances:
Modify the Retention Values of Previous Grid Models
This topic shows how to increase or decrease the retention values of previous grid models.
This example sets the retention days value to 60
and the retention versions value to 15
. These values ensure that TimesTen Scaleout only deletes previous grid models that are older than 60
days and are at least 16
grid model versions old.
Note:
If you specify either the -retainDays
or the -retainVersions
parameter as 0
, then only the other parameter is used. If you set both parameters values to 0
, TimesTen Scaleout never automatically deletes previous grid model versions.
% ttGridAdmin gridModify -retainDays 60 -retainVersions 15
Grid Definition modified.
For more information about the ttGridAdmin gridModify
command, see
Modify
Grid Settings (gridModify) in Oracle TimesTen In-Memory Database
Reference.
Monitor the Free Space of the Management Instance
When you create a grid, the grid sets a used-space warning threshold for the management instance. If the size of your management instance reaches this threshold, commands that you run with the ttGridAdmin
utility output warnings that the management instance is getting full.
This example shows the output of a ttGridAdmin instanceCreate
command for a grid where the management instance is almost full.
% ttGridAdmin instanceCreate host9 -location /grid
Instance instance1 on Host host9 created in Model
Warning: the TTGRIDADMIN database is 91% full; Temp space: 57%
Note:
When you use a ttGridAdmin
command and you see a warning that your management instance is getting full, TimesTen Scaleout deletes old grid model versions and logs based on the retention days and retention versions parameters of your grid.
Use the gridDisplay
command of the ttGridAdmin
utility on your management instance to see the current used-space warning threshold for the management instance, and retention days and quantity of previous versions of the grid model that TimesTen Scaleout stores.
This example shows the output of the ttGridAdmin gridDisplay
command.
% ttGridAdmin gridDisplay
Grid name: grid1
Grid GUID: 864C0CB2-AF40-4047-A711-7A9F9F0E7D6C
Created: 2018-12-12 12:20:32.000000
Major Release: 22.1
Created Release: 22.1.1.18.0
K: 3
Admin Userid: terry
Admin UID: 4133
Admin Group: admin
Admin GID: 900
Retain Days: 30
Retain Versions: 10
Warn Threshold: 90
Perm In Use Pct: 91
Temp In Use Pct: 57
For more information about the ttGridAdmin gridDisplay
command and
the default values for the retention of previous grid models and warning threshold
of the management instance, see Display Information About the Grid
(gridDisplay) and Modify Grid Settings (gridModify),
respectively, in Oracle TimesTen In-Memory Database
Reference.
See Resize the Management Instance for more information on resizing the grid administration database.
Modify the Used-Space Warning Threshold of the Management Instances
This topic shows how to increase or decrease the current used-space warning threshold for the management instances.
This example sets the current used-space warning threshold for the management instances to 80%
.
% ttGridAdmin gridModify -warnThresh 80
Grid Definition modified.
For more information about the ttGridAdmin gridModify
command, see
Modify
Grid Settings (gridModify) in Oracle TimesTen In-Memory Database
Reference.
Resize the Management Instance
In some cases, you may want to resize the management instance because it is getting full.
Depending on if your grid has a single management instance or an active and a standby management instances, follow one of these procedures:
Grid with a Single Management Instance
To resize the management instance of a grid with one management instance, ensure that you are connected to the management instance.
You have successfully resized your management instance.
Grid with Active and Standby Management Instances
To resize the management instances of a grid with active and standby management instances, ensure that you are connected to the active management instance.
You have successfully resized your management instances. Additionally, your original active management instance is now the standby management instance and the original standby management instance is now the active management instance. This does not affect operations of your grid.