You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@htrace.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2014/12/05 23:25:13 UTC

[jira] [Commented] (HTRACE-9) Add standalone htraced server

    [ https://issues.apache.org/jira/browse/HTRACE-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14236220#comment-14236220 ] 

Colin Patrick McCabe commented on HTRACE-9:
-------------------------------------------

This patch adds a standalone htraced server.

Basically the idea is that you have:
{code}
Java Client ===> HTracedSpanReceiver ==> htraced <=== Javascript web UI
                                                 <=== htrace command-line utility
{code}

What is implemented in this patch:
* golang-based server which stores trace spans in leveldb (so that we are not bounded by the size of memory)
* REST server which can handle "localhost:9095/serverInfo", "localhost:9095/findSid?sid=444", etc.
* golang-based command-line client which can talk to the REST server

Still to be implemented:
* Connect our Javascript web UI to this (basically, have this server serve up the Javascript)
* Write the Java {{HTracedSpanReceiver}} which communicates with htraced.

There are a few nice things about the standalone server.  It builds very, very fast (< 1 sec) which is nice if we want to iterate on the JavaScript interface.  It has no dependencies on an external project, so it makes HTrace "complete"-- i.e. it becomes a tool you can use even without Zipkin, HBase, etc. installed.  It is very useful for testing and for small clusters because standing up htraced is just a matter of running {{./bin/htraced}}, whereas setting up an HBase cluster is much more difficult.

I think that we probably will want an hbase span sink for really big clusters (think thousands of nodes), but for just hacking on the web UI, or getting new people into the project, a standalone server is awesome.  If we have a standardized JSON interface that the web ui can access, we can share it across both sinks.

> Add standalone htraced server
> -----------------------------
>
>                 Key: HTRACE-9
>                 URL: https://issues.apache.org/jira/browse/HTRACE-9
>             Project: HTrace
>          Issue Type: Improvement
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>         Attachments: HTRACE-9.001.patch
>
>
> Add a standalone htraced server which can accept trace spans and serve a web GUI.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)