Reference
Limits
Every limit Fluid applies, with its value and where it is set in Fluid's code.
Warnings and limits
- Your providers' quotas and capacity are limits too, and often the first you meet: Fluid does not raise them. See Quotas and capacity.
- A request over a limit is refused with a sentence that names it. Rate limits answer
429withRetry-After. - Sources are files under
src/portal/in Fluid's code, with the constant or function that sets the value. A test checks that each one exists. - Fluid is open to anyone with a verified email address.
- The limits that decide whether a workload goes through, in words, are on Known limits.
- The limits on requests in flight, body bytes, a daemon's connects, install downloads, feedback and analytics hold per replica; the sign-in, device, verification and enrollment limits hold across replicas, and so do the limits on an Owner's billing actions when plans are on for the workspace.
- A workspace's plan limits the compute it uses through Fluid each month. See Plans and billing.
Access and requests
| Limit | Value | Source |
|---|---|---|
| Who is admitted | Fluid is open to anyone with a verified email address. | gateway/assembly/config.py ADMIT_POLICIES |
| Console session | ends after 12 hours unused, 7 days at most | gateway/sessions.py SESSION_IDLE_S, gateway/directory.py SESSION_MAX_S |
| Fresh sign-in for sensitive actions | from the last 5 minutes; from the last hour for inviting, changing a role, removing someone, leaving and renaming a workspace | gateway/sessions.py FRESH_S, gateway/policy.py PEOPLE_FRESH_S |
| Device sign-in code | lasts 10 minutes | jobs/principal.py DEVICE_TTL_S |
| CLI credential | renews every 15 minutes, lasts until revoked | gateway/cli_auth.py ACCESS_S |
| Agent token | 1, 7 or 30 days, or until revoked for a key an Administrator or an Owner makes on the Developers page | gateway/tokens.py EXPIRY_DAYS, UNENDING_ROLES |
| A key's spend limit | by calendar month in UTC: the estimated cost of the own-cloud jobs the key started in the month, what those still running hold (each one's budget) and what its Fluid compute jobs were charged in it less refunds, together. A job on your own cloud counts whole in the month it was started in | platform/key_limits.py Month, Used |
| A key's turn against its monthly limit | one request of a key that starts a job or sets a job's budget at a time: the next waits up to 20 seconds, then is answered 429 key_busy | gateway/assembly/key_month.py LEASE_WAIT_S |
| GPUs a key may hold at once | a whole number from 0 to 4096, counted over its Fluid compute jobs | gateway/developers.py GPUS_MAX |
| A key's limit in dollars | from 0 to 1,000,000,000 dollars | gateway/tokens.py BUDGET_MAX |
| Requests a key made, kept | 30 days, and the latest 100,000 of a workspace at most. A request shows on the Developers page's Activity tab a few seconds after it is answered | platform/key_requests.py KEPT_DAYS, ROWS_MAX |
| Requests a key made, recorded | every 2 seconds each of Fluid's servers records at most 20 of one key, 50 of one workspace and 5,000 in all. What is over is answered as always and not listed | gateway/key_activity.py FLUSH_EVERY_S, KEY_MAX, WORKSPACE_MAX, QUEUE_MAX |
| Webhook endpoints | 5 a workspace | platform/webhooks/store.py ENDPOINTS_MAX |
| A webhook's address | https, a host name that resolves to public addresses only and is not one of Fluid's own (clusy.io, fluid.sh and every name under them), port 443 or from 1024 up, 2,048 characters at most | platform/webhooks/address.py URL_MAX, PORT_LOW, OWN_DOMAINS, REFUSED_V4, REFUSED_V6 |
| One webhook delivery | 10 seconds for your server to answer, 5 of them to connect. No redirect is followed, and the answer's body is not read. How long it took is said in steps of 100 ms | platform/webhooks/sender.py TIMEOUT_S, CONNECT_S, STEP_MS |
| Webhook sends at once | one to an endpoint, on every server together. 2 to one workspace's endpoints and 32 in all on each of Fluid's servers | platform/webhooks/passes.py WORKSPACE_SENDS, SENDS_MAX |
| A webhook try Fluid could not make | not held against the endpoint: no pause and no drop counts it, and it is made again after 30 seconds | platform/webhooks/store.py OURS_WAIT_S |
| A webhook delivery's retries | after 1 minute, then twice as long each time up to 1 hour, for 24 hours from when the event was made. Then it is dropped | platform/webhooks/store.py BACKOFF_FIRST_S, BACKOFF_MOST_S, DELIVER_FOR |
| A webhook endpoint that takes nothing | paused after 24 hours | platform/webhooks/store.py PAUSE_AFTER |
| Webhook deliveries listed | 7 days after each ended, 50 a page | platform/webhooks/store.py DELIVERIES_KEPT, PAGE |
| Test events to a webhook | 10 a minute for one person | gateway/developers_webhooks.py TESTS_A_MINUTE |
| Sign-in starts | 30 a minute per client | gateway/signin.py STARTS_PER_MINUTE |
| Requests in flight | 128 per workspace, then 429 | gateway/proxy.py WORKSPACE_REQUESTS_MAX |
| Request body | 1 MiB | gateway/policy.py BODY_MAX |
| Request body for a secret, a connection or settings | 4 MiB | gateway/policy.py LARGE_BODY_MAX |
| A job's form | 8 MiB (the project goes by upload link) | gateway/policy.py UPLOAD_BODY_MAX |
| A log read's wait | 10 s at most | gateway/policy.py WAIT_MAX_S |
| Installer downloads | 30 requests a minute per client | jobs/install.py DOWNLOADS_PER_MINUTE |
People in a workspace
The counts hold across replicas. See People in a workspace.
| Limit | Value | Source |
|---|---|---|
| People and open invitations in one workspace | 50 together, on any plan: a bound against abuse that is no part of a plan. Write to hi@clusy.io to raise it | platform/billing/plans.py MEMBERS_MAX |
| People the Free plan is for | one person. Team and Dedicated are for everyone in the workspace | platform/billing/plans.py FREE_MEMBERS |
| An invitation | lasts 7 days from when it was made or last sent | gateway/members.py LIFE_S |
| Sends of one invitation | 5 at most, at least 10 minutes apart | gateway/members.py SENDS_MAX, RESEND_AFTER_S |
| Invitation emails one person sends | 10 an hour, each invitation made or sent again | gateway/members.py SENDS_PER_HOUR |
| Invitations a workspace makes | 20 in any 24 hours, revoked ones included | platform/directory.py INVITES_MADE_MAX, INVITES_MADE_WINDOW_S |
| Opening invitation links | 30 a minute per client, and 20 a minute of links that are no invitation's | gateway/members.py PREVIEWS_PER_MINUTE, GUESSES_PER_MINUTE |
| Accepting invitations | 10 a minute per person | gateway/members.py ACCEPTS_PER_MINUTE |
| Invitations an Owner sees | the newest 100 not accepted or revoked | gateway/members.py LISTED_MAX |
| Emails about workspace changes | the first about 2 minutes after a change (at once for a machine connected from two places), holding what came of the same kind meanwhile; the rest of the hour in one digest when it ends | platform/notices/__init__.py HOLD_S, WINDOW_S |
| A digest's list of changes | 20, the rest counted | platform/mail/notice_mail.py TABLE_MAX |
| An email about a workspace change | sent within a day of when it was due, or not at all | platform/mail/notices.py WITHIN |
| An invitation that ended | deleted 30 days after it was accepted, revoked or expired | platform/directory.py INVITES_KEPT_S |
Connections
| Limit | Value | Source |
|---|---|---|
| Connections per workspace | 24 | jobs/connections.py MAX_CONNECTIONS |
| Connections per cloud | 8 | jobs/connections.py MAX_PER_KIND |
| A connection's label | 1 to 24 lowercase letters, digits or hyphens | providers/names.py LABEL |
| Verification when saved | 60 s | jobs/connections.py VERIFY_TIMEOUT_S |
| An AWS ExternalId waiting to be used | 24 hours | jobs/connections.py EXTERNAL_ID_TTL_S |
| A secret's name | up to 128 characters | jobs/connections.py SECRET_NAME |
| Secrets per workspace | 64, and 16 MiB sealed in all; past either, storing one more is refused (409) | jobs/connections.py SECRETS_MAX, SECRETS_BYTES_MAX |
Jobs and uploads
| Limit | Value | Source |
|---|---|---|
| A file in the uploaded project | left out over 100 MB | ui/pack.py LARGE_BYTES |
| The uploaded project | refused over 500 MB | ui/pack.py MAX_BYTES |
| An upload's archive | 600 MB | jobs/api_jobs.py WORKSPACE_MAX |
| An upload link | valid 1 hour | jobs/api_jobs.py UPLOAD_EXPIRES_S |
| Uploads no job took | 2 GB and 64 per workspace | jobs/api_jobs.py UPLOAD_BUDGET, UPLOAD_COUNT_MAX |
| A project's name | 1 to 100 characters | ui/jobs.py check_project |
| Jobs running at once | 100 per workspace (queued and running jobs; suspended ones do not count), then 429 for a launch, its upload or a resume; a refused launch's upload stops counting at once | jobs/api_jobs.py JOBS_LIVE_MAX |
| Jobs running at once on one replica | none unless the operator sets one (PORTAL_JOBS_REPLICA_MAX, over all workspaces, counted the same way), summed over the live replicas: admission refuses with 429 and Retry-After: 60 once the live jobs reach the sum | jobs/api_base.py jobs_replica_max, jobs/api_jobs.py JOBS_REPLICA_RETRY_S |
| Python | 3.12 by default, 3.13 or 3.14 | env/jobenv.py SUPPORTED_PYTHONS |
| Offers tried when there is no capacity | 4 | jobs/runner_common.py ALTERNATIVES |
| A pool that had no capacity ranks last | 5 minutes | jobs/runner_common.py NO_CAPACITY_S |
| Quotes from one provider | 45 s | jobs/placement.py OFFERS_TIMEOUT_S |
Regions in one request (--regions) | 64 names, each 1 to 64 characters; each cloud is asked only for its own regions, and a name that is no region of any cloud the request may use is refused by name | jobs/runner_common.py REGIONS_MAX, REGION_NAME_MAX, jobs/runner_requests.py check_regions |
What an exact spec (--on) may name | only what its provider makes: a spec that names anything else (a GPU or a machine type on Fargate, spot or a region where there is none, two GPUs that differ) is refused with what to name instead, at the quote and before a machine starts | providers/base.py refuse_unmade, spec_gpus, hold_spec |
disk_gb= in a spec | sets the disk on AWS EC2, Azure VMs and Google Cloud, and of a Container Apps replica without a GPU (8 GiB at most); refused everywhere else. A Fargate task's disk follows its memory, 20 to 200 GB | providers/catalog.py GPU_DISK_BASE_GB, FARGATE_FREE_DISK_GB, FARGATE_MAX_DISK_GB, aca_disk_gb, larger_disk |
| A plan or quote from the CLI | 120 s | ui/api.py PLAN_TIMEOUT_S |
| Stop | SIGTERM, then the gateway waits 15 s | jobs/runner_common.py STOP_GRACE_S |
| A Modal GPU sandbox waiting for capacity | 5 minutes when the job is pinned to one GPU type, 3 minutes when another offer follows, else the start timeout of 15 minutes | providers/modal_.py PINNED_GPU_CREATE_S, FALLBACK_CREATE_S, START_TIMEOUT_S |
| A Modal image build | 30 minutes for the requirements, 10 for Fluid's own layer; a failed build is built once more afresh | providers/modal_.py DEPS_BUILD_TIMEOUT_S, PORTAL_BUILD_TIMEOUT_S |
| GPUs in one Modal sandbox | 8 | providers/modal_.py MAX_GPUS |
| The disk of an AWS machine with several GPUs | 100 GB plus 1.1 GB for each GB of all its GPUs' memory, rounded up; disk_gb= in a spec sets another | providers/catalog.py MULTI_GPU_DISK_PER_GPU_GB, providers/aws_ec2.py GPU_DISK_GB |
| Out-of-memory rescues | a capture that fails twice in a row for the same reason ends the job | jobs/runner_common.py OOM_CAPTURE_TRIES |
Ranks of one job (--ranks) | 64 total across the job | common/__init__.py MAX_RANKS |
| Where a job of several ranks runs on GPUs | One machine on AWS, Modal, Lambda Cloud or your own machine. Multiple machines on on-demand AWS EC2 or GCE. GCE uses Standard by default on a2-highgpu-8g, a2-ultragpu-8g and g2-standard-96. An exact zonal spec can also select G2 Spot or A2 Ultra Flex-start. Each machine needs at least one GPU per local rank | providers/catalog.py MULTI_GPU_VERIFIED, ranks_refused, common/contracts.py GCP_GROUP_SHAPES |
| Ranks that do not all pause in one place | released after 5 s and tried again later, each wait twice the last, 2 minutes at most | runtime/group.py STALL_S, STALL_MAX_S |
| Ranks that exchange nothing | paused where each one is after 10 s without an exchange, or 4 times the longest they went without one, 2 minutes at most | runtime/group.py IDLE_S, STALL_MAX_S |
| A job of several ranks moving to a smaller GPU | the most PyTorch reserved on each GPU with what the GPU held beside it, plus 10%, must fit | jobs/preflight.py PEAK_MARGIN |
| The memory cap on Linux CPU machines | a reserve of 10% of the machine's memory, 256 MiB to 1 GiB; PORTAL_MEMORY_TRIPWIRE=0 in the job's environment turns it off | runtime/oom.py TRIPWIRE_ENV |
| Why a move waits | said again every 5 minutes per reason | jobs/runner_common.py PAUSE_BLOCKED_EVERY_S |
Plans and billing
| Limit | Value | Source |
|---|---|---|
| Free plan's compute through Fluid | $300 a month | platform/billing/plans.py Settings |
| Team plan's compute through Fluid | $20,000 a month, and $10,000 more for each add-on | platform/billing/plans.py Settings, limit_usd |
| Team plan's price | $1,200 a month, or $10,000 a year paid at once, for the workspace whoever is in it, before tax | platform/billing/plans.py Settings, price_cents |
| An add-on | $10,000 more compute a month for $500 a month, before tax, on a monthly or a yearly plan | platform/billing/plans.py Settings |
| A month | from the day and time the workspace was made on Free; on Team the subscription's billing month, and on a yearly plan each month from the day the year started | platform/billing/plans.py month_window, window_of |
| Warnings | at 75%, 90% and 100% of the limit, once a month for each limit | platform/billing/plans.py WARN_AT |
| The most a Team plan holds | the plan and 999 add-ons | platform/billing/plans.py BLOCKS_MAX |
| Processes in one job | 1 on Free, up to 64 in all on Team and Dedicated, on one machine or across several | platform/billing/plans.py FREE_RANKS, common/__init__.py MAX_RANKS |
| Add-ons autopay may buy in a month | the number an Owner sets, 1 to 20, on a monthly plan | platform/billing/plans.py AUTOPAY_MAX |
| Autopay's tries the payment provider does not take | 3 in a month, then autopay stops for the month | platform/billing/service.py UNTAKEN_MAX |
| An add-on's price | not sold under 50 cents, which is in a month's last minutes | platform/billing/service.py MIN_CHARGE_CENTS |
| A previewed price | good for 10 minutes, or to the end of the month or year it is for | platform/billing/service.py PREVIEW_AGE_S |
| A charge an Owner presses for | over $10,000, a second press of the same button | platform/billing/service.py SECOND_PRESS_CENTS |
| A switch to yearly | not in the 75 minutes after a renewal, nor in the last hour of a month or a year | platform/billing/service.py TURNED_READ_AFTER_S, PERIOD_TURNS_S |
| What a switch to yearly charges | the amount shown, and what accrued in the seconds since: under 30 cents in a price's 10 minutes for Team, and about 12 cents for each add-on | platform/billing/service.py _move_drift, MOVE_ROUNDING_CENTS |
| A switch to monthly | arranged for the year's end, up to its last hour | platform/billing/service.py ARRANGE_BEFORE_S |
| A payment the bank asks to confirm | waits 30 minutes on Stripe's page, then is withdrawn and nothing changes | platform/billing/service.py CONFIRM_WITHIN_S |
| A checkout page for Team | takes a payment for about 30 minutes, one page at a time per workspace | platform/billing/service.py CHECKOUT_LIFE_S |
| A change the payment provider did not confirm | settled by a later check: done once the payment is confirmed, failed when it still is not 2 minutes after it was asked. An add-on whose payment arrives later in the same month is added then | platform/billing/subscription.py SETTLE_AFTER_S |
| Full service after a failed renewal payment | at least 7 days: through the day 7 days after the failure was first seen, to 12:00 UTC the next day | platform/billing/plans.py GRACE_DAYS, fix_by, grace_until |
| Renewal notice | 3 days before a monthly renewal, 30 days before a yearly one | platform/billing/plans.py RENEWAL_NOTICE_DAYS |
| Billing actions in the console | 10 a minute per person for each action, then 429; 5 in 10 minutes for the checkout and for the payment page | gateway/billing.py ACTIONS_PER_MINUTE, PAGES_PER_WINDOW, PAGES_WINDOW_S |
| A billing action's answer | within 45 s | platform/billing/plans.py ACTION_DEADLINE_S |
| A launch at the plan's limit | answered within 20 s, autopay's turn included | platform/billing/service.py LAUNCH_DEADLINE_S |
| The plan's figures in an answer | at most 30 s old, 10 s for a launch | platform/billing/service.py STATE_AGE_S, LAUNCH_AGE_S |
| Billing history shown to an Owner | the latest 50 of what was bought, changed and paid, and the latest 50 of what Fluid noted by itself | platform/billing/store.py EVENTS_MAX |
| A billing email | sent within a day of what it is about, or not at all | platform/mail/outbox.py BILLING_WINDOW |
Logs and records
| Limit | Value | Source |
|---|---|---|
| A job's log | its first 32 MiB and its last 224 MiB, 256 MiB in all; past that, one line stands for what lay between | jobs/runner_constants.py LOG_MAX, LOG_HEAD |
| How soon output leaves the job's machine | while nobody reads the log, every 5 minutes or once 4 MiB wait; every 15 s for a follower (a script, a coding tool, a terminal left attached); every 2 s for a person watching; at once on a failure, a spot notice, a move, a suspension and the job's end | jobs/logbeat.py QUIET_S, AT_BYTES, FOLLOW_S, LIVE_S |
| Who counts as a person watching | the console's Logs tab while it is on screen; fluid run and fluid logs --follow in a terminal, for 10 minutes from the start and from each Enter; a reader that left stops counting after 30 s | ui/client_run.py PERSON_S, jobs/logbeat.py WATCH_S |
| One part of a log | 8 MiB of output at most, stored compressed; a link to read one from the store is good for 5 minutes | agent/logparts.py PART_MAX, jobs/api_jobs.py LOG_URL_S |
| One log read through Fluid | 256 KiB | jobs/api_jobs.py LOG_LIMIT |
| A job's result | 24 names at most, a name of 1 to 48 characters, a string cut to 200 characters; read from the last 64 KiB of the job's log, once the job has ended | common/result_lines.py NAMES_MAX, NAME_MAX, TEXT_MAX, TAIL_BYTES |
| Events kept per job | the newest 20,000 | jobs/db.py EVENTS_KEPT |
| Samples kept per job | the newest 20,000, one per 10 s | jobs/db.py SAMPLES_KEPT, SAMPLE_EVERY_S |
| Samples per answer | 5,000 | jobs/api_jobs.py SAMPLES_MAX |
| Jobs in a listing and in name lookups | the newest 500 | jobs/api_base.py JOBS_PAGE |
| The job list, the overview and the storage page | answers kept 20 s; a job's creation, status change or deletion drops them at once on the server that made the change, and another server's listing may lag it by up to 20 s | jobs/api_caches.py ANSWER_TTL_S |
Retention
| Item | Kept | Source |
|---|---|---|
| A job's output | 7 days | jobs/objects/retention.py OUTPUT_RETENTION_S |
| A job's log | kept, with no expiry; a part written before Fluid kept logs is deleted 30 days after it was written | jobs/objects/sink.py LOG_RETENTION_S, storage/setup.py KEPT, BACKSTOP_DAYS |
| What a failed job's machine recorded about itself (Fluid's own log there, none of your output) | 30 days | jobs/runner_logs.py DIAG_KEEP_S |
| A suspended job's checkpoint | 3 days, a warning 18 hours before | jobs/settings.py DEFAULTS, storage/retention.py warn_s |
| Checkpoints after an end Fluid decided | 7 days | storage/retention.py KEEP_ENDED_S |
| How long Fluid counts on a checkpoint's store keeping it | its retention and 7 days from when it was made (10 days), however often the job was continued since. On that day Fluid asks the store: a checkpoint that is still there leaves the job suspended, with a warning; one that is gone fails the job | storage/retention.py capsule_deadline |
| A failed move's checkpoint | 1 hour | storage/retention.py FAILED_MOVE_KEEP_S |
| A checkpoint that failed verification | 1 day | storage/retention.py QUARANTINE_KEEP_S |
| An upload no job took | 1 day | jobs/objects/retention.py UPLOAD_RETENTION_S |
Machines, leases and notices
| Limit | Value | Source |
|---|---|---|
| A machine's first lease | 90 minutes | jobs/placement.py FIRST_LEASE_MIN |
| Lease kept ahead | 1 hour (your own machines 24 hours), renewed every 10 minutes | jobs/policies.py DEFAULTS, jobs/placement.py LEASE_AHEAD_S |
| Modal and Azure Container Apps | 24 hours at most | jobs/placement.py FIXED_LIMIT_MIN |
| Google Cloud VMs | 24 hours by default (1 to 2880) | jobs/settings.py DEFAULTS |
| Ending machines past their lease | the resource service checks every 15 s and ends a machine that is not its job's own 2 minutes after its lease, and any machine 2 minutes after its job ended (the ended reason); a job's own machine is kept and warned about, and a kind billed until deleted is ended at its deadline | jobs/resource_service.py RESOURCE_PASS_S, jobs/billing.py LEASE_GRACE_S, jobs/resource_claims.py REASONS, jobs/resource_end.py end_due |
| A machine whose end was asked for and not confirmed | looked at again 10 minutes after the request, when the owner that asked went before the end was confirmed (a deploy, a restart): the resource service asks its provider again and closes it at the first confirmed end | jobs/resource_end.py ASKED_END_DUE_S |
| A machine whose provider has accepted its end | holds none of its job's budget while it ends: on AWS EC2 it counts for what it cost when the request was taken, on Fargate for what it costs until it has stopped, 2 minutes after the request at most; if nobody has confirmed its end 15 minutes after the request, it counts with its whole lease again | providers/budget.py BILL_ENDS_WHEN_ASKED, END_TAIL_S, ASKED_END_TRUSTED_S |
| A machine whose launch a deploy cut after its provider made it | the job's next owner takes it over and starts the job on it, waiting for its daemon as long as the launch would still have waited: 25 minutes from the launch on AWS EC2, a minute at least; one it cannot take over is ended, the job starts again at once, and the machine is no cost of the job's | providers/aws_ec2.py HELLO_TIMEOUT_S, ADOPT_WAIT_MIN_S, jobs/runner_recovery.py _start_on_launched |
| A launch's row left open after its books were closed | ended by the resource service within 5 minutes, once its job has ended: a launch that returned no machine is not listed as one that is starting | jobs/resource_end.py LEFT_ROWS_EVERY_S |
| A machine whose launch was cut before its provider answered | settled as never made, at nothing billed: on AWS about 11 minutes after it was asked for (10 for the launch's window to close, then two looks 25 s apart find nothing under its tag), while AWS still lists what it ended (50 minutes); on any provider, once its complete listings, one a minute, have not shown it for 30 minutes | providers/aws_ec2.py ABSENT_BY_TAG_AFTER_S, ABSENT_RECHECK_S, ABSENT_WITHIN_S, jobs/resource_end.py NEVER_MADE_AFTER_S |
| What counts as a machine that is up | one its provider made and nobody asked to end; a machine still being asked for, and one whose end was asked for, are listed apart ("starting", "ending") with no price by the hour | jobs/api_views.py machine_phase |
| What a resume says while it waits | within seconds: the machine it asks for and its price; what its provision waits on (on AWS, the type and region with no capacity yet) when that wait begins and every minute after; and, where its last machine is still ending and nothing on it said the job stopped there, which machine it waits for and why | jobs/runner_suspend.py _resume, jobs/runner_constants.py PROVISION_PROGRESS_S |
| AWS spot notice | 2 minutes | agent/spot.py watch_aws |
| AWS Fargate Spot notice | 120 s | providers/fargate.py STOP_TIMEOUT_S |
| Google Cloud spot notice | 120 s asked for, 25 s if refused | providers/gcp_vm.py instance_body, jobs/settings.py DEFAULTS |
| Azure spot VM notice | 20 s (the event names a time 22 to 27 s out; the daemon sees it within about a second) | providers/azure_vm.py SPOT_NOTICE_S, jobs/notice_fit.py NOTICE_S, agent/spot.py watch_azure |
| Azure Container Apps interruption notice | none: when Azure stops the execution it ends the replica at once (a stopped execution's daemon was gone 0.55 s later, before any checkpoint, 2026-10-31), and progress since the job's last checkpoint is lost; fluid interrupt is refused there | jobs/notice_fit.py NO_NOTICE, providers/aca.py interrupt |
| Modal GPU sandbox preemption | 5 s | providers/modal_.py SANDBOX_GRACE_S |
| The checkpoint check | at the first pause point, then every 10 minutes; its walk is cut after 5 s; a script that passes no pause point is reported after 30 s | runtime/host.py PROBE_EVERY_S, PROBE_BUDGET_S, PROBE_WAIT_S |
| Libraries named in one report | 16 | runtime/frameworks.py MAX_REPORTED |
| A pause inside a library | the stack is looked at every 0.1 s while a pause is pending; a library frame is offered once it was there at two looks; after a refused stop nothing is offered for 10 times what the try took, 20 ms to 5 s | runtime/scope.py LOOK_S, REST_FACTOR, REST_MIN_S, REST_MAX_S |
| What a spot notice can save | R x (notice - t0) x 0.5 per provider, vCPU class and route; a measured state above it keeps the job off that spot offer | jobs/notice_fit.py RATES, NOTICE_S, SAFETY |
| EC2 waiting for capacity or quota | 5 minutes | providers/aws_ec2.py CAPACITY_WAIT_S |
| New EC2 Spot placement score requests | 36 a day for a connection in a region; past that, no capacity estimate | providers/aws_ec2.py SCORE_CONFIGS_DAY |
| An Azure location's list of sizes | read when you connect and at every save; read again behind a quote once an hour old; refuses a size only while no more than a day old; a quote waits at most 20 s for a location it has no list of, then goes on unchecked | providers/azure_vm.py SKU_CACHE_S, SKU_STALE_S, LISTING_WAIT_S, jobs/size_listings.py |
| The reader of a connection's Azure lists | one a connection; its hold on the reading lasts 10 s and is said again at every write, 3 s apart at most; one run of it lasts 10 minutes at most; a server without the hold reads nothing and looks again every second | providers/azure_vm.py LISTING_LEASE_S, LISTING_BEAT_S, LISTING_LOOP_S, LISTING_POLL_S |
| Reading one Azure location's list | 120 s by the clock for the whole list, every page and every try (20 pages and 3 tries at most); three locations are read at once, and one more for a location a quote waits for | providers/azure_vm.py LISTING_READ_S, LISTING_READS, LISTING_PAGES, LISTING_TRIES |
| What counts as an Azure location's list | an answer with 100 VM sizes or more; anything less is a list that could not be read, which refuses nothing | providers/azure_vm.py LISTING_MIN_SIZES |
| Locations kept of a connection's Azure lists | 64, Azure's own locations only; past that the ones read longest ago are dropped | common/size_listing.py LOCATIONS_MAX |
| Azure's own list of your subscription's locations | read once a day and at every save, 256 names at most; a list of sizes is read only for a location on it, and while it cannot be read, only for the locations your connection quotes in | providers/azure_vm.py PLACES_CACHE_S, common/size_listing.py PLACES_MAX |
| How old Fluid's record of the Azure lists may be when a quote reads it | 1 s, on every server; saving a connection waits up to 120 s for the lists to be read again | providers/azure_vm.py RECORD_CACHE_S, SETUP_LISTINGS_S |
| An Azure size outside Fluid's catalog (an exact spec) | held to its location's list as any size is; every size of a location is kept by the server that read it, for 8 locations at most; a read that failed with nothing kept is tried again after 30 s | providers/azure_vm.py WHOLE_MAX, SIZES_RETRY_S |
| An EC2 region whose list of offered instance types cannot be read | every type is offered there unchecked; the region is asked for no type again for 5 minutes, then twice as long after each further failure, 1 hour at most; a list that was read is kept 1 hour | providers/aws_ec2.py OFFERINGS_RETRY_S, OFFERINGS_CACHE_S |
| Fluid's count of EC2 Spot placement score requests, when it cannot be read | nothing new is asked; a read of it waits 2 s, then the count is left unasked for 2 s, twice as long after each further failure, 30 s at most | jobs/thread_rows.py TIMEOUT_S, RETRY_S, jobs/score_count.py SharedScoreCount |
| Google Cloud's live prices | read once a day behind the quotes; a quote or a launch that names a machine with no dated price in its region waits for that read, 20 s and 60 s, and is then told the prices are still being read; one read waits 30 s, an answer has 60 s, a page 60 s, and the whole catalog 60 pages in 15 minutes, given up a minute after that; after a failure the dated prices serve and the next try comes after 5 minutes, twice as long after each further failure, 1 hour at most | providers/gcp_vm.py ANSWER_S, CATALOG_PAGE_S, CATALOG_PAGES, CATALOG_REFRESH_S, CATALOG_GIVEN_UP_S, PRICE_RETRY_S, PRICE_RETRY_MAX_S, PRICE_WAIT_S, PRICE_LAUNCH_WAIT_S |
| Google Cloud's Spot capacity advice | one call waits 3 s and is tried once; a quote of many offers asks for its 5 cheapest Spot offers; an answer serves 2 minutes, with its age; after a refusal for the permission nothing is asked for 10 minutes, after no answer for 30 s | providers/gcp_vm.py ADVICE_CALL_S, ADVICE_OFFERS, ADVICE_CACHE_S, ADVICE_DENIED_S, ADVICE_UNANSWERED_S |
| Google Cloud's Spot capacity advice, in words | 0.7 and above is likely, 0.3 and below unlikely, anything between uncertain | providers/gcp_vm.py ADVICE_LIKELY, ADVICE_UNLIKELY |
| The last EC2 Spot placement score, when a newer one cannot be read | serves for 1 hour, with its age | providers/aws_ec2.py SCORE_LAST_S |
| Lambda launches | one every 12 s; after no capacity, 60 s doubling to 30 minutes | providers/lambda_cloud.py LAUNCH_INTERVAL_S, COOLDOWN_S |
| A machine given notice, silent past its deadline | asked whether it still runs 2 minutes after | jobs/runner_constants.py NOTICE_LOST_AFTER_S |
| A machine its provider no longer lists | settled as ended, unconfirmed, after 2 hours unlisted | jobs/billing.py UNLISTED_SETTLE_S |
| What a machine holds against the cap | its lease (Modal sandboxes, Fargate tasks, VMs); a Container Apps replica its 24 hours | jobs/placement.py LEASE_HELD, FIXED_LIMIT_MIN |
| A Modal create whose reply was lost | settled at $0 once no sandbox exists 60 s after it was asked | providers/modal_.py CREATE_GRACE_S |
| The Azure registry copy, after a failure | tried again after 10 minutes | providers/aca.py MIRROR_RETRY_S |
Your own machines
| Limit | Value | Source |
|---|---|---|
| An enrollment code | valid 10 minutes, once | jobs/machines.py ENROLL_TTL_S |
| Approval | within 24 hours | jobs/machines.py WAITING_MAX_S |
| Wrong pairing codes | the fifth revokes the machine | jobs/machines.py PAIR_FAILURES_MAX |
| Codes per person | 10 an hour | jobs/machines.py MINTS_PER_HOUR |
| Waiting at once | 20 codes and unapproved machines | jobs/machines.py WAITING_MAX |
| Machines per workspace | 50 | jobs/machines.py MACHINES_MAX |
| Resuming a job whose last machine left the workspace before its end was confirmed | 24 hours and 10 minutes after that machine was last heard, when its lease has ended what ran there; the job says the time | jobs/session.py gone_by, LEASE_END_GRACE_S, agent/lease.py MAX_LEASE_S |
Policy defaults
| Policy | Default | Source |
|---|---|---|
| Idle | 30 minutes under 5% of a CPU core | jobs/policies.py DEFAULTS |
| Checkpoints of a job of several ranks | the first 10 minutes after it starts or lands on a machine, then never under 10 minutes apart, set so that they take at most 2% of the run time | jobs/policies.py CHECKPOINT_FIRST_S, CHECKPOINT_FLOOR_S, DEFAULTS |
| An idle job whose program cannot be paused | the idle suspension gives the program 2 minutes to reach a point it can be paused at; a program that sits in one long call (a sleep, a wait on input, a join) reaches none: a job that has a checkpoint is suspended on it, and a job without one runs on and is told once, not asked again until it is seen at work | jobs/runner_common.py IDLE_DRAIN_S, jobs/policies.py IDLE_UNPAUSED_SETTLE_S |
| Stalled ranks (a job of several ranks) | the idle time without a rank passing a pause point or exchanging, while every rank waits inside an exchange or does no work. Work is read every 2 seconds: 5% of a core, or 32 KiB a second read and written, by the rank's process or one it started, or its GPU running 5% of the time. A look that sees work takes four times its length off the count. A rank that waits on a network connection reads as not working. A rank that began an exchange with a handle and works on before the handle completes reads as waiting | jobs/policies.py _stalled, runtime/group.py WORK_S, BUSY_CPU, BUSY_IO_S, GPU_BUSY, WORK_CREDIT |
| A rank that gave up waiting | 30 seconds inside an exchange with no rank making progress, then ended by its library (SIGABRT) or by the library's own timeout or lost-connection error | runtime/group.py GAVE_UP_S, runtime/ranks.py GAVE_UP |
Time limit (ttl) | 72 hours of running time; while a job is suspended, the same hours on the clock from its creation end it, its checkpoint kept 7 days for a resume to continue it | jobs/policies.py DEFAULTS, evaluate; jobs/runner_suspend.py _expire_parked |
| Cheaper and return | every 10 minutes, at least 20% and 3 times the move's cost, 30 minutes after a move | jobs/policies.py DEFAULTS |
| Budget | acts 2 minutes of the machine's price early | jobs/policies.py DEFAULTS |
| Reclaimed spot pool | left out 30 minutes | jobs/policies.py DEFAULTS |
| Spot, state over the notice | moved to on-demand (spot.move_when_over); tried again 10 minutes after a destination could not be had | jobs/policies.py DEFAULTS, jobs/runner_common.py LEAVE_SPOT_RETRY_S |
Every policy and setting, with its default, is on Settings.