---
title: Why Does My Vultr Load Balancer Respond with a 504 Gateway Timeout Error?
url: https://docs.vultr.com/support/products/network/load-balancer/why-does-my-vultr-load-balancer-respond-with-a-504-gateway-timeout-error
description: A Vultr Load Balancer returns 504 when the backend misses the 600-second default timeout; fix slow queries or raise it.
publish_date: 2025-09-15T13:43:15.454657Z
last_updated: 2026-10-26T23:31:48.266269Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

A **504 Gateway Timeout** occurs when the load balancer cannot get a response from a backend server within the configured timeout window. By default, Vultr Load Balancers use a **600-second timeout**. This error usually indicates that the backend server is too slow to respond, is overloaded, or is not in a healthy state.

To resolve this issue:

* Ensure the [instances attached](https://docs.vultr.com/products/network/load-balancer/management/instances/attach) to the load balancer are in a **Running** state in the Vultr Console.
* Confirm your application or database queries return results within the expected timeframe.
* Address bottlenecks such as slow queries, high CPU usage, or insufficient memory on the instances.
* For workloads that require longer processing (such as file uploads or long-running jobs), increase the **Timeout (seconds)** value in the **Basic Settings** section under **Details** using the [Vultr Console](https://console.vultr.com/loadbalancers), [API](https://www.vultr.com/api/#tag/load-balancer/operation/update-load-balancer), [CLI](https://github.com/vultr/vultr-cli), or [Terraform](https://docs.vultr.com/reference/terraform/resources/load_balancer).
