1
1
mirror of https://github.com/MarginaliaSearch/MarginaliaSearch.git synced 2025-10-05 21:22:39 +02:00

(boot) Explicitly stop ndp and ping processes at first boot

The system has sometimes been observed starting the NDP and Ping processes automatically, which is strongly undesirable as these microcrawlers generate real web traffic.

It is not fully understood how this happened, but the first boot handler has been modified to explicitly stop them, which should prevent the problem; and seems to have the desired outcome during testing.
This commit is contained in:
Viktor Lofgren
2025-09-30 09:29:04 +02:00
parent adc815e282
commit f55af8ef48
2 changed files with 5 additions and 3 deletions

View File

@@ -2,9 +2,8 @@ package nu.marginalia.execution;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import nu.marginalia.actor.ExecutorActorControlService;
import nu.marginalia.actor.ExecutorActor;
import nu.marginalia.actor.ExecutorActorControlService;
@Singleton
public class ExecutionInit {
@@ -22,5 +21,8 @@ public class ExecutionInit {
actorControlService.start(ExecutorActor.PROC_CRAWLER_SPAWNER);
actorControlService.start(ExecutorActor.PROC_INDEX_CONSTRUCTOR_SPAWNER);
actorControlService.start(ExecutorActor.PROC_LOADER_SPAWNER);
actorControlService.start(ExecutorActor.PROC_EXPORT_TASKS_SPAWNER);
actorControlService.stop(ExecutorActor.PROC_NDP_SPAWNER);
actorControlService.stop(ExecutorActor.PROC_PING_SPAWNER);
}
}

View File

@@ -93,7 +93,7 @@ public class IndexService extends SparkService {
@MqRequest(endpoint="FIRST-BOOT")
public void setUpDefaultActors(String message) throws Exception {
logger.info("Initializing default actors");
eventLog.logEvent("FIRST-BOOT", "Initializing default actors");
executionInit.initDefaultActors();
}