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 E223C200BD4 for ; Fri, 16 Dec 2016 22:59:25 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E0CBF160B24; Fri, 16 Dec 2016 21:59:25 +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 357BE160B10 for ; Fri, 16 Dec 2016 22:59:25 +0100 (CET) Received: (qmail 15235 invoked by uid 500); 16 Dec 2016 21:59:24 -0000 Mailing-List: contact user-help@predictionio.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@predictionio.incubator.apache.org Delivered-To: mailing list user@predictionio.incubator.apache.org Received: (qmail 15225 invoked by uid 99); 16 Dec 2016 21:59:24 -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; Fri, 16 Dec 2016 21:59:24 +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 CA7E5C1934 for ; Fri, 16 Dec 2016 21:59:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=occamsmachete-com.20150623.gappssmtp.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 VeIGjb9ztGNI for ; Fri, 16 Dec 2016 21:59:23 +0000 (UTC) Received: from mail-pg0-f49.google.com (mail-pg0-f49.google.com [74.125.83.49]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 47B605F474 for ; Fri, 16 Dec 2016 21:59:22 +0000 (UTC) Received: by mail-pg0-f49.google.com with SMTP id a1so13402975pgf.1 for ; Fri, 16 Dec 2016 13:59:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=occamsmachete-com.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=i9c/u7PC3E7g5Jxie5eQg8eRBsRAzR80jqJ3kDh6GUo=; b=zp+x0Mi34W6LxAMPIDOlnfaPmhWpcUAwiO9DDUF/KZ3KOHgMqvN4UA6Dt90AnsiH1E 8Fgo/21NSR1jT8fB4+M44St56a3g0YVDUA3AH/ciSHgtlo2YBTPDcGk8A+c4HRcDClzs IFFnQIQ+F2pjN53DAol4wOWQI0aYvCP/IaZ/0/N5Zg4Gt84j+VRHzU2Fpo50sqCUMeqv RkyO10ns826q+/PE7aOSwdmz9SG1e53NO14o/2J7GAuI4HOLyNi1wpeeFD3BcJQb2O77 VjolyAX4cDDPhCDWizy9nvIQYPtVVHeNUuEA8BZefpgzrnTR1fluk2gHOP1mlBjQ6ded 3jFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=i9c/u7PC3E7g5Jxie5eQg8eRBsRAzR80jqJ3kDh6GUo=; b=SYRTZUeFEJaWeb8AN3hC/sbbO5lfSlZvxftfYDuicjHEwe0Ll+6kuE00qQEATqyem8 OeMsJhL6Ry/1BMnH5wU7G2S8x5kC26Y+TAUg/HpR0yJPRcG/zm4SMKiyTEeaeUXp13Td b4ocqJBqNVLKFrQdZqvE0cpzq/ltGjrwm/9upNguRp25VkRZngmP8hhwnMuxuoXTD5si CMEHcnvqER3evzodkGcRsjNVsuxVpNO7/2tNQeqmfM5LeXduobz/D9igEI4diMCsy5vQ +pwyYntMbaqqxDIO1ujLd6DM3JGggGj0Iz24lL5qA9pl144wqadnKLnpHRUWHYNJKJr/ sVCA== X-Gm-Message-State: AKaTC01Z7aUXvjR70PNU1wqeNHk/le0nfk8pk5Aic3EBE8RvrJMZSEIW++ZJEqo5Q2QhPg== X-Received: by 10.99.64.133 with SMTP id n127mr9610070pga.104.1481925559226; Fri, 16 Dec 2016 13:59:19 -0800 (PST) Received: from [192.168.0.8] (c-24-18-213-211.hsd1.wa.comcast.net. [24.18.213.211]) by smtp.gmail.com with ESMTPSA id q2sm14113955pga.8.2016.12.16.13.59.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Dec 2016 13:59:18 -0800 (PST) From: Pat Ferrel Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: A/B test on recommendation engine Date: Fri, 16 Dec 2016 13:59:17 -0800 References: To: user@predictionio.incubator.apache.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3259) archived-at: Fri, 16 Dec 2016 21:59:26 -0000 Amy asked: "is there any way to modify the http response for query? (So = that I can track the query result)" What do you want to modify? You know which one you queried from the port = number. The longer answer is that to modify the result or the response = body you will need to modify the template you are using. On Dec 16, 2016, at 7:07 AM, Lin Amy wrote: Hello everyone, I want to do some A/B test on the algorithm, and have found the = following method: Run two engines in parallel (with different port of course), with the = same appid. However, I want to use some load balance to redirect the traffic from = clients to the engines, and also tracking the recommendation algorithm = (in order to analyse the result). And here the question comes: is there = any way to modify the http response for query? (So that I can track the = query result) Thank you for any advice! Best regards, Amy