(*) Make new index nodes accept queries by default

It's a confusing default behavior.

This was off for nodes n>1 before as a bandaid since querying indices with no data caused delays and errors.  This has been fixed now, so there's no need to do this anymore!
This commit is contained in:
Viktor Lofgren 2024-01-18 12:05:37 +01:00
parent 18638c62de
commit 01b312f14c

View File

@ -57,7 +57,8 @@ public class NodeStatusWatcher {
private void setupNode() {
try {
configurationService.create(nodeId, "Node " + nodeId, nodeId == 1, false);
configurationService.create(nodeId, "Node " + nodeId, true, false);
fileStorageService.createStorageBase("Index Data", Path.of("/idx"), nodeId, FileStorageBaseType.CURRENT);
fileStorageService.createStorageBase("Index Backups", Path.of("/backup"), nodeId, FileStorageBaseType.BACKUP);
fileStorageService.createStorageBase("Crawl Data", Path.of("/storage"), nodeId, FileStorageBaseType.STORAGE);