Skip to content

Commit 0f0db37

Browse files
committed
UI: Disable Jetty graceful shutdown for faster restarts
Graceful shutdown would be useful if you could deploy the UI in a high-availability configuration and direct new requests to a different instance while the current instance finished its outstanding ones. But as you can't, it's just making restarting Heritrix slow for little benefit.
1 parent 679fde4 commit 0f0db37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engine/src/main/java/org/archive/crawler/Heritrix.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,9 @@ protected void setupServer(Component component, int port, String address, String
520520
server.getContext().getParameters().add("keystorePath", keystorePath);
521521
server.getContext().getParameters().add("keystorePassword", keystorePassword);
522522
server.getContext().getParameters().add("keyPassword", keyPassword);
523+
524+
// This makes restarting faster. No point delaying shutdown as you can't cluster the Heritrix UI.
525+
server.getContext().getParameters().add("shutdown.gracefully", "false");
523526
}
524527

525528
/**

0 commit comments

Comments
 (0)