Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D2B9211A24 for ; Wed, 3 Sep 2014 17:06:18 +0000 (UTC) Received: (qmail 98865 invoked by uid 500); 3 Sep 2014 17:06:18 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 98833 invoked by uid 500); 3 Sep 2014 17:06:18 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 98822 invoked by uid 99); 3 Sep 2014 17:06:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 17:06:18 +0000 X-ASF-Spam-Status: No, hits=-2001.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 03 Sep 2014 17:05:55 +0000 Received: (qmail 98406 invoked by uid 99); 3 Sep 2014 17:05:54 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 17:05:54 +0000 Received: from localhost (HELO mail-wg0-f49.google.com) (127.0.0.1) (smtp-auth username richard, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 17:05:53 +0000 Received: by mail-wg0-f49.google.com with SMTP id y10so8793872wgg.8 for ; Wed, 03 Sep 2014 10:05:52 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.35.133 with SMTP id h5mr36862361wij.74.1409763952255; Wed, 03 Sep 2014 10:05:52 -0700 (PDT) Received: by 10.194.151.100 with HTTP; Wed, 3 Sep 2014 10:05:52 -0700 (PDT) In-Reply-To: <540741B4.9070003@cloudsoftcorp.com> References: <54044622.3070404@cloudsoftcorp.com> <540741B4.9070003@cloudsoftcorp.com> Date: Wed, 3 Sep 2014 18:05:52 +0100 Message-ID: Subject: Re: Persisting catalogues From: Richard Downer To: Brooklyn dev Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi Sam, On 3 September 2014 17:28, Sam Corbett wrote: > I'm coming to > interpret catalog.xml and brooklyn.properties as files that bootstrap the > server. Any interaction with them should be discouraged once the server has > started, else everything gets confusing in a persisted and/or multi-server > deployment. If a user wants to add a new item to the catalogue they should > post its blueprint to the server. -1 to the concept that there are two different ways to do things, depending on if Brooklyn is already running or not. If a Brooklyn installation is going to be long-lived, then it is going to need to deal with changes to the entities that are installed in it - new things dropped into lib/dropins and so on. I'm not happy with the asymmetry of changes like this are done one way before booting, and a different way after booting: - Brooklyn not running? Just drop it into lib/dropins and it'll automatically appear in the catalog! - Brooklyn already running? Ah. You'll also need to use curl to POST some data to the REST API. Either that, or you shut down your entire infrastructure and delete your persisted state and start again. I'm afraid that I don't see this proposal as making Brooklyn easier to use, and more suited for long-term production use. Richard.