6d9bfedc43
iii-observability worker emits a WARN every time its log subscriber falls behind, and that WARN re-enters the same broadcast stream the subscriber is failing to drain — positive feedback loop that wrote 137 GB to ~/.agentmemory/daemon.log.new on one reporter's laptop in a few days. Root cause sits in the iii binary (Rust upstream), but we can mute the trigger surface from this side. Two changes: - iii-config.yaml + iii-config.docker.yaml: sampling_ratio 1.0 → 0.1 and logs_console_output true → false. At 0.1 the subscriber catches up under sustained load; with console off, the WARN line that re-feeds the loop never reaches the amplifying layer. - src/cli.ts findIiiConfig: precedence reversed so the bundled config no longer wins unconditionally. New order: AGENTMEMORY_III_CONFIG env var > project cwd > ~/.agentmemory/iii-config.yaml > bundled. Users who hit the loop on existing installs now have a documented override path that survives npm i -g upgrades.
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
workers:
|
|
- name: iii-http
|
|
config:
|
|
port: 3111
|
|
host: 0.0.0.0
|
|
default_timeout: 180000
|
|
cors:
|
|
allowed_origins: ["http://localhost:3111", "http://localhost:3113", "http://127.0.0.1:3111", "http://127.0.0.1:3113"]
|
|
allowed_methods: [GET, POST, PUT, DELETE, OPTIONS]
|
|
- name: iii-state
|
|
config:
|
|
adapter:
|
|
name: kv
|
|
config:
|
|
store_method: file_based
|
|
file_path: /data/state_store.db
|
|
- name: iii-queue
|
|
config:
|
|
adapter:
|
|
name: builtin
|
|
- name: iii-pubsub
|
|
config:
|
|
adapter:
|
|
name: local
|
|
- name: iii-cron
|
|
config:
|
|
adapter:
|
|
name: kv
|
|
- name: iii-stream
|
|
config:
|
|
port: 3112
|
|
host: 0.0.0.0
|
|
adapter:
|
|
name: kv
|
|
config:
|
|
store_method: file_based
|
|
file_path: /data/stream_store
|
|
- name: iii-observability
|
|
config:
|
|
enabled: true
|
|
service_name: agentmemory
|
|
exporter: memory
|
|
# See iii-config.yaml for the rationale on 0.1 / console-off (#519).
|
|
sampling_ratio: 0.1
|
|
metrics_enabled: true
|
|
logs_enabled: true
|
|
logs_console_output: false
|
|
- name: iii-exec
|
|
config:
|
|
watch:
|
|
- src/**/*.ts
|
|
exec:
|
|
- node dist/index.mjs
|