Files
goma-gateway/docs/quickstart/loadbalanging.md

40 lines
794 B
Markdown
Raw Normal View History

2024-11-09 15:06:09 +01:00
---
title: Load Balancing
layout: default
parent: Quickstart
2024-11-10 08:15:47 +01:00
nav_order: 4
2024-11-09 15:06:09 +01:00
---
# Load Balancing
2024-11-12 13:26:14 +01:00
Goma Gateway supports round-robin algorithm load balancing.
It comes with an integrated load balancing backends healthcheck.
2024-11-09 15:06:09 +01:00
```yaml
version: 1.0
gateway:
routes:
- path: /
name: example route
hosts:
- example.com
- example.localhost
rewrite: /
methods: []
healthCheck:
path: "/"
2024-11-12 13:26:14 +01:00
interval: 30s
timeout: 10s
healthyStatuses: [200,404]
## destination: will be override by backends
destination: ""
backends:
- https://example.com
- https://example2.com
- https://example4.com
cors:
```
2024-11-09 15:06:09 +01:00