nixos/*: convert options with admonitions to MD
rendering changes only slightly, most changes are in spacing.
This commit is contained in:
@@ -748,17 +748,15 @@ in {
|
||||
type = types.int;
|
||||
default = 2;
|
||||
apply = x: builtins.toString x;
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
The number of worker processes Puma should spawn. This
|
||||
controls the amount of parallel Ruby code can be
|
||||
executed. GitLab recommends <literal>Number of CPU cores - 1</literal>, but at least two.
|
||||
executed. GitLab recommends `Number of CPU cores - 1`, but at least two.
|
||||
|
||||
<note>
|
||||
<para>
|
||||
Each worker consumes quite a bit of memory, so
|
||||
be careful when increasing this.
|
||||
</para>
|
||||
</note>
|
||||
::: {.note}
|
||||
Each worker consumes quite a bit of memory, so
|
||||
be careful when increasing this.
|
||||
:::
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -766,16 +764,14 @@ in {
|
||||
type = types.int;
|
||||
default = 0;
|
||||
apply = x: builtins.toString x;
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
The minimum number of threads Puma should use per
|
||||
worker.
|
||||
|
||||
<note>
|
||||
<para>
|
||||
Each thread consumes memory and contributes to Global VM
|
||||
Lock contention, so be careful when increasing this.
|
||||
</para>
|
||||
</note>
|
||||
::: {.note}
|
||||
Each thread consumes memory and contributes to Global VM
|
||||
Lock contention, so be careful when increasing this.
|
||||
:::
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -783,19 +779,17 @@ in {
|
||||
type = types.int;
|
||||
default = 4;
|
||||
apply = x: builtins.toString x;
|
||||
description = ''
|
||||
description = lib.mdDoc ''
|
||||
The maximum number of threads Puma should use per
|
||||
worker. This limits how many threads Puma will automatically
|
||||
spawn in response to requests. In contrast to workers,
|
||||
threads will never be able to run Ruby code in parallel, but
|
||||
give higher IO parallelism.
|
||||
|
||||
<note>
|
||||
<para>
|
||||
Each thread consumes memory and contributes to Global VM
|
||||
Lock contention, so be careful when increasing this.
|
||||
</para>
|
||||
</note>
|
||||
::: {.note}
|
||||
Each thread consumes memory and contributes to Global VM
|
||||
Lock contention, so be careful when increasing this.
|
||||
:::
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user