Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 1 | --- |
| 2 | ################################################################################ |
| 3 | # Copyright 2020 The Magma Authors. |
| 4 | |
| 5 | # This source code is licensed under the BSD-style license found in the |
| 6 | # LICENSE file in the root directory of this source tree. |
| 7 | |
| 8 | # Unless required by applicable law or agreed to in writing, software |
| 9 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | # See the License for the specific language governing permissions and |
| 12 | # limitations under the License. |
| 13 | ################################################################################ |
| 14 | |
| 15 | # log_level is set in mconfig. it can be overridden here |
| 16 | |
| 17 | print_grpc_payload: False |
| 18 | |
| 19 | # List of services for magmad to control |
| 20 | magma_services: |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 21 | - enodebd |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 22 | |
| 23 | # list of services that are required to have meta before checking in |
| 24 | # (meta = data gathered via MagmaService.register_get_status_callback()) |
| 25 | # skip limit specified by config 'max_skipped_checkins' |
| 26 | skip_checkin_if_missing_meta_services: [] |
| 27 | |
| 28 | # default = 3, use 0 for "infinity" |
| 29 | # max_skipped_checkins: 3 |
| 30 | |
| 31 | # Init system to use to control services |
| 32 | # Supported systems include: [systemd, runit, docker] |
| 33 | init_system: systemd |
| 34 | |
| 35 | # bootstrap_manager config |
| 36 | bootstrap_config: |
| 37 | # location of the challenge key |
| 38 | challenge_key: /var/opt/magma/certs/gw_challenge.key |
| 39 | |
| 40 | # Flags indicating the magmad features to be enabled |
| 41 | enable_config_streamer: True |
| 42 | enable_upgrade_manager: True |
| 43 | enable_network_monitor: True |
| 44 | enable_sync_rpc: True |
| 45 | enable_kernel_version_checking: True |
| 46 | |
| 47 | network_monitor_config: |
| 48 | # How long to sleep between statistic collections |
| 49 | sampling_period: 60 |
| 50 | |
| 51 | # ping stats config |
| 52 | ping_config: |
| 53 | hosts: |
| 54 | - 8.8.8.8 |
| 55 | num_packets: 1 |
| 56 | timeout_secs: 20 |
| 57 | |
| 58 | upgrader_factory: |
| 59 | # Module where the UpgraderFactory implementation is located |
| 60 | module: magma.magmad.upgrade.magma_upgrader |
| 61 | # Name of the UpgraderFactory implementation |
| 62 | class: MagmaUpgraderFactory |
| 63 | mconfig_modules: |
| 64 | - orc8r.protos.mconfig.mconfigs_pb2 |
| 65 | - lte.protos.mconfig.mconfigs_pb2 |
| 66 | # - feg.protos.mconfig.mconfigs_pb2 |
| 67 | |
| 68 | metricsd: |
| 69 | log_level: INFO |
| 70 | collect_interval: 60 # How frequently to collect metrics samples in seconds |
| 71 | sync_interval: 60 # How frequently to sync to cloud in seconds |
| 72 | grpc_timeout: 30 # Timeout in seconds |
| 73 | max_grpc_msg_size_mb: 4 # Max message size for gRPC channel in MBs |
| 74 | |
| 75 | # An optional function to mutate metrics before they are sent to the cloud |
| 76 | # A string in the form path.to.module.fn_name |
| 77 | # @see magma.magmad.metrics_collector.example_metrics_postprocessor |
| 78 | post_processing_fn: magma.magmad.metrics_collector.do_nothing_metrics_postprocessor |
| 79 | # List of services for metricsd to poll |
| 80 | services: |
| 81 | - subscriberdb |
| 82 | - mobilityd |
| 83 | - mme |
| 84 | - magmad |
| 85 | - enodebd |
| 86 | - pipelined |
| 87 | - state |
| 88 | - sessiond |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 89 | |
| 90 | generic_command_config: |
| 91 | module: magma.magmad.generic_command.shell_command_executor |
| 92 | class: ShellCommandExecutor |
| 93 | shell_commands: |
| 94 | - name: bash |
| 95 | command: "bash {}" |
| 96 | allow_params: True |
| 97 | - name: fab |
| 98 | command: "fab {}" |
| 99 | allow_params: True |
| 100 | - name: echo |
| 101 | command: "echo {}" |
| 102 | allow_params: True |
| 103 | - name: reboot_enodeb |
| 104 | command: "enodebd_cli.py reboot_enodeb {}" |
| 105 | allow_params: True |
| 106 | - name: reboot_all_enodeb |
| 107 | command: "enodebd_cli.py reboot_all_enodeb" |
| 108 | allow_params: False |
| 109 | - name: health |
| 110 | command: "health_cli.py {}" |
| 111 | allow_params: True |
| 112 | - name: agw_health |
| 113 | command: "agw_health_cli.py {}" |
| 114 | allow_params: True |
| 115 | - name: get_flows |
| 116 | command: "sudo pipelined_cli.py debug display_flows" |
| 117 | allow_params: False |
| 118 | - name: get_subscriber_table |
| 119 | command: "mobility_cli.py get_subscriber_table" |
| 120 | allow_params: False |
| 121 | - name: check_stateless |
| 122 | command: "magmad_cli.py check_stateless" |
| 123 | allow_params: False |
| 124 | - name: configure_stateless |
| 125 | command: "magmad_cli.py config_stateless {}" |
| 126 | allow_params: True |
| 127 | |
| 128 | # Services for which magmad grpc status check restart recovery is enabled |
| 129 | services_to_restart: |
| 130 | - pipelined |
| 131 | |
| 132 | # How many times can grpc status check fail before restarting the services above |
| 133 | restart_timeout_threshold: 15 |