Deploy Feast with the feast template
Deploy Feast with the feast template
Stand up Feast, an open-source feature store, on a single Quake AI instance using the validated OpenTofu template feast. You apply the template, confirm the bundled Postgres and Redis containers start, and fetch online features from the sample driver view.
Feast is the feature layer for ML serving and training. You run it yourself; this is a self-hosted tool you operate, not a hosted feature platform.
Monthly cost estimate
Pricing calculator ↗Sized as a custom package on shared vCPU.
Monthly total for the required template above. Use the configurator below to add optional pieces and see the total update.
What each resource is for
Feast
s1a.small · 2 shared vCPU, 2 GiB RAM, 0.5 Gbps
Compute shown per role at custom-package rates ($29/dedicated vCPU, $7.25/shared vCPU, $1/GiB RAM). The headline above is the billed total: the cheaper of a named plan and the custom package, plus add-ons.
Included in baseline
s1a.small
2 shared vCPU, 2 GiB RAM, 0.5 Gbps
Compute + RAM rate basis
2 vCPU + 2 GiB RAM at $29/dedicated vCPU, $7.25/shared vCPU, $1/GiB RAM (regular). Totals apply the flat −$5/mo package promotion.
Block storage (60 GiB)
60 GiB at $0.08/GiB/mo
Public IP (included)
1 included with the custom package
Package promotional discount
Flat −$5.00/mo on the custom package (same promotion as named plans).
Included at no charge
These line items are zero on Quake AI. Many other providers meter them separately.
Data transfer (inbound and outbound)
Unlimited data transfer on every plan; Quake AI does not meter per-GB egress.
AWS, GCP, and Azure meter outbound transfer per GB. DigitalOcean and Hetzner include an allowance on compute plans, then charge overage.
Learn morePrivate networking
Private networks, subnets, Neutron routers, and security groups are included with the plan.
VPC objects are usually free to create elsewhere, but NAT gateways bill hourly plus per-GB processed. Quake AI uses router SNAT with no separate NAT line item.
Control-plane API requests
OpenStack API calls for provisioning and management are included.
Some managed services on other clouds meter API calls or charge for premium control-plane features.
Pricing data last validated: . For current rates, check quake.ai/pricing.
Prerequisites#
You need:
- OpenTofu 1.6.0 or later installed locally.
- Your OpenStack credentials sourced into the shell (
source openrc.sh). See the OpenStack CLI guide. - An SSH keypair that already exists in your project. Record its name for the
key_namevariable. - A copy of the
feasttemplate directory from the template reference page. - Your workstation public IP address for first-boot access to port 6566. Find it with
curl -sS https://api.ipify.org.
Step 1: Set the variables and apply the template#
The feature server listens on port 6566. The template security group restricts 6566 to server_allowed_cidr, which defaults to the private network only. To reach the server from your workstation for first-boot checks, set server_allowed_cidr to your own address.
Copy the template example variables file and open it:
cp terraform.tfvars.example terraform.tfvarsSet key_name to the SSH keypair already in your project, and server_allowed_cidr to your workstation public IP with a /32 suffix:
key_name = "YOUR_KEY_NAME"
server_allowed_cidr = "YOUR_IP/32"Initialize the working directory, preview the plan, and apply:
tofu init
tofu plan
tofu applyOpenTofu provisions a private network, router, security group, block volume mounted at /var/lib/docker, an instance, and a floating IP. On first boot, cloud-init installs Docker Engine, starts bundled Postgres and Redis, runs feast apply, materializes sample driver features, and starts the feature server.
When the apply finishes, read the outputs:
tofu outputRecord floating_ip and feature_server_url.
Step 2: Confirm the containers are healthy#
cloud-init takes several minutes after the instance reaches ACTIVE. SSH to the instance and watch the stack come up:
ssh ubuntu@YOUR_FLOATING_IP "sudo docker ps --format 'table {{.Names}}\t{{.Status}}'"You should see feast-server, and in bundled mode also postgres and redis, in a running or healthy state. If feast-init exited with code 0, the registry and sample features are applied.
Inspect the generated password location (do not commit this file):
ssh ubuntu@YOUR_FLOATING_IP "sudo ls -l /opt/feast/.env"Feast reads Postgres credentials from that file; no password ships in the template or tfvars.
Step 3: Fetch online features#
Install the Feast CLI locally or run it in a one-off container on the instance. From the instance:
ssh ubuntu@YOUR_FLOATING_IP
cd /opt/feast/feature_repo
sudo docker run --rm --network feast_feast-net \
-v /opt/feast/feature_repo:/feature_repo -w /feature_repo \
python:3.11-slim bash -c \
"pip install -q 'feast[postgres,redis]==0.47.0' && \
feast get-online-features \
--entities driver_id:1001 \
--features driver_hourly_stats:conv_rate driver_hourly_stats:acc_rate"Feast returns the materialized feature values for driver 1001 from the Redis online store.
What you built#
- Applied the
feasttemplate to provision network, security group, data volume, instance, and floating IP - Started bundled Postgres and Redis as the offline store, SQL registry, and online store
- Verified online feature retrieval from the sample
driver_hourly_statsfeature view
Scope of this deployment#
This template runs a single-VM Feast host with bundled stores, not a hosted feature platform. The instance is CPU-only. You operate Docker, Postgres, Redis, and the data volume yourself: back them up, patch them, and watch resource use as feature volume grows. For production, point store_mode at external and wire Postgres and Redis from the dedicated templates, then size the instance up.
Next steps#
- Feast template: the template reference, parameters, and resource map
- self-managed PostgreSQL template: external offline store and registry
- Redis cache template: external online store
- How to store application secrets and inject them at runtime: keep database passwords out of tfvars
Clean up#
When you no longer need the deployment, destroy everything the template created:
tofu destroyRegistry metadata, online features, and Postgres data all live on the instance and its attached volume, so tofu destroy removes them with the infrastructure.
See Also
Instances
Prerequisite
Migrate a Docker container app from AWS to Quake AI
Shares: Docker, Containers
Deploy Airbyte with the airbyte template
Shares: Docker, Containers
Deploy Airflow with the airflow template
Shares: Docker, Containers
Deploy Umami with the analytics-umami template
Shares: Docker, Containers