commit | 8d06416b06448a5eb0b45f624f5de91ec731e043 | [log] [tgz] |
---|---|---|
author | Wei-Yu Chen <wychen@intel.com> | Fri May 27 21:06:55 2022 +0800 |
committer | Wei-Yu Chen <wychen@intel.com> | Tue May 31 00:15:28 2022 +0800 |
tree | cc6a69d837ad594df3a179b0c5be8f168ce7a68c | |
parent | f90b16b1f8578426c5d598ccc0e11506d72c1b6d [diff] |
AETHER-3573 Simplify configuration files in enodebd Change-Id: I048d743c0677c85244b87a6c6444f39c06f6bf4b
eNodeB daemon is an Automatic Configuration Server (ACS) which forks from Facebook Magma project. It currently tested with Sercomm eNodeB P27-SCE4255W small cell.
# The all command will create a virtual environment, install protoc and compile the proto files make all # Enter the virtual environment . venv/bin/activate # Run enodebd python main.py
We have these configuration files for configuring eNodeBD service.
The enodebd will generate the empty configuration to config service, and it will load override_configs/gateway.mconfig
to fill in the empty configuration.
The acs_common.yml
will hold the default value for all eNodeBs, like as the PLMN may be a shared value among all eNodeBs.
The serial_number.yml
will have the customized value for each configurable parameters. The value in serial_number.yml
will override the value defines in gateway.mconfig
and acs_common.yml
when corresponding eNodeB connects (base on the serial number provided by eNodeB).
The following example configuration can start a Prometheus container for monitoring data sent by enodebd. The enodebd will start prometheus server on port 8000 by default.
# prometheus configuration - prometheus.yml global: scrape_interval: 15s external_labels: monitor: 'codelab-monitor' scrape_configs: - job_name: 'prometheus' scrape_interval: 5s static_configs: # The 8000 is the default port of prometheus client of enodebd - targets: ['172.17.0.1:8000']
... and start prometheus container with docker command.
$ docker run -p 9090:9090 -v /home/ubuntu/magma-enodebd-new/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
This project is under 3-Clause BSD license.