[en] A language configuration is a group of settings that influences checking in a particular language. As a Standard Stack user, you can update these components in your language configuration file.
[en] Language configurations include settings for components of your guidance package, such as terminology and the guidelines that make up your Targets or Guidance Profiles. When you change any of these components, you need to reload the relevant language configurations. This makes your changes available for checking. If you've assigned several language servers to one language, you'll need to reload the language configuration on each language server.
[en] If you have the user privilege Reload language configuration, you can reload language configurations to make the changes to your guidance package available for checking. You can reload configurations for individual language servers or for all language servers.
[en] To reload the language servers, do the following:
-
[en] Open the Servers page.
-
[en] To reload the language configuration:
-
[en] On a specific server, click Reload Language Configuration next to an individual language server.
-
[en] On all language servers, click Reload All Language Configurations.
-
[en] By default, language servers reload language configurations one at a time. If you have several language servers, you can make a few changes to speed up the loading process. To do this, configure language servers to load language configurations simultaneously.
[en] Before you use this configuration, ensure that your hardware can reload language servers simultaneously. Only use this configuration if your computer has a dedicated CPU for each configured language server.
[en] To configure language configurations to reload simultaneously, follow these steps:
-
[en] Open your overlay of the core server properties file.
[en] You’ll find the overlay for the core server properties file in the following location:
<config directory>/server/bin/coreserver.properties
-
[en] Add the following property:
maxParallelResourceLoadRequests=<NUMBER>
[en] For example, if you add the property
maxParallelResourceLoadRequests=3
, the core server loads the first three language servers simultaneously. It then loads the rest of the language servers one at a time. -
[en] Save your changes and restart the Acrolinx Platform.
[en] If you want all users to get the same check results when they check with multiple language servers, you can disable sequential reloading. However, users will need to wait until all relevant language servers reload before they can run checks.
[en] Sequential reloading ensures that users can still check when Acrolinx reloads a language configuration on several language servers. If you disable sequential reloading, the core server still loads the language servers one at a time. However, it waits until the last language server reloads before it makes the language servers available for checking again.
[en] To disable the sequential reloading of language servers, follow these steps:
-
[en] Open your overlay of the core server properties file.
[en] You find the overlay for the core server properties file in the following location:
<config directory>/server/bin/coreserver.properties
-
[en] Add the following property:
serializedResourceReloading=false
[en] When this property isn’t present, the default is:
true
-
[en] Save your changes and restart the Acrolinx Platform.
[en] As part of the Acrolinx Platform definition, you can set the number of language servers and the language configurations they load.
platform: spec: languageServers: - name: default replicas: 1 languages: [ en, de, ja, fr ]
[en] You configure language servers in groups. You'll see them in the Helm values under platform.spec.languageServers
. In most cases, this list will only include the default
group.
Tipp
[en] You might want to define other groups to:
-
[en] Override the memory allocation for language servers.
-
[en] Make it more convenient to scale the number of servers for individual languages.
[en] The languages load in the order in which you list them. If you list a language more than once, Acrolinx will assign it multiple times. The replicas
setting, which defaults to 1, determines how often Acrolinx assigns the complete languages
list. For example, if you set it to 3, each list item will get assigned three times.
[en] The Acrolinx Operator will start enough language servers to meet your configuration. Acrolinx starts servers in each group based on the total number of replicas
times the length of the languages
list.
Anmerkung
[en] Remember to apply the changed configuration to your cluster. To do this, you can use:
kubectl apply -f acrolinx.yaml