Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Docker Compose configuration entirely with environment variables #282

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

aromanielloNTIA
Copy link
Member

@aromanielloNTIA aromanielloNTIA commented Mar 22, 2024

Resolves #279 by adding new environment variables SSD_DEVICE and API_SHM_SIZE.

Now, SSD_DEVICE is used to map the /dev/nvme0n1 device in the API container, which is used by the SEA edge compute action to get diagnostic SSD SMART data. The default value is dynamically retrieved using the command lsblk -I 8 -npdo KNAME which should work in most cases, and resolves to /dev/nvme0n1 for SEA sensors. This default could cause missing metadata when using the SEA action if the SSD_DEVICE is not an SSD. The default setting will also cause SCOS Sensor to fail to start if multiple devices are returned by lsblk -I 8 -npdo KNAME.

API_SHM_SIZE is used to set the shared memory in the API container, and a default is provided keeping it at 16 GB. This is used to provide sufficient shared memory to the Ray package for parallel processing of large IQ captures.

@aromanielloNTIA aromanielloNTIA marked this pull request as draft April 4, 2024 17:24
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.

Environment variables should be used for all configuration
1 participant