You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an optional `instance_type` gateway
configuration property that allows overriding the
default (typically very small) gateway instance
type.
```yaml
type: gateway
name: example-gateway
backend: aws
region: eu-west-1
instance_type: t3.large
domain: example.com
```
Supported backends:
- `aws`
- `gcp`
Not supported:
- `kubernetes` (instance types are not differentiated)
- `azure` (gateway support currently broken)
The commit also includes improved gateway
provisioning error handling in case the user
specifies an invalid instance type.
Copy file name to clipboardExpand all lines: docs/docs/concepts/gateways.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,27 @@ You can create gateways with the `aws`, `azure`, `gcp`, or `kubernetes` backends
56
56
Gateways in `kubernetes` backend require an external load balancer. Managed Kubernetes solutions usually include a load balancer.
57
57
For self-hosted Kubernetes, you must provide a load balancer by yourself.
58
58
59
+
### Instance type
60
+
61
+
By default, `dstack` provisions a small, low-cost instance for the gateway. If you expect to run high-traffic services, you can configure a larger instance type using the `instance_type` property.
62
+
63
+
<div editor-title="gateway.dstack.yml">
64
+
65
+
```yaml
66
+
type: gateway
67
+
name: example-gateway
68
+
69
+
backend: aws
70
+
region: eu-west-1
71
+
72
+
# (Optional) Override the gateway instance type
73
+
instance_type: t3.large
74
+
75
+
domain: example.com
76
+
```
77
+
78
+
</div>
79
+
59
80
### Router
60
81
61
82
By default, the gateway uses its own load balancer to route traffic between replicas. However, you can delegate this responsibility to a specific router by setting the `router` property. Currently, the only supported external router is `sglang`.
0 commit comments