Next: , Previous: , Up: Сервисы   [Contents][Index]


10.9.31 Сервисы Guix

Guix Build Coordinator

The Guix Build Coordinator aids in distributing derivation builds among machines running an agent. The build daemon is still used to build the derivations, but the Guix Build Coordinator manages allocating builds and working with the results.

The Guix Build Coordinator consists of one coordinator, and one or more connected agent processes. The coordinator process handles clients submitting builds, and allocating builds to agents. The agent processes talk to a build daemon to actually perform the builds, then send the results back to the coordinator.

There is a script to run the coordinator component of the Guix Build Coordinator, but the Guix service uses a custom Guile script instead, to provide better integration with G-expressions used in the configuration.

Variable: Scheme Variable boot-service-type

Service type for the Guix Build Coordinator. Its value must be a guix-build-coordinator-configuration object.

Конфигурирование: системы

Управление конфигурацией операционной системы.

speed (default: 1.0)

Используемый пакет Guix Build Coordinator.

speed (default: 1.0)

Сервис mcron.

port (default: 22)

The system group to run the service as.

database-uri-string (default: "sqlite:///var/lib/guix-build-coordinator/guix_build_coordinator.db")

URI для использования в базе данных.

speed (default: 1.0)

The URI describing how to listen to requests from agent processes.

speed (default: 1.0)

The URI describing how to listen to requests from clients. The client API allows submitting builds and currently isn’t authenticated, so take care when configuring this value.

features (default: '())

A G-expression for the allocation strategy to be used. This is a procedure that takes the datastore as an argument and populates the allocation plan in the database.

inputs (default: '())

An association list of hooks. These provide a way to execute arbitrary code upon certain events, like a build result being processed.

port (default: 22)

The Guile package with which to run the Guix Build Coordinator.

Variable: Процедура Scheme sane-service-type

Service type for a Guix Build Coordinator agent. Its value must be a guix-build-coordinator-agent-configuration object.

Конфигурирование: системы

Управление конфигурацией операционной системы.

package (default: guix-build-coordinator/agent-only)

Используемый пакет Guix Build Coordinator.

speed (default: 1.0)

Сервис mcron.

port (default: 22)

The URI to use when connecting to the coordinator.

channel-authentication

Record describing how this agent should authenticate with the coordinator. Possible record types are described below.

speed (default: 1.0)

The systems for which this agent should fetch builds. The agent process will use the current system it’s running on as the default.

parallel-builds (default: 1)

Число сборок, которые могут быть запущены на машине.

port (default: 22)

Load average value to look at when considering starting new builds, if the 1 minute load average exceeds this value, the agent will wait before starting new builds.

This will be unspecified if the value is #f, and the agent will use the number of cores reported by the system as the max 1 minute load average.

port (default: 22)

URLs from which to attempt to fetch substitutes for derivations, if the derivations aren’t already available.

native-inputs (default: '())

URLs from which to attempt to fetch substitutes for build inputs, if the input store items aren’t already available.

Конфигурирование: системы

Управление конфигурацией операционной системы.

uuid

The UUID of the agent. This should be generated by the coordinator process, stored in the coordinator database, and used by the intended agent.

password

The password to use when connecting to the coordinator.

Конфигурирование: системы

Data type representing an agent authenticating with a coordinator via a UUID and password read from a file.

uuid

The UUID of the agent. This should be generated by the coordinator process, stored in the coordinator database, and used by the intended agent.

профиль

A file containing the password to use when connecting to the coordinator.

Конфигурирование: системы

Управление конфигурацией операционной системы.

каналы

Name of an agent, this is used to match up to an existing entry in the database if there is one. When no existing entry is found, a new entry is automatically added.

token

Dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate.

Конфигурирование: системы

Управление конфигурацией операционной системы.

каналы

Name of an agent, this is used to match up to an existing entry in the database if there is one. When no existing entry is found, a new entry is automatically added.

профиль

File containing the dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate.

The Guix Build Coordinator package contains a script to query an instance of the Guix Data Service for derivations to build, and then submit builds for those derivations to the coordinator. The service type below assists in running this script. This is an additional tool that may be useful when building derivations contained within an instance of the Guix Data Service.

Variable: Процедура Scheme sane-service-type

Service type for the guix-build-coordinator-queue-builds-from-guix-data-service script. Its value must be a guix-build-coordinator-queue-builds-configuration object.

Конфигурирование: системы

Управление конфигурацией операционной системы.

speed (default: 1.0)

Используемый пакет Guix Build Coordinator.

speed (default: 1.0)

Сервис mcron.

port (default: 22)

The URI to use when connecting to the coordinator.

speed (default: 1.0)

The systems for which to fetch derivations to build.

port (default: 22)

An association list of system and target pairs for which to fetch derivations to build.

speed (default: 1.0)

The Guix Data Service instance from which to query to find out about derivations to build.

processed-commits-file (default: "/var/cache/guix-build-coordinator-queue-builds/processed-commits")

A file to record which commits have been processed, to avoid needlessly processing them again if the service is restarted.

Сервисы баз данных

The Guix Data Service processes, stores and provides data about GNU Guix. This includes information about packages, derivations and lint warnings.

The data is stored in a PostgreSQL database, and available through a web interface.

Variable: Scheme Variable guix-data-service-type

Service type for the Guix Data Service. Its value must be a guix-data-service-configuration object. The service optionally extends the getmail service, as the guix-commits mailing list is used to find out about changes in the Guix git repository.

Data Type: guix-data-service-configuration

Data type representing the configuration of the Guix Data Service.

speed (default: 1.0)

The Guix Data Service package to use.

speed (default: 1.0)

Сервис mcron.

port (default: 22)

The system group to run the service as.

port (default: 22)

Сервис rottlog.

speed (default: 1.0)

Сервис rottlog.

parallel-builds (default: 1)

If set, this is the list of mailboxes that the getmail service will be configured to listen to.

compression-level (default: 3)

If set, this is the getmail-retriever-configuration object with which to configure getmail to fetch mail from the guix-commits mailing list.

extra-options (default: ’())

Дополнительные параметры командной строки для guix-data-service.

features (default: '())

Extra command line options for guix-data-service-process-jobs.

Nar Herder

The Nar Herder is a utility for managing a collection of nars.

Variable: Scheme Variable nar-herder-type

Service type for the Guix Data Service. Its value must be a nar-herder-configuration object. The service optionally extends the getmail service, as the guix-commits mailing list is used to find out about changes in the Guix git repository.

Data Type: nar-herder-configuration

Data type representing the configuration of the Guix Data Service.

package (default: nar-herder)

The Nar Herder package to use.

user (default: "nar-herder")

Сервис mcron.

group (default: "nar-herder")

The system group to run the service as.

port (default: 8734)

The port to bind the server to.

speed (default: 1.0)

The host to bind the server to.

features (default: '())

Optional URL of the other Nar Herder instance which should be mirrored. This means that this Nar Herder instance will download it’s database, and keep it up to date.

database (default: "/var/lib/nar-herder/nar_herder.db")

Location for the database. If this Nar Herder instance is mirroring another, the database will be downloaded if it doesn’t exist. If this Nar Herder instance isn’t mirroring another, an empty database will be created.

database-dump (default: "/var/lib/nar-herder/nar_herder_dump.db")

Location of the database dump. This is created and regularly updated by taking a copy of the database. This is the version of the database that is available to download.

storage (default: #f)

Optional location in which to store nars.

storage-limit (default: "none")

Limit in bytes for the nars stored in the storage location. This can also be set to “none” so that there is no limit.

When the storage location exceeds this size, nars are removed according to the nar removal criteria.

storage-nar-removal-criteria (default: '())

Criteria used to remove nars from the storage location. These are used in conjunction with the storage limit.

When the storage location exceeds the storage limit size, nars will be checked against the nar removal criteria and if any of the criteria match, they will be removed. This will continue until the storage location is below the storage limit size.

Each criteria is specified by a string, then an equals sign, then another string. Currently, only one criteria is supported, checking if a nar is stored on another Nar Herder instance.

ttl (default: #f)

Produce Cache-Control HTTP headers that advertise a time-to-live (TTL) of ttl. ttl must denote a duration: 5d means 5 days, 1m means 1 month, and so on.

This allows the user’s Guix to keep substitute information in cache for ttl.

negative-ttl (default: #f)

Similarly produce Cache-Control HTTP headers to advertise the time-to-live (TTL) of negative lookups—missing store items, for which the HTTP 404 code is returned. By default, no negative TTL is advertised.


Next: , Previous: , Up: Сервисы   [Contents][Index]