Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-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 DB06811D3F for ; Sun, 1 Jun 2014 05:19:22 +0000 (UTC) Received: (qmail 73505 invoked by uid 500); 1 Jun 2014 05:19:22 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 73450 invoked by uid 500); 1 Jun 2014 05:19:22 -0000 Mailing-List: contact dev-help@stratos.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.incubator.apache.org Delivered-To: mailing list dev@stratos.incubator.apache.org Received: (qmail 73443 invoked by uid 99); 1 Jun 2014 05:19:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jun 2014 05:19:22 +0000 X-ASF-Spam-Status: No, hits=-1997.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD,URIBL_BLACK 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; Sun, 01 Jun 2014 05:19:21 +0000 Received: (qmail 72788 invoked by uid 99); 1 Jun 2014 05:19:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jun 2014 05:19:01 +0000 Date: Sun, 1 Jun 2014 05:19:01 +0000 (UTC) From: "Imesh Gunaratne (JIRA)" To: dev@stratos.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (STRATOS-659) Improve Domain Mappings Functionality to Re-Write URLs in Load Balancer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STRATOS-659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14014908#comment-14014908 ] Imesh Gunaratne commented on STRATOS-659: ----------------------------------------- Implemented with following commits in master branch: bf1ee1d1ae0b0861b61babb8acca7068643d259d afc87f9ce27de6ccbc39a868f195ce053bc0d921 > Improve Domain Mappings Functionality to Re-Write URLs in Load Balancer > ----------------------------------------------------------------------- > > Key: STRATOS-659 > URL: https://issues.apache.org/jira/browse/STRATOS-659 > Project: Stratos > Issue Type: Improvement > Components: Load Balancer > Reporter: Imesh Gunaratne > Assignee: Imesh Gunaratne > Fix For: 4.1.0 > > > In current Domain Mappings implementation Stratos allows to add domain mappings to service subscriptions with following parameters: cartridgeType, subscriptionAlias, list of . > Stratos Manager sends this information to load balancers via the message broker. Load balancer keeps domainName in a hash map against its cluster, once a request is received, the cluster is fetched and request is delegated to the next available member in that cluster without touching the request path. In the member a Tomcat virtual host could be created with the appContext to map the incoming request path to actual application path. > However this design might not work with different types of services which may not be able to use Tomcat virtual hosts. More importantly URL mapping functionality needed to be implemented in each and every service. > Therefore we could overcome this problem by introducing a new functionality in load balancer to map URLs and directly delegate the incoming requests to the member applications. > Incoming request: > https://foo.org/some/file/path?someQueryParam=value > Application Path: > /tenant/foo.org/app-name/version > LB re-writes it to: > https://member-ip:port/tenant/foo.org/app-name/version/some/file/path/?someQueryParam=value -- This message was sent by Atlassian JIRA (v6.2#6252)