Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

Configure Service Hosting and Cost

Tune how much compute a service gets, how many replicas run, and how long the service stays active. These settings balance responsiveness against cost.


Prerequisites​

Scale the Service and Control Cost​

These settings apply only to this service. If the same pipeline is also deployed on its own, configure that deployment separately in the pipeline deployment settings.

Credit cost

Credits consumed ≈ min replicas × hours deployed. Services on standby or in inactive status consume no credits.

For a full breakdown, see Understand Your Pipeline Usage.

  1. In Haystack Enterprise Platform, click Gateway in the navigation and open the service.
  2. Click Settings and go to the Hosting section.
  1. Choose a preset, or select Custom to set your own values:
    • High demand: For production traffic that needs high availability and scaling.
    • Low demand: For testing or services that are used rarely.
    • Custom: Set Min replicas, Max replicas, and Idle timeout yourself.
  2. Confirm your changes.

You can change these settings at any time. To check whether the service needs more resources before you change them, see Check Service Metrics.

To cap how many requests one replica serves at the same time, see Limit Requests per Replica with the REST API.

Run a Pipeline Larger Than 256 KB​

Saving a pipeline or index configuration larger than 256 KB fails with error 413. This limit applies when you create, validate, or update a pipeline, pipeline version, or index, in Builder or through the API. The limit doesn't apply to a YAML configuration pushed to a service as a revision, so run a pipeline over 256 KB as a serverless service. You push the YAML with the REST API, and you can't edit the pipeline in Builder afterwards. For the steps, see Run a Pipeline Larger Than 256 KB with the REST API.

What To Do Next​