(file_path: str)
| 59 | env_metadata_server = os.getenv("MOONCAKE_METADATA_SERVER", "").strip() |
| 60 | if env_metadata_server: |
| 61 | cfg.metadata_server = env_metadata_server |
| 62 | |
| 63 | env_protocol = os.getenv("MOONCAKE_PROTOCOL", "").strip() |
| 64 | if env_protocol: |
| 65 | cfg.protocol = env_protocol |
| 66 | |
| 67 | env_device_name = os.getenv("MOONCAKE_DEVICE_NAME", "").strip() |
| 68 | if env_device_name: |
| 69 | cfg.device_name = env_device_name |
| 70 | |
| 71 | # Keep session IDs and metadata endpoints stable on single-node runs. |
| 72 | # localhost may resolve to IPv6 on some hosts while peers use IPv4. |
no test coverage detected