vespa - 在 vespa 中启动和停止服务

标签 vespa

在基准测试页面“https://docs.vespa.ai/en/performance/vespa-benchmarking.html”中,我们需要在使用命令 vespa-stop 增加 persearch 线程后重新启动服务-services 和 vespa-start-services。 您能否告诉我们是否需要在所有内容节点或仅配置节点上执行此操作?

最佳答案

部署需要重启的更改时,部署命令将列出您需要执行的操作。例如,在以下示例中,将每个搜索线程的全局设置从 2 更改为 5 时:

curl --header Content-Type:application/zip --data-binary @target/application.zip   localhost:19071/application/v2/tenant/default/prepareandactivate |jq . 
{
    "log": [
        {
            "time": 1645036778830,
            "level": "WARNING",
            "message": "Change(s) between active and new application that require restart:\nIn cluster 'mycluster' of type 'search':\n    Restart services of type 'searchnode' because:\n        1) # Number of threads used per search\nproton.numthreadspersearch has changed from 2 to 5\n"
        }
    ],
    "tenant": "default",
    "url": "http://localhost:19071/application/v2/tenant/default/application/default/environment/prod/region/default/instance/default",
    "message": "Session 8 for tenant 'default' prepared and activated.",
    "configChangeActions": {
        "restart": [
            {
                "clusterName": "mycluster",
                "clusterType": "search",
                "serviceType": "searchnode",
                "messages": [
                    "# Number of threads used per search\nproton.numthreadspersearch has changed from 2 to 5"
                ],
                "services": [
                    {
                        "serviceName": "searchnode",
                        "serviceType": "searchnode",
                        "configId": "mycluster/search/cluster.mycluster/0",
                        "hostName": "vespa-container"
                    }
                ]
            }
        ],
        "refeed": [],
        "reindex": []
    }
}

关于vespa - 在 vespa 中启动和停止服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71147132/

相关文章:

vespa - vespa 中是否有分面搜索的替代方案?

vespa - 如何在搜索结果中包含导入的字段?

vespa - 电子商务和 Vespa : filtering customer's wishlist

Vespa.ai 利用多个实例来回答查询

vespa - 如何在 Vespa.ai 中使用 ML 模型?

scala - vespa.ai 的 SBT 依赖性解析失败

docker - 每个主机有多个vespa docker容器?

vespa - 在多个 docker 容器上设置 vespa 时出现问题

vespa - 如何在 Vespa 中执行精确的最近邻搜索?