Cause: Not enough traffic for Smart Placement to analyze Solution:
Cause: Smart Placement made Worker slower rather than faster Reasons:
Solutions:
{ "placement": { "mode": "off" } }Cause: Smart Placement not enabled, insufficient time passed, insufficient traffic, or analysis incomplete Solution:
placement_status is SUCCESSCause: Smart Placement not enabled, beta feature removed, or Worker not analyzed yet Solution: Verify Smart Placement enabled, wait for analysis (15min), check if beta feature still available
Problem: Static assets load 2-5x slower when Smart Placement enabled with run_worker_first = true.
Cause: Smart Placement routes ALL requests (including static assets like HTML, CSS, JS, images) to remote locations. Static content should ALWAYS be served from edge closest to user.
Solution: Split into separate Workers OR disable Smart Placement:
// ❌ BAD - Assets routed away from user
{
"name": "pages-app",
"placement": { "mode": "smart" },
"assets": { "run_worker_first": true }
}
// ✅ GOOD - Assets at edge, API optimized
// frontend/wrangler.jsonc
{
"name": "frontend",
"assets": { "run_worker_first": true }
// No placement field - stays at edge
}
// backend/wrangler.jsonc
{
"name": "backend-api",
"placement": { "mode": "smart" }
}
This is one of the most common and impactful Smart Placement misconfigurations.
Problem: Frontend and backend logic in single Worker with Smart Placement enabled.
Cause: Smart Placement optimizes for backend latency but increases user-facing response time.
Solution: Split into two Workers:
// frontend/wrangler.jsonc
{
"name": "frontend",
"placement": { "mode": "off" }, // Explicit: stay at edge
"services": [{ "binding": "BACKEND", "service": "backend-api" }]
}
// backend/wrangler.jsonc
{
"name": "backend-api",
"placement": { "mode": "smart" },
"d1_databases": [{ "binding": "DB", "database_id": "xxx" }]
}
Issue: Smart Placement doesn't work in wrangler dev.
Explanation: Smart Placement only activates in production deployments, not local development.
Solution: Test Smart Placement in staging environment: wrangler deploy --env staging
Note: Smart Placement routes 1% of requests WITHOUT optimization for comparison (expected).
Analysis time: Up to 15 minutes. During analysis, Worker runs at edge. Monitor placement_status.
Problem: Enabled Smart Placement on backend but RPC calls still slow.
Cause: Smart Placement ONLY affects fetch handlers. RPC methods (Service Bindings with WorkerEntrypoint) are NEVER affected.
Why: RPC bypasses fetch handler - Smart Placement can only route fetch requests.
Solution: Convert to fetch-based Service Bindings:
// ❌ RPC - Smart Placement has NO EFFECT
export class BackendRPC extends WorkerEntrypoint {
async getData() {
// ALWAYS runs at edge
return await this.env.DATABASE.prepare('SELECT * FROM table').all();
}
}
// ✅ Fetch - Smart Placement WORKS
export default {
async fetch(request: Request, env: Env): Promise<Response> {
// Runs close to DATABASE when Smart Placement enabled
const data = await env.DATABASE.prepare('SELECT * FROM table').all();
return Response.json(data);
}
}
| Resource/Limit | Value | Notes |
|---|---|---|
| Analysis time | Up to 15 minutes | After enabling |
| Baseline traffic | 1% | Routed without optimization |
| Min Wrangler version | 2.20.0+ | Required |
| Traffic requirement | Multi-region | Consistent needed |
{ "placement": { "mode": "off" } } // Explicit disable
// OR remove "placement" field entirely (same effect)
Both behaviors identical - Worker runs at edge closest to user.
run_worker_first = trueThese scenarios won't benefit and may perform worse with Smart Placement.