Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-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 9586D18415 for ; Wed, 10 Jun 2015 18:16:45 +0000 (UTC) Received: (qmail 68318 invoked by uid 500); 10 Jun 2015 18:16:45 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 68263 invoked by uid 500); 10 Jun 2015 18:16:45 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 68251 invoked by uid 99); 10 Jun 2015 18:16:45 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2015 18:16:44 +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 8871AC095F for ; Wed, 10 Jun 2015 18:16:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.4 X-Spam-Level: **** X-Spam-Status: No, score=4.4 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_REPLYTO_END_DIGIT=0.25, HTML_MESSAGE=3, KAM_LIVE=1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id qtPYnHR4m2fW for ; Wed, 10 Jun 2015 18:16:36 +0000 (UTC) Received: from mail-oi0-f67.google.com (mail-oi0-f67.google.com [209.85.218.67]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 7A40D43ACE for ; Wed, 10 Jun 2015 18:16:36 +0000 (UTC) Received: by oiav1 with SMTP id v1so67343oia.0 for ; Wed, 10 Jun 2015 11:16:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=6o2L2KXVl5KCAfvXhSUmbnpsAiMe/+wiKGEqE0tBFVE=; b=Igcj65AmTQSe0UqInT4NYPUKLQG3YFUWHzFk/ipOcP1WMM4F6BoYChg7P46WAub8Qb 4MUY8ekJTffClyHhW6FunUD9+rFnmb0ISNAe3Fg95Kv+ytySK/fbutCJl/2VipVgZpXh ixop3iTsBDX52kA7Itsl8rLJ4CZ3Tv/V6ju7oo+1Yk78wwfvo6PSGed2WmB/MFCJtcNJ ZSMz3ZbniD5IBHCOLdZLtJD3uZ+5PoKh8LCnekwlhIRBQF6+1CSAk3U/v2b04NcxDv4C /5As6q1TloSzJzoXuX/qhjLNYt3pZCY/SoSNU4/L0mkh2037cpqOrXDmQqs1p2LienZ8 JMrA== X-Received: by 10.182.134.130 with SMTP id pk2mr4041052obb.4.1433960196010; Wed, 10 Jun 2015 11:16:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.38.202 with HTTP; Wed, 10 Jun 2015 11:16:15 -0700 (PDT) Reply-To: raphaelanne2@gmail.com In-Reply-To: References: From: Ayola Jayamaha Date: Wed, 10 Jun 2015 23:46:15 +0530 Message-ID: Subject: Re: [jira] [Updated] (PHOENIX-1118) Provide a tool for visualizing Phoenix tracing information To: "dev@phoenix.apache.org" Content-Type: multipart/alternative; boundary=001a11c2bb141afb3f05182de0af --001a11c2bb141afb3f05182de0af Content-Type: text/plain; charset=UTF-8 Hi James, Thanks a lot for the lengthy and descriptive reply. I am currently looking through UI components and charting libraries that can be used for the UI. I refered [1] with regard to your explaination and came up with some mock ups which I will share soon. Thanks, Nishani [1] https://phoenix.apache.org/language/#index_hint [2] https://phoenix.apache.org/faq.html#How_do_I_create_Secondary_Index_on_a_table On Tue, Jun 9, 2015 at 11:39 PM, James Taylor wrote: > Hi Nishani, > I'd recommend focusing on higher level use cases. From the user's > point of view, they're executing a query and for some reason it's > slower than they expect. How do they figure out why? > > They might first do an EXPLAIN on their query to see how Phoenix is > executing it. Which parts are run where? Are secondary indexes being > used as expected? Are filters being pushed down as expected? A better > way to visualize the explain plan might be a good thing for you to > start with. > > Second, assuming the explain plan looks good, they'll want to turn on > tracing so that they can get runtime information on which parts of > their query are taking the longest. > > Maybe more than one Phoenix table is involved - how will you display > the tracing information across multiple tables for a query that does a > join? Maybe you can punt on this first pass, and focus on single table > queries. A related use case would be a DML statement that's executed > and taking longer than expected. Let's say that the table being > updated has one or more secondary indexes that are also updating the > index tables. Seeing the entire picture of both the table writes plus > the index writes on the same graph would be great. > > For the single-table query user case, what does the distribution of > time look like across all the region servers participating in the > query? Maybe some kind of graph that shows quickly if one region > server is taking much more time than the others. Perhaps that's an > indication that the table statistics need to be re-run, as there may > be skew that's developed such that one of the threads is handling more > data than it should. Or perhaps there's an issue with that particular > region server. Was there something else going on at the same time on > that region server, like a background compaction/split process? If > that information is available in the trace table (not sure), it would > be very cool to be able to superimpose that on top of the query trace > graph. > > Another test might be to run a query over a different table and see if > the same region server shows up again as being slow. So superimposing > the query trace graphs of multiple queries might give the user some > insight. > > IMHO, this is the kind of angle you should come at this from. > > Thanks, > James > > On Mon, Jun 8, 2015 at 4:12 AM, Ayola Jayamaha > wrote: > > Hi All, > > > > Basically what type of use cases are you expecting or performing at the > > moment with regard to tracing? For example these are the use cases I'm > > planing. > > 1. Searching by parent id / trace id / description (regx search) > > 2. Grouping and ordering the tracing information by time period. > > 3. Counting the trace count per day / hour. > > 4. Comparing and distinguishing two sets of tracing. > > Thanks. > > > > > > On Mon, Jun 8, 2015 at 4:00 PM, Nishani (JIRA) wrote: > > > >> > >> [ > >> > https://issues.apache.org/jira/browse/PHOENIX-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > >> ] > >> > >> Nishani updated PHOENIX-1118: > >> ------------------------------ > >> Attachment: Screenshot of dependency tree.png > >> > >> Attaching the dependency tree on tracing. > >> Pull request can be found here. > >> https://github.com/AyolaJayamaha/TracingWebApp/pull/1 > >> > >> > Provide a tool for visualizing Phoenix tracing information > >> > ---------------------------------------------------------- > >> > > >> > Key: PHOENIX-1118 > >> > URL: > https://issues.apache.org/jira/browse/PHOENIX-1118 > >> > Project: Phoenix > >> > Issue Type: Sub-task > >> > Reporter: James Taylor > >> > Assignee: Nishani > >> > Labels: Java, SQL, Visualization, gsoc2015, mentor > >> > Attachments: MockUp1-TimeSlider.png, > MockUp2-AdvanceSearch.png, > >> MockUp3-PatternDetector.png, MockUp4-FlameGraph.png, Screenshot of > >> dependency tree.png, screenshot of tracing web app.png > >> > > >> > > >> > Currently there's no means of visualizing the trace information > provided > >> by Phoenix. We should provide some simple charting over our metrics > tables. > >> Take a look at the following JIRA for sample queries: > >> > https://issues.apache.org/jira/browse/PHOENIX-1115?focusedCommentId=14323151&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14323151 > >> > >> > >> > >> -- > >> This message was sent by Atlassian JIRA > >> (v6.3.4#6332) > >> > > > > > > > > -- > > Best Regards, > > Nishani Jayamaha > > http://ayolajayamaha.blogspot.com/ > -- Best Regards, Nishani Jayamaha http://ayolajayamaha.blogspot.com/ --001a11c2bb141afb3f05182de0af--