Skip to main content

Stop and start AI Search endpoints

Beta

This feature is in Beta. To use it, a workspace admin must turn on AI Search: Stop and Start Endpoints from the Previews page. See Manage Databricks previews.

Stop AI Search endpoints that are not being used. A stopped endpoint incurs no serving charges, and its indexes and data are retained. Storage is billed the same as before you stopped the endpoint. When you start the endpoint again, it serves the same indexes without re-syncing them from their source tables. Stopping and starting each take several minutes, and a stopped endpoint stays stopped until you start or delete it.

A stopped endpoint can't serve queries. Stop only endpoints that no application depends on. To find endpoints whose indexes receive no queries, see Identify unused AI Search endpoints.

Requirements​

What happens while an endpoint is stopped​

An endpoint stops serving as soon as you stop it, and serves again when it's ready after you start it. Until then:

  • Queries fail, and indexes don't sync from their source tables. The indexes show as Offline.
  • You can't do the following:
    • Create or delete indexes on the endpoint.
    • Change endpoint settings, such as target queries per second (QPS), usage policy, or tags.
    • Run retrieval quality evaluation or reranker finetuning.
  • You can still view the endpoint and its indexes, edit permissions, and delete the endpoint.

After you start the endpoint, sync each triggered index to pick up changes made to its source table while the endpoint was stopped.

When an endpoint can't be stopped​

The stop request fails, and the error message gives the reason, in these cases:

  • The endpoint isn't ready, or an operation is in progress, such as creating, deleting, or syncing an index, or changing the target QPS. Retry after the operation completes.
  • An index on the endpoint uses continuous sync mode or is a Direct Vector Access index. Endpoints with these indexes can't be stopped.
  • The endpoint has no indexes. It doesn't need to be stopped, because an endpoint stops incurring charges 24 hours after its last index is deleted. See How AI Search is priced.

Stop an endpoint​

You can stop an endpoint using the Databricks UI, the Python SDK, or the REST API.

  1. In the left sidebar, click Compute.
  2. Click the AI Search tab.
  3. In the row for the endpoint, click the kebab menu Kebab menu icon. and select Stop endpoint. You can also select Stop endpoint from the kebab menu on the endpoint's details page.
  4. In the confirmation dialog, click Stop endpoint.

The endpoint status changes to Stopping, and then to Stopped.

Start an endpoint​

When you start an endpoint, it serves the same indexes that it had when it stopped.

  1. In the left sidebar, click Compute.
  2. Click the AI Search tab.
  3. In the row for the stopped endpoint, click the kebab menu Kebab menu icon. and select Start endpoint. You can also select Start endpoint from the kebab menu on the endpoint's details page.

The endpoint status changes to Starting, and then to Ready when the endpoint can serve queries.