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