Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 416F2200C13 for ; Mon, 6 Feb 2017 17:14:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3FD10160B53; Mon, 6 Feb 2017 16:14:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8FE8D160B49 for ; Mon, 6 Feb 2017 17:14:09 +0100 (CET) Received: (qmail 32203 invoked by uid 500); 6 Feb 2017 16:14:07 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 32185 invoked by uid 99); 6 Feb 2017 16:14:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2017 16:14:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6B9351800A5 for ; Mon, 6 Feb 2017 16:14:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.381 X-Spam-Level: ** X-Spam-Status: No, score=2.381 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_BADIPHTTP=2, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id xvF4Ywq1VDoS for ; Mon, 6 Feb 2017 16:13:59 +0000 (UTC) Received: from mail-ot0-f170.google.com (mail-ot0-f170.google.com [74.125.82.170]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7D32E5FC06 for ; Mon, 6 Feb 2017 16:13:59 +0000 (UTC) Received: by mail-ot0-f170.google.com with SMTP id f9so65423807otd.1 for ; Mon, 06 Feb 2017 08:13:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=j24pUVZ4xJOozFdVDzMfcgZKh9srjSdXQ1YpBG4Qs6I=; b=Fq1Ga59jqYK0eZkcLMAFLVUGIXpGUL2JOslJ1+pLXUgSMz/9hl7GO2+orFhfC9st7p xH8mEzJU1IVyHVcfRqX+LkGVBJgb7lBRPw93cimNEHFKqsWMOgFKFSuQ9E0zbIxEteYb TB3hOLdUOxC5qUIY1yjDQ0cn3qBIGpj4MnR+SQcXa9L5lkOQtbZmfyFfWyDRJzd1eSAC 1riap2QxrAWkG1EASh/SrUB9zUZUf8xBtaBPIaRivzaZ5otSH46U2IfCFvp/Q9jgdcEI xiJ3N1w33NoomT9Siszf1Gz5U1des/8UbKOqw2Fdj5leWzTNyXinYUFz/4FHcecLIJkX Vr4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=j24pUVZ4xJOozFdVDzMfcgZKh9srjSdXQ1YpBG4Qs6I=; b=YzHT/JurPmYNneUUtcVuhDAgPC8MWKkZuKp1mFbsAzl8okWGwW2MjmEx5kD2KdADOB qHauLojVKgbVZ3Crd94irWuV4cwUv3BV3zXaP4bVd6Pjx5hNemoGc9M0AfxUZce8bOvR 7sGSuAA9VY2VgrSXM44ntTwTsfWLfjnceUkSIbGCKbMNN0xREzQyAGamVrG6WiunrQuO iucak60vqSUxPTYICEbFWWjuewAIV8GUGSaU9XyczH65Fcdaqzr8R8w3m4SPlv51hNzN ymdpvmWi+/duWBn7XRB5sSWZG6KJhU6vFniWxmJeD64zKp3z+EdrWqSFlF1lKs0dKFf7 ExjA== X-Gm-Message-State: AIkVDXL7wVYbxKCyabTyi9cDQFdSK7iJF41XWCApImlV4Y8fPxyBhv8n6LT9VTgBdNPFmTOtsUwVXTQOiICANw== X-Received: by 10.157.20.102 with SMTP id h93mr4985490oth.73.1486397631418; Mon, 06 Feb 2017 08:13:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.56.209 with HTTP; Mon, 6 Feb 2017 08:13:51 -0800 (PST) In-Reply-To: References: From: Luca Burgazzoli Date: Mon, 6 Feb 2017 17:13:51 +0100 Message-ID: Subject: Re: Camel endpoint cloud registration To: dev@camel.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Mon, 06 Feb 2017 16:14:10 -0000 Yeah, I will log this enhancement and yeah, this comes after the health check stuffs. --- Luca Burgazzoli On Mon, Feb 6, 2017 at 5:05 PM, Claus Ibsen wrote: > Hi Luca > > Yeah good idea, can you maybe log a JIRA about this. > > The health-check ticket is frankly a bit more important to get started > on. So I wonder if you will get time to maybe help with this, and help > lead that effort? Andrea has also posted interrest on this ticket. It > has a few nuances and also ties into your great effort with this Camel > cloud stuff. > > We can talk on this in another @dev or on the JIRA ticket for health-check. > > > > On Mon, Feb 6, 2017 at 10:50 AM, Luca Burgazzoli wrote: >> Hi, >> >> as today we have a ServiceCall EIP that makes it easy to call external >> services in a cloud environment leveraging external service registry >> such as kubernetes, consul, etcd & co so I'm thinking about adding a >> way for a route to register itself in such registries and be available >> as a service for other to consume. >> >> Something like: >> >> // programmatic config >> from("jetty:http://0.0.0.0:8001/service1") >> .serviceRegistry() >> .name("service-1") >> .host("....") >> .port(8001) >> .meta("camel.protocol", "http") >> .meta("camel.component", "jetty") >> .meta("camel.context.path", "/service1") >> .end() >> .to("direct:service-1") >> >> // Inherit from a global config and eventually override it >> from("jetty:http://0.0.0.0:8002/service2") >> .serviceRegistry("service-2") >> .configRef("service-registry-conf") >> .port(8002) >> .to("direct:service-2") >> >> // Smart auto configuration >> from("jetty:http://0.0.0.0:8003/service3") >> .serviceRegistry("service-3") >> .to("direct:service-3") >> >> Beside making camel play better in cloud environment, you can use the >> service call to connect camel based micro services with minimal >> configuration as the registration may provide some additional meta >> data that the service call can use for auto-configuration (of course >> not all the registries can do it). >> >> The future Health API/Service may then also be configured to remove >> or invalidate the service if the route is reported as not healthy. >> >> >> Make sense for you ? >> >> --- >> Luca Burgazzoli > > > > -- > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2