Manage a ServiceBeta
Once a service is live, you keep working on it: ship a new pipeline version, wire it into your app, watch how it runs, and control its cost. Callers keep using the same endpoint while you make these changes. You find and manage all your services in Gateway.
Prerequisites
- You must have read and write permissions to services to update services. For details, see User Roles and Permissions.
- You must have a service created and a pipeline published to it. For details, see Create a Service and Publish a Pipeline to a Service.
View Service Details
Every task below starts here.
- In Haystack Enterprise Platform, click Gateway in the navigation.
- Click the name of the service you want to work on.
What Do You Want to Do?
- Publish a new pipeline version
- Rename a service or edit its description
- Let others try the service
- Deactivate a service to save resources
- Delete a service you no longer need
- Call the service from your app
- Test the service before you integrate
- Trace and debug queries
- Scale the service and control cost
- Make the service available as an MCP tool
Publish a New Pipeline Version
When you improve a pipeline, publish the new version to the service so callers get it. The endpoint stays the same, so nothing breaks on their side.
- On Overview, in the Pipeline card, click Switch source.
- Choose the pipeline or version you want to serve.
- Describe what changed. Your note appears in the service deployment history.
- Confirm the change.
To check what's running now or what you served before, use the Deployment history list on Overview. The version marked Serving is the one handling requests.
Rename a Service or Edit Its Description
Keep the service easy to recognize as your setup grows.
- On Overview, in the About card, click Edit.
- Update the name and description.
- Save your changes.
Let Others Try the Service
Share a link so teammates or stakeholders can try the service in a playground-style page, with your own branding and access rules.
- On Overview, in the Pipeline card, click Share.
- Configure the link settings and style.
- Click Generate Link, then copy and share it.
For every share option, see Share a Pipeline Prototype.
Deactivate a Service to Save Resources
Stop a service from handling requests when you don't need it. Deactivating stops active-hour metering. The service record and the published pipeline version stay in place, so you can bring it back anytime.
- Active: The service is deployed and handling requests.
- Standby: The service is idle after the idle timeout in hosting settings. It wakes automatically on a request, or you can wake it manually.
- Inactive: You deactivated the service. It does not handle requests.
- On Overview, in the Pipeline card, click More Actions.
- Choose Deactivate service and confirm. For a production service, type the service name to confirm.
The status changes to Inactive.
If a service is in standby, you can wake it up by clicking More Actions>Wake service. A service goes on standby after it reaches the idle timeout configured in the hosting settings.
To activate an inactive service:
- On Overview, in the Pipeline card, click More Actions.
- Choose Wake service if the service is on standby, or Activate service if it is inactive.
Delete a Service
Remove a service you don't plan to use again. This removes the endpoint but keeps the underlying pipeline. Deactivate the service first.
Deleting a service cannot be undone.
- On Overview, in the Pipeline card, click More Actions.
- If the service is active, click Deactivate service first.
- Open More Actions* again and choose Delete service and confirm. For a production service, type the service name to confirm.
The service is removed and you return to Gateway.
Call the Service from Your App
Point your application at the service endpoint to send it real traffic.
- Click Connect.
- Under Add the endpoint, copy the request URL. This URL stays the same when you publish a new pipeline version.
- Authenticate with a workspace API key as a Bearer token in the
Authorizationheader. To create or manage keys, click Manage API keys.
Keep API keys secret. Store them in a secrets manager and never expose them in client-side code. For more information, see Generate API Keys.
Test the Service Before You Integrate
Send a request straight from the browser to confirm the service responds as you expect.
- Click Connect.
- Under Try it, edit the sample request if needed.
- Click Send request and check the response.
Test requests hit the live service, use the currently serving revision, and count against your quota.
Trace and Debug Queries
Find slow or failing runs and see how a query moved through the pipeline.
- Click Traces.
- Open a trace to inspect its steps.
Tracing works the same as for pipelines. To read and use traces, see Trace with Built-In Traces.
Scale the Service and Control Cost
Tune how many replicas run and how long the service stays active to balance responsiveness against cost. These settings apply only to this service. If the same pipeline is also deployed on its own, configure that separately in the pipeline deployment settings.
- Click Settings and go to the Hosting section.
- 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.
- Confirm your changes.
You can change these settings at any time.
Make the Service Available as an MCP Tool
Expose this service to your workspace MCP server so AI assistants — Claude Desktop, Cursor, VS Code, and more — can call it as a tool. Using a service as an MCP tool is recommended for production use because the service endpoint stays stable when you publish a new pipeline version.
- Click Settings.
- In the MCP tool section, turn on Use as MCP tool.
The service is immediately available to AI assistants connected to the workspace MCP server.
What To Do Next
- Call the endpoint from your app with an API key.
- Trace with Built-In Traces when you need to debug a run.
Related Information
Was this page helpful?