Skip to content

Commit

Permalink
"warmUp" has been removed (didn't do anything anyway for quite some t…
Browse files Browse the repository at this point in the history
…ime)
  • Loading branch information
danielnaber committed Oct 15, 2022
1 parent 0c0b15f commit a63a338
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ password = keystorepwd
# each with ngram occurrence counts; activates the confusion rule if supported (optional)
# 'maxWorkQueueSize' - reject request if request queue gets larger than this (optional)
# 'rulesFile' - a file containing rules configuration, such as .langugagetool.cfg (optional)
# 'warmUp' - set to 'true' to warm up server at start, i.e. run a short check with all languages (optional)

# Maximum text length. Optional - longer texts will cause an error.
maxTextLength = 120000
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void setRestrictManagedAccounts(boolean restrictManagedAccounts) {
"pipelineExpireTimeInSeconds", "pipelinePrewarming", "prometheusMonitoring", "prometheusPort", "remoteRulesFile",
"requestLimit", "requestLimitInBytes", "requestLimitPeriodInSeconds", "requestLimitWhitelistUsers", "requestLimitWhitelistLimit",
"rulesFile", "secretTokenKey", "serverURL",
"skipLoggingChecks", "skipLoggingRuleMatches", "timeoutRequestLimit", "trustXForwardForHeader", "warmUp",
"skipLoggingChecks", "skipLoggingRuleMatches", "timeoutRequestLimit", "trustXForwardForHeader",
"keystore", "password", "maxTextLengthPremium", "maxTextLengthAnonymous", "maxTextLengthLoggedIn", "gracefulDatabaseFailure",
"ngramLangIdentData",
"dbTimeoutSeconds", "dbErrorRateThreshold", "dbTimeoutRateThreshold", "dbDownIntervalSeconds",
Expand Down Expand Up @@ -386,9 +386,6 @@ private void parseConfigFile(File file, boolean loadLangModel) {
throw new IllegalArgumentException("Use of cacheTTLSeconds without also setting cacheSize has no effect.");
}
cacheTTLSeconds = Integer.parseInt(getOptionalProperty(props, "cacheTTLSeconds", "300"));
if (props.containsKey("warmUp")) {
System.err.println("Setting ignored: 'warmUp'. Look into using pipelineCaching and pipelinePrewarming instead.");
}
maxErrorsPerWordRate = Float.parseFloat(getOptionalProperty(props, "maxErrorsPerWordRate", "0"));
maxSpellingSuggestions = Integer.parseInt(getOptionalProperty(props, "maxSpellingSuggestions", "0"));
blockedReferrers = Arrays.asList(getOptionalProperty(props, "blockedReferrers", "").split(",\\s*"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ protected static void printCommonConfigFileOptions() {
System.out.println(" https://fasttext.cc/docs/en/support.html");
System.out.println(" 'maxWorkQueueSize' - reject request if request queue gets larger than this (optional)");
System.out.println(" 'rulesFile' - a file containing rules configuration, such as .langugagetool.cfg (optional)");
System.out.println(" 'warmUp' - set to 'true' to warm up server at start, i.e. run a short check with all languages (optional)");
System.out.println(" 'blockedReferrers' - a comma-separated list of HTTP referrers (and 'Origin' headers) that are blocked and will not be served (optional)");
System.out.println(" 'premiumOnly' - activate only the premium rules (optional)");
System.out.println(" 'disabledRuleIds' - a comma-separated list of rule ids that are turned off for this server (optional)");
Expand Down
1 change: 1 addition & 0 deletions languagetool-standalone/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
...

### General
* The `warmup` setting for the config file, which had no effect anymore, has been removed
* The deprecated `--word2vecmodel` and `--neuralnetworkmodel` options has been removed,
as these features were not maintained and had never been used on languagetool.org

Expand Down

0 comments on commit a63a338

Please sign in to comment.