在 vespa 中启动和停止服务

Starting and stopping services in vespa

在基准测试页面“https://docs.vespa.ai/en/performance/vespa-benchmarking.html”中,我们需要在使用增加 persearch 线程后重新启动服务命令 vespa-stop-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": []
    }
}