Where should the number of cores come from? #28

Open
opened 2024-11-12 10:06:26 +01:00 by Niols · 0 comments
Owner

Mastodon wants to know the number of cores to set the number of streaming processes. For now, I have just wired an option under fediversity.temp.

# from the documentation: recommended is the amount of your CPU cores minus
# one. but it also must be a positive integer
streamingProcesses = lib.max 1 (config.fediversity.temp.cores - 1);

cores = mkOption {
description = "number of cores; should be obtained from NixOps4";
type = types.int;
};

However, who is supposed to fill this option? I expect it might be coming from NixOps4; @roberth> WDYT?

Mastodon wants to know the number of cores to set the number of streaming processes. For now, I have just wired an option under `fediversity.temp`. https://git.fediversity.eu/Fediversity/simple-nixos-fediverse/src/commit/b1a5e16432e4d1cc661d0aa7e7aa6da28d3028fa/fediversity/mastodon.nix#L76-L78 https://git.fediversity.eu/Fediversity/simple-nixos-fediverse/src/commit/b1a5e16432e4d1cc661d0aa7e7aa6da28d3028fa/fediversity/default.nix#L40-L43 However, who is supposed to fill this option? I expect it might be coming from NixOps4; @roberth> WDYT?
This repo is archived. You cannot comment on issues.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Fediversity/simple-nixos-fediverse#28
No description provided.