Prepare persistent v4.5 deployment
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
048d4b0c07
commit
cbbef10e5d
3 changed files with 13 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -16,3 +16,5 @@ rna/nupack-4.0.2.0.zip
|
||||||
nupack/vendor/nupack-4.0.2.0/source/
|
nupack/vendor/nupack-4.0.2.0/source/
|
||||||
nupack/vendor/nupack-4.0.2.0/package/*.whl
|
nupack/vendor/nupack-4.0.2.0/package/*.whl
|
||||||
!nupack/vendor/nupack-4.0.2.0/package/nupack-4.0.2.0-cp312-cp312-linux_x86_64.whl
|
!nupack/vendor/nupack-4.0.2.0/package/nupack-4.0.2.0-cp312-cp312-linux_x86_64.whl
|
||||||
|
# Runtime state mounted from Docker containers.
|
||||||
|
runtime/redis/
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,11 @@ The service listens on port `18765`. You can later reverse proxy `np.lihato.icu`
|
||||||
- `POST /api/jobs`
|
- `POST /api/jobs`
|
||||||
- `GET /api/jobs/<job_id>`
|
- `GET /api/jobs/<job_id>`
|
||||||
|
|
||||||
|
|
||||||
|
## Persistent Shares
|
||||||
|
|
||||||
|
Shared result links are stored in Redis when `NP_REDIS_URL` is enabled. The compose file maps Redis data to `./runtime/redis` and enables AOF/RDB persistence, so shares survive container recreation and service restarts. Back up or migrate `./runtime/redis` if you move the deployment.
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
- `tube` mode supports strand concentrations and `SetSpec(max_size=...)`.
|
- `tube` mode supports strand concentrations and `SetSpec(max_size=...)`.
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,12 @@ services:
|
||||||
container_name: np-redis
|
container_name: np-redis
|
||||||
restart: always
|
restart: always
|
||||||
mem_limit: 2g
|
mem_limit: 2g
|
||||||
command: ["redis-server", "--save", "", "--appendonly", "no"]
|
command: ["redis-server", "--appendonly", "yes", "--appendfsync", "everysec", "--save", "60", "1"]
|
||||||
|
volumes:
|
||||||
|
- ./runtime/redis:/data
|
||||||
|
|
||||||
np-replica:
|
np-replica:
|
||||||
image: np-app:v4.2
|
image: np-app:v4.5
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|
@ -17,7 +19,7 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
ports:
|
ports:
|
||||||
- "18765:18765"
|
- "100.64.0.2:18765:18765"
|
||||||
environment:
|
environment:
|
||||||
NP_HOST: 0.0.0.0
|
NP_HOST: 0.0.0.0
|
||||||
NP_PORT: 18765
|
NP_PORT: 18765
|
||||||
|
|
@ -35,7 +37,7 @@ services:
|
||||||
GOTO_NUM_THREADS: 4
|
GOTO_NUM_THREADS: 4
|
||||||
|
|
||||||
np-worker:
|
np-worker:
|
||||||
image: np-app:v4.2
|
image: np-app:v4.5
|
||||||
container_name: np-worker
|
container_name: np-worker
|
||||||
restart: always
|
restart: always
|
||||||
mem_limit: 56g
|
mem_limit: 56g
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue