Set reexamine Datum

If a TimesTenScaleout object is in the ManualInterventionRequired state, you can set/modify the object's .spec.ttspec.reexamine datum to instruct the TimesTen Operator to move the object into the Reexamine state. In the Reexamine state, the Operator examines the state of TimesTen and the database. If both are healthy, the Operator returns the object to the High Level Normal state. If not healthy, the object re-enters the ManualInterventionRequired state.

Let's walk through an example that shows you how to reexamine a TimesTenScaleout object.

  1. Verify a TimesTenScaleout object is in the ManualInterventionRequired state.
    kubectl get tts samplescaleout
    NAME             OVERALL                      MGMT     CREATE    LOAD              OPEN   AGE
    samplescaleout   ManualInterventionRequired   Normal   created   loaded-complete   open   3h48m
    
  2. Use the kubectl edit command to edit the TimesTenScaleout object, making the following changes:
    • If there is a line for .spec.ttspec.reexamine in the file, then modify its value. It must be different than the current value.

    • If there is no line for .spec.ttspec.reexamine in the file, then add a line and specify a value.

    In this example, there is no .spec.ttspec.reexamine line. This example adds the .spec.ttspec.reexamine line and assigns a value of Reexamine1.

    kubectl edit timestenscaleout samplescaleout
    # Please edit the object below. Lines beginning with a '#' will be ignored,
    # and an empty file will abort the edit. If an error occurs while saving this file will be
    # reopened with the relevant failures.
    #
    apiVersion: timesten.oracle.com/v1
    kind: TimesTenScaleout
    metadata:
      creationTimestamp: "2023-01-18T23:57:56Z"
      generation: 1
    ...
    spec
    ...
      ttspec:
        ...
        dbConfigMap:
        - samplescaleout
        ...
        k: 2
        ...
        nReplicaSets: 3
        nZookeeper: 3
        replicaSetRecovery: Restart
        reexamine: Reexamine1
    ...
    timestenscaleout.timesten.oracle.com/samplescaleout edited
    
  3. Use the kubectl get command to observe the behavior..
    kubectl get tts samplescaleout
    NAME             OVERALL     MGMT     CREATE    LOAD              OPEN   AGE
    samplescaleout   Reexamine   Normal   created   loaded-complete   open   3h52m
    

    The object is in the Reexamine High Level state. The Operator examines the state of TimesTen and the database. If healthy, the Operator moves the object to the High Level Normal state. If not healthy, the object re-enters the ManualInterventionRequired state.

    kubectl get tts samplescaleout
    NAME             OVERALL   MGMT     CREATE    LOAD              OPEN   AGE
    samplescaleout   Normal    Normal   created   loaded-complete   open   3h53m
    

The object transitioned to the Normal High Level state, indicating the grid and database are functioning normally.