Skip to content

Deployment

Services don't come up

After docker compose up -d (or a Helm install), allow up to 5 minutes for every service to become available. The inference services load models on first start.

Check container status and recent logs.

# See which services are up / restarting
docker compose ps

# Tail logs for everything, or a single service
docker compose logs -f
docker compose logs -f user-api

If you set HOST_LOG_DIR in your .env, MATVIS also mirrors its logs to that directory on the host (default /var/log/matvis).

kubectl get pods -n matvis
kubectl logs -f deployment/user-api -n matvis

A pod or container stuck in a restart loop almost always has the cause in its logs.


Can't reach the dashboard or API

  • localhost only works from the host itself. If you're connecting from another machine, use the host's IP address instead.
  • Verify that the configured ports are open and not blocked by a firewall.
  • On Kubernetes, confirm the NodePort services are reachable.
  • A connection refused immediately after startup usually means the service is still initializing.

GPU acceleration isn't being used

  • Enable GPU_ACCELERATION=True in .env.
  • Install the NVIDIA drivers and NVIDIA Container Toolkit on the host. The provided docker-compose.yml already runs the inference services with runtime: nvidia and NVIDIA_VISIBLE_DEVICES=all, and they do not start without the toolkit. Only the user-api GPU block is commented out.
  • On Kubernetes, install the NVIDIA Device Plugin and set gpu.enabled: true on each service that should use the GPU in values.yaml (for example filterApiTopic.gpu.enabled).
  • Restart the affected services after enabling GPU support.