reexamineデータ項目の設定

TimesTenScaleoutオブジェクトがManualInterventionRequired状態である場合は、そのオブジェクトの.spec.ttspec.reexamineデータ項目を設定または変更して、TimesTenオペレータにそのオブジェクトをReexamine状態に移すように指示できます。Reexamine状態では、オペレータによってTimesTenとデータベースの状態が確認されます。両方とも正常な場合は、オペレータによってそのオブジェクトの高レベル状態がNormalに戻されます。正常でない場合は、そのオブジェクトが再びManualInterventionRequired状態になります。

TimesTenScaleoutオブジェクトを再確認する方法の例を示します。

  1. TimesTenScaleoutオブジェクトがManualInterventionRequired状態であることを確認します。
    kubectl get tts samplescaleout
    NAME             OVERALL                      MGMT     CREATE    LOAD              OPEN   AGE
    samplescaleout   ManualInterventionRequired   Normal   created   loaded-complete   open   3h48m
    
  2. kubectl editコマンドを使用してTimesTenScaleoutオブジェクトを編集し、次のような変更を加えます。
    • ファイル内に.spec.ttspec.reexamineの行がある場合は、その値を変更します。現在の値と異なる必要があります。

    • ファイル内に.spec.ttspec.reexamineの行がない場合は、行を追加して値を指定します。

    この例では、.spec.ttspec.reexamineの行はありません。この例では、.spec.ttspec.reexamineの行を追加して、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. kubectl getコマンドを使用して動作を確認します。
    kubectl get tts samplescaleout
    NAME             OVERALL     MGMT     CREATE    LOAD              OPEN   AGE
    samplescaleout   Reexamine   Normal   created   loaded-complete   open   3h52m
    

    このオブジェクトの高レベル状態はReexamineになっています。オペレータによってTimesTenとデータベースの状態が確認されます。正常な場合は、オペレータによってそのオブジェクトの高レベル状態がNormalに移されます。正常でない場合は、そのオブジェクトが再びManualInterventionRequired状態になります。

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

このオブジェクトの高レベル状態がNormalに遷移しました。これは、グリッドとデータベースが正常に機能していることを示しています。