Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vm section to fly.toml #604

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 83 additions & 23 deletions site/site/public/schemas/fly.toml.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,66 @@
},
"type": "object",
"properties": {
"vm": {
"type": "array",
"items": {
"type": "object",
"properties": {
"size": {
"type": "string",
"enum": [
"shared-cpu-1x",
"shared-cpu-2x",
"shared-cpu-4x",
"shared-cpu-8x",
"performance-1x",
"performance-2x",
"performance-4x",
"performance-8x",
"performance-16x"
]
},
"memory": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"cpus": {
"type": "integer",
"enum": [1, 2, 4, 8, 16]
},
"cpu_kind": {
"type": "string",
"enum": ["shared", "performance"]
},
"gpus": {
"type": "integer",
"enum": [1, 2, 4, 8]
},
"gpu_kind": {
"type": "string",
"enum": ["a10", "a100-40gb", "a100-80gb", "l40s"]
},
"kernel_args": {
"type": "string"
},
"host_dedication_id": {
"type": "string"
},
"processes": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"app": {
"description": "Fly.io application name",
"type": "string"
Expand Down Expand Up @@ -79,30 +139,30 @@
"concurrency": {
"type": "object",
"description": "Control autoscaling metrics (connections or requests) and limits (hard and soft).",
"properties": {
"type": {
"type": "string",
"default": "connections",
"x-taplo": {
"docs": {
"enumValues": [
"Autoscale based on number of concurrent connections",
"Autoscale based on number of concurrent requests"
]
}
},
"enum": ["connections", "requests"]
},
"hard_limit": {
"default": 25,
"type": "integer",
"description": "When an application instance is __at__ or __over__ this number, the system will bring up another instance."
"properties": {
"type": {
"type": "string",
"default": "connections",
"x-taplo": {
"docs": {
"enumValues": [
"Autoscale based on number of concurrent connections",
"Autoscale based on number of concurrent requests"
]
}
},
"soft_limit": {
"default": 20,
"type": "integer",
"description": "When an application instance is __at__ or __over__ this number, the system is likely to bring up another instance."
}
"enum": ["connections", "requests"]
},
"hard_limit": {
"default": 25,
"type": "integer",
"description": "When an application instance is __at__ or __over__ this number, the system will bring up another instance."
},
"soft_limit": {
"default": 20,
"type": "integer",
"description": "When an application instance is __at__ or __over__ this number, the system is likely to bring up another instance."
}
}
},
"ports": {
Expand Down
Loading