メインコンテンツまでスキップ

Lake-Search クラスターの管理

この機能は、Enterprise プラン以上でのみ利用できます。

このガイドでは、Zilliz Cloud で Lake-Search を表示、確認、削除する方法について説明します。

Lake-Search クラスターは、Lake-Search ワークロードでの検索用のコンピューティングリソースを提供します。リクエストが到着すると起動し、アイドル状態になると、クラスター作成時に構成した自動サスペンドのタイムアウトに基づいてゼロにスケールバックします。

Lake-Search クラスターを管理するには、対象プロジェクトの Project Admin である必要があります。ロールと権限の詳細については、プラットフォームユーザーの管理 を参照してください。

この操作では、プロジェクトおよびリージョン内の Lake-Search を一覧表示します。

RESTful API を使用する​

bash
curl --request GET \
--url "${BASE_URL}/v2/clusters/onDemandClusters?projectId=proj-xxxxxxxxxxxxxxx&regionId=aws-us-west-2" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json"

応答例:

bash
{
"code": 0,
"data": {
"count": 2,
"onDemandClusters": [
{
"projectId": "proj-xxxxxxxxxxxxxxx",
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"clusterName": "Cluster-01",
"regionId": "aws-us-west-2",
"cuSize": 8,
"status": "RUNNING",
"endpoint": "https://proj-xxxxxxxxxxxxxxx.aws-us-west-2.api.zillizcloud.com",
"privateLink": "",
"createdBy": "john.doe@zilliz.com",
"createTime": "2024-04-21T10:15:15Z",
"autoSuspend": 60,
"description": "An on-demand cluster for vector search workloads."
},
{
"projectId": "proj-xxxxxxxxxxxxxxx",
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"clusterName": "Cluster-02",
"regionId": "aws-us-west-2",
"status": "RUNNING",
"cuSize": 8,
"endpoint": "https://proj-xxxxxxxxxxxxxxx.aws-us-west-2.api.zillizcloud.com",
"privateLink": "",
"createdBy": "john.doe@zilliz.com",
"createTime": "2024-04-21T10:15:16Z",
"autoSuspend": 60,
"description": "An on-demand cluster for vector search workloads."
}
]
}
}

Web コンソールを使用する​

W3nYwPc0AhxRDWbjEsWceJGVnbh

1

対象のプロジェクトを開き、クラスターを含むリージョンを選択します。

2

左側のナビゲーションで Lake-Search を展開し、Lake-Search クラスター を選択します。

3

一覧でクラスターを探し、そのステータスを確認します。

Lake-Search クラスターの詳細を確認する​

Lake-Search クラスターのステータスと構成を表示します。

RESTful API を使用する​

bash
curl --request GET \
--url "${BASE_URL}/v2/on-demand-compute?projectId=proj-09ee1f4b1151d5dd1edbc5&regionId=aws-us-west-2" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json"

応答例:

bash
{
"code": 0,
"data": {
"projectId": "proj-09ee1f4b1151d5dd1edbc5",
"regionId": "aws-us-west-2",
"status": "enabled"
}
}

Web コンソールを使用する​

XiWTwTJ3mhgjHBbS5dycYi4bn4c

1

プロジェクトおよびリージョンの Lake-Search の一覧 を開きます。

2

確認するクラスターの名前を選択します。

3

Overview タブで、クラスターのステータス、接続の詳細、コンピューティング設定を確認します。

クラスターのステータスを理解する​

Lake-Search は、リクエストのアクティビティに基づいてステータスを自動的に変更します。

ステータスDescription
RUNNINGクラスターにはアクティブなコンピューティングリソースがあり、検索またはクエリのリクエストを処理できます。
SUSPENDEDクラスターは、構成されたアイドルタイムアウト後にゼロにスケールバックしました。サスペンド中はコンピューティングコストが発生しなくなります。
DELETINGクラスターは削除中であり、使用できません。

サスペンドされた Lake-Search クラスターにリクエストが到着すると、Zilliz Cloud はワークロード用のコンピューティングリソースを起動します。構成された autoSuspend 期間内にリクエストを受信しないと、クラスターはゼロにスケールバックします。

Lake-Search クラスターの名前を変更する​

  • RESTful API を使用する

    次の例では、クラスター名を変更します。詳細については、Update Lake-Search を参照してください。

    bash
    curl --request PATCH \
    --url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
    --header "Authorization: Bearer ${TOKEN}" \
    --header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
    --header "Content-Type: application/json" \
    -d '{
    "clusterName": "New Cluster Name"
    }'

    出力例は以下の通りです。

    json
    {
    "code": 0,
    "data": {
    "clusterId": "inxx-xxxxxxxxxxxxxxx",
    "prompt": "successfully submitted. Cluster is being upgraded, which is expected to take several minutes. You can access data about the creation progress and status of your cluster by DescribeCluster API. Once the cluster status is RUNNING, you may access your vector database using the SDK."
    }
    }
  • Web コンソールを使用する

    1

    クラスターの Overview ページ を開きます。

    2

    Actions を開き、Edit を選択します。

    クラスターの Actions メニューにある Edit。

    3

    クラスター Name に新しい名前を入力し、Save をクリックします。

    Edit On-demand クラスター ダイアログの クラスター Name と Save。

Lake-Search クラスターの説明を編集する​

  • RESTful API を使用する

    次の例では、クラスターの説明を変更します。詳細については、Update Lake-Search を参照してください。

    bash
    curl --request PATCH \
    --url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
    --header "Authorization: Bearer ${TOKEN}" \
    --header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
    --header "Content-Type: application/json" \
    -d '{
    "description": ""
    }'

    出力例は以下の通りです。

    json
    {
    "code": 0,
    "data": {
    "clusterId": "inxx-xxxxxxxxxxxxxxx",
    "prompt": "successfully submitted. Cluster is being upgraded, which is expected to take several minutes. You can access data about the creation progress and status of your cluster by DescribeCluster API. Once the cluster status is RUNNING, you may access your vector database using the SDK."
    }
    }
  • Web コンソールを使用する

    1

    クラスターの Overview ページ を開きます。

    2

    Actions を開き、Edit を選択します。

    クラスターの Actions メニューにある Edit。

    3

    Description に新しい説明を入力し、Save をクリックします。

    Edit On-demand クラスター ダイアログの Description と Save。

Lake-Search クラスターを変更する​

Lake-Search クラスターの名前、説明、自動サスペンド設定などの設定を変更できます。

  • RESTful API を使用する

    既存の Lake-Search クラスターの名前、説明、自動サスペンド時間、クエリ CU 数を変更できます。詳細については、Update Lake-Search を参照してください。

    bash
    export TOKEN="YOUR_API_KEY"
    export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"

    curl --request PATCH \
    --url "https://${BASE_URL}/v2/clusters/onDemandClusters/in07-7d6ac8697204a6a" \
    --header "Authorization: Bearer ${API_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data-raw '{
    "autoSuspend": "5m",
    "clusterName": "my-on-demand-updated",
    "description": "Updated on-demand cluster description",
    "cuSize": 32
    }'

    出力例は以下の通りです。

    bash
    {
    "code": 0,
    "data": {
    "clusterId": "inxx-xxxxxxxxxxxxxxx",
    "prompt": "Successfully submitted."
    }
    }
  • Web コンソールを使用する

    Web コンソールでは、既存の Lake-Search クラスターの名前、説明、自動サスペンド時間、クエリ CU 数を変更できます。

    M2XMwoWoih17BRbqhGhcb6i9njg

    1

    クラスターの Overview ページ を開きます。

    2

    Actions を開き、Edit を選択します。

    3

    Lake-Search クラスターの次の設定を変更できます:

    • Lake-Search クラスター名

    • Description

    • Query CU

    • Auto Suspend

    4

    Save をクリックします。

keep-warm スケジュールを構成する​

keep-warm スケジュールでは、毎週繰り返される時間枠の中で Lake-Search クラスターを実行状態に保ちます。keep-warm ウィンドウが開始されると、Zilliz Cloud は Lake-Search クラスターがサスペンドされている場合に再開します。ウィンドウ中は、Auto Suspend が抑止されます。ウィンドウが終了すると、Lake-Search クラスターは既存の自動サスペンドポリシーに再び従います。

keep-warm スケジュールは、Auto Suspend を恒久的にオフにするものではなく、keep-warm ウィンドウの終了時に Lake-Search クラスターをアクティブにサスペンドするものでもありません。

Note

keep-warm ウィンドウ中に Lake-Search クラスターをサスペンドするには、先に keep-warm スケジュールを無効化するか削除してください。

各 Lake-Search クラスターには、keep-warm スケジュールを 1 つ設定できます。スケジュールには 1~10 個の週次ルールを含めることができます。各ルールは組織のシステムタイムゾーンを使用し、曜日、開始時刻、終了時刻を含みます。

RESTful API を使用する​

既存の Lake-Search API を使用して、keep-warm スケジュールを構成します。keep-warm 構成は、作成、詳細取得、更新の各 API で keepWarm オブジェクトによって渡されます。

keep-warm スケジュールを作成する​

Lake-Search クラスターの作成時に keep-warm スケジュールを構成するには、作成リクエストに keepWarm を含めます。

次の例では、平日の 09:00 から 18:00 までを対象とする keep-warm スケジュールを使用して Lake-Search クラスターを作成します。

bash
curl --request POST \
--url "${BASE_URL}/v2/clusters/createOnDemandCluster" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Content-Type: application/json" \
-d '{
"projectId": "proj-xxxxxxxxxxxxxxxxxxx",
"regionId": "aws-us-west-2",
"cuSize": 8,
"clusterName": "my-on-demand-cluster",
"autoSuspend": "5m",
"keepWarm": {
"enabled": true,
"schedules": [
{
"daysOfWeek": [1, 2, 3, 4, 5],
"startTime": "09:00",
"endTime": "18:00"
}
]
}
}'

応答例:

json
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"prompt": "successfully submitted. Cluster is being created."
}
}

keep-warm スケジュールを表示する​

次の例では、Lake-Search クラスターの keep-warm スケジュールを確認します。

bash
curl --request GET \
--url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Accept: application/json"

応答例:

json
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"clusterName": "my-on-demand-cluster",
"status": "RUNNING",
"autoSuspend": 300,
"keepWarmActive": true,
"keepWarm": {
"enabled": true,
"systemTimezone": "Asia/Shanghai",
"schedules": [
{
"daysOfWeek": [1, 2, 3, 4, 5],
"startTime": "09:00",
"endTime": "18:00"
}
],
"nextTransitionAt": "2026-09-15T10:00:00Z",
"nextTransitionType": "END"
}
}
}

スケジュールが構成されていない場合、keepWarm は null、keepWarmActive は false になります。

keep-warm スケジュールを更新する​

keep-warm スケジュールを更新するには、完全な keepWarm オブジェクトを含む PATCH リクエストを送信します。Zilliz Cloud は既存のスケジュールを送信されたスケジュールに置き換えます。

次の例では、既存の Lake-Search クラスターの keep-warm スケジュールを更新します。

bash
curl --request PATCH \
--url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Content-Type: application/json" \
-d '{
"keepWarm": {
"enabled": true,
"schedules": [
{
"daysOfWeek": [1, 2, 3, 4, 5],
"startTime": "09:00",
"endTime": "18:00"
}
]
}
}'

応答例:

json
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx"
}
}

keep-warm スケジュールを無効化する​

keep-warm スケジュールを無効化するには、完全な keepWarm オブジェクトを含む PATCH リクエストを送信し、enabled を false に設定します。

Note

スケジュールを無効化しても、構成済みのすべてのルールは保持されます。Lake-Search が keep-warm ウィンドウ内にある場合、Zilliz Cloud は直ちに keep-warm モードを終了します。スケジュールによって Lake-Search クラスターがサスペンドされることはありません。

次の例では、既存の keep-warm スケジュールを無効化します。

bash
curl --request PATCH \
--url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Content-Type: application/json" \
-d '{
"keepWarm": {
"enabled": false,
"schedules": [
{
"daysOfWeek": [1, 2, 3, 4, 5],
"startTime": "09:00",
"endTime": "18:00"
}
]
}
}'

応答例:

json
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx"
}
}

keep-warm スケジュールを削除する​

keep-warm スケジュールを削除すると、スケジュールとすべてのルールが削除されます。Lake-Search、データ、イベント、監査レコードは削除されません。

keep-warm スケジュールを削除するには、空の schedules リストを含む PATCH リクエストを送信します。

bash
curl --request PATCH \
--url "${BASE_URL}/v2/clusters/onDemandClusters/${CLUSTER_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "OrgId: org-xxxxxxxxxxxxxxxxxxx" \
--header "Content-Type: application/json" \
-d '{
"keepWarm": {
"enabled": false,
"schedules": []
}
}'

応答例:

json
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx"
}
}

Web コンソールを使用する​

EnHUwxZCUhT8hlbvMJRchiAQnfY

1

クラスターの Overview ページ を開きます。

2

Actions を開き、Edit Keep-warm を選択します。

3

Enable Schedule をオンにします。

4

Rules で、最初のルールの曜日を選択します。

5

それらの曜日の Start Time と End Time を設定します。

6

別の週次ルールを追加するには、+ Rule をクリックし、その曜日と時刻を設定します。

7

Save をクリックします。

クラスターの詳細ページには、keep-warm スケジュールのステータスが表示されます。スケジュールが構成されている場合は、次回の切り替え時刻も表示されます。

Lake-Search が現在 keep-warm ウィンドウ内にある場合、ページのプライマリクラスターステータスの横にセカンダリの Keep-warm タグが表示されます。

IF04w32RNhEbr7b8OBUcM8n3nnc

スケジュールを無効化しても、構成済みのすべてのルールは保持されます。Lake-Search が keep-warm ウィンドウ内にある場合、Zilliz Cloud は直ちに keep-warm モードを終了します。スケジュールによって Lake-Search クラスターがサスペンドされることはありません。スケジュールを無効化するには、Actions を開き、Edit Keep-warm を選択し、Enable Schedule をオフにして、Save をクリックします。

OzydwQkLjhVsoBbckHzciUAbnmc

Lake-Search クラスターを削除する​

Danger

Lake-Search クラスターを削除すると、直ちに削除されて復元できません。この操作は元に戻せません。

RESTful API を使用する​

bash
curl --request DELETE \
--url "${BASE_URL}/v2/clusters/onDemandClusters/inxx-xxxxxxxxxxxxxxx" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json"

応答例:

bash
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"status": "DELETING"
}
}

Web コンソールを使用する​

H9p9wioiohNX3Ub6evBcWGTBnse

1

クラスターの Overview ページ を開きます。

2

Actions を開き、Drop を選択します。

3

確認ダイアログで、表示されているとおりにクラスター名を入力します。

4

Drop をクリックして確定します。