| Files | Last commit | Last update |
|---|---|---|
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
feat(deploy): make redis/edge/postgres optional and tolerate missing Redis in API - Add ENABLE_REDIS / ENABLE_EDGE / ENABLE_POSTGRES deploy switches (default true) to skip the corresponding images, helm resources and nomad jobs when disabled - Inject an empty REDIS_URL and force SANDBOX_STORAGE_BACKEND=memory when Redis is disabled - Add nil-client guards in the API RedisCache, populate_redis shadow writes and orchestrator storage so the API starts cleanly without Redis (single-instance deployments only) | 2 months ago | |
feat(deploy): enhance k8s deploy flow with cri-multiplex and static node discovery - build.sh: add post-deploy health self-check, make Harbor certs idempotent, start orchestrator before api, cle an redundant exports - k8s-deploy.sh: auto-generate e2b bridge CNI conflist in /etc/cni/net-e2b.d, switch kubelet endpoint on cri-mu ltiplex deploy, sync help output - api: discover orchestrators via ORCHESTRATOR_STATIC_NODES env for k8s mode - docs: add CNI bridge config and capacity planning to user guide | 1 month ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
fix(orchestrator): cleanly disable sandbox log forwarding when the collector is unset Self-hosted installs without Loki leave LOGS_COLLECTOR_ADDRESS empty or schemeless (the deploy default is "localhost:30006"), so every sandbox log line forwarded through hyperloop failed with an ERROR log and a 500 response. Treat an empty or malformed address as "not configured" and disable sandbox log forwarding cleanly in that case; a non-empty but malformed value logs a single warning at startup. Not kernel-specific: a behavior fix for all environments. The resume path keeps advertising the hyperloop /logs endpoint to envd unconditionally, and the drop happens in the hyperloop handler instead. envd's log exporter buffers every log line in memory and only starts draining once MMDS hands it a non-empty address, so a blank address would grow that buffer for the sandbox's whole lifetime. The deploy/.env default is intentionally left unchanged; whether log collection is on by default belongs to the deployment switches. Add table-driven tests for ValidLogsCollectorAddress. The test file is byte-identical to packages/shared/pkg/env/logs_collector_test.go in the Linux 4.19 adaptation PR, so the two changes merge cleanly in either order instead of redeclaring TestValidLogsCollectorAddress. (cherry picked from commit 3f9f4d8a9a794bb30909214b0c589cfd453baa3c, without its deploy/.env default change) | 1 month ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
perf(orchestrator): parallelize slot pool warmup/cleanup, batch iptables teardown Restart was dominated by serialized slot cleanup issuing 2N full-table iptables deletions (43s observed). Warm up slots with 8 workers and close with 16; delete all host filter/nat rules via one iptables-save+filter+restore per table; drop the package-level netlink mutex (package-level netlink calls use per-request sockets and are concurrency-safe); never close reusedSlots during Close to avoid a send-on-closed panic against concurrent ReleaseSlot. Also: use a noop meter provider when OTEL_COLLECTOR_GRPC_ENDPOINT is unset (stops "failed to upload metrics" spam), bound OTLP exporter shutdown with a timeout so an unreachable collector can't hang exit, and stop logging high-frequency SandboxService List/ListCachedBuilds access routes (still covered by OTel traces/metrics). Measured: 48-slot pool close 40s -> ~0.7s; full restart 43s -> ~8.5s with zero iptables rule residue. | 1 month ago | |
迁移e2b仓库的代码 | 4 months ago | |
perf(orchestrator): use a single NBD connection per device on Linux 4.19 Each socket attached to an NBD device goes through nbd_add_socket, which freezes the device's block queue, and starting a device with more than one connection resizes its hardware queues under another freeze. The nbd netlink commands of all devices run under one kernel-wide genetlink lock, so concurrent sandbox starts queue behind these freezes. With the default of four connections, each device start goes through five of them. On Linux 4.19 a freeze is slow. On an openEuler 20.03 host (Linux 4.19.90, aarch64) with the distribution's nbd module, a userspace benchmark that connects devices through the same nbdnl calls as DirectPathMount measured about 21 ms per freeze on an idle host and 100-200 ms with sandboxes running. Concurrent connects ran one after another, and a single-connection connect took about a fifth of the time of a four-connection one. Together with the 1 ms status polling from "perf(orchestrator): stop spin-polling NBD status after connect/disconnect", the mean create time of 50 and 100 concurrent sandboxes on that host went from 4.9 s to 1.40 s and from 8.9 s to 3.17 s. Use one connection per device on 4.19 hosts, detected by a new hostkernel package. Fewer connections also mean fewer device queues; throughput under sustained parallel I/O was not compared. Other kernels keep the feature-flag value. cherry-pick merge request: perf(orchestrator): use a single NBD connection per device on Linux 4.19 6de46a85d79bc3e4968be4f62bcd15d84c4c2660 This cherry-pick merge request !240 | 30 days ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
添加run-ut.sh,并将当前门禁中不支持的测试跳过。 | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
Remove the network access restriction for the 10.0 subnet between sandboxes | 4 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
feat(orchestrator): Fix distributed mooncake uploadSigndURL | 2 months ago | |
迁移e2b仓库的代码 | 4 months ago | |
perf(orchestrator): parallelize slot pool warmup/cleanup, batch iptables teardown Restart was dominated by serialized slot cleanup issuing 2N full-table iptables deletions (43s observed). Warm up slots with 8 workers and close with 16; delete all host filter/nat rules via one iptables-save+filter+restore per table; drop the package-level netlink mutex (package-level netlink calls use per-request sockets and are concurrency-safe); never close reusedSlots during Close to avoid a send-on-closed panic against concurrent ReleaseSlot. Also: use a noop meter provider when OTEL_COLLECTOR_GRPC_ENDPOINT is unset (stops "failed to upload metrics" spam), bound OTLP exporter shutdown with a timeout so an unreachable collector can't hang exit, and stop logging high-frequency SandboxService List/ListCachedBuilds access routes (still covered by OTel traces/metrics). Measured: 48-slot pool close 40s -> ~0.7s; full restart 43s -> ~8.5s with zero iptables rule residue. | 1 month ago | |
迁移e2b仓库的代码 | 4 months ago | |
修复两个ut测试的问题 | 4 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 4 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 1 month ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 1 month ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 1 month ago | ||
| 4 months ago | ||
| 30 days ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 1 month ago | ||
| 4 months ago | ||
| 4 months ago |