- Kubernetes Operator User's Guide
- TimesTen Cache in TimesTen Classic Example
- Monitor Deployment of a TimesTenClassic Object
Monitor Deployment of a TimesTenClassic Object
Use the kubectl
get
and the kubectl
describe
commands to monitor the progress of the active standby pair as it is provisioned.
- Use the
kubectl
get
command and review theSTATE
field. Observe the value isInitializing
. The active standby pair provisioning has begun, but is not yet complete.% kubectl get ttc cachetest NAME STATE ACTIVE AGE cachetest Initializing None 41s
- Use the
kubectl
get
command again to see if value of theSTATE
field has changed. In this example, the value isNormal
, indicating the active standby pair of databases are now provisioned and the process is complete.% kubectl get ttc cachetest NAME STATE ACTIVE AGE cachetest Normal cachetest-0 3m58s
- Use the
kubectl
describe
command to view the active standby pair provisioning in detail.Note the following:
-
The
cachetest
Configmap has been correctly referenced in thedbConfigMap
field (represented in bold). -
The cache agent is running in the active and the standby Pods (represented in bold).
-
The cache administration user UID and password have been set in the active and the standby Pods (represented in bold).
-
Two cache groups have been created in the active and the standby Pods (represented in bold).
-
The replication agent is running in the active and standby Pods (represented in bold).
% kubectl describe ttc cachetest Name: cachetest Namespace: mynamespace Labels: <none> Annotations: <none> API Version: timesten.oracle.com/v1 Kind: TimesTenClassic Metadata: Creation Timestamp: 2023-10-24T03:29:48Z Generation: 1 Resource Version: 78390500 Self Link: /apis/timesten.oracle.com/v1/namespaces/mynamespace/timestenclassics/cachetest UID: 2b18d81d-15a9-11eb-b999-be712d29a81e Spec: Ttspec: Db Config Map: cachetest Image: container-registry.oracle.com/timesten/timesten:22.1.1.19.0 Image Pull Policy: Always Image Pull Secret: sekret Storage Class Name: oci-bv Storage Size: 250Gi Status: Active Pods: cachetest-0 High Level State: Normal Last Event: 28 Pod Status: Cache Status: Cache Agent: Running Cache UID Pwd Set: true N Cache Groups: 2 Db Status: Db: Loaded Db Id: 30 Db Updatable: Yes Initialized: true Pod Status: Agent: Up Last Time Reachable: 1603510527 Pod IP: 10.244.7.92 Pod Phase: Running Replication Status: Last Time Rep State Changed: 0 Rep Agent: Running Rep Peer P State: start Rep Scheme: Exists Rep State: ACTIVE Times Ten Status: Daemon: Up Instance: Exists Release: 22.1.1.19.0 Admin User File: true Cache User File: true Cg File: true High Level State: Healthy Intended State: Active Name: cachetest-0 Schema File: true Cache Status: Cache Agent: Running Cache UID Pwd Set: true N Cache Groups: 2 Db Status: Db: Loaded Db Id: 30 Db Updatable: No Initialized: true Pod Status: Agent: Up Last Time Reachable: 1603510527 Pod IP: 10.244.8.170 Pod Phase: Running Replication Status: Last Time Rep State Changed: 1603510411 Rep Agent: Running Rep Peer P State: start Rep Scheme: Exists Rep State: STANDBY Times Ten Status: Daemon: Up Instance: Exists Release: 22.1.1.19.0 Admin User File: true Cache User File: true Cg File: true High Level State: Healthy Intended State: Standby Name: cachetest-1 Schema File: true Rep Create Statement: create active standby pair "cachetest" on "cachetest-0.cachetest.mynamespace.svc.cluster.local", "cachetest" on "cachetest-1.cachetest.mynamespace.svc.cluster.local" NO RETURN store "cachetest" on "cachetest-0.cachetest.mynamespace.svc.cluster.local" PORT 4444 FAILTHRESHOLD 0 store "cachetest" on "cachetest-1.cachetest.mynamespace.svc.cluster.local" PORT 4444 FAILTHRESHOLD 0 Rep Port: 4444 Status Version: 1.0 Events: Type Reason Age From Message ---- ------ ---- ---- ------- - Create 5m40s ttclassic Secret tt2b18d81d-15a9-11eb-b999-be712d29a81e created - Create 5m40s ttclassic Service cachetest created - Create 5m40s ttclassic StatefulSet cachetest created - StateChange 4m28s ttclassic Pod cachetest-0 Agent Up - StateChange 4m28s ttclassic Pod cachetest-0 Release 22.1.1.19.0 - StateChange 4m28s ttclassic Pod cachetest-0 Daemon Up - StateChange 3m18s ttclassic Pod cachetest-0 RepScheme None - StateChange 3m18s ttclassic Pod cachetest-0 RepAgent Not Running - StateChange 3m18s ttclassic Pod cachetest-0 RepState IDLE - StateChange 3m18s ttclassic Pod cachetest-0 Database Loaded - StateChange 3m18s ttclassic Pod cachetest-0 Database Updatable - StateChange 3m18s ttclassic Pod cachetest-0 CacheAgent Not Running - StateChange 2m57s ttclassic Pod cachetest-0 CacheAgent Running - StateChange 2m47s ttclassic Pod cachetest-1 Agent Up - StateChange 2m47s ttclassic Pod cachetest-1 Release 22.1.1.19.0 - StateChange 2m46s ttclassic Pod cachetest-0 RepAgent Running - StateChange 2m46s ttclassic Pod cachetest-0 RepScheme Exists - StateChange 2m46s ttclassic Pod cachetest-0 RepState ACTIVE - StateChange 2m46s ttclassic Pod cachetest-1 Daemon Up - StateChange 2m9s ttclassic Pod cachetest-1 CacheAgent Running - StateChange 2m9s ttclassic Pod cachetest-1 Database Not Updatable - StateChange 2m9s ttclassic Pod cachetest-1 Database Loaded - StateChange 2m9s ttclassic Pod cachetest-1 RepAgent Not Running - StateChange 2m9s ttclassic Pod cachetest-1 RepScheme Exists - StateChange 2m9s ttclassic Pod cachetest-1 RepState IDLE - StateChange 2m3s ttclassic Pod cachetest-1 RepAgent Running - StateChange 118s ttclassic Pod cachetest-1 RepState STANDBY - StateChange 118s ttclassic TimesTenClassic was Initializing, now Normal
-
Your active standby pair of TimesTen databases are successfully deployed (as indicated by Normal
.) You are now ready to verify that TimesTen Cache is configured correctly and is working properly.