gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 02:32:46 24 4
gpt4 key购买 nike

在基准测试页面“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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com