mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-10-05 21:22:39 +02:00
The primary motivation for this is that in production, the large number of partitioned services has lead to an intermittent exhaustion of available database connections, as each service has a connection pool. The decision to have a separate executor service dates back from when the index service was very slow to start, and the executor didn't always spin off its memory-hungry tasks into separate processes, which meant the executor would sometimes OOM and crash, and it was undesirable to bring the index down with it.
16 lines
456 B
Java
16 lines
456 B
Java
package nu.marginalia.ddtrackergradar;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
import java.nio.file.Path;
|
|
|
|
class DDGTrackerDataTest {
|
|
@Test
|
|
public void testLoad() {
|
|
DDGTrackerData data = new DDGTrackerData();
|
|
data.loadDomainDir(Path.of("/home/vlofgren/Work/tracker-radar/domains/US/"));
|
|
data.getDomainInfo("hotjar.com").ifPresent(System.out::println);
|
|
data.getAllClassifications().forEach(System.out::println);
|
|
}
|
|
|
|
} |