mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-04 11:21:37 -05:00
Large nests tie up the workstation that runs them. In Database mode, Auto Nest can now queue the job on the nest server, where a worker container solves one job at a time under its own CPU and memory limits. The job has no time limit, so a throttled worker finds the same nest a fast one does, only later. - Server: /api/nest-jobs queue (schema v15). The worker holds a job on a heartbeat lease. When the lease lapses, the job goes back to the queue, or fails after three attempts. Only one job runs at a time. Packages and results are opaque to the HTTP server, which stays off Engine and IO. - Worker: OpenNest.Server.Worker in the same image (OPENNEST_ROLE=worker), reaching the server over HTTP only. It records each engine answer with RecordingNestingEngine and gives its job back on shutdown. - Desktop: "Nest on the server" in the Auto Nest dialog, for built-in engines only. The client replays the recorded answers with RemoteNestSubmission, so validation, the review and Keep run locally against the client's own drawings, exactly as after a local run. A drawing edited after sending refuses the result. If the server cannot take the job, the user may nest locally instead. - compose.server.yaml adds the throttled worker service. The Dockerfile, .dockerignore, CI paths and the deploy script now include the worker's projects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
1.1 KiB
Bash
23 lines
1.1 KiB
Bash
# Copy to a local, untracked env file next to compose.server.yaml and edit it.
|
|
# Never put credentials in this file or the Compose file.
|
|
|
|
# A tested image version or digest, for example ghcr.io/ajisaacs/opennest-server@sha256:<digest>.
|
|
OPENNEST_SERVER_IMAGE=ghcr.io/ajisaacs/opennest-server:REPLACE-WITH-TESTED-VERSION
|
|
|
|
# Loopback for a local test. For shop PCs, use this host's trusted LAN address and
|
|
# confirm the firewall admits only trusted clients; the service has no authentication.
|
|
OPENNEST_BIND_ADDRESS=127.0.0.1
|
|
OPENNEST_HOST_PORT=8090
|
|
|
|
# Docker volume holding nests.db; change only to switch to a verified restore.
|
|
OPENNEST_DATA_VOLUME=opennest-data
|
|
|
|
# Desktop update mirror: the server checks GitHub Releases (outbound HTTPS to api.github.com
|
|
# and github.com) and serves updates to Database-mode workstations. "off" turns it off.
|
|
OPENNEST_UPDATES=on
|
|
|
|
# Server nesting worker limits: CPUs (fractions allowed) and memory it may use. A smaller
|
|
# limit makes jobs slower, never worse; leave room for the server and the rest of the host.
|
|
OPENNEST_WORKER_CPUS=2
|
|
OPENNEST_WORKER_MEMORY=4g
|