我有一个现有的monetdb安装和一个dbfarm
。我想更改此(https://www.monetdb.org/Documentation/Guide/Multicores)docs页面中指定的monetdb使用的线程数。看起来我们需要使用mserver5
而不是monetdbd
启动monetdb才能设置此参数。所以,我尝试了以下命令:
mserver5 --dbpath=dbfarm/voc/ --set mapi_port=50000
BBPdiskscan: unexpected file log.6, leaving /home/mskd/dbfarm/voc/bat/sql_logs/sql.
BBPdiskscan: unexpected file BBP.dir, leaving /home/mskd/dbfarm/voc/bat/bat/BACKUP.
# MonetDB 5 server v11.27.13 "Jul2017-SP4"
# Serving database 'voc', using 8 threads
# Compiled for x86_64-pc-linux-gnu/64bit with 128bit integers
# Found 31.301 GiB available main-memory.
# Copyright (c) 1993 - July 2008 CWI.
# Copyright (c) August 2008 - 2018 MonetDB B.V., all rights reserved
# Visit https://www.monetdb.org/ for further information
# Listening for connection requests on mapi:monetdb://127.0.0.1:50000/
# MonetDB/SQL module loaded
客户端无法连接到上述内容。
我认为这是因为上面的mserver输出的URI是错误的。通常,在使用monetdbd
启动时,它会自动连接到URI:mapi:monetdb://127.0.0.1:50000/voc
有人可以指点我在使用mserver5
启动monetdb时如何更改此URI?
答案 0 :(得分:1)
I found how to do this. Have a look at the dbfarm/merovingian.log
while starting it using monetdbd
. The command is printed into the log file, change the threads parameter as needed.