# Production setup

These how-to guides cover common operations to prepare a LXD server setup for production.

## Optimize performance

The `lxd-benchmark` tool measures the time to create instances in different configurations. In some scenarios, deployments can also be configured for increased bandwidth.

* [Benchmark performance](https://canonical.com/lxd/docs/latest/howto/benchmark_performance/index.html.md)
* [Increase bandwidth](https://canonical.com/lxd/docs/latest/howto/network_increase_bandwidth/index.html.md)

## Monitor metrics and logs

LXD collects metrics and logs that can be viewed as raw data or used with observability tools like Loki and Grafana.

* [Monitor metrics](https://canonical.com/lxd/docs/latest/metrics/index.html.md)
* [Monitor security events](https://canonical.com/lxd/docs/latest/howto/security_events/index.html.md)
* [Send logs to Loki](https://canonical.com/lxd/docs/latest/howto/logs_loki/index.html.md)
* [Set up Grafana](https://canonical.com/lxd/docs/latest/howto/grafana/index.html.md)

## Related topics

Explanation:

- [Performance tuning](https://canonical.com/lxd/docs/latest/explanation/performance_tuning/index.html.md#performance-tuning)

Reference:

- [Provided metrics](https://canonical.com/lxd/docs/latest/reference/provided_metrics/index.html.md#provided-metrics)
- [Server settings for a LXD production setup](https://canonical.com/lxd/docs/latest/reference/server_settings/index.html.md#server-settings)
