| By TR Jordan | Article Rating: |
|
| April 23, 2013 03:00 PM EDT | Reads: |
2,348 |
I’m excited to announce a new feature to TraceView – the Data API!
In a nutshell, the Data API exposes all of those high-level metrics you’re collecting in TraceView over REST, formatted as JSON. Now you can take that data, jam it into your own system and do whatever you need to make sure everybody in your organization sees what they need, when they need it. We’ve also wrapped our configuration API into the same place, so you can interact with all our services in one place.
If you’re itching to get to it, head on over to the docs. If you’re still not convinced, read on! Let’s take a look at what you can do with this.
Latency and Volume
Before you do anything, you need to know how your app is doing right now, and that starts with two questions. How much traffic do I have, and how fast is it? The easy way to look at this is just to plot them:
|
1
2
|
$ export API_KEY=xxx # For TraceView, tracing TraceView!$API_KEY&time_window=week" | python extract.py |
(Check out this gist for the full scripts. I’m using the wonderful matplotlib to generate these plots, by the way. I also recommend gnuplot, if you weren’t poisoned by Matlab in a previous life, like some of us.)
This is actually our backend trace-processing machinery – a RabbitMQ based system with a bunch of Python Celery workers feeding off of it. You can see the periodic change in volume, as most of our customers are based in the US and Canada.
An interesting bit about this particular data set in that there’s variation in the response times, and it seems related to the amount of traffic we get. Let’s plot those against each other, and see what that looks like:
These look pretty correlated! In an ideal world, we’d see a flat line in latency, no matter the traffic. This seems to show that we actually get a bit slower as the number of traces we process increases. This means there’s some sort of resource contention here, either CPU, memory or disk usage on one of the machines. In our case, the app page tells that story for us.
The only layer that’s actually increasing in time with volume is our Cassandra layer. This is pretty common; most of the components in this system scale horizontally, except for writes to the DB. Even with Cassandra’s stellar write performance, we still see a bit of a slowdown. Time to add more machines to the ring!
What are you going to build? Sign up for a free trial of TraceView today!
Related Articles
Published April 23, 2013 – Reads 2,348
Copyright © 2013 Ulitzer, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
Related Stories
More Stories By TR Jordan
A veteran of MIT’s Lincoln Labs, TR is a reformed physicist and full-stack hacker – for some limited definition of full stack. After a few years as Software Development Lead with Thermopylae Science and Techology, he left to join Tracelytics as its first engineer. Following Tracelytics merger with AppNeta, TR was tapped to run all of its developer and market evangelism efforts. TR still harbors a not-so-secret love for Matlab-esque graphs and half-baked statistics, as well as elegant and highly-performant code. Read more of his articles at www.appneta.com/blog or visit www.appneta.com.
- Five Technology Trends That Require Scrutiny
- FreshBooks Launches Android App for Small Business Accounting
- How to Protect What Matters Most Online: Your Logins and Passwords
- Nokia Lumia 720 – One Month Usage Review
- Update Your CTOvision Newsletter Choices: Get the info you need when you want it
- Freelancer.com unveils the top 50 fastest growing online jobs for Q2 2013
- Introducing Fire OS 3.0 “Mojito”
- Big Data Spending to Reach $114 Billion in 2018
- Mobile Marketing History and Infograph
- Cloud Player: Robert Scoble, Startup Liaison Officer Rackspace Part 1
- SGN Launches Aggressive Hiring Program to Assemble ‘All Star Team’
- New Startup Android PC Sync Ships Cloud-free Android Sync for Microsoft Outlook with DROID ULTRA, Moto X, Galaxy S4, and Nexus 7 Tablet
- Five Technology Trends That Require Scrutiny
- FreshBooks Launches Android App for Small Business Accounting
- How to Protect What Matters Most Online: Your Logins and Passwords
- USDA Plows New Ground, Becomes Cloud Service Provider
- Samsung Galaxy S4 vs Apple iPhone 5
- Nokia Lumia 720 – One Month Usage Review
- Copytalk+ Smartphone App Available Now
- Android Everywhere – A Modern Enterprise 2.0 Strategy Built on Google Enterprise
- Update Your CTOvision Newsletter Choices: Get the info you need when you want it
- Freelancer.com unveils the top 50 fastest growing online jobs for Q2 2013
- Introducing Fire OS 3.0 “Mojito”
- Big Data Spending to Reach $114 Billion in 2018
- Dolphin Announces Open API With Over 50 Add-ons Including Dropbox and Wikipedia
- Why Microsoft Loves Google's Android
- Android: Who Hates Google Over the Phone?
- Twelve New Programming Languages: Is Cloud Responsible?
- Google's Android Threatens To Fork Java
- Will Google's Android Sink or Swim?
- Google Searching for Java Innovators
- Steve Maryka to Present at "iPhone Developer Summit"
- Google Puts $10m Bounty on Android Development
- Why Microsoft Loves Google Android, Take 2
- Cisco Unveils Visual Collaboration Solutions in the Post-PC Era, Extending the Reach of TelePresence With New Mobile-to-Immersive Offerings
- Constructing Services with SOA & Open Source Java


















