Kyle Brandt Recent content on Kyle Brandt Hugo -- Copyright (c) 2015, Kyle Brandt; all rights reserved. Wed, 16 Mar 2016 16:29:41 -0400 False Dichotomies of Huge Dickensians Wed, 16 Mar 2016 16:29:41 -0400 <p>I&rsquo;m not talking about the author. Young, and some not so young engineers sometimes have some positive associations with being disrespectful, dismissive, or otherwise a <strong>Huge Dickensian</strong>.</p> <div class="embed video-player center" style="width: 600px"> <iframe class="youtube-player" type="text/html" src="" allowfullscreen frameborder="0"> </iframe> </div> <p>This is shame, because it hurts their careers and makes people around them unhappy. So I&rsquo;d like to dispel some ideas I&rsquo;ve held or seen other people hold, that are just not true.</p> <h1 class="small-caps"> People will think I'm Smarter if I'm a Jackass to Others</h1> <p>In both fiction and reality there are geniuses that have a reputation for being rude to others. To name a few:</p> <ul> <li>Sheldon Cooper (TV: Big Bang Theory)</li> <li>Dr House (TV)</li> <li>Linus Torvalds (At least at times)</li> </ul> <p>They are role models that create stereotypes, and ones that many of us who were into computers growing up can relate to. So based on that stereotype it seems to follow that &ldquo;I&rsquo;m smart, and maybe if I act like these people, people will think I&rsquo;m a genius&rdquo;. It does not. Likely the only people you will fool are the ones that don&rsquo;t matter. Instead, people will think you are just insecure and only want to work with you if they have to.</p> <h1 class="small-caps">I'd rather hire someone smart that is a jerk than someone nice but useless</h1> <p>This idea follows from the above stereotype. If you ask people this question you will get different answers and hear some good stories. If faced with that dilemma I would probably have to say &ldquo;It depends.&rdquo; But generally it is a false dilemma. The best places to work are picky, and will hire people who are not intolerable and are also smart. In other words, they can get people with good traditional intelligence and emotional intelligence.</p> <p>There are of course exceptions, but generally these are extreme and if you think you are one of those exceptions, you are probably wrong.</p> <p><h1 class="small-caps">I want to be direct with people, and that often means I have to be mean</h1> This one is understandable, as telling hard truths to people without being mean is difficult. However, people are often aware of you motivation when doing this. Generally one wants to change some behavior that is making their lives difficult. But in addition to that there can be a desire to help that person and see them grow, or put them down to make yourself feel better. If it is the latter they will know.</p> <p>You don&rsquo;t have to be bubbly and outgoing. People like Spock, but that is because they know he isn&rsquo;t mean. He doesn&rsquo;t take pleasure in seeing other people fail and is analytical. Another way to think about this is the difference between being <a href="">assertive vs aggressive</a>.</p> <p><h1 class="small-caps">If you are smart I wouldn&rsquo;t have to explain myself</h1> I think the opposite is true. Smart people will think of multiple possible scenarios based on vague communication. People also won&rsquo;t think you are too smart to explain yourself, they will just think you are not articulate or haven&rsquo;t actually thought out your ideas and are just relying on heuristics.</p> <p>All of this doesn&rsquo;t apply to people that actually have disorders related to social interaction, but rather reflect some naive thoughts that I bet most of us held at one point. If these thoughts ring true, there are some simple cheap books that can get you on the right path such as &ldquo;<a href="">How to Win Friends and Influence People</a>&rdquo; and &ldquo;<a href="">Nonviolent Communication</a>&rdquo;. You&rsquo;re smart, right? So it won&rsquo;t take much time to learn to be nice and it will help your career.</p> Conflating The Roles of Alerting and Dashboards Fri, 04 Mar 2016 08:36:42 -0500 <p>Monitoring dashboards and alerts have distinct roles in monitoring. Problems arise when people fail to form a contradistinction between them. Both are communication tools, but communicate differently. Monitoring dashboards communicate the current status of system&rsquo;s and their attributes, whereas alerts communicate abnormal status <em>that requires human intervention</em>. Currently at Stack Overflow, we use <a href="">Grafana</a> and <a href="">Opserver</a> as dashboards and <a href="">Bosun</a> for alerting. Bosun has a dashboard that shows the current alerts, but when I refer to dashboards I mean things like Grafana and Opserver.</p> <h1 id="mistake-1-using-alerts-as-status-dashboards:e8c548cef83497a5beb46d7f55e2761d">Mistake 1: Using Alerts as Status Dashboards</h1> <p>When alerts are used as if they were status dashboards, it leads to alert desensitization or <a href="">Alarm Fatigue</a>. If you have alerts that come in that are just informational &ndash; it is human nature to start to ignore them due to <a href="">Sensory Gating</a> (and anecdotally, it is not uncommon for people to literally filter them with something like Gmail when alerts are in email). Even if discipline is good, people sometimes won&rsquo;t even see them anymore since our brains naturally filter out repeated information.</p> <p>The underlying philosophy is that too many alerts are just as bad some &ldquo;missed alerts&rdquo;. This is expressed well in <a href="">Owning Attention: Considerations for Alert Design</a>:</p> <p><img src="" style="width: 50%;" alt="Alert Noise Diagram"></p> <h2 id="example-within-this-philosophy:e8c548cef83497a5beb46d7f55e2761d">Example within this Philosophy</h2> <p>As an example, take a 30 node cluster where it is common for a couple of nodes to be down at a time. The number of nodes that are out, and which nodes they are out should be in a dashboard. However, that shouldn&rsquo;t generate alerts because it is normal behavior. Rather, you should have a dashboard that shows all this information, and only alert where the behavior deviates from its normal pattern and requires human intervention. Ideally the alert notification has most of the contextual information you would see in the status dashboard, but in practice web dashboards provide more capability than most notification mediums like email can. Alerting strategies in this case include the following:</p> <ul> <li>Cluster vs host based alerts: Notifications can be sent per cluster or per node in the cluster (I call this &ldquo;scope&rdquo;). Both scopes are valid, if your nodes tend to fail in groups, it is generally better for a broader scope (cluster based) so there are less notifications that can lead to alarm fatigue.</li> <li>Maintenance aware alerts: If nodes normally only go out during maintenance, alerts should only trigger when nodes are not in maintenance (and maybe if too many nodes are in maintenance). Maintenance can be identified by tracking maintenance as a metric, or by notifying the monitoring system of maintenance.</li> <li>Number or percentage of down nodes: You can alert only if N or more nodes down, a certain percentage of nodes in the cluster are down, and/or the number of down nodes is abnormal compared to history.</li> <li>Abnormal host downtime: If nodes normally are only down for certain periods of time, you could alert on the node or cluster if a node has been down for longer than the expected duration.</li> </ul> <p>What combination of the above to use would depend on your specific environment. It is also possible that you <em>do</em> want to alert when a node is down in the cluster at all. The right balance is when you actually react to almost all the alerts. If you are getting alerts that you don&rsquo;t do anything about, they are informational and are more appropriate for dashboards.</p> <h1 id="mistake-2-relying-on-alerting-or-dashboards-at-the-exclusion-of-the-other:e8c548cef83497a5beb46d7f55e2761d">Mistake 2: Relying on Alerting or Dashboards at the Exclusion of the Other</h1> <p>The downfall when depending on dashboards to show you abnormal status is that it requires that someone is looking at, and interpreting the dashboard correctly. If you have the human resources for this it can make sense in certain situations, but as a rule of thumb if you notice something that needed human action on a dashboard and didn&rsquo;t get an alert for it than an alert needs to be created.</p> <p>Dashboards are vital to monitoring and one shouldn&rsquo;t depend on solely on alerts:</p> <ul> <li>Visualizations provide a lot of condensed information about systems rapidly</li> <li>Dashboards help build operator&rsquo;s mental models of systems. By watching normal behavior and internalizing, operators understand the system better and are more prepared for unexpected emergency situations.</li> <li>It is faster to create dashboards that show a lot of information then it is create and tune alerts that are low in noise.</li> <li>Humans are very good at picking up anomalies visually, doing this with alerting code is more difficult. Dashboards can help you discover alerts that are missing.</li> </ul> <p>Status dashboards and alerting are essential companions to each other in monitoring, but they need to be used correctly, and when they are treated as one-to-one mappings of each other in purpose you end up limiting both your dashboarding and alerting capabilities.</p> Stack Overflow's Bosun Architecture Tue, 01 Mar 2016 14:49:12 -0500 <p>Bosun is a significant piece of our monitoring infrastructure at Stack Overflow. In forums such as <a href="">Bosun&rsquo;s Slack Chat Room</a>, we are frequently asked to describe how Bosun is set up in our environment.. This is a detailed post about our architecture surrounding Bosun. This is not the only way to set things up and may not always be the best way either &ndash; but this is our current setup.</p> <h2 id="the-pieces:7bc97b814cc5ce0a4508e0dd2bd2e58d">The Pieces</h2> <p>There are a lot of components we use with Bosun, but they all serve their purposes in our monitoring infrastructure. The following table outlines them.</p> <table> <tr> <td rowspan=4><a href="">Bosun</a></td> <td rowspan=4>Alerting System</td> <td>Expression language for evaluating time series from OpenTSDB, Graphite, Elastic, and InfluxDB</td> </tr> <tr> <td>Templates for rich notifications: HTML, Graphs, Tables, CSS-inlining</td> </tr> <tr> <td>Web interface for viewing alerts, writing expressions, graphing, creating alerts and templates, and testing alerts over history.</td> </tr> <tr> <td>A store for metric metadata and string data about tags (for example, host IPs, Serial numbers, etc)</td> </tr> <tr> <td rowspan=2><a href="">scollector</a></td> <td rowspan=2>Collection Agent</td> <td>Runs on Windows and Linux. Polls local OS and applications via APIs; also polls external services via SNMP, ICMP, etc.</td> </tr> <tr> <td>With no configuration, monitors anything it auto-discovers (IIS, Redis, Elastic, Etc); configuration rarely needed.</td> </tr> <tr> <td><a href="">BosunReporter.NET</a></td> <td>App Metrics</td> <td>Sends application metrics to bosun.</td> </tr> <tr> <td rowspan=2><a href="">OpenTSDB</a></td> <td rowspan=2>Time Series Database Daemon</td> <td>Takes time series data and stores it in HBase</td> </tr> <tr> <td>Time series are tagged, so it is a multi-dimensional time series database</td> </tr> <tr> <td rowspan=2><a href="">Opserver</a></td> <td rowspan=2>Monitoring dashboard</td> <td>Pulls from SolarWinds Orion or Bosun</td> </tr> <tr> <td>Also includes indepth independent monitoring and control of Redis, SQL Server, HAProxy, and Elastic</td> </tr> <tr> <td><a href="">Grafana</a></td> <td>User Dashboards</td> <td>Uses the [Grafana Bosun plugin]( to create graphs and tables via Bosun expressions</td> </tr> <tr> <td>TPS</td> <td>Parses Web Logs</td> <td>Sends raw logs to SQL and summaries in time series format to Bosun.</td> </tr> <tr> <td rowspan=2><a href="">tsdbrelay</a></td> <td rowspan=2>Relay Time Series and Meta Data</td> <td>Cross replicates time series and meta data across data centers</td> </tr> <tr> <td>Creates denormalized OpenTSDB metrics for faster querying speed</td> </tr> <tr> <td rowspan=3><a href="">HBase</a></td> <td rowspan=3>Where OpenTSDB Stores Data</td> <td><a href="">Hadoop</a>: The distributed filed system (HDFS), MapReduce framework, and Cluster Management (Zookeeper).</td> </tr> <tr> <td><a href="">HBase</a>: A clone of Google's Bigtable runs on top of Hadoop</td> </tr> <tr> <td><a href="">Cloudera Manager</a>: What we use to manage HBase</td> </tr> <tr> <td><a href="">HAProxy</a></td> <td>Load Balancer Used at Stack</td> <td>We use it in front of Bosun, OpenTSDB daemons, and tsdbrelay</td> </tr> <tr> <td><a href="">Redis</a></td> <td>In-memory Store</td> <td>*Optionally* used by Bosun to store state, metadata, metric indexes, etc. If Redis is not used, a built-in implementation in Go called LedisDB is used</td> </tr> <tr> <td><a href="">Elastic</a></td> <td>Document Searching</td> <td>Where we send system logs. Can be queried with Bosun expressions. The Bosun Grafana plugin can use this method to graph time series info about the logs as well.</td> </tr> </table> <h3 id="metric-and-query-flow:7bc97b814cc5ce0a4508e0dd2bd2e58d">Metric and Query Flow</h3> <p>Metrics are collected many ways:</p> <ul> <li>Our homegrown applications calculate their own metrics and send them to Bosun. C# programs use <a href="">BosunReporter.NET</a> and Go programs use the <a href="">Go collect package</a>.</li> <li>scollector gathers stats from the OS, services it auto-discovers.</li> <li>Network equipment and other devices must be polled from a third-party machine since they can not run scollector. We designate 2 hosts to run scollector with polling mode enabled. They collect data via SNMP (network devices), ICMP pings, and can be expanded via plug-ins.</li> </ul> <p>No matter how data is collected, it is not send it directly to Bosun. They send to tsdbrelays which have two purposes:</p> <ul> <li>They relay the data to two different bosun clusters. (more on that later)</li> <li>They denormalize certain datapoints.</li> </ul> <p>They actually do not send directly to tsdbrelay. We front-end tsdbrelay through a load balancer (HAProxy) so that we can scale horizontally.</p> <p>We also front-end the Bosun service itself for the same reason. One Bosun server is in read-only mode, and flipping between the two requires us to sync the state and take the other bosun out of read only mode. OpenTSDB performance is improved if all write requests go to the same node and our HAProxy setup allows us to funnel all write requests to a single node when all nodes are up.</p> <p>Many different systems query the time series database. We call this the &ldquo;query flow&rdquo;:</p> <ul> <li>Grafana: Queries OpenTSDB using Bosun expressions via <code>/api/expr</code>. It can also query Elastic directly, as well as query Elastic via: Grafana -&gt; Bosun -&gt; Elastic.</li> <li>Opserver: Queries Bosun&rsquo;s <code>/api/host</code> endpoint and also queries OpenTSDB directly.</li> <li>Bosun itself: when running alerts, or users interact with the UI, it queries OpenTSDB or Elastic (if it exists)</li> </ul> <p><img src="" alt="Metric and Query Flow Diagram" /></p> <h2 id="our-opentsdb-and-hbase-setup:7bc97b814cc5ce0a4508e0dd2bd2e58d">Our OpenTSDB and HBase Setup</h2> <p>In our main datacenter in NY to we have two HBase clusters. One is a three node cluster running on NY-TSDB0{1,2,3}. The other is a local replica running on NY-BOSUN01. The local replica is for backups (See how we Backup below).</p> <p>In our secondary datacenter (named &ldquo;CO&rdquo;) we have a three node cluster that is a mirror setup of the NY-TSDB cluster. The HBase clusters don&rsquo;t replicate across datacenters, rather tsdbrelay relays the datapoints to each independent data store.</p> <p>We use a HDFS replication factor of 3 in the two main HBase clusters. The HBase replica is currently a single machine, so it has no HDFS replication.</p> <p><img src="" alt="HBase Diagram" /> We use Cloudera Manager to manage our OpenTSDB clusters. We have found that HBase <em>can be</em> stable, but it is difficult for a shop that doesn&rsquo;t happen to use it anywhere else.</p> <h3 id="the-numbers:7bc97b814cc5ce0a4508e0dd2bd2e58d">The Numbers</h3> <ul> <li>3.7 Billion datapoints a day (43,000 Datapoints a second) per cluster</li> <li>~8 Gigabytes a day of HDFS unreplicated growth per cluster (24GB replicated)</li> <li>Currently ~ 7TB of replicated storage consumed</li> </ul> <h3 id="opentsdb-appends-vs-compaction:7bc97b814cc5ce0a4508e0dd2bd2e58d">OpenTSDB Appends vs Compaction</h3> <p>HBase was very unstable when we first started using it in 2015. The main thing that improved our stability was to switch to OpenTSDB&rsquo;s &ldquo;appends model&rdquo; instead of the &ldquo;hourly compactions model&rdquo;. (Note: These are unrelated to <em>HBase compactions</em>).</p> <p>OpenTSDB stores time series as metric+tags in hourly rows. By storing them as per-hour, OpenTSDB only needs to store the delta (the offset from the base hour) for each datapoint. This is more space-efficient.</p> <p>In the appends model, storing new datapoints only requires appending to the row. However this requires HBase to read the existing data block, then write it out again with the new datapoint appended. This generates a lot of network traffic.</p> <p>In the compaction model, it writes the data in a less efficient form but one that requires less network bandwidth. Once each hour it then rewrites the data in the more compact, delta, format. As a result the network activity is reduced to an hourly burst instead of constant reading and rewriting.</p> <p>In this graph you can see the Append Model&rsquo;s network traffic load versus Hourly Compaction&rsquo;s greatly reduced network load.</p> <p><img src="" alt="Appends vs Compaction Graphs" /></p> <p>This network traffic was unexpectedly huge considering that our input into OpenTSDB (gzip compressed HTTP JSON) is on average 4 Mbit/sec. Appends can be seen in the hourly seasonality of the above graph. As the row grows over the hour, so do the size of the rows being re-written and and replicated across HDFS and HBase replication.</p> <h3 id="zookeeper:7bc97b814cc5ce0a4508e0dd2bd2e58d">Zookeeper</h3> <p>We found that for stability we have had to greatly increase the timeouts around zookeeper:</p> <p>Zookeeper:</p> <pre><code>tickTime: 30000 maxSessionTimeout: 600000 </code></pre> <p>HBase:</p> <pre><code>zookeeper.session.timeout: 600000 </code></pre> <p>With low zookeeper timeouts, if operations took a long time or spent a long time in garbage collection, then HBase servers would eject themselves taking the cluster down.</p> <h3 id="denormalization-query-speed-and-last:7bc97b814cc5ce0a4508e0dd2bd2e58d">Denormalization, Query Speed, and Last</h3> <p>HBase only has one index. OpenTSDB is optimized around the metric. So for example, querying all the metrics about a host (cpu, mem, etc) is slower than a query against a single metric for all hosts. The <a href="">HBase schema for OpenTSDB reflects this</a>:</p> <pre><code>00000150E22700000001000001 '----''------''----''----' metric time tagk tagv </code></pre> <p>Since the metric and time fields are the start of the key, and the key is the only thing indexed, the more tags you have on a metric, the more rows that have to be scanned to find your particular host. This reduces query speed.</p> <p>However, host based views are common. In this schema, they have to multiple metrics, and if those metrics have the <code>host=something</code> tagset, the query gets slower as you add more hosts. Combine that with the number of rows that need to be scanned for longer durations and the queries become untenable.</p> <p>As an Example, <code>os.cpu</code> has only one tag key host, and about 500 possible values in our environment. To query one year of data (downsampled) to a single host in this metric takes about 20 seconds. If you add more tags it only gets worse (i.e. which has host, interface, and direction.</p> <p>We work around this query speed issue to generate views in two ways:</p> <ol> <li>Redis stores the last value (the last two for counters) for all series. When generating these views, we can get current values for anything nearly instantly. This data is used in Boson&rsquo;s <code>/api/host</code> endpoints and can also be queried directly at <code>/api/last</code></li> <li>Denormalize the metrics</li> </ol> <p>To denormalize metrics we put the host name in the metric, and only give it a single tag key / value pair (at least one tag key with a value is required). We use the following argument to tsdbrelay to do this:</p> <pre><code>-denormalize=os.cpu__host,os.mem.used__host,,,,, </code></pre> <p>This results in a metric like <code>__ny-web01.os.cpu</code>. A year&rsquo;s worth of data (also downsampled) is queried in ~100 milliseconds as compared to 20 seconds for the normalized metric.</p> <h3 id="hbase-replication:7bc97b814cc5ce0a4508e0dd2bd2e58d">HBase Replication</h3> <p>We have struggled some with HBase replication. The secondary cluster has had to be rebuilt when we found corruption, and also when we upgraded to SSDs. With our most recent case of replication breaking we found that <a href="">force splitting</a> some of the unbalanced regions on the secondary cluster seems to have fixed in (You can see the unbalance in size via the HBase Web GUI).</p> <p>When replication breaks, the logs grow rapidly, and drain at a much slower rate then they grow:</p> <p><img src="" alt="HBase Replication and Space Used" /></p> <p>Since replication backing up uses so much disk space, we have to factor in head room for this when sizing the HBase clusters.</p> <h3 id="hardware:7bc97b814cc5ce0a4508e0dd2bd2e58d">Hardware</h3> <p>NY-TSDB0{1,2,3} (Per Sever)</p> <table> <thead> <tr> <th>Area</th> <th>Details</th> <th>Utilization</th> </tr> </thead> <tr> <td>Model</td> <td>Dell R620</td> <td></td> </tr> <tr> <td>CPU</td> <td>2x Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz</td> <td>~15%</td> </tr> <tr> <td>Ram</td> <td>128 GB Ram (8x 16GB Chips)</td> <td>34 GB RSS, Rest Used in File Cache</td> </tr> <tr> <td>Disk</td> <td>2 Spinny OS Disks, 8x SSDs in JBOD (INTEL SSDSC2BB480G4)</td> <td>Avg Read: 1.6 MByte/sec, Avg Write: 57 MByte/sec</td> </tr> <tr> <td>Network</td> <td>Redundant 10Gigabit</td> <td> ~500 MBit/sec</td> </tr> </table> <p>NY-BOSUN02 (Also HBase Replica, see previous diagram)</p> <table> <thead> <tr> <th>Area</th> <th>Details</th> <th>Utilization</th> </tr> </thead> <tr> <td>Model</td> <td>Dell R620</td> <td></td> </tr> <tr> <td>CPU</td> <td>2x Intel(R) Xeon(R) CPU E5-2643 v2 @ 3.50GHz</td> <td>~15%</td> </tr> <tr> <td>Ram</td> <td>64 GB Ram (4x 16GB Chips)</td> <td>20 GB RSS, Rest Used in File Cache</td> </tr> <tr> <td>Disk</td> <td>2 Spinny OS Disks, 8x SSDs in JBOD (INTEL SSDSC2BB480G4)</td> <td>Avg Read: 1.1 MByte/sec, Avg Write: 33 MByte/sec</td> </tr> <tr> <td>Network</td> <td>Redundant 10Gigabit</td> <td> ~300 MBit/sec</td> </tr> </table> <h3 id="reference-configs:7bc97b814cc5ce0a4508e0dd2bd2e58d">Reference Configs</h3> <ul> <li><a href="">opentsdb.conf</a></li> <li><a href="">tsdbrelay CLI options (In NY)</a></li> <li><a href="">haproxy config (In NY)</a></li> <li><a href="">Cloudera HBase Non-Defaults</a></li> <li><a href="">Cloudera HDFS Non-Defaults</a></li> <li><a href="">Cloudera Zookeeper Non-Defaults</a></li> </ul> <h2 id="how-we-deploy:7bc97b814cc5ce0a4508e0dd2bd2e58d">How we deploy</h2> <p>The CI framework we use is called <a href="">TeamCity</a>. We use it to build packages for Deploy scollector, tsdbrelay, to directly deploy Bosun binaries and configurations into production. TeamCity calls each configuration a &ldquo;build&rdquo;.</p> <ul> <li>scollector and tsdbrelay (Linux): We make RPM packages using <a href="">fpm</a> combined with <a href="">this script</a> to easily wrap binaries into RPMs. The script reads <code>mk_rpm_fpmdir.*.txt</code> to manufacture input to FPM.</li> <li>scollector (Windows): A TeamCity build produces a binary and does the right thing so that it is distributed to our Windows hosts.</li> <li>Bosun is deployed directly by TeamCity. We do this because we tend to build pretty often and use branches, so the lag of RPM would be annoying to our developers.</li> <li>Our Bosun configuration is kept in a Git repository. TeamCity triggers on changes to this repo, runs tests, pushes the new config to production, then restarts Bosun. (Bosun currently doesn&rsquo;t have live configuration reloading).</li> </ul> <h2 id="how-we-backup:7bc97b814cc5ce0a4508e0dd2bd2e58d">How we Backup</h2> <p>The are three things in and around Bosun that are Backed up:</p> <ol> <li>Bosun&rsquo;s Configuration File</li> <li>Bosun&rsquo;s State and Metadata Storage</li> <li>The Time Series Data</li> </ol> <p>The configuration file is stored in Git which is backed up independently (we use <a href="">Gitlab</a> internally). We now use redis to store bosun&rsquo;s state and metadata. Bosun will use <a href="">ledis</a> if no redis server is provided, but we haven&rsquo;t explored how this would be backed up as it is there for small test setups. In redis we use both RDB and AOF for <a href="">redis persistence</a>:</p> <ul> <li>RDB allows us to have snapshots of the datastore. These can be restored easily (even for local development).</li> <li>AOF allows us persistence across restarts of redis.</li> </ul> <p>Backing up the time series database, in our case OpenTSDB, is one of our pain points. HBase is designed to scale to petabytes. With that much data, a standalone full backup becomes impractical. So HBase isn&rsquo;t really designed for these sort of backups (See <a href="">Approaches to Backup and Disaster Recovery in Hbase</a>. This is a shame for us, as we don&rsquo;t have petabytes of data in another system standalone backups might be an option. Therefore we do the following in place of traditional standalone backups:</p> <ol> <li>Datapoint level replication: tsdbrelay sends all datapoints to its local and remote cluster (one in NY, one in CO). Although the two HBase clusters are not exactly consistent with each other (different IDs in the database, missing data when a datacenter is out) they are &ldquo;good enough&rdquo; copies of each other.</li> <li>Restore: Rotating hourly HBase snaphosts</li> <li>Backup cluster in the main datacenter: An HBase replica (This is distinct from HDFS replication - that is within a cluster, whereas HBase replication replicates to another cluster).</li> </ol> <p>Without standalone full backups we are frankly a bit afraid of HBase, but we haven&rsquo;t had any significant data losses since we started using it.</p> <h2 id="possible-future-changes:7bc97b814cc5ce0a4508e0dd2bd2e58d">Possible Future Changes</h2> <p>Our largest pain point is using OpenTSDB and HBase. Since we don&rsquo;t use HBase anywhere else, the administrative overhead eats up a lot of time. Also, OpenTSDB has had some long standing issues that have been difficult, for example <a href="!topic/opentsdb/KdgGNK0Y9HQ">counters don&rsquo;t downsample correctly</a> and our data is in counter format when possible so we don&rsquo;t lose resolution. That being said we still feel for us it is currently our best option. We will be expanding our two main clusters with two more nodes each (running tsdbrelay, opentsdb, and region servers) to increase space.</p> <p>We are very interested in <a href="">InfluxDB</a>. It is written in Go which we are familiar with and has a rapid devlopment cycle. Bosun has it as a backend, and scollector can send to it since it has a OpenTSDB api style endpoint. However, we are waiting for InfluxBD to have a more stable clustering story before we could consider switching to it in production.</p> Other writing Sun, 21 Feb 2016 14:53:00 -0500 <h1 id="server-fault-blog:a65cffa9c73225e9b2db0699034df561">Server Fault Blog</h1> <ul> <li><a href="">The Importance of Observability</a> Nov 2013</li> <li><a href="">OODA For Sysadmins</a> Jul 2012</li> <li><a href="">Escaping the Cycle of Technical Debt</a> Feb 2012</li> <li><a href="">Per Second Measurements Don&rsquo;t Cut it</a> Jun 2011</li> <li><a href="">The Limits of Cost-Benefit Analysis in IT</a> May 2011</li> <li><a href="">Views of the Same Problem: Network Admin, DBA, and Developer</a> March 2011</li> <li><a href="">Know your RAM</a> Jan 2011</li> <li><a href="">Serverfault Trees</a> Jun 2010</li> </ul> talks Sun, 21 Feb 2016 14:06:24 -0500 <h1 id="presentations:49cbbfcf1124f111a37fcbac0faeb48e">Presentations</h1> <ul> <li><a href="">Monitorama 2015 (PDX): Bosun Workshop</a> This presentation has screencasts of building an alert starting about 15 minutes in. The first 15 minutes explain some of the design principles behind Bosun. After the first screen cast of building an alert there are also some example alerts.</li> </ul> <p> <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;"> <iframe src="//" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </br></p> <ul> <li><p><a href="">LISA 2015: Precise Alerting with Bosun</a> This presentation is similar to Monitorama PDX, but the intro and theme focuses more on the important of monitoring in general.</p></li> <li><p><a href="">LISA 2014: A New Age in Alerting with Bosun: The First Alerting IDE</a>: This was the first presentation on Bosun which was given right after the initial release. An introduction to the underlying thoughts on problems with alerting and how Bosun solves them.</p></li> </ul> <h1 id="video-tutorials:49cbbfcf1124f111a37fcbac0faeb48e">Video Tutorials</h1> <ul> <li><a href="">Bosun Fundementals Series</a></li> </ul> projects Sun, 21 Feb 2016 13:49:54 -0500 <ul> <li><a href="">Bosun</a> / Time Series Alerting System and IDE developed at Stack Overflow</li> <li><a href="">scollector</a> / Monitoring agent developed at Stack Overflow</li> <li><a href="">Bosun Grafana Plugin</a> / Allows graphing and tables of Bosun expressions</li> </ul> about Sat, 20 Feb 2016 14:44:37 -0500 <p>I&rsquo;m an orginial co-author of the <a href="">Bosun</a> monitoring system and the <a href="">scollector</a> monitoring agent.</p> <p>Currently I work at Stack Overflow as the director of the SRE (Site Reliability Engineering) team.</p>