Documentation
¶
Overview ¶
Package isolate is the blank-workerd warm pool for the V8-isolate runtime (plans/isolate-runtime.md §4 Phase 3). Unlike the WASM pool (keyed by module digest), these slots are blank group hosts — the group router runs before the pool, so only a tenant's FIRST create claims a slot and injects a bundle.
Index ¶
- type Metrics
- type Pool
- func (p *Pool) Acquire(_ context.Context) (isolateruntime.GroupHost, bool)
- func (p *Pool) Close()
- func (p *Pool) Metrics() *Metrics
- func (p *Pool) ReadyCount() int
- func (p *Pool) RunRefill(ctx context.Context, interval time.Duration)
- func (p *Pool) SetDepth(n int)
- func (p *Pool) SetSpawner(s Spawner)
- func (p *Pool) WarmOne(ctx context.Context) error
- type Snapshot
- type Spawner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
Hits atomic.Int64
Misses atomic.Int64
Refilled atomic.Int64
SpawnFail atomic.Int64
}
Metrics are hit/miss/refill counters for expvar-style observation.
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool keeps pre-spawned blank workerd group hosts.
func (*Pool) ReadyCount ¶
ReadyCount returns how many blank hosts are queued.
func (*Pool) SetSpawner ¶
Click to show internal directories.
Click to hide internal directories.