This modification aims to improve health status detection by using PRACH IO as an indicator of the gNB's status (container is marked as "healthy" when the PRACH IO value in gNB nrL1_stats.log exceeds 0.0 dB.). The new condition accounts for scenarios where the container may not exit or produce error codes (e.g., “sleep” logs or "error code overflow" messages).
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
services:
|
|
oai-gnb:
|
|
image: ${REGISTRY:-oaisoftwarealliance}/oai-gnb-fhi72:${TAG:-develop}
|
|
cap_add:
|
|
- IPC_LOCK
|
|
- SYS_NICE
|
|
cap_drop:
|
|
- ALL
|
|
container_name: oai-gnb
|
|
environment:
|
|
TZ: Europe/Paris
|
|
USE_ADDITIONAL_OPTIONS: --thread-pool 7,8,9,10,11,12
|
|
devices:
|
|
- /dev/vfio:/dev/vfio/
|
|
volumes:
|
|
- ../../conf_files/gnb.sa.band77.273prb.fhi72.4x4-vvdn.conf:/opt/oai-gnb/etc/gnb.conf
|
|
- /dev/hugepages:/dev/hugepages
|
|
# Please change these values based on your system
|
|
cpuset: "0,1,2,3,4,5,6,7,8,9,10,11,12"
|
|
networks:
|
|
oai-net:
|
|
ipv4_address: 172.21.18.20
|
|
healthcheck:
|
|
test: /bin/bash -c "/opt/oai-gnb/bin/check-prach-io.sh"
|
|
start_period: 15s
|
|
start_interval: 500ms
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
networks:
|
|
oai-net:
|
|
driver: macvlan
|
|
name: oai-net
|
|
ipam:
|
|
config:
|
|
- subnet: "172.21.16.0/22"
|
|
ip_range: "172.21.18.20/32"
|
|
gateway: "172.21.19.254"
|
|
driver_opts:
|
|
com.docker.network.bridge.name: "oai-net"
|
|
parent: ens7f0
|