From 01b312f14c83ac92218c4c28ff3b891b3bd4c633 Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Thu, 18 Jan 2024 12:05:37 +0100 Subject: [PATCH] (*) 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! --- .../java/nu/marginalia/service/server/NodeStatusWatcher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/common/service/src/main/java/nu/marginalia/service/server/NodeStatusWatcher.java b/code/common/service/src/main/java/nu/marginalia/service/server/NodeStatusWatcher.java index 6bba6dfd..b193b240 100644 --- a/code/common/service/src/main/java/nu/marginalia/service/server/NodeStatusWatcher.java +++ b/code/common/service/src/main/java/nu/marginalia/service/server/NodeStatusWatcher.java @@ -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);