Skip to content

IoT Agent memory and tutorial clean-up: one agent worker, no retried creates, services stop removes only the tutorial's - #21

Open
kzangeli wants to merge 1 commit into
FIWARE:NGSI-LDfrom
kzangeli:fix/iot-agent-memory-retries-volumes
Open

kzangeli wants to merge 1 commit into
FIWARE:NGSI-LDfrom
kzangeli:fix/iot-agent-memory-retries-volumes

Conversation

@kzangeli

Copy link
Copy Markdown
  • IoT Agent: IOTA_MULTI_CORE=false. With true the agent forks one worker per host CPU core, although the container is limited to 2 CPUs and 1 GiB. On a 32-core machine an idle agent already uses 972 MiB and is killed for running out of memory (83 MiB with false). A provisioning request then gets an empty reply and the services start fails.
  • services stop removes only the tutorial's volumes. It removed every unused volume on the machine (docker volume ls -qf dangling=true), the user's own included. Now: the containers' anonymous volumes go with them (rm -v), and only the unused volumes of the fiware compose project are removed.

Tested with the coraine stack: Concise-Format, Context-Providers, Short-Term-History, Time-Series-Data, IoT-Agent and IoT-Agent-JSON start and run their README steps with these changes. After six starts and stops, a container started outside the tutorials is still running and no tutorial volume is left. stoppingContainers is now the same function in all sixteen NGSI-LD tutorials.

🤖 Generated with Claude Code

…creates, services stop removes only the tutorial's

- IoT Agent: `IOTA_MULTI_CORE=false`. With `true` the agent forks one worker per *host* CPU core, although the container is limited to 2 CPUs and 1 GiB. On a 32-core machine an idle agent already uses 972 MiB and is killed for running out of memory (83 MiB with `false`). A provisioning request then gets an empty reply and the `services` start fails.
- `services stop` removes only the tutorial's volumes. It removed every unused volume on the machine (`docker volume ls -qf dangling=true`), the user's own included. Now: the containers' anonymous volumes go with them (`rm -v`), and only the unused volumes of the `fiware` compose project are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant