From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10048 invoked from network); 17 Aug 2022 11:04:51 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 17 Aug 2022 11:04:51 -0000 Received: (qmail 15483 invoked by uid 89); 17 Aug 2022 11:05:16 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 15476 invoked from network); 17 Aug 2022 11:05:16 -0000 From: "Laurent Bercot" To: supervision@list.skarnet.org Subject: Re: Pattern for multiple subservices and dynamic discovery i.e. VPN Date: Wed, 17 Aug 2022 11:04:50 +0000 Message-Id: In-Reply-To: <20220817103258.59b7f3a0@flunder.oschad.de> References: <20220817103258.59b7f3a0@flunder.oschad.de> Reply-To: "Laurent Bercot" User-Agent: eM_Client/9.0.1708.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable > >I'm looking for a pattern to solve a problem, where you have to >discover dynamically the services you have to start. > >Examples could be VPN configurations, where you discover the >configuration files and start for every file an instance of the VPN >service. Hi Oliver, Dynamic instantiation is a real pain point - it's an often requested feature, but it's surprisingly hard to make it work correctly and safely in a supervision scheme. Supervision works very well in static environments, but dynamic discovery is at odds with the architecture. I have a few ideas to mitigate that and help people create instanced services. Instantiation is a planned feature of the future s6-rc v1 but it's still a ways away; I am also thinking of adding tools to help people handle instances with regular s6, amd they may come in the near future, but there are currently no such helpers, sorry. -- Laurent