mirror of
https://github.com/Portabase/agent.git
synced 2026-09-10 01:57:10 +00:00
55e20d48e7
Adds RETRY_ATTEMPTS (3..=5, default 3) and RETRY_BACKOFF_MS (100..=30000, default 1000) to Settings, validated with the same panic-on-invalid contract as POOLING and CHUNK_SIZE_MB. The combinator logs every failed attempt and any late success through the JobLogger it borrows, so retries reach the server on the existing job-log path with no API change. It borrows rather than clones the Arc so Arc::try_unwrap in the backup executor keeps working. Backoff is exponential with equal jitter, because the uploader retries storages concurrently and would otherwise retry them in lockstep.
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
services:
|
|
rust-app:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
target: dev
|
|
container_name: rust-dev
|
|
volumes:
|
|
- .:/app
|
|
- cargo-registry:/usr/local/cargo/registry
|
|
- cargo-git:/usr/local/cargo/git
|
|
# - ./databases.json:/config/config.json
|
|
#- ./databases.toml:/config/config.toml
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
# - cargo-target:/app/target
|
|
- databases_sqlite-data:/sqlite-data/workspace/data
|
|
- ./scripts/sqlite/test-db:/sqlite-data-2/workspace/data
|
|
# - /bigdisk:/scratch
|
|
environment:
|
|
APP_ENV: development
|
|
LOG: debug
|
|
TZ: "Europe/Paris"
|
|
# TMPDIR: /scratch
|
|
EDGE_KEY: "eyJzZXJ2ZXJVcmwiOiJodHRwOi8vbG9jYWxob3N0Ojg4ODciLCJhZ2VudElkIjoiZjlkZjhiNWYtM2I0MC00NWM3LWI3N2UtYzY4NzQ1YmU2NjMwIiwibWFzdGVyS2V5QjY0IjoiQlhWM1hvbEM2NTZTVjdkTmdjV1BHUWxrKytycExJNmxHRGk3Q1BCNWllbz0ifQ=="
|
|
#CHUNK_SIZE_MB: "1"
|
|
#POOLING: 1
|
|
#RETRY_ATTEMPTS: 3
|
|
#RETRY_BACKOFF_MS: 1000
|
|
#DATABASES_CONFIG_FILE: "config.toml"
|
|
extra_hosts:
|
|
- "localhost:host-gateway"
|
|
networks:
|
|
- portabase
|
|
cpus: "1.50"
|
|
mem_limit: 4g
|
|
memswap_limit: 4g
|
|
pids_limit: 512
|
|
|
|
|
|
volumes:
|
|
cargo-registry:
|
|
cargo-git:
|
|
# cargo-target:
|
|
databases_sqlite-data:
|
|
external: true
|
|
|
|
networks:
|
|
portabase:
|
|
name: portabase_network
|
|
external: true
|
|
|