From dev-return-65940-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Thu Jun 7 08:53:56 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C99AE180663 for ; Thu, 7 Jun 2018 08:53:55 +0200 (CEST) Received: (qmail 39366 invoked by uid 500); 7 Jun 2018 06:53:54 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 39354 invoked by uid 99); 7 Jun 2018 06:53:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2018 06:53:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8AB05C018C for ; Thu, 7 Jun 2018 06:53:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.889 X-Spam-Level: * X-Spam-Status: No, score=1.889 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id NW2v4US46XkF for ; Thu, 7 Jun 2018 06:53:51 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id CCECA5F57D for ; Thu, 7 Jun 2018 06:53:50 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id n3-v6so12885248lfe.12 for ; Wed, 06 Jun 2018 23:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=BrqCB/AylLIKpWRk/xRVhTqvwh4ejc7JYBL3XvHXGPY=; b=SepnEu30YRYWb64VrliexKqTc8qVRuCy0BjPIhdo68bXNeI+LjlMPX6o+F9hTNmdhH dFoQVXi3B9APuAJ6JEgdv+od4qdWDoHuUJhyU4mF8cusysn5LH/c26DTQI8kxFC2hjWF eUoKMnWIXy2KXbKuW12+HIibHigOqAqjMWnhOuCNqTfgRd0w7155SzyT5xnPVkox3xNE yy9KnBg+DR+dArmU7zxc30U8+X/UPpHyLx35u9nqqLw0ZZnOG5IpJ0EVdul0+vfYGMFi SqH/9CJbRNMY1hyL2T2j9W42yn4idvKeX0/aShu8F3DK74+nlM/stWUFfFWT1OqJ+TMC H4bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=BrqCB/AylLIKpWRk/xRVhTqvwh4ejc7JYBL3XvHXGPY=; b=kAgtWFMnUHXpxxNFnCjTr7DQrkuPKJB79bzhMzZ9mehu3fN5esBijf3d96R8VL84Lt NycCvU/hv0xrFdbBsjkUwTCr4Sft8+lb+jJs4D8n1bNNWsRmU0wobXLtg7n22ZX6Ngyr Mjv873akw6pQrIeD9vZVtDOhWKdDJIZ+qYtWvXGPaxE6K1OHC4eFLvSdRsApqAlP6V45 OkpFHfT7scgMzS4fcT5cP/hT70DAfpwyS5qoEYpy39YdGDDs2bY4pL9HEXhE9x5UrG+7 5TjBRdkmA3A7clqTxTbXx/yKbP8YrrzeKSMH4+hy5B1t8GmNiToct6LN3aN50mDfmDTz em7g== X-Gm-Message-State: APt69E1J19QwZvf3cRjuZv4hymgcJDNMA3dS6hEJVj6Gm046dJZdbYcY Na8DO/m9xX9XkUO2MzXvAEyyZNZhys0CFaADFjEj7g== X-Google-Smtp-Source: ADUXVKIIxwkho2slCsTit1c6l/ebITsx4cUhhV6+Sn6oVP4ok7Z1pp7MOTJ+OUdeVin6Fst+8Jflfr1+0Ryxz4ZP16Y= X-Received: by 2002:a2e:202:: with SMTP id 2-v6mr527135ljc.117.1528354429879; Wed, 06 Jun 2018 23:53:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:9e81:0:0:0:0:0 with HTTP; Wed, 6 Jun 2018 23:53:48 -0700 (PDT) From: Victor Date: Wed, 6 Jun 2018 23:53:48 -0700 Message-ID: Subject: [artemis] Dynamically add cluster connection using JMX/Jolokia? To: dev@activemq.apache.org Content-Type: multipart/alternative; boundary="000000000000e248e0056e07be0e" --000000000000e248e0056e07be0e Content-Type: text/plain; charset="UTF-8" Hi all, I'm having some fun trying to figure out the ideal way to deploy an ActiveMQ Artemis cluster in Kubernetes. I started by creating a Helm Chart (think of it as a deb/rpm package for Kubernetes) where I can just install a Symmetric cluster of 8 nodes with the following commands: helm repo add activemq-artemis https://vromero.github.io/ activemq-artemis-helm/ helm install vromero/activemq-artemis --set replicas=8 It works pretty well but I'm creating static-connectors for the cluster connection at the install time. Meaning that if later the user wants to scale up or down his cluster it won't work. I have been exploring these two ideas to overcome it: - ActiveMQ Artemis Plugin to enable auto-discover by connecting to the Artemis to the Kubernetes api - To have an external minimal agent written in Go (given that it has the best client library for k8s and it has a very small binary / memory footprint) that connects to k8s and let know Artemis from the outside which other nodes are available for the cluster. After a quick look at the first option, the one of the plugin, I decided to keep it as plan B given that a hypothetically big cluster might end up pounding too hard the Kubernetes API and especially given that the Kubernetes client would bring a not too big but neither too small number of transitive dependencies to Artemis. So off I went with the external agent to now realize that at least at a quick glance at the JMX/Jolokia API I see no method to add new cluster-connections. So my question would be: Is there any way to add externally cluster-connections to Artemis? I'm hoping that this belongs to the dev list as it is kind-of advanced if it actually belongs to user I apologise Thanks --000000000000e248e0056e07be0e--