管理の一時停止

TimesTenScaleoutオブジェクトの管理を一時停止する方法の例を示します。

この例では、デプロイ済の正しく機能しているTimesTenScaleoutオブジェクトについて示されています。
kubectl get tts samplescaleout
NAME             OVERALL   MGMT     CREATE    LOAD              OPEN   AGE
samplescaleout   Normal    Normal   created   loaded-complete   open   3h33m

高レベル状態はNormal、管理の状態はNormal、データベースの状態はcreated,loaded-complete,openであることに注目してください。

  1. kubectl editコマンドを使用してTimesTenScaleoutオブジェクトを編集し、次のような変更を加えます。
    • ファイル内に.spec.ttspec.stopManagingの行がある場合は、その値を変更します。現在の値と異なる必要があります。

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

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

オペレータによってTimesTenScaleoutオブジェクトの高レベル状態がManualInterventionRequiredに設定されます。オペレータは、オブジェクトに対してこれ以上の処理を実行しません。これで、グリッドとデータベースで手動操作を実行できるようになりました。このような操作をすべて実行し、オペレータで管理を再開する準備が整ったら、このオブジェクトの.spec.ttspec.rexamineデータ項目を設定できます。TimesTenScaleoutオブジェクトの.spec.ttspec.rexamineデータ項目の設定方法を示す例については、「reexamineデータ項目の設定」を参照してください。