# Operator guide

URL: https://lyeve.com/docs/guides/operator/

This guide is for whoever deploys LyEve and keeps it running, from a trial on a laptop to a
production install with paying tenants. LyEve ships as two container images, the engine
(`ghcr.io/lyeve-labs/lyeve-core`) and LyEve Console (`ghcr.io/lyeve-labs/lyeve-console`),
on PostgreSQL 15 to 18, MySQL 8.0 or 8.4, or SQL Server. The pages below hold the detail.

In the console, **Settings** groups every settings screen by what you came to change:

(Image: The Settings page: your account, workspace, sign-in and access, and APIs and delivery, each with its settings screens.)

## Your first hour

1. [Installation](https://lyeve.com/docs/getting-started/installation/): run the engine and the console, and the settings a production engine refuses to start without.
2. [Quickstart](https://lyeve.com/docs/getting-started/quickstart/): create the first administrator with the
   setup token and check the engine answers.
3. [Docker Compose](https://lyeve.com/docs/deploy/docker-compose/): both images and the proxy in front of
   them, the shortest path to a working console.
   [Run the engine and the console together](https://lyeve.com/docs/getting-started/engine-and-console/) is
   the same stack on a laptop, with no DNS or TLS.
4. [Configuration](https://lyeve.com/docs/reference/configuration/): every setting, and a minimal production
   environment.
   [Change a setting](https://lyeve.com/docs/how-to/change-a-setting/) is how to apply one and confirm it.
5. [Harden your instance](https://lyeve.com/docs/how-to/secure-your-instance/): secrets, signing, cookies,
   CORS, proxies and rate limits.
6. [Production checklist](https://lyeve.com/docs/deploy/production-checklist/): what to confirm before you go
   live.

## Common jobs

| I need to... | Read |
|---|---|
| Pick a host for the engine, the console and the database | [Deployment](https://lyeve.com/docs/deploy/) |
| Run on free hosting | [Free-tier overview](https://lyeve.com/docs/deploy/free-tier-overview/) |
| Run on Kubernetes | [Kubernetes](https://lyeve.com/docs/deploy/kubernetes/) |
| Apply a license, or see what it grants | [Licensing and tiers](https://lyeve.com/docs/concepts/licensing-and-tiers/) |
| Choose which features start | [Licensing and tiers](https://lyeve.com/docs/concepts/licensing-and-tiers/#choose-which-features-start) |
| Run more than one replica | [Scaling](https://lyeve.com/docs/scaling/) |
| Back up and restore one tenant | [Back up and restore tenants](https://lyeve.com/docs/how-to/backup-and-restore/) |
| Move content in from another system, or move the database | [Migrate existing content](https://lyeve.com/docs/how-to/migrate-existing-content/) |
| Serve several customers from one install | [Tenants](https://lyeve.com/docs/features/tenants/) |
| Copy configuration from staging to production | [Promote configuration](https://lyeve.com/docs/features/promote-configuration/) |
| Store media in S3 or another bucket | [Object storage](https://lyeve.com/docs/features/object-storage/) |
| Send email | [Email](https://lyeve.com/docs/features/email/) |
| Point health checks at the right path | [Health, metrics and debugging](https://lyeve.com/docs/reference/api-endpoints/#admin-api-routes) |
| Work out why a request fails | [Troubleshooting](https://lyeve.com/docs/guides/developer/troubleshooting/) |

## Watch a running instance

Each tool answers one question best.

| Question | Use | Needs |
|---|---|---|
| What happened, and what did this one request do? | [Logs](https://lyeve.com/docs/features/logs/): search, live tail, levels you change without a restart, shipping to Loki or Elasticsearch | Free |
| How do the numbers move over time? | [Metrics export](https://lyeve.com/docs/features/metrics-export/): Prometheus scraping, or pushes to an OTLP collector, Datadog or New Relic | Free |
| Which errors are new, and is one spiking? | [Error tracking](https://lyeve.com/docs/features/error-tracking/): errors grouped and triaged, with trends and an alert on a spike | Free, with email alerts and 30 days of events. Chat, PagerDuty and webhook alerts and older events need `alerts-pro` |
| What exactly did that call send and get back? | [Request capture](https://lyeve.com/docs/features/request-capture/): recent requests, a diff of two, and a replay | Free |
| Which endpoints are slow, and where does the time go? | [Request profiling](https://lyeve.com/docs/features/request-profiling/): the slowest endpoints, CPU and heap profiles, a flame graph | Free |
| Which database queries are slow, and what index would help? | [Slow query analysis](https://lyeve.com/docs/features/slow-query-analysis/): query plans and index suggestions | `query-monitor` |
| Is the endpoint up, seen from outside? | [Synthetic monitoring](https://lyeve.com/docs/features/synthetic-monitoring/): scheduled checks with an alert after repeated failures | Free up to three probes per tenant. More, or more often, needs `synthetic-monitoring-pro` |
| Who calls what, how often, and how fast? | [API analytics](https://lyeve.com/docs/features/api-analytics/): volume, error rate and latency by endpoint, tenant and client | `apianalytics` |
| Did a scheduled job stop working? | [Alerts](https://lyeve.com/docs/features/alerts/): an email, a chat message, a PagerDuty incident or a signed webhook after repeated failures | Free by email. The other channels need `alerts-pro` |
| Is one tenant using more than its share? | [Tenant quotas](https://lyeve.com/docs/features/tenant-quotas/): request, storage and bandwidth limits per tenant, with warnings and blocking | `usage-pro` |

## Related

- [Deployment](https://lyeve.com/docs/deploy/): every host guide.
- [Security controls](https://lyeve.com/docs/trust/security-controls/): what a running install enforces, and how to check it.
- [Developer guide](https://lyeve.com/docs/guides/developer/): what the people building on your instance read.
