Suspend Management

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

In the example, there is a deployed TimesTenScaleout object that is functioning properly.
kubectl get tts samplescaleout
NAME             OVERALL   MGMT     CREATE    LOAD              OPEN   AGE
samplescaleout   Normal    Normal   created   loaded-complete   open   3h33m

Note the High Level state is Normal, the management state is Normal, and the database state is created,loaded-complete,open.

  1. Use the kubectl edit command to edit the TimesTenScaleout object, making the following changes:
    • If there is a line for .spec.ttspec.stopManaging in the file, then modify its value. It must be different than the current value.

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

    In this example, there is no .spec.ttspec.stopManaging line. This example adds the .spec.ttspec.stopManaging line and adds a value of Suspend.

    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
        stopManaging: Suspend
    ...
    timestenscaleout.timesten.oracle.com/samplescaleout edited
    
  2. Use the kubectl get command to observe the behavior..
    kubectl get tts samplescaleout
    NAME             OVERALL                      MGMT     CREATE    LOAD              OPEN   AGE
    samplescaleout   ManualInterventionRequired   Normal   created   loaded-complete   open   3h33m
    

The Operator sets the TimesTenScaleout object to the ManualInterventionRequired High Level state. The Operator takes no further action on the object. You can now perform manual operations on your grid and database. When you have completed such operations and are ready for the Operator to resume management, you can set the .spec.ttspec.rexamine datum for the object. For an example that shows you how to set a TimesTenScaleout object's .spec.ttspec.rexamine datum, see Set reexamine Datum.