Reuse checked bootstrap catalogs and coordinate execution deadlines
This commit is contained in:
@@ -111,7 +111,7 @@ and supplies an explicit SDK for value codecs, identities and declared graph por
|
|||||||
service = {
|
service = {
|
||||||
restricted = true;
|
restricted = true;
|
||||||
limits = {
|
limits = {
|
||||||
deadlineMs = 4000;
|
deadlineMs = 10000;
|
||||||
maxBytes = 1048576;
|
maxBytes = 1048576;
|
||||||
maxPortCalls = 1000;
|
maxPortCalls = 1000;
|
||||||
maxQueued = 8;
|
maxQueued = 8;
|
||||||
@@ -128,6 +128,14 @@ invocation identity; authored code cannot choose another frame or workspace.
|
|||||||
Native graph grants and transaction commit remain enforced by Camino outside
|
Native graph grants and transaction commit remain enforced by Camino outside
|
||||||
the guest. Initialization and synchronous loops are subject to the same deadline.
|
the guest. Initialization and synchronous loops are subject to the same deadline.
|
||||||
|
|
||||||
|
The default root/Package Invocation wall deadline is 10 seconds. The separate
|
||||||
|
root CPU allowance remains at most 4 CPU seconds; extra wall time accommodates
|
||||||
|
queueing and graph-port waits. Ordinary graph database transactions and idle
|
||||||
|
transactions allow 30 seconds, and ordinary client HTTP requests allow 45 seconds
|
||||||
|
so server failures can be returned. Nested calls inherit the remaining root
|
||||||
|
budget; explicit smaller limits still apply. Restore/activation jobs retain their
|
||||||
|
separate budgets. These defaults are starting limits, not latency targets.
|
||||||
|
|
||||||
Direct network access, native filesystem imports, ambient clock and entropy,
|
Direct network access, native filesystem imports, ambient clock and entropy,
|
||||||
parent environment credentials, and unlisted modules are denied. Explicit dates,
|
parent environment credentials, and unlisted modules are denied. Explicit dates,
|
||||||
`Intl.Segmenter`, deterministic hashes and normal JavaScript computation remain
|
`Intl.Segmenter`, deterministic hashes and normal JavaScript computation remain
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export async function serveRestrictedRegistry(config, io = process) {
|
|||||||
const limits = {
|
const limits = {
|
||||||
maxBytes: config.maxBytes ?? 1024 * 1024,
|
maxBytes: config.maxBytes ?? 1024 * 1024,
|
||||||
maxPortCalls: config.maxPortCalls ?? 1000,
|
maxPortCalls: config.maxPortCalls ?? 1000,
|
||||||
deadlineMs: config.deadlineMs ?? 4000,
|
deadlineMs: config.deadlineMs ?? 10000,
|
||||||
maxQueued: config.maxQueued ?? 8,
|
maxQueued: config.maxQueued ?? 8,
|
||||||
maxActive: config.maxActive ?? 2,
|
maxActive: config.maxActive ?? 2,
|
||||||
maxNested: config.maxNested ?? 4,
|
maxNested: config.maxNested ?? 4,
|
||||||
|
|||||||
Reference in New Issue
Block a user