From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +Jq3D7uyAmX5qQAAauVa8A:P1 (envelope-from ) for ; Thu, 14 Sep 2023 09:14:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +Jq3D7uyAmX5qQAAauVa8A (envelope-from ) for ; Thu, 14 Sep 2023 09:14:03 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 19D465B265 for ; Thu, 14 Sep 2023 09:14:02 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="WlF7DW/d"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694675642; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qQwSfG/l1Qj3ra5WLKTUb54mD0YqZdD6QBUhHiq6nTs=; b=YrfRhVkqMLJhip0f3KUK1wetUg3M7tRKnlq90GNsLab1Wfn4g+K1pIGcsCgT/Ubrv5G3Go f3j048kH1Aggb4tR9OhcNLDe9nIaNTmgGTMGfwgaGkTXyMRjujtDLk+ZPfoouRB0W4W5IK 111cztuNcbAaZecKErKgdoeF2GGdzpXkcExFvLH04k5wQ6f4kN7oMEI1nsgr9vQowQZfku 8ZC49I98PW1Tk13qQQIGUJI17g+wkiObYKqBBOOpRA4d9EQL9Ap26mLDQZzNkSA+VxPYDU FCjtD+QNrSbJpv4co4Ood8DdbeP4+jVYp6VMX6gjv9XIkEeYKWxAAfXAMQ92Xw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="WlF7DW/d"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694675642; a=rsa-sha256; cv=none; b=j8EGFxVXb3GR/okgU3Y/5LJ2MSZ1Cd7Qee2Ds37HoYSJ7gAnnByCXhesZ2pTBfAWVETv1b +38nc95oVkXtZ4kFEI3bNio8ueL3rhnVGOXATfo8y7/SbaROmBnEc8i6pzS0+4LBw1Jl6k oP66Ubd+fJul5ReMDhnWmcMPtZQhVTtsmC07dZNwb5/MVVoIyEu9nkYKNm+0sZwELYceP+ NcCZHmLxN7o0N2/z2s1BYZoOEU/H8U1AKWYGy0SzX7IKj40tw9fV5bWGqMdysRWSuH8Vmj 6F0cMKEYGbqnSfOnjcQ0SA6Mu4SlYtX/E2UY0bdf6Bq2dcr4dbstQFlJ/Rgw+w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qggXZ-0006FG-6z; Thu, 14 Sep 2023 03:13:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qggXO-00064I-23 for guix-devel@gnu.org; Thu, 14 Sep 2023 03:13:18 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qggXL-0006bt-Tk; Thu, 14 Sep 2023 03:13:17 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40472fef044so426535e9.0; Thu, 14 Sep 2023 00:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694675590; x=1695280390; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=qQwSfG/l1Qj3ra5WLKTUb54mD0YqZdD6QBUhHiq6nTs=; b=WlF7DW/dtg5MGe1uip2lCj0Tl5Sw/cDjItHOEfDc9FsfmxQbP3gRTp388NBZwngz0q oQVTzyeQ9E69QNYYbC9tLYjgz7qxjK/Ws3NNxaq2Lw2sCVvqQa+Q4baw8so2fqV1yHyw X71RapAzNzHSovLkljPoulzDC2RBWaoxNX8GUYms+mTibH0Zm1ViuC0HYbj/6wyxcrfv NeS1HfJa+h7SxkZgrUou9GdEGgUcbZKA4Kslt/6lGd5dAM/eL9p5HNGZtAcisi7ZH/5+ DCKN5zGJFnAYOL7wOJVPf5k/HFkf1yDeJiBGw52x+lSMayz7TcMpeefnHjPWTsw2CTax MSzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694675590; x=1695280390; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=qQwSfG/l1Qj3ra5WLKTUb54mD0YqZdD6QBUhHiq6nTs=; b=ogca43q3NAePNx7rqmnFouJn63YZw7vt2QvveLX81p+xJC2/A0EEojuS2gy4DCxvYX uQqVQHtmGjHicRH7m90K+KUQ3CSYLaURYrceHV6R7AXqhkZnX8GQfCW6r7+1UvgqmJqJ oMc9GOnDYwiL5ZLEc+ky6/Yj68oaHHhra0QUMjFwM6iN4P9VeJz0HtEYYYEFEzB9cN6Y +PLIkCSogviy+tyTc6wV09lAraEePmPGPHtL0mpLNuafyISJbHDKXOClii4UnT/fLmKQ IXmegFkYpkYcj6GMKIOw24RJ3FK0x3Vn55KhS/p50zJ78+Wz/PrcOGdSCuMXmtDjUSi5 OxMA== X-Gm-Message-State: AOJu0YyU21E8BCD+y4KqjI1sIWM4p3G44vvK8E+qpBGjdg+a186tSE34 qoi1WPuPng986IdLDys/7wcNhwXOf90= X-Google-Smtp-Source: AGHT+IEoJADmDWx8x7bmagGcM4Je80Uf3UIrAgE+K5/Y/EiYfxnzltH9Oq7PuoX4rQZxe64QfAaTAQ== X-Received: by 2002:a5d:514f:0:b0:31a:e29f:5eab with SMTP id u15-20020a5d514f000000b0031ae29f5eabmr3691469wrt.7.1694675590407; Thu, 14 Sep 2023 00:13:10 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id d14-20020adfe88e000000b003140fff4f75sm915512wrm.17.2023.09.14.00.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 00:13:10 -0700 (PDT) From: Simon Tournier To: Ludovic =?utf-8?Q?Court=C3=A8s?= , guix-devel@gnu.org Subject: Re: Cuirass actors In-Reply-To: <87r0n1ixxl.fsf@gnu.org> References: <87r0n1ixxl.fsf@gnu.org> Date: Thu, 14 Sep 2023 08:49:59 +0200 Message-ID: <86bke5w8o8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x329.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -1.11 X-Spam-Score: -1.11 X-Migadu-Queue-Id: 19D465B265 X-TUID: Q35SySN+vzoL Hi, It is really cool! :-) On Wed, 13 Sep 2023 at 23:08, Ludovic Court=C3=A8s wrote: > - The "builder" spawns derivation builds. There are currently two > implementations: the local builder sends build requests to the local > 'guix-daemon' process, while the remote build delegates builds to > 'cuirass remote-server'. [...] > With this actor split, one could implement another =E2=80=9Cbuilder=E2=80= =9D backend, > for instance one that talks to a Build Coordinator process. IIUC, the current two =E2=80=9Cbuilder=E2=80=9D backend are: + local =E2=80=99guix-daemon=E2=80=99: the queue of derivations is process= ed using one strategy =E2=80=93 the one implemented in C++, + =E2=80=99cuirass remote-server=E2=80=99: the queue of derivations is pro= cessed using another strategy =E2=80=93 implemented in Guile relying on ZeroMQ (somet= hing like steal of work, if I remember correctly). Is it correct? The Build Coordinator also implements the other actors =E2=80=9Cchannel updater=E2=80=9D, =E2=80=9Cevaluator=E2=80=9D, etc., right? From my rough = understanding, the first aim of Build Coordinator is the implementation of the =E2=80=9Cbuilde= r=E2=80=9D. Is it correct? My two questions are: 1. Is the Build Coordinator able to only process the queue of derivations? (being a =E2=80=9Cbuilder=E2=80=9D backend). And if yes,= what is its strategy for processing? 2. In this picture of actor model, would it make sense (or would it be possible) to replace the =E2=80=9Cbuilder=E2=80=9D actor from the Cuira= ss one to the Build Coordinator one? Cheers, simon =20=20=20=20=20