TensorFlow Serving 配置文件:监控和模型集成指南
TensorFlow Serving 提供两种配置文件用于集成监控和模型:\n\n1. monitoring_config_file:此配置文件用于配置监控和指标收集。它可以用于启用和配置 Prometheus 或 StatsD 监控,以收集有关 TensorFlow Serving 的指标和性能数据。配置文件可以指定要收集的指标和监控的地址和端口。可以在 TensorFlow Serving 启动时使用 --monitoring_config_file 参数指定该配置文件。\n\n示例配置文件(monitoring_config.txt):\n\n\nprometheus_config {\n enable: true\n path: "/metrics"\n port: 8080\n}\n\n\n2. model_config_file:此配置文件用于指定 TensorFlow Serving 要加载的模型。它包含模型的详细信息,如模型名称、路径、输入和输出格式等。配置文件可以指定多个模型,每个模型都有一个唯一的名称和路径。可以在 TensorFlow Serving 启动时使用 --model_config_file 参数指定该配置文件。\n\n示例配置文件(model_config.txt):\n\n\nmodel_config_list {\n config {\n name: "model1"\n base_path: "/path/to/model1"\n model_platform: "tensorflow"\n }\n config {\n name: "model2"\n base_path: "/path/to/model2"\n model_platform: "tensorflow"\n }\n}\n\n\n可以同时使用这两个配置文件来配置 TensorFlow Serving 的监控和要加载的模型。启动 TensorFlow Serving 时,使用 --monitoring_config_file 和 --model_config_file 参数指定相应的配置文件。\n\n\ntensorflow_model_server --monitoring_config_file=monitoring_config.txt --model_config_file=model_config.txt\n
原文地址: https://www.cveoy.top/t/topic/pHdt 著作权归作者所有。请勿转载和采集!