<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Poolski on Medium]]></title>
        <description><![CDATA[Stories by Poolski on Medium]]></description>
        <link>https://medium.com/@poolski?source=rss-5be49cc986b1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*i6CnTvHwtPodNdje.jpg</url>
            <title>Stories by Poolski on Medium</title>
            <link>https://medium.com/@poolski?source=rss-5be49cc986b1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 16:42:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@poolski/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Monitoring Geckoboard using Prometheus]]></title>
            <link>https://medium.com/geckoboard-under-the-hood/monitoring-geckoboard-using-prometheus-fcee65827d94?source=rss-5be49cc986b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcee65827d94</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[metrics]]></category>
            <dc:creator><![CDATA[Poolski]]></dc:creator>
            <pubDate>Wed, 11 Mar 2020 11:01:01 GMT</pubDate>
            <atom:updated>2020-03-11T11:01:01.075Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rz2fjqRoWfgsJVKL134LSA.png" /><figcaption>image via <a href="https://unsplash.com/@alinnnaaaa">unsplash</a></figcaption></figure><p>It’s been a while since we’ve written an update on what the Infrastructure team has been up to behind the scenes. Last time, we told you about how we rolled Envoy out to improve the way our gRPC apps talk to one another.</p><p>Huge thanks to <a href="https://medium.com/u/d7bf43ada63">Matt Button</a> and <a href="https://medium.com/u/eed49171eaed">Leo Cassarani</a> for helping me draft this piece and for providing amazing feedback on so much of it.</p><p>Geckoboard is a service that helps teams pull their important metrics from the tools they use, and share them prominently on TV dashboards.</p><p><a href="https://www.geckoboard.com/blog/jobs-to-be-done-introduction/">Jobs To Be Done Introduction: Why Do People Buy What You&#39;re Selling?</a></p><p>Behind the scenes there are many services working together to ensure our customers’ dashboards are showing the most up-to-date information from all of the integrations we support.</p><p>Understanding how these distributed services interact in production is challenging. In the beginning we leaned heavily on dashboards of time series metrics and logs to instrument individual systems, but as we added more services it became harder to understand how the behaviour of one system affected downstream and upstream services. <a href="https://lightstep.com/blog/how-deep-systems-broke-observability-and-what-we-can-do-about-it/">Ben Sigelman wrote a great post about this topic</a>, which reflects our experience working on complex systems.</p><p>Over the past couple of years we’ve adopted distributed tracing (via <a href="https://honeycomb.io/">Honeycomb</a>) as a tool for better understanding the work our systems are doing. We’ve found that Honeycomb’s approach to instrumentation and querying allows us to <a href="https://cwebber.net/blog/2020/01/27/observability-monitoring-wtf/">quickly answer questions about our system and customers that would’ve been impossible to answer using time series metrics</a>. It’s now the first tool we reach for when trying to understand production.</p><p>That said, there are some tools in our stack that don’t have event-based/distributed tracing instrumentation. Critical parts of our infrastructure such as Consul, Vault, and Envoy only expose their internal state as time series metrics, so we still need to track this data.</p><p>We’ve previously written about how we adopted Envoy, and the problems it solves for us.</p><p><a href="https://medium.com/geckoboard-under-the-hood/we-rolled-out-envoy-at-geckoboard-13c45b4eaddd">We rolled out Envoy at Geckoboard</a></p><p>One thing we didn’t really cover in that article was the financial cost of adopting Envoy. Every time we ported a service to Envoy, our metrics monitoring bill shot up by several hundred dollars. By the time we finished the migration, our bill had increased 3x compared to the previous year, and we were paying more for these metrics than we were for our primary debugging tool, Honeycomb.</p><p>Like many teams, we have a limited budget for monitoring/observability, so we need to make sure the majority of this budget is going towards tools that will help us do better work. We still need to collect the telemetry these tools emit so that we’re not flying blind, but we need to do it in a cheaper way so that we can invest in tools that help us the most.</p><p>We’ve recently finished building out a new monitoring stack to help us save money on our Librato bill while still being able to store and analyze the metrics we used to send there. So this post will be a deep dive into our motivations, what all the components of the new stack are and how we put them all together.</p><p>We’ll also be covering some of the issues we ran into while setting all of this up and how we dealt with them.</p><h3>Context</h3><p>Insights into how your service and infrastructure are performing are important. They allow you to identify issues, bottlenecks and make informed decisions about how to scale your infrastructure and tune your applications:</p><ul><li>How long do requests take to complete?</li><li>Is an application constantly using 100% CPU?</li><li>Are your instances running out of memory?</li></ul><p>When your focus as a business is on developing your product and growing your user base, it’s important to consider how much time (and therefore money) you invest in being able to see and analyze those metrics. If you’re not careful, it’s possible to invest more time in monitoring your systems than building the systems themselves. This problem never really goes away — it’s a constant balancing act.</p><p>This a significant reason that many businesses opt to offload those challenges to any number of SaaS platforms which allow them to collect their data and extract meaning from it without having to invest in the infrastructure to do it themselves.</p><p>Geckoboard’s journey was no different — in order to focus on building out our product, we used a platform called Librato to collect the metrics that were important to us. Librato also enabled us to build a comprehensive suite of dashboards that our engineering teams could look at to understand the impact of shipping their changes.</p><p>For us, the fact that we could offload the work required to store, query and alert on the metrics we were sending was a major factor in choosing Librato to monitor our apps and infrastructure.</p><p>As time went on, though, we found that the value we were getting from using Librato was beginning to diminish. The cost to store and query our metrics was climbing and our definition of what was important to us was beginning to change.</p><p>We were finding that just seeing changes in the overall trends in high-level metrics we were sending to Librato wasn’t enough. If the rate of HTTP/5xx errors was climbing, was that a coincidence? Was it related to a recent change? If so, what exactly would cause this?</p><p>Answering these questions introduced delays between identifying a problem and a fix being pushed to remedy it.</p><p>To help us with this, we gradually introduced dynamic tracing to our apps, which meant we could tie events and errors directly to lines of source code and spot precisely where something might be going wrong.</p><p><a href="https://opentracing.io/docs/overview/what-is-tracing/">What is Distributed Tracing?</a></p><p>We still needed a tool to store and query all this data, which is where Honeycomb came in. Honeycomb is designed specifically for capturing, sampling &amp; storing your traces. It also provides a powerful interface for querying your data, without needing to learn yet another query language.</p><p>We found that the more detail we added to our Honeycomb traces, the more we came to favor it over Librato as our source of truth for how our apps were performing.</p><p>In addition, we constantly monitor our application using a combination of GhostInspector and Runscope. These tools allow us to monitor our application and key user flows from the customer’s perspective. They help us quickly identify any customer-facing impacts of changes.</p><p>Having rolled out Envoy across our stack, we next looked at how we could monitor its performance and catch any issues before they grew into more serious problems.</p><p>But, as we discovered, Envoy generates <em>a lot of metrics</em>. Thousands and thousands of data points, it turned out. Many of Envoy’s metrics are repeated on a per-cluster basis, which resulted in a huge number of events being sent to Librato every minute. This number continued to grow as we reconfigured more of our services to send their requests via Envoy.</p><p>While it was possible to turn off specific sets of metrics, doing this is time-consuming, hacky and not really sustainable.</p><p>Even at a 60-second interval, the volume of metrics we were generating was beginning to grow our Librato bill. Another issue here was the fact that at a 60-second interval, it wasn’t always easy to spot changes in trends following a new deployment quickly. This meant that we would have to wait for up to 5 minutes to see if a change to an app or to Envoy’s configuration was breaking everything.</p><h3>The challenge</h3><p>As we saw it, there were a few key goals in the project to move our Envoy metrics off Librato.</p><ul><li>We needed to find a cheaper alternative to Librato for storing our Envoy metrics.</li><li>Because Honeycomb had become our main source for instrumentation, the savings from our Librato bill could be used to pay for additional capacity in Honeycomb.</li><li>The way that metrics were collected needed to both fit in with our existing setup, and make it easy to monitor more things in the future without requiring a lot of changes.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F173607648%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F173607648&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F580163256_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1280" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/1cce90cbc5720bb8a1495127ffd8202d/href">https://medium.com/media/1cce90cbc5720bb8a1495127ffd8202d/href</a></iframe><h3>Gathering metrics</h3><p>Before collecting any metrics and sending them to Prometheus, we had to work out exactly which metrics we needed to switch over from Librato.</p><p>Given that our main aim was reducing our Librato bill, we had a look at our highest-cost metrics:</p><ol><li>Envoy</li><li>Consul</li><li>NSQ</li></ol><p>Combined, those three sources alone were costing us approximately $2,000 monthly.</p><h4>App metrics</h4><p>Since our apps are also generating metrics of their own, we were keen to ingest those into Prometheus as well (and reduce our Librato bill further). We found, unfortunately, that because of the way that our apps tag their metrics before sending them over to Statsite (a C implementation of Statsd), we couldn’t ingest them in the way that we wanted.</p><p>The issue was that because we were using a custom wire format for tagging our metrics, we weren’t able to parse and store it in the format that Prometheus uses.</p><p>After some work to see whether anything could be done about this, we decided to drop this piece of work from the scope. We were confident in doing this because:</p><ol><li>The Librato costs to collect app metrics weren’t particularly high</li><li>We already send traces from our apps to Honeycomb which gives us excellent insight into our apps’ performance.</li></ol><h3>Getting data in</h3><p>The first step in being able to switch away from Librato was working out how to get the metrics we care about out of our systems and into Prometheus. Because Envoy was our single biggest producer of metrics (by volume), we had to work in such a way as to not change too much inside Envoy.</p><p>Thankfully, Envoy already presents its metrics in the Prometheus data format, but there was a catch. Envoy’s metrics are exposed over its Admin API. Because Prometheus <em>scrapes</em> metrics from hosts and services, rather than those services <em>pushing</em> metrics to it, as is the way with StatsD, this would mean opening up the entirety of the Admin API on all of our instances of Envoy to Prometheus, which we weren’t comfortable doing.</p><p>We needed to be able to expose Envoy’s metrics endpoint to Prometheus without opening the whole admin API up at the same time.</p><h4>Telegraf</h4><p>Telegraf is a tool written by InfluxData to work with their TICK stack for ingesting, processing and forwarding metrics to some sort of time series database. It’s designed to be used with InfluxDB natively, but it can output metrics to one of about 20 other services, including cloud-based monitoring platforms like Librato, ironically.</p><p><a href="https://www.influxdata.com/time-series-platform/telegraf/">Telegraf open Source Server Agent | InfluxDB</a></p><p>What makes Telegraf so appealing is that it’s packaged as a single Go binary, with all of its default plugins baked in. It’s configured via a series of TOML config files and supports <em>conf.d</em> style configuration. This allowed us to split all of our inputs and outputs into logical self-contained config files, making it easy to make incremental changes without needing to wade through lines and lines of configuration code.</p><p>Because a single input plugin exists in isolation, it can be instantiated several times. This means that if you wanted to scrape multiple Prometheus-compatible metrics API on your host machine, you simply create several <em>prometheus_client</em> inputs and the rest is taken care of!</p><p>Telegraf’s plugin-driven architecture also meant that we could gather some extra data about our EC2 estate that was unavailable to us through CloudWatch.</p><ul><li>OS load</li><li>CPU usage (general and per-process)</li><li>Disk space</li><li>Memory consumption</li><li>Network interface stats</li></ul><p>While monitoring Envoy and other services’ performance using Prometheus was the main goal of this project, having access to the EC2 instance metrics in the same place added a lot of value. It allowed us to have an insight into resource utilization at a level of granularity which CloudWatch and Librato simply couldn’t provide.</p><h3>Storing metrics</h3><h4>Prometheus</h4><p>We settled on Prometheus as our preferred alternative to Librato pretty early on for a number of reasons.</p><p>The first reason was its relative maturity and wide industry adoption — many companies monitor their services using Prometheus. Not only does this inspire confidence, but it also means that we aren’t operating in a vacuum. Specific implementation challenges and questions have likely been solved by other folks trying to do the same thing.</p><p>Because Prometheus is something of an industry standard when it comes to collecting and storing metrics, its data format is supported by many existing tools already. Envoy, Consul, and Vault all expose their metrics in a Prometheus-compatible format, all of which are tools that we use inside our infrastructure.</p><p>Prometheus is also flexible in <em>what</em> it can monitor. It can be used to monitor a static set of hosts, a bunch of Kubernetes pods and anything in between. As we’re considering how we can fit schedulers and containers into our infrastructure, not having to re-tool our monitoring stack to make it scheduler-friendly is very useful.</p><p>Another consideration in rolling Prometheus out was how to query it. It comes with its own query language (PromQL), but compared to other options like InfluxDB and Wavefront, it’s reasonably straightforward to learn. InfluxDB and Wavefront’s query languages are powerful and flexible but that power presents a barrier to entry for folks who <em>just want to get information out</em>.</p><h4>Target discovery</h4><p>Because Prometheus is a pull-based system, it needs to know about its “scrape targets” before it can begin to ingest any metrics. There are a handful of ways to do this:</p><p><em>Static config</em></p><p>The most basic way to configure Prometheus to scrape a set of targets is to explicitly define them.</p><pre>scrape_configs:<br>- job_name: prometheus<br>  scrape_interval: 10s<br>  static_configs:<br>  - targets:<br>    - 10.0.0.1:9090<br>    - 10.0.0.3:9090</pre><p>This would not work for us, given that we have a set of EC2 instances, any of which may be destroyed and recreated (rotated) at any time. This can be because the instance has become unresponsive or because we need to roll out a new AMI because of a kernel upgrade.</p><p>Each of our environments has its own consul cluster for service discovery, so we could’ve used consul to discover targets. However, all of our EC2 machines already have instance profiles (docs link) that give them access to the APIs for listing machines in their environment. Using the EC2 APIs means we can detect machines that aren’t running consul, or that are having issues connecting to the cluster</p><p><em>Cloud service discovery</em></p><p>However, Prometheus supports target discovery through cloud provider APIs instead — it works with Azure, GCP, OpenStack, AWS and so on. This meant that it was now possible for us to configure Prometheus to poll the EC2 API, list all the running instances and filter them to get the list of targets for Prometheus to scrape.</p><pre>scrape_configs:<br>- job_name: infrastructure<br>  scrape_interval: 10s<br>  ec2_sd_configs:<br>  - role_arn: arn:aws:iam::1234567890:role/prometheus-role<br>    port: 9273<br>    filters:<br>    - name: tag:Environment<br>      values:<br>      - staging</pre><p>There are a few ways to grant Prometheus access to the EC2 API, but the easiest way that we found was to use an AWS IAM Role for the instance and grant it access to do what was necessary. This avoids having to store AWS keys on the instance and then having to worry about rotating them and keeping them secure.</p><p>At a minimum, the IAM role must have the ec2:DescribeInstances permission so that Prometheus can list running instances and get their tags.</p><figure><img alt="Graph showing new CPU metrics being picked up by Prometheus as a cluster rotates" src="https://cdn-images-1.medium.com/max/893/1*fZPs2-G2qMZp4X2G5xJUow.png" /><figcaption>New instances automatically being detected as a cluster rotates</figcaption></figure><h4>Scaling and performance</h4><p>One aspect of running Prometheus that’s worth discussing is how it scales as there are some gotchas there. Because our main source of instrumentation is Honeycomb, we can accept some loss in durability and availability for Prometheus. Because of this, HA wasn’t as much of a concern.</p><p>Prometheus supports horizontal scaling to provide a highly-available way of collecting and storing time-series metrics. Running it in practice, though, means a lot of duplication of data as a second Prometheus instance would be configured to scrape the same data as the first.</p><p>Prometheus also supports federation, where a Prometheus instance can be configured to scrape <em>other Prometheus instances</em> to provide a federated view of the datasets that the other instances have.</p><h4>Storage</h4><p>Because Prometheus stores all of its metrics on disk as compacted TSDB blocks, the instance would need a considerable amount of storage which was also persistent across instance reboots.</p><p>Because we rotate our EC2 instance frequently, this was a potential blocker. We wanted to avoid creating pet instances at all costs because over time they would require additional considerations when making changes to our configuration.</p><p>Ultimately, we solved this by adding a large persistent EBS volume to the instance and using some scripts passed to the instance in User Data which mounted the volume before the instance was provisioned using Chef. This meant that we could terminate a Prometheus EC2 instance, the persistent volume would be unmounted, then the new instance could mount the same volume and pick up where the other Prometheus box left off.</p><p>Remote write storage was also considered, but out of all of the options for remote write targets, PostgreSQL was the only one that we could make use of. The cost of it, however, would have been prohibitive — the point of this project was to spend less money, after all.</p><h3>Thanos</h3><p>While researching how other folks solved the problem of not wanting to run federated Prometheus clusters and wrangling remote storage, we came across a blog post from Monzo, talking about their experience.</p><p><a href="https://monzo.com/blog/2018/07/27/how-we-monitor-monzo">How we monitor Monzo</a></p><p>One of the most interesting things that they talked about in their post was how they solved that problem of observing multiple Prometheus instances from a single location.</p><p><a href="https://thanos.io/">Thanos</a> is a tool written and open-sourced by Improbable which is designed to add scalability to Prometheus without having to run a lot of complex federation.</p><p>Their post talking about the release of Thanos goes into a lot more detail and we’d recommend reading it.</p><p><a href="https://improbable.io/blog/thanos-prometheus-at-scale">Introducing Thanos: Prometheus at scale</a></p><p>Thanos ships as a single binary with several discrete functions:</p><ul><li><strong>Sidecar</strong> — responsible for uploading compacted TSDB blocks to cloud storage (Amazon S3)</li><li><strong>Store</strong> — for retrieving blocks from S3 and allowing them to be queried via the Store API</li><li><strong>Compactor</strong> — downsamples data that is older than a fixed timespan, which results in smaller query results, improving performance.</li><li><strong>Query</strong> — for handling PromQL queries and returning results. This is where the magic happens.</li></ul><p>Thanos Query is what makes Thanos so flexible. Query exposes a Prometheus-compatible API for clients like Grafana to connect to and issue queries as though they were talking to a vanilla Prometheus service.</p><p>On the backend, Query needs to be configured to forward those queries to one or more destinations. The real genius of Query is that those destinations can be one or more:</p><ul><li>Prometheus services (Prometheus API)</li><li>Thanos Store instances (Store API)</li><li>Thanos Sidecar instances (Store API)</li><li><em>Other Thanos Query instances</em> (Store API)</li></ul><p>Because it’s possible to point one Query service at another Query service, there is no need to build complex logic for aggregating different datasets — it’s all done for you in Query.</p><p>The other challenge that Thanos helped us overcome is the concern about how we’d store all the time series data Prometheus gathered. Rather than having to worry about the size of the persistent disk we’d provisioned for Prometheus not being enough, we’re able to offload all the compacted TSDB blocks to S3 and query them from there.</p><h4>Thanos performance</h4><p>Despite all of this, we were still seeing performance issues when querying Envoy metrics for a long time period — greater than about 2 days. The sheer volume of measurements that Envoy generates results in a huge query result.</p><p>In practical terms, we were finding that every time a large query like that was run, we’d see a multi-gigabyte spike in RAM usage by Thanos Store and, to a lesser extent, Query. This was due to the fact that they were having to fetch blocks from S3 and load them into memory to be able to serve the Grafana query.</p><p>This happened every time that the query was run and would cause Prometheus to stop collecting data for anywhere between 2 and 5 minutes, as Thanos Store was colocated with it. The instance ran out of memory and the Prometheus process was killed and restarted. Dashboards that auto-refreshed were especially problematic in this regard.</p><p>Adding more resources to Prometheus and splitting Thanos Query to its own EC2 instance helped but it was more of a sticking plaster.</p><h3>Trickster</h3><p>After doing some research, we found Trickster. Trickster is a tool designed to reduce the load on Prometheus by caching query responses. It supports a number of caching backends, including Redis, Memcached and in-memory caching.</p><p><a href="https://github.com/Comcast/trickster">Comcast/trickster</a></p><p>Trickster sits between Grafana and Thanos Query. It caches all query results, making subsequent queries for the same data much faster, allowing fast response time on our Grafana dashboards. We configured it to store the cached data on disk, as the performance was more than adequate for our needs.</p><p>Another benefit of the way that Trickster caches data is that when a dashboard with an automatic refresh timer issues its next query, only the new data needs to be fetched from Thanos, while the bulk of the response is served from the cache.</p><h4>Issues and gotchas</h4><p>Trickster was an excellent addition to our monitoring stack, but there was an edge case which we hadn’t anticipated. In our setup, it’s co-located with Thanos Query, but Prometheus and the Thanos Store components run on a separate box so that we could separate the query and storage functionality.</p><p>As it turns out, when the Prometheus instance is being rotated and Thanos Store disappears temporarily, Thanos Query returns empty results (as you would expect). Trickster then caches this new empty result, but when Thanos Store comes back up, the empty result is what persists in the cache, requiring a cache flush.</p><h3>Visualizing metrics with Grafana</h3><p>Having worked out how to ingest, store and query our metrics, we needed to have some way to visualize them. Grafana is an open-source dashboard platform that is designed to interact with several time-series databases, including Prometheus, Graphite, and InfluxDB. It also comes with an excellent set of plugins out of the box which extend its functionality to be able to query your cloud provider’s metrics natively.</p><p>Another great feature of Grafana was the fact that dashboard configs were stored as plain JSON, allowing for quick and easy importing of third-party dashboards. Being able to use pre-existing dashboards as a jumping-off point for building our own meant that we could see how other organisations had designed their queries to return the data that was valuable to them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MWggy5c_tZrTSNuDah4b_w.png" /><figcaption>A pre-built dashboard to monitor Prometheus itself</figcaption></figure><p>One particular aspect that we had to consider when rolling out a frontend for our new monitoring stack was how we went about securing access to it. Usernames and passwords were an obvious choice, but it would also mean that our engineers would need to maintain yet another set of credentials.</p><p>To get around this, Grafana natively supports logins using OAuth2 via an SSO provider such as Google. This vastly simplifies the user onboarding process as users can be logged in automatically using their Google account, providing their login session is valid.</p><p>We’ll be writing up the process of setting up OAuth2 for Grafana and other services via Amazon Cognito in a follow-up post because that alone deserves its own detailed run-down.</p><h3>Final thoughts</h3><p>While setting up something as exciting as a new monitoring stack, it can be easy to get carried away and let the scope of the project creep endlessly. To some extent, we’ve been guilty of this because we’d never done anything like this in-house before, so at times the project felt more like an exploratory “spike”. There were times where, even though we had a functioning system, it felt like the system needed to be improved before it could be considered production-ready.</p><p>Adding query caching could be considered one of those unplanned improvements. It only became apparent that querying our Envoy metrics generated a huge spike in resource use once we began to ingest metrics properly and query them across longer and longer time periods.</p><p>One thing in particular that we have not made use of in Prometheus or Grafana is the alerting system. There are two places where alerts can be generated: Grafana itself or Prometheus’ own AlertManager subsystem.</p><p>The metrics which we switched over from Librato were those we did not need to alert on, meaning we could trim the scope of the project to just collecting and displaying the metrics on dashboards, without needing to worry about also alerting on them.</p><p>It’s possible that at some point in the future, this will become a pain point and we will need to review whether we alert on any of the metrics that Prometheus collects and stores.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcee65827d94" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geckoboard-under-the-hood/monitoring-geckoboard-using-prometheus-fcee65827d94">Monitoring Geckoboard using Prometheus</a> was originally published in <a href="https://medium.com/geckoboard-under-the-hood">Geckoboard: Under The Hood</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We rolled out Envoy at Geckoboard]]></title>
            <link>https://medium.com/geckoboard-under-the-hood/we-rolled-out-envoy-at-geckoboard-13c45b4eaddd?source=rss-5be49cc986b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/13c45b4eaddd</guid>
            <category><![CDATA[load-balancing]]></category>
            <category><![CDATA[envoy]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[grpc]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Poolski]]></dc:creator>
            <pubDate>Mon, 15 Apr 2019 09:24:05 GMT</pubDate>
            <atom:updated>2019-04-16T09:34:00.973Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RCwrJu7mG8AsmA85zQEU0w.jpeg" /><figcaption>Cover image by <a href="https://www.pexels.com/photo/close-up-photography-of-yellow-green-red-and-brown-plastic-cones-on-white-lined-surface-163064/">pexels</a></figcaption></figure><h4>It made us stop worrying about our gRPC traffic.</h4><p>In this post we’re talking about why we made the decision to start using <a href="https://www.envoyproxy.io/">Envoy</a> and how we went about rolling it out in production. The whole process took us about a month — here’s how it went.</p><p>The services underpinning the <a href="https://www.geckoboard.com/">Geckoboard</a> platform are constantly evolving. Over the past 7 years, we’ve been moving from monolithic Ruby apps towards single-purpose microservices written in Go. This has allowed engineers to be able to work on specific functionality with confidence that their changes will be isolated to a single service.</p><p>Historically, all of our services have communicated using RESTful APIs over HTTP or by using queues that producers/consumers would write to and read from.</p><p><a href="https://medium.com/@shijuvar/building-high-performance-apis-in-go-using-grpc-and-protocol-buffers-2eda5b80771b">Building High Performance APIs In Go Using gRPC And Protocol Buffers</a></p><p>Over time we also found that the type of work our newer services perform can’t as easily be modelled using HTTP RESTful APIs, so more and more of our services rely instead on gRPC to communicate.</p><p>Load balancing HTTP traffic is fairly straightforward and we’ve been able to build services which communicate using HTTP APIs while handling the load balancing using Nginx or HAProxy as well as Consul’s round-robin DNS.</p><p>gRPC makes it much easier to automatically generate client libraries to interact with the data your services present from <a href="https://developers.google.com/protocol-buffers/">protobuf</a> definitions. By contrast, creating a client for a ‘traditional’ API would require a developer to implement every function of the API by hand in the client. Ensuring changes to your services are backwards-compatible protocol is also much easier when using gRPC compared to doing the same to an HTTP API.</p><p>While it’s possible to load balance gRPC out of the box, that logic needs to be built into the gRPC clients and none of our apps had it. Our gRPC traffic wasn’t being load balanced at all.</p><p>To begin with, this was fine because the volume of gRPC requests was low, but it was only going to grow and eventually become a problem, so we decided to make the changes long before circumstances forced us to.</p><p>To make sure that load is distributed evenly across multiple instances of the same service requires either writing your own logic for handling that in your applications or that you use a load balancer, also sometimes referred to as a proxy. It takes care of splitting traffic evenly across your backends, allowing you to concentrate on more important work.</p><p>Rather than badly paraphrasing the experts on load balancing and how gRPC traffic over HTTP/2 is different to RESTful API requests over HTTP/1.x, here are some really useful links if you want to dig deeper.</p><ul><li><a href="https://codeclimate.com/blog/choose-protocol-buffers/">5 Reasons to Use Protocol Buffers Instead of JSON for Your Next...</a></li><li><a href="https://developers.google.com/web/fundamentals/performance/http2/">Introduction to HTTP/2 | Web Fundamentals | Google Developers</a></li><li><a href="https://blog.envoyproxy.io/introduction-to-modern-network-load-balancing-and-proxying-a57f6ff80236">Introduction to modern network load balancing and proxying</a></li></ul><h4>Load balancing options</h4><p>Our existing tool stack wasn’t well-suited to handling multiplexed gRPC traffic over HTTP/2. We had been using <a href="https://www.nginx.com/">Nginx</a> and <a href="http://www.haproxy.org/">HAProxy</a> for a few years, but back in November/December 2018 they didn’t seem a good fit for this project since their gRPC proxying capability wasn’t well-tested yet. We needed a better solution.</p><p>Several tools for load balancing gRPC requests over HTTP/2 are predicated on using a containerised architecture. Since Geckoboard uses virtual machine instances rather than containers, this option wasn’t feasible for us.</p><p>One option that we considered was <a href="https://linkerd.io/">LinkerD</a>. LinkerD v2 required Kubernetes, which we don’t use. LinkerD v1 was an option, but in the end we discarded it because it required installing a JVM and we don’t have the in-house Java expertise to be confident in managing a mission-critical Java service.</p><p>We had looked at Nginx, which had announced expanded support for gRPC proxying, but based on our research, we felt that it wasn’t mature or used widely enough for our needs.</p><p>The last candidate was <a href="https://www.envoyproxy.io/">Envoy</a>, a proxy developed by <a href="https://eng.lyft.com/">Lyft</a> during their transition away from monolithic services, where many functions were colocated within the same app, to a more modern microservice-based architecture. After a lot of research, we found that Envoy was almost perfectly suited to our needs.</p><h3>Why Envoy?</h3><p>The biggest appeal of Envoy for Geckoboard was that it was purpose-built by Lyft for proxying both gRPC and HTTP traffic, with a strong focus on gRPC. That and the fact that it is shipped as a pre-built binary makes it a lot easier to deploy, without needing to install platform-specific dependencies.</p><p>By design, Envoy enables application developers to create a <em>service mesh </em>where the applications they write no longer need to be aware of the locations of other services that they might need to talk to.</p><p>As part of our aim to help developers spend more time on meaningful work, being able to free them from needing to write logic to handle load-balancing, discovery and network connectivity was also great.</p><p>Another reason why we chose Envoy was that even by the time we’d started researching it, it had already been used in production by Lyft and thoroughly tested.</p><h4>Configuration Options</h4><p>One aspect of Envoy that we found immensely appealing is just how flexible it is in terms of configuration. Although that flexibility can be a mixed blessing because of just <strong>how</strong> configurable it is.</p><p>Unlike other proxies like Nginx, which has its own configuration language, Envoy is configured using a single YAML (or JSON) configuration file, which meant that there was no need to spend extra time working out the idiosyncrasies of another language.</p><p>The downside, though, is that Envoy doesn’t support using multiple configuration files and including them through an include conf.d/* style pattern, as used in many other services. This can make the config file unwieldy — even more so if using JSON.</p><p>When every resource in Envoy is configured using a single static YAML file, it can be a challenge to make changes to running config. To make Envoy pick up the changes, it must be reloaded or restarted, meaning in-flight requests may fail or be lost entirely.</p><p>To mitigate this, Envoy is designed to be able to dynamically configure itself based on data it receives from a set of discovery services, of which there are five:</p><ul><li><em>Cluster Discovery Service.</em> A cluster represents a single service configured within Envoy which can respond to client requests.</li><li><em>Endpoint Discovery Service.</em> An endpoint is a single instance of a given service, running on a specific host and port.</li><li><em>Route Discovery Service</em>. Routes are what define which cluster a given request is routed to, or whether the request is dropped entirely.</li><li><em>Listener Discovery Service</em>. An Envoy listener listens on a given address and port for incoming requests.</li><li><em>Secrets Discovery Service.</em> This can be used to centralise distribution and rotation of secrets like TLS certificates.</li></ul><p>These can be used independently or together to dynamically provision Envoy. A running instance of Envoy will periodically poll its configured xDS endpoints to get up-to-date configs.</p><p>The truly exciting thing about this for us is that it makes it possible to be certain that every Envoy instance in your infrastructure is running with the correct configuration, without relying on traditional file-based configuration management.</p><p>Not that file-based configuration is necessarily <em>bad</em>, but it can be inconsistent both between services and sometimes even within the same service. As an example, sometimes an HAProxy configuration change requires a reload of the service. But sometimes a change requires a restart — as is the case with TLS certificate updates. Abstracting this configuration away to a dedicated service and allowing Envoy to dynamically update running configuration is much more flexible and consistent.</p><p>Envoy configuration can fall on a spectrum — all the way from fully-static config files to a fully dynamic xDS-based setup with only minimal configuration to tell Envoy where to find the xDS. Which approach you take ultimately depends on the use case and time/resources available.</p><p>Having looked at the plethora of options for configuring Envoy available, we went with the simplest — a flat file. The main reason for this was that we wanted to slice the work in a sensible way and we felt that getting bogged down with rolling our own xDS would be a poor use of our time to start with.</p><p>The documentation for Envoy is extensive but structured in a way that isn’t immediately intuitive to anyone not used to reading proto3 protocol buffer definitions. Envoy also takes configuration in the form of</p><ul><li>YAML (make sure you use <strong>.yaml</strong> rather than <strong>.yml</strong> — we learned the hard way that Envoy won’t start with <strong>.yml</strong>)</li><li>JSON</li><li>Proto3 Protocol Buffer definition files.</li></ul><p>It can also be unusually specific about the formatting/data types of certain values. For example, specifying timeouts can be done using one of two ways:</p><pre>timeout: <br>  seconds: 15</pre><p>or</p><pre>timeout: 15s</pre><p>However, timeout: 15 will throw an error, even though the documentation doesn’t make it clear that the sis important.</p><p>However, due to the way Envoy is built, if you want to be able to hot-reload Envoy without dropping connections, it needs to be run via a Python script.</p><p><a href="https://blog.envoyproxy.io/envoy-hot-restart-1d16b14555b5">Envoy hot restart</a></p><p>Lyft made this script for handing its open sockets off to the new instance, which complicated matters a bit. The post goes into a lot of detail about exactly how the script does this, but for us the challenge was turning the script into a SystemD service which luckily Envoy <a href="https://www.envoyproxy.io/docs/envoy/latest/operations/hot_restarter">already had a solution</a> for!</p><h4>Stats and Metrics</h4><p>Envoy was designed from the very beginning to allow engineers insight into the traffic flowing through it without the need for any third-party instrumentation.</p><p>Since we work with metrics and data, this was an incredibly refreshing design decision to see. In the case of the other two most popular proxies — Nginx and HAProxy — their stats are much trickier to get at and parse/digest.</p><p>We use the built-in <a href="https://github.com/statsd/statsd">statsd</a> sink to send metrics generated by Envoy directly to <a href="https://github.com/statsite/statsite">statsite</a>, ready to be shipped elsewhere. Envoy also supports a number of <a href="https://www.envoyproxy.io/docs/envoy/v1.9.0/api-v2/config/metrics/v2/stats.proto">other metrics backends</a>.</p><p>One thing to be aware of, though, is that Envoy generates <em>a lot of metrics, </em>constantly. If you’re using a SaaS metrics provider like DataDog or Librato, it pays to audit your data and tune your Envoy instances to only emit the stats you care about. If you don’t, you’ll be billed for storing null or zero values you have no interest in. Envoy allows you to exclude certain metrics namespaces from being shipped.</p><pre>stats_sinks:<br>- name: envoy.statsd<br>  config:<br>    address:<br>      socket_address:<br>        address: 127.0.0.1<br>        port_value: 8125<br>stats_config:<br>  stats_matcher:<br>    exclusion_list:<br>      patterns:<br>      - regex: cluster.([^.]*).update_attempt$<br>      - regex: cluster.([^.]*).update_no_rebuild$<br>      - regex: cluster.([^.]*).max_host_weight$<br>      - regex: cluster.([^.]*).health_check.attempt<br>      - regex: cluster.([^.]*).membership_total</pre><p>We also made a change to our statsite rewrite sink to allow us to drop the metrics we didn’t want to ship and to tag metrics we were shipping so we could better analyse them.</p><p><a href="https://github.com/geckoboard/statsite-rewrite-sink/pull/5">Drop measurements of 0 by BRMatt · Pull Request #5 · geckoboard/statsite-rewrite-sink</a></p><h3>The Implementation</h3><h4>The Container Problem</h4><p>Although Envoy is designed to be a sidecar process — one instance of Envoy running alongside every app, this approach is somewhat predicated on running in a containerised environment where this approach makes sense. In our case, every VM runs an instance of Envoy which is aware of every gRPC service available.</p><p>This isn’t as elegant as it could be but it also means that any app running on any server can communicate with any gRPC service by connecting to its local Envoy instance, rather than trying to discover the gRPC service itself.</p><p>The first and most frustrating challenge was how to deploy the Envoy binary to our infrastructure, given it wasn’t available to download out-of-the-box.</p><p>Ultimately, we ended up going down the path of least resistance and built a CI pipeline to extract the binary from the official Docker image and re-package it for our use. Although the official guidelines suggest building your own, we felt that at least for the first iteration, this approach was sound.</p><h4>Service Configuration</h4><p>Having configured the listeners, routes and associated virtual hosts, the next thing that needed to be configured were the clusters that Envoy would route traffic to.</p><pre>static_resources:<br>  listeners:<br>  - name: internal-grpc-traffic<br>    address:<br>      socket_address:<br>        address: 127.0.0.1<br>        port_value: 8888</pre><p>Once again, xDS can automate this to a certain extent, but after some thought we realised we already had this information available to us.<a href="https://www.consul.io/"> Consul</a> has been part of our stack for a long time and we’ve been using it for this exact purpose the whole time.</p><p>This meant that we could make use of the data that Consul had on our services to populate the clusters with their respective endpoints. We did this by making use of the strict_dns cluster type in Envoy. strict_dns clusters periodically and asynchronously look up the configured hostnames (once every 10 seconds or so) and update the list of endpoints in each cluster based on the DNS response.</p><pre>clusters:<br>  - name: my-awesome-service-grpc<br>    connect_timeout: 0.5s<br>    http2_protocol_options: {}<br>    type: strict_dns<br>    lb_policy: round_robin<br>    health_checks:<br>    - grpc_health_check:<br>        authority: my-awesome-service.prod.example.com<br>      timeout: 1s<br>      interval: 2s<br>      interval_jitter: 1s<br>      healthy_threshold: 3<br>      unhealthy_threshold: 3<br>      event_log_path: &quot;/var/log/envoy/healthcheck.log&quot;<br>    tls_context:<br>      sni: my-awesome-service.prod.example.com<br>    hosts:<br>    - socket_address:<br>        address: my-awesome-service.service.consul<br>        port_value: 5100</pre><p>The DNS discovery method isn’t ideal for all scenarios. One of the biggest limitations is that DNS responses over UDP are limited to 512 bytes.</p><p><a href="https://tools.ietf.org/html/rfc1035">RFC 1035 - Domain names - implementation and specification</a></p><p>This means that for scenarios where there are many instances of a service registered with DNS, not all of them are guaranteed to be returned by a query. This can lead to endpoints never being added to a cluster because they weren’t included in the DNS response.</p><p>In our case, though, this wasn’t an issue as the number of records returned by Consul DNS lookups was well within the 512-byte limit because we have relatively few instances of a given service.</p><h4>Request Routing</h4><p>As we’ve discussed before, Envoy uses internal route configuration to tell it where a given request should go (or whether to drop the request for various reasons). This can be implemented similarly to Nginx or Apache vhosts which usually use hostname-based matching to work out what to do with the traffic.</p><p>It’s also possible to use path-based routing in combination with host-based routing in Envoy but that was unnecessary levels of granularity for us.</p><p>Every gRPC request has an :authority header (the equivalent of the HTTP/1.1 Host header), so we use that header to route to the correct cluster by matching on the domain of each virtual_host in Envoy.</p><pre>listeners:<br>- name: internal-grpc-traffic<br>  address:<br>    socket_address:<br>      address: 127.0.0.1<br>      port_value: 8888<br>  filter_chains:<br>  - filters:<br>    - name: envoy.http_connection_manager<br>      config:<br>        access_log:<br>        - name: envoy.file_access_log<br>          config:<br>            path: &quot;/var/log/envoy/access.log&quot;<br>        stat_prefix: ingress_http<br>        codec_type: AUTO<br>        route_config:<br>          name: local_route<br>          virtual_hosts:<br>          - name: my-awesome-service<br>            domains:<br>            - my-awesome-service.envoy.staging.example.com<br>            routes:<br>            - match:<br>                prefix: &quot;/&quot;<br>                grpc: {}<br>              route:<br>                cluster: my-awesome-service-grpc<br>                timeout:<br>                  seconds: 15</pre><h4>Retries, Timeouts And Circuit Breaking</h4><p>Another benefit of Envoy is the ability to handle upstream errors and timeouts in a much more pragmatic way. In the event that an upstream service starts to fail, Envoy will detect this and begin to apply back pressure to clients trying to send requests.</p><p>If a cluster reaches its configured maximum request count, Envoy will prevent new connections from being established to the cluster, rather than allowing the requests through and overloading the cluster.</p><p>In addition, Envoy will automatically retry a request on a client’s behalf a set number of times, before returning an error, which helps mitigate short-lived transient upstream failures. This can be coupled with configurable timeouts to ensure requests complete within a specific time period, rather than hanging indefinitely.</p><p>What’s fantastic about these features is that they can be configured on a per-route level, meaning that you can very precisely tune these values and use them to shape how requests flow between your apps. It also frees up engineers from having to build in the circuit breaking and retry handling logic into their apps, relying instead on a single consistent set of rules for these values.</p><p><strong>Encryption</strong></p><p>gRPC strongly encourages you to use encrypted connections between services. In fact, if you wanted to use gRPC over plaintext, you would have to explicitly state you were creating an insecure connection.</p><pre>conn, _ := grpc.Dial(“localhost:50051”, grpc.WithInsecure())</pre><p>Or in ruby:</p><pre>stub = Helloworld::Greeter::Stub.new(‘localhost:50051’, :this_channel_is_insecure)</pre><p>To ensure that TLS was enforced at every step along the way, we generated a new set of wildcard internal certificates specifically for use with Envoy. That way we could run Envoy on a separate internal subdomain like ${service}.envoy.${environment}.example.com to make switching clients to using Envoy easier. Having a separate subdomain for Envoy also made debugging easier as it was clear how clients were configured to send their traffic — directly to gRPC services or via Envoy.</p><p>Using wildcards also meant that engineers could create new gRPC services without worrying about also needing to generate yet more TLS certificates for the new service.</p><pre>listeners:<br>- name: internal-grpc-traffic<br>  address:<br>    socket_address:<br>      address: 127.0.0.1<br>      port_value: 8888<br>  filter_chains:<br>    ...<br>  tls_context:<br>    common_tls_context:<br>      alpn_protocols: h2<br>      tls_certificates:<br>      - certificate_chain:<br>          filename: &quot;/etc/envoy/ssl/wildcard.envoy.crt&quot;<br>        private_key:<br>          filename: &quot;/etc/envoy/ssl/wildcard.envoy.key&quot;</pre><p>This snippet configures the listener to use the wildcard.envoy.crt certificate and key pair for all requests.</p><h4>On The Way To Production</h4><p>To begin with, we aimed to get Envoy up and running locally on our laptops so that we could experiment with it.</p><p>Since Envoy is designed with containerised environments in mind, we had to also work out how to make sure it was run as a fully-fledged service under a process manager. Since systemd already manages a bunch of services inside our infrastructure, it made sense to create another systemd unit for Envoy.</p><p>Once that was up and running and we configured a gRPC cluster, its endpoint’s address and port, plus the vhosts and routing rules, we saw that the gRPC service we were proxying for had started receiving Health messages from Envoy.</p><p>This was amazing to see! After that, a config change in one of our gRPC client apps to point it to Envoy was all that was necessary for that app to start sending its traffic through Envoy.</p><h4>Going To Production</h4><p>One of the greatest things about rolling out Envoy was that since it wasn’t used by anything yet, we could deploy it everywhere without worrying that it would interfere with anything. We could then point individual clients at it and test how it worked with staging and production traffic in a controlled way.</p><p>We automated the entire provisioning and configuration process by leveraging our existing config management pipeline built on top of Chef. This meant that Envoy could be deployed exactly the same way to all of our nodes, with minimal human involvement.</p><p>One difficulty lay in generating the YAML configuration file itself — because everything had to be contained in a single file, it ended up being almost 300 lines long.</p><p>Chef made this work easier as we were able to define all the resources we needed as Ruby hashes and do a certain amount of templating. This was all compiled using the YAML ruby library into a single YAML file.</p><p>Here’s a template that contains a fairly complete configuration for an Envoy instance to proxy traffic to a single gRPC service.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/370efd551bd43f2ca3e4eb1059d2f57c/href">https://medium.com/media/370efd551bd43f2ca3e4eb1059d2f57c/href</a></iframe><h4>Making the switch</h4><p>When changing production apps over to Envoy, it was imperative to us that we didn’t affect customers’ experience with timeouts and errors while the switch was made. What made the whole experience a lot smoother was the fact that we were able to set up Envoy ahead of time without having to connect any clients to it at the same time.</p><p>An excellent side effect of this is that we were also able to test Envoy’s latency and throughput in our Staging environment when proxying to different gRPC services — something we hadn’t really ever quantified.</p><p>To be on the safe side, though, we opted to switch one gRPC client app at a time and monitor its metrics for a few hours to confirm that everything was working as intended before moving on to the next one. This was also born from the desire to change as few things as possible at every step so that we could more easily diagnose faults.</p><p>The great thing was, though, that the switch to Envoy was as simple as changing a single line of config for every client service and restarting it — not dissimilar to a regular deployment. To make sure that we didn’t run into issues with dropped requests, especially high-traffic services were reconfigured manually and their restarts were staggered so that as few requests as possible had to be retried due to the services restarting.</p><h3>Wrapping Up</h3><p>Having rolled Envoy out everywhere, we are now much more confident in creating new gRPC services and integrating them into our stack. Our engineers no longer have to worry about writing load balancing logic into gRPC client apps or that a single instance of a gRPC service is going to get overwhelmed by requests.</p><p>The process, from start to finish, took about a month. It was exciting and challenging, but also frustrating at times. There were moments of anger at unexpected behaviours, sometimes caused by a mistyped variable (see the timeout example above). Still, we’re really excited about having added Envoy to our stack as it opens up a whole lot of opportunities for even more improvement further down the line.</p><h4>Some final observations</h4><ul><li>It feels like Envoy <em>really </em>wants you to use xDS over statically-defined clusters, routes, endpoints, etc. Given that it’s designed to be run in immutable sidecar containers, that makes sense and it’s certainly something that we might look to implement.</li><li>It took a bit of tweaking to get the data we wanted out of Envoy in its logs and to have it log in the format we wanted (JSON) rather than plaintext. JSON logs make it easier to quickly check that all is well. One thing to be aware of, though, is that the logs do not appear in real-time — events are written to file in batches.</li></ul><h4>The Future</h4><p>One of the logical next steps is to move towards a more dynamic xDS-based infrastructure where routes and clusters can be managed by a separate service, rather than relying on static configuration files.</p><p>This further empowers engineers to make changes to infrastructure such as adding new services or the capacity for blue/green deployments of canary deployments using more fine-grained routing in future.</p><p>To help our frontend engineers work faster and better, we already use a lightweight version of our Vagrant development environment which runs only bare minimum services required for frontend development and hooks into a remote environment for the rest. It would be awesome if we could extend the same flexibility and portability to our backend folks.</p><p>Lyft already use Envoy internally to allow engineers to access remote services from their local development environments.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FRVZX4CwKhGE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRVZX4CwKhGE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FRVZX4CwKhGE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a1ddb16a2700a59f54d8543df4ff7efc/href">https://medium.com/media/a1ddb16a2700a59f54d8543df4ff7efc/href</a></iframe><p>This allows them to only run the components that they need to work on locally. The rest is run in a cloud environment and Envoy is used to transparently and securely proxy that traffic between the engineers’ laptops and the Cloud.</p><p>This could free our engineers from the need to run the entirety of the Geckoboard stack on their laptops, allowing them to work against a consistent set of services, rather than falling prey to “It works on <strong>my </strong>machine”.</p><p>Finally, Envoy is an excellent piece of groundwork on the way to possibly moving to a more container-based service architecture in future.</p><p>If you liked this, you’ll likely love a bunch of the other posts at Geckoboard Under The Hood. Head over to the link below to check them out!</p><p><a href="https://medium.com/geckoboard-under-the-hood">Geckoboard: Under The Hood</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13c45b4eaddd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geckoboard-under-the-hood/we-rolled-out-envoy-at-geckoboard-13c45b4eaddd">We rolled out Envoy at Geckoboard</a> was originally published in <a href="https://medium.com/geckoboard-under-the-hood">Geckoboard: Under The Hood</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“I’m no good with technology” isn’t an excuse.]]></title>
            <link>https://poolski.medium.com/im-no-good-with-technology-isn-t-an-excuse-9ff63e19210e?source=rss-5be49cc986b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ff63e19210e</guid>
            <category><![CDATA[advice]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Poolski]]></dc:creator>
            <pubDate>Sat, 14 Apr 2018 17:20:07 GMT</pubDate>
            <atom:updated>2018-04-14T17:20:07.879Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_NoqRJHvXUI175AXWmvPg.jpeg" /></figure><h4>Your online security isn’t optional anymore.</h4><p><em>Foreword: skip to the end if you want to know how to fix your online security holes.</em></p><p>I’d like to discuss something with you all, but before I do I want to get some stuff out of the way.</p><p>I work in technology. My literal job is keeping a small slice of the Internet visible to people who want to get at the information we host. I have to deal with recalcitrant servers, strange app behaviour, connectivity and security every day. I suppose you could say I have ‘<em>tech privilege</em>’.</p><p>I also grew up fascinated by computers as kid. I trashed a couple by accident in my early ‘career’, back when 64Mb hard drives were de rigueur and I thought that <em>command.com </em>was taking up far more space than was reasonable, so I deleted it.</p><p>I still remember the days when “multimedia” computers were all the rage and being told ‘No, you can’t have one’. Over the course of five or so years, they became the standard. Ho hum.</p><h4>Accelerated change</h4><p>Tim Urban wrote a fascinating series of articles on AI in which he talks about the pattern in the rate of human technological advance. This pattern shapes more than just the technology available to any given generation — it also informs our collective attitudes towards it.</p><blockquote>I want to address the growing trend of holding on to ignorance as a shield against the future.</blockquote><p><a href="http://waitbutwhy.com/2015/01/artificial-intelligence-revolution-1.html">The Artificial Intelligence Revolution: Part 1 - Wait But Why</a></p><p>This is a replica of one of the graphs in the article above. It roughly charts technological progress over the past 30,000 years. We’re on the cusp of the explosive growth spike today. We’re just waiting for the Singularity to happen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*YOQH1eqJk9j3j89mCQSLdA.png" /><figcaption>Rate of technological progress over time</figcaption></figure><p>However, that’s not what we’re here to discuss.</p><p>Here’s another graph.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*Ln_yW9C9oWkhx2oXGAP-5g.png" /><figcaption>Progress -vs- Knowledge</figcaption></figure><p>We’re looking at the tail end of the graph, just before the Singularity. What I’d like to discuss is the growing disparity between technological advance and how humans are starting to fall behind the curve. More than that, I want to address the growing trend of holding on to ignorance as a shield against the future.</p><p>It’s too easy to use the phrase ‘<em>Oh I’m no good with computers or technology!</em>’, usually followed by a self-deprecating giggle as an excuse for some technical gaffe or frustration at your TV that refuses to change channels.</p><p>We all have that one relative or friend who obstinately uses that excuse any time they’re called upon to install an app on their phone or set up their TV. Mostly, we sigh inwardly and carry on.</p><p>Some of these folks didn’t grow up with the absurd tech we have now and their online presence is minuscule. The worst that will happen to them is someone might see emails from friends and occasional invites to Bingo.</p><p>What is more concerning is that there are still many people who grew up with the same tech but have been infected with the misconception that all technology is unfathomable and therefore just A Mystery. It’s those folks that are risk. Beneath the self-deprecating humour and giggles lies a genuine issue.</p><h4>Change &amp; Consequence</h4><p>Over the past decade and a half, the rate of technological evolution has accelerated, but our collective attitude to technology has not evolved at the same rate.</p><blockquote>The consequences of ignorance were insignificant for the vast majority of the population.</blockquote><p>In the 80&#39;s and 90’s, as computers began their march to ubiquity, most people had no idea what these new-fangled gizmos were or what they could do. They were the domain of bespectacled nerds in their basements or of white-coated lab boffins typing out mystical symbols on glowing screens.</p><p>Nobody really knew what these new machines could do or indeed would do, so the prevailing social attitude of leaving the weird techno-gizmos to their acne’d overlords and pretending like they didn’t exist was validated. Computers were so ludicrously expensive and specialised that nobody felt their lives would be affected in any meaningful way.</p><p>Someone saying ‘Oh, I don’t know how these things work!’ and giving up was normal. The consequences of ignorance were insignificant for the vast majority of the population.</p><p>Over the next two decades, the staples of the Internet started to emerge into the mainstream consciousness: email, web pages, even instant messaging. People rushed to jump on the digital bandwagon and companies were only too happy to oblige the crowds with free trials, email mailboxes for the whole family, curated content and, yes, your very own ‘web space’.</p><p>Email, especially, was a novel way to communicate with friends, family and coworkers across the globe. It was a marvel of its age and helped all manner of communities grow closer. At the time, though, it was still primarily a means of communication.</p><h4>The connected world</h4><p>In the new millennium we saw the birth and subsequent explosive growth of portable computing, interconnected systems and, more than anything, an explosion in the number of web services which use Google or Facebook to allow users to create accounts and log in.</p><p>When Google released GMail as a beta product on the 1st of April 2004, it was far ahead of its competition in the likes of Hotmail, Lycos and Yahoo, to name a few. People flocked to it like never before.</p><p>Facebook had the same effect and no sooner has both companies realised the potential in monetising their user base and having the ability to track which sites they used, they invested heavily in the infrastructure and technology to allow users to use their services as authentication proxies to sign in, foregoing the need to even register on many sites on the web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*DqgdB5uk8s37NEFxiHNRCQ.png" /><figcaption>It’s all mostly Google or Facebook now.</figcaption></figure><p>Many are still stuck in the mindset of seeing the likes of Google or Facebook being islands of information. Email, especially, is still seen by the vast majority as a communication tool.</p><p>Your GMail account is now much more than that.</p><p>It is, without any trace of hyperbole, the gateway to your entire online life. With access to just your email inbox, it’s trivial for a malicious actor to totally take over vast swathes of your online presence.</p><p>I’m deliberately focusing on the external services connected to your email account rather than the obvious privacy implications of having your mailbox raided. In some respects, the privacy impact is the lesser evil.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*K0jKRIQvQcuX0SepToY6Eg.png" /></figure><p>Above are just four examples of the services that access to your email could compromise. All those accounts could be swiftly taken over by the simple expedient of changing the relevant passwords and locking you out. In the case of Amazon and PayPal, this can carry real financial risk as many have credit cards and their home addresses registered there.</p><p>For many, however, a combination of a wilful disregard of and resistance to reality— think of That Relative who insists on opening every email and clicking on every link and is surprised by the malware and porn — and a belief that “It won’t happen to me — what do I have to lose?” makes them especially vulnerable.</p><p>In building ever more complex systems, we run the risk of alienating users or overwhelming them with information. While it is certainly the job of the developers making and maintaining these systems to mitigate this, it’s not going to change.</p><p>Earlier I referred to the growing trend toward wilful ignorance with regards to technological progress. Many would look at times of huge technological change, measure the societal impact and shrug it off.</p><ul><li>Commercial air travel allowed for greater movement of people and goods, sure, but it didn’t radically change the average person’s life.</li><li>Radio and television allowed for propagation of new ideas and opened up whole new avenues for creativity, but the overall potential for direct impact on your personal life remains low.</li><li>Antibiotics made it possible to survive once-fatal diseases but unless you were struck down by one and needed the drugs, you didn’t really care one way or the other.</li></ul><p>Online technology is not like that.</p><p>In today’s increasingly connected world, opting out is not a feasible choice for many. That level of connectivity must by necessity bring with it much greater awareness of the risks that you face by exposing your digital self to an environment where coming under attack is not a random chance.</p><p>It’s statistical certainty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*eytHR6nDTM8hcUD387C1wA.png" /><figcaption>Technological level (blue) vs comprehension of those technologies (red)</figcaption></figure><p>Certainly, those developing the next generation of services and systems must work to make them comprehensible and design with security in mind, but there’s only so much that can be done without users doing their part.</p><p>We no longer live in a world where wilful ignorance of technology and, more importantly, online security, is not a sustainable position.</p><p>There is just too much scope, in my opinion, for genuine, life-affecting damage to result from not bothering to secure the gateways to your online life. If you’d like to find out just how many services are tied to your Google login, for instance, check out this link: <a href="https://myaccount.google.com/permissions">https://myaccount.google.com/permissions</a></p><p>Likewise for Facebook: <a href="https://www.facebook.com/settings?tab=applications">https://www.facebook.com/settings?tab=applications</a></p><h3>Fixing the problem</h3><p>It’s easy for me to sit here and talk about how everything is terrible and everything is on fire but that’s not very productive. Here are some very simple steps you can take to protect yourself online:</p><h4>Good passwords</h4><p>A lot starts with choosing a good password. Common words are right out. They’re very easy to guess using a dictionary attack — where an attacker tries words from a list of hundreds of thousands in the hopes that you used one of them.</p><p>Character substitution — using <em>Pa55w0rd123 </em>over <em>Password123</em> is also not useful as most software used to attack passwords will account for this.</p><p>Instead, you can use a complex string of characters which will require a lot of guesswork, like <em>aNA5qBLz19ffc.</em></p><p>One problem, though: human brains are awful at remembering nonsense like that.</p><p>A good alternative is to just revert to a pass<em>phrase </em>with correct sentence case, punctuation and so forth. <em>There are BEES in my pants, dawg! </em>is easy to remember and difficult to guess, even with a dictionary attack — even if they’re all Real Words, an attacker still has to figure out what order they’re in and adding punctuation ramps up the difficulty.</p><h4><strong>Password reuse</strong></h4><p>The standard advice is to never reuse your passwords, anywhere, ever. While I agree with this up to a point, for many people it’s just unfeasible without a password manager.</p><p>Use one of those, obviously, if you can. I’ll include a list later in this section. If you don’t, though, I would invite you to do a quick risk assessment on the likely consequences of whatever accounts share the same password being breached.</p><p>If your library has online features and you reuse the same password there as you do on your obscure gaming forum account, then the impact of someone cracking that password is going to be more annoying than actually dangerous. Sure, you might have to jump through hoops to get your access restored but it’s not that big a deal in the grand scheme of things.</p><p>If, however, you use the same password for your library account as you do for PayPal or GMail or Amazon, the consequences are potentially catastrophic — from someone spending hundreds or thousands of dollars of your money to potentially taking over any accounts tied to your mailbox.</p><p>The recommended solution, though, is to just use a password manager which can generate long and complex passwords for you for each site.</p><ul><li>Dashlane — https://www.dashlane.com</li><li>OnePassword — https://1password.com</li><li>LastPass — <a href="https://www.lastpass.com/">https://www.lastpass.com</a></li></ul><h4>2-Factor Authentication</h4><p>This is probably the most effective and immediate way to secure your online life.</p><p>2-factor authentication creates an extra barrier between someone who guesses/brute-forces/steals a password. When someone tries to log in with your credentials from a new location, they will also be prompted to enter a second password — usually a code that you receive by SMS or generate using an app — as part of the login.</p><p>Without having access to the second code, any new logins will be denied.</p><p>Instead of listing out every service that supports 2FA here, here’s a link to <a href="https://www.turnon2fa.com/">how to add 2FA</a> to the most common services.</p><p>Hopefully this will have given you some ideas on how and, arguably more importantly, <em>why</em> you should look at technical proficiency and security awareness as less of a chore and more of a necessity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ff63e19210e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evidence-based relationships]]></title>
            <link>https://poolski.medium.com/evidence-based-relationships-d7cd99c4b6b7?source=rss-5be49cc986b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7cd99c4b6b7</guid>
            <category><![CDATA[advice]]></category>
            <category><![CDATA[boundaries]]></category>
            <category><![CDATA[relationships]]></category>
            <category><![CDATA[sex]]></category>
            <dc:creator><![CDATA[Poolski]]></dc:creator>
            <pubDate>Sun, 08 Apr 2018 15:48:32 GMT</pubDate>
            <atom:updated>2018-04-08T16:46:25.924Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p32t0BzGCYw4qeXNlNazyw.jpeg" /></figure><h4>Translating Good Relationship Practices and Relationship Red Flags into the Real World.</h4><p>During a conversation with a friend, the subject of relationships and how we measure success came up, which sparked off the following train of thought:</p><blockquote>How do you implement those “Top 5 Healthy Relationship Habits”, “7 Things Emotionally Mature People Do” and “8 Signs You’re In A Toxic Relationship” listicles in your everyday life?</blockquote><p><a href="https://psiloveyou.xyz/9-healthy-relationship-habits-we-mistake-as-toxic-4ca714f4fe9">9 Positive Relationship Habits We Mistake As Negative</a></p><p>Listing out both positive and negative behaviours is an excellent start as it raises awareness of both things which you are doing right and those negative things you might be doing without realising.</p><p>The issue is that essays on the subject can be quite polar and absolutist, whereas very little in life is actually that clear-cut.</p><h4>Toxic relationship habits</h4><p>A lot of thought and discussion has been happening online on the subject of toxic relationship habits — how to spot them, how to avoid them and what to do if you’re in a toxic relationship. This is great and a long time overdue — people need to be aware of these things and I argue that they should be taught in schools as well as brought up by parents.</p><p>One of the biggest challenges in recognising toxic behaviour is that it very seldom appears out of the blue. Toxic habits and behaviour often creep in over time, so gradually that you don’t even notice and they become the norm. This is how many toxic relationships germinate.</p><p>This is one reason (among many) that people who are in toxic relationships don’t always feel like they are — the bullshit that is readily apparent to your best friend is just normal to you. You picture toxic or abusive relationships as ones where a partner goes to work with bruises and claims they fell down the stairs or where they’re kept chained to a radiator when they’re in the house and fed once a day.</p><h4>Healthy relationship habits</h4><p>In some ways, these can be equally difficult to isolate and identify because, like a top-notch IT Ops team, they’re invisible until they’re suddenly not there.</p><p>Because of how much we value the status quo and don’t want to upset it, it can be difficult to implement routines and habits for your relationship that are beneficial. It’s very easy to think “Everything is fine” and not necessarily look to improve things when some fairly minor changes can snowball into more awesome improvements in your daily life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SzRW8KOFWP5IWsjT076RYg.png" /></figure><h4>Evidence-based relationships</h4><p>Unlike the days where leeches, bleeding and bad humours were considered to be the pinnacle of medicine, today we operate (mostly) on evidence-based principles.</p><p>We measure mortality rates, substances have LD50 values, we can measure how fast a disease spreads and its vectors. We also measure, by way of double-blind studies, the effectiveness of a drug on a random sample of a population. As with any scientific investigation, you design your experiment, state your base assumptions, define your metrics and predictions, then you run the test.</p><p>There’s no reason the same algorithm can’t be applied to relationships.</p><p>It’s possible to define a set of metrics for a relationship and then measure against those things to get a snapshot of the “health” of your relationships.</p><p>To get you started, here is a list of potential metrics you could use and expand upon as no template will ever fit every possible situation. Maybe you already do lots of things right or maybe you’re worried that you’re Not Doing It Right — all of this is a spectrum and where you fall is entirely different to where someone else might be.</p><h4>Metrics</h4><p>You could measure all these on a scale — what the values are is up to you, depending on how granularly you want to measure things. Or you could come up with your own thing!</p><p>Please bear in mind that these are <em>suggestions</em> not rules. The results you get are just <em>data. </em>Whether you act on the information is a decision that you will need to make — you can add weighting to any one of the data points you use as a measure of “How many fucks do I give about this?” to help you.</p><p>Some results may vary even between two partners and can be used as a starting point for further discussion.</p><p>The statements below sit on different points on the [positive — negative] behaviours scale — you will need to decide exactly what each of them means to you. There is no implicit order to the points below, but some of the statements are related to ones above. [*]</p><p><a href="https://medium.com/@poolski/what-does-that-look-like-to-you-17e41a7c46f4">“What does that look like to you?”</a></p><ul><li>I can express my feelings without being judged</li><li>I feel comfortable &amp; safe saying “I’m not sure” about how I feel</li><li>My partner recognises and respects my desire for space</li><li>My physical, emotional and sexual boundaries are respected</li><li>I feel comfortable &amp; safe re-negotiating boundaries with my partner</li><li>I feel comfortable &amp; safe asking for small changes to my environment — turning the music down, dimming the lights, putting things back where they belong</li><li>My partner respects and acknowledges my experiences of a situation rather than trying to convince me that it’s not what happened</li><li>I feel comfortable &amp; safe asking for emotional support</li><li>I expect emotional support from my partner</li><li>My partner expects me to emotionally support them without reciprocating</li><li>When challenged on their behaviour, my partner acknowledges what I say without immediately trying to argue</li><li>I hear my partner out without trying to ‘fix’ whatever their issue is</li><li>I ask whether my partner wants my input on the situation they’re describing</li><li>I set expectations and follow through — meeting at specific times, committing to dates, communicating clearly</li><li>I feel pressured to avoid ‘drama’ which makes challenging potentially problematic behaviour difficult for me.</li><li>I feel like I have to keep secrets from my partner to avoid difficult conversations</li><li>I can raise potentially uncomfortable or awkward issues with my partner freely</li><li>My partner feels safe bringing up potentially uncomfortable or awkward issues with me.</li></ul><p>Any of the points that start with “I…” can and maybe should also be flipped to analyse whether the same is true in reverse — to indicate whether you feel like your partner also does these things.</p><p>All of the points can be added to a spreadsheet and then assigned values on whatever scale you want and modified by weighting them to give you an indication of what is important to you.</p><p>An example can be found here.</p><p><a href="https://docs.google.com/spreadsheets/d/190mFpVqNiZmcG5HUHr1qsbTuz5m858ckMaZcZg10OpE/edit?usp=sharing">Data-driven relationships example chart</a></p><p>Click <em>File &gt; Make a Copy</em> to clone this over to your own Drive.</p><p>If you like this, I’d appreciate it if you shared it with your friends ❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7cd99c4b6b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up IPv6 on UniFi Security Gateway]]></title>
            <link>https://poolski.medium.com/setting-up-ipv6-on-unifi-security-gateway-1bdf64722733?source=rss-5be49cc986b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bdf64722733</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[unifi]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[ipv6]]></category>
            <dc:creator><![CDATA[Poolski]]></dc:creator>
            <pubDate>Fri, 06 Apr 2018 19:26:04 GMT</pubDate>
            <atom:updated>2018-04-06T19:29:04.772Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5dS6ZUbFMS8YwLM7Q3CrwA.jpeg" /></figure><h4>Not as painful as you may expect!</h4><p>We are running out of IPv4 addresses, thanks to a whole bunch of reasons, mostly to do with the fact that everyone wants in on this “Internet” business.</p><h3>A quick primer.</h3><p>Skip this section if you know all this and/or don’t care.</p><p>The IPv4 publicly-routable address space — the number of unique possible addresses that can communicate with one another over the public Internet — is a 32-bit (2³² or 2 multiplied by 2 thirty two times) number. That means that there are about 4 billion usable addresses.</p><p>With some of those being reserved for private networks, we can shove many more devices on the Internet than there are IP addresses via the miracle of NAT.</p><p><a href="https://medium.com/@itseranga/network-address-translation-nat-df84dc1cb06c">Network Address Translation(NAT)</a></p><p>All that being said, we still have thousands of new machines joining the Internet every day, thanks to cloud computing by way of Amazon, Google and Microsoft.</p><p>We will soon not have any more numbers to give out to things that want one.</p><p>Enter IPv6. Version 6 of the IP protocol has a bunch of differences, almost all of which I will ignore because they’re not relevant here, but the crucial one is that the IPv6 address space (see above) is 128 bits long.</p><p>For the non-mathematically-inclined, that isn’t 4 times as much — though sixteen billion is definitely a bigger number[citation needed] than four billion — it’s <em>79,228,162,514,264,337,593,543,950,336 </em>times larger. Every time you add one more bit, the number doubles — that whole “multiply by 2 every time” thing.</p><h3>UniFi</h3><p><a href="https://www.ubnt.com/">Ubiquiti Networks</a> (UBNT) are a manufacturer of almost-enterprise-grade networking kit aimed at consumers and small businesses who can’t afford to pay Cisco or Juniper the bazillions of dollars they want for some of their toys.</p><p>Part of what makes their kit so appealing is that it’s manageable through either a dedicated hardware device called a Cloud Key which runs its management software or, if you don’t have spare cash, a downloadable version of the <em>exact same software</em> as the Cloud Key.</p><p>UBNT’s UniFi Controller manages all your UniFi devices which include:</p><ul><li>Wireless access points</li><li>Internet routers</li><li>Switches</li><li>VoIP phones</li></ul><p>This makes it ideal for home-gamer network geeks who want to have a flashy network setup without having to sell a kidney.</p><h4>IPv6 and the UniFi Security Gateway with DHCPv6</h4><p>Getting set up with IPv6 is actually a breeze with the USG.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-mITyc6vw6_ms5zlTpHZgQ.png" /><figcaption>The internet is offscreen to the left. No, really, that’s the internet over there.</figcaption></figure><p>This guide assumes you’ve already set up your USG and connected it to your UniFi Controller or Cloud Key. That and you’ve done all the network gubbins you need to make the UniFi stuff work with your network.</p><p>If you don’t have a USG but an EdgeRouter — look below!</p><p><a href="https://atech.blog/atech/creating-an-ipv6-network-with-an-edgerouter">Creating an IPv6 network with an EdgeRouter</a></p><p>If your ISP offers IPv6 connectivity, they will likely have assigned you an entire block of addresses to play with. In my case, I got an /64 block which, because of the magic of binary maths, fits into a 128-bit address space a staggering 18,446,744,073,709,551,616 times.</p><p>The 64-bit-wide block of addresses you might receive itself contains 18,446,744,073,709,551,616 possible numbers. So, finally, your toilet roll holder will have a routable public address!</p><p>To configure your USG with IPv6 support, you will firstly need version 5.7 or greater of the Unifi Controller as that adds native support for IPv6, meaning you don’t have to risk bricking your router by uploading malformed config files by accident.</p><p>Let’s go!</p><h4>WAN</h4><p>First things first: you will need to make sure your USG can talk to the world over IPv6.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*cpBAD13CHtosWvfWQZgiHw.png" /></figure><ul><li>Go to your Devices page and select your USG</li><li>In the USG flyout on the right, click the Config tab</li><li>Open up the WAN section and scroll to the IPv6 section.</li><li>Select <em>Using DHCPv6 </em>from the dropdown under Connection Type</li><li>Enter your Prefix Delegation Size (the block your ISP assigned you) — mine is 64. Yours may vary.</li><li>Queue and apply your changes. Your Internet connectivity may disappear at this point as the USG has to reprovision itself with the new settings.</li><li>You can SSH into it and run some commands to check:</li></ul><pre>show ipv6 route<br>show interfaces<br>ping6 google.com</pre><ul><li>The first will show you whether your USG has IPv6 routes available to it.</li><li>The second will show you the USG’s IPv6 address</li><li>The third will test whether you can ping Google over IPv6.</li></ul><h4>LAN</h4><p>Once you’re happy that the USG is ticking along happily, you will also need to let devices on your network know that IPv6 addresses are available to them. Because IPv6 addresses are designed to be publicly-routable, using it sort of does away with NAT (see above).</p><p>Every device on your network (in our case) will get an IPv6 address which it can use to talk to the wider world without the need for your router to do address translation. Both IPv4 and 6 will play nicely with each other side-by-side.</p><p>In the Settings panel, head over to Networks and edit whichever network you would like to enable IPv6 on. In my case, it was the only one but you may wish to be choosy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r4Ud7vSkWpxZ7t4RmQh-cA.png" /></figure><ul><li>Open up the <em>Configure IPv6 Network </em>panel</li><li>Select <em>Prefix Delegation</em> from the options.</li><li>Make sure you’re using the right WAN interface (usually WAN1)</li><li>Enter the network block size in the <em>IPv6 Prefix ID</em> field</li><li>Enable <em>IPv6 Router Advertisement</em></li><li>Leave all the other stuff alone</li><li>Save and apply.</li></ul><p>At this point, you may want to reconnect your device to the network, restart or request another IP address using your favourite way.</p><p>You can check whether you have an IP6 address by running <em>ifconfig</em> if you’re on Linux or Mac or <em>ipconfig</em> if you’re a Windows guy.</p><p>If all went well, you should see some IPv6 addresses assigned. You can further check that things are working as you’d expect by going <a href="http://ipv6-test.com/">here</a> and running the test.</p><p>Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bdf64722733" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t look for role models.]]></title>
            <link>https://poolski.medium.com/dont-look-for-role-models-2d5e357bfe38?source=rss-5be49cc986b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d5e357bfe38</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[relationships]]></category>
            <dc:creator><![CDATA[Poolski]]></dc:creator>
            <pubDate>Sat, 24 Mar 2018 15:10:14 GMT</pubDate>
            <atom:updated>2018-06-11T10:12:24.076Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JifD1MEcwFlREUZ3Pvccng.jpeg" /><figcaption>Don’t be like this puppy and chew the grass. Humans cannot digest cellulose.</figcaption></figure><p>We all have that someone we look up to — someone who inspires us, makes push further, think more and be a better human. Inspiration is part of what makes us human, but it’s also not without its weakness.</p><p>Initially, I was going to write this post with a specific audience in mind. Teens. Then I got to thinking: <em>we all do this.</em></p><p>We do this in our social lives</p><blockquote>I wish I had such a busy social schedule — all I ever seem to do is stay home and watch Netflix.</blockquote><p>We do it in our relationships</p><blockquote>Those guys have it all figured out — they have such a loving relationship, they never fight and they’re so cute!</blockquote><p>We do it at work, we do it with friends — the list goes on.</p><p>Often we see someone who is the very ideal of what we aspire to in life, work, relationships, sport, maybe even sex and we can’t help but <em>want to be them. </em>In our eyes, they’re perfect. They can do no wrong and they’re the End Goal of your personal evolution as far as you’re concerned.</p><p>That’s super not healthy. Every self-help advice book will tell you “Just be yourself!” with a pithy smile and it just Sounds. So. Trite. And it <em>is </em>trite, but it’s also true.</p><p>The thing about trying to be someone else just because you think that they’re just the perfect human is that it generates <em>a lot of cognitive load.</em> It’s why even the best spies don’t construct an entirely new persona for themselves — they will integrate aspects of one into their own. In a stressful situation, you don’t want to be trying to remember to stay in character <em>and </em>react appropriately.</p><p>So this is my suggestion:</p><blockquote>Don’t try to be someone else. Take the bits you find appealing and find a way to integrate them into yourself.</blockquote><p>If your idol is a social butterfly, firstly consider whether you actually <em>want</em> that level of social interaction — if you’re exhausted by conversation with 8 people at the same time, you will break down.</p><p>If you find that you <em>do</em> want to pursue expanding your social activity, invite a friend or two over for pizza and movies. Take up programming and go to a meetup. Find a weekly running group — whatever it is, you will start to integrate Social Things into your life.</p><p>The Perfect Couple? You may be surprised to find that many couples are putting on a front so that other people comment on just how gosh-darn <em>perfect</em> their relationship is, thereby validating it.</p><p>They are the couples who you always see on Facebook and Instagram, posting selfie after selfie with their partner, full of #blessed #bestboyfriend #bestgirlfriend #soinlove. Many folks see that and think that’s what they want: the ‘perfect’ Instagram Relationship. It just looks so #divine!</p><p>However, in my experience, the <em>real</em> Perfect Couples quietly get on with it. They don’t give a single FUCK about what people think of their relationship. They don’t post perfectly-framed and edited photos and Moments of their life on Instagram. You don’t even know they exist, because they’re busy focusing on the things that matter.</p><p>For them, the relationship is a fucking castle that they’re building every day, brick by brick. They know that they have each others’ backs — they have nothing to prove to their partner by grand public displays of affection or lavish gifts.</p><p>Ask folks you know who seem to be in amazing relationships how they manage so well. You may be surprised that many of them bring up the same themes over and over:</p><ul><li><a href="https://fityourself.club/things-healthy-couples-dont-fight-about-87319fd8cfd9">Communication </a>— they have the difficult conversations.</li><li>Gratitude — they remember to say ‘Thank you’ when their partner buys the milk on the way home.</li><li>Honesty — they expect everything they do and say to be taken at face value and do the same for their partner. No fucking mind games.</li><li>Trust — they don’t spend time worrying about what their partner is thinking. It wastes time and energy and they recognise that worrying won’t fix it.</li></ul><p><a href="https://medium.com/the-post-grad-survival-guide/you-are-not-responsible-for-other-peoples-emotions-bfdf3d2bd1c1">You Are Not Responsible for Other People’s Emotions</a></p><p>In any situation where you find yourself idolizing someone, think about what it is about them that you would want to have and then try to work out how to integrate that into yourself.</p><p>When you start doing this, the process of so doing will also help you understand both yourself and the thing that you’re working toward much better from the inside. It will no longer be superficial change. It’ll be right there inside you where no other fucker will be able to question it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d5e357bfe38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Huel: Instant Food for tired brains.]]></title>
            <link>https://poolski.medium.com/huel-instant-food-for-tired-brains-3fc1a3f56c13?source=rss-5be49cc986b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fc1a3f56c13</guid>
            <category><![CDATA[self-help]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[nutrition]]></category>
            <category><![CDATA[depression]]></category>
            <category><![CDATA[food]]></category>
            <dc:creator><![CDATA[Poolski]]></dc:creator>
            <pubDate>Wed, 17 Jan 2018 13:27:30 GMT</pubDate>
            <atom:updated>2018-01-17T13:29:19.039Z</atom:updated>
            <content:encoded><![CDATA[<h4>It’s not a replacement for Real Food but it has its place.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*adWnC2i_UREDxof2YbmCRw.jpeg" /><figcaption>Snack!</figcaption></figure><p><em>In this post I want to discuss “meal replacement” drinks as something to help you when you’re not in a mental state to cook which often results in chowing down on entire family-size bags of chips just to fill your belly.</em></p><h4>Some background.</h4><p>There’s no real reason for you to have heard of <a href="https://uk.huel.com/">Huel</a> or its close cousin <a href="https://www.soylent.com/">Soylent</a>. One or the other may have crossed your feeds at some point, especially if you’re a tech nerd and self-avowed “life hacker”.</p><p>In a nutshell, Huel and Soylent, ignoring the unfortunate 1984 reference, are billed as “Meal Replacements”. The idea is that a single serving of one of these things is nutritionally comparable to a balanced meal.</p><p>A single serving, looks a bit like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c_oMEMrg-AEKXabV.JPG" /></figure><p>The texture is akin to a smoothie with a few spoonfuls of porridge oats thrown in and blended nicely. A bit gritty and, in my case, flavoured faintly with vanilla out of the box. It’s available in an unflavoured variety, if you prefer savoury shakes (madness!).</p><p>Meal replacement products have been in the public consciousness for a while, but usually either as protein shakes for <strong><em>THE GAINZ </em></strong>or as weight-loss/detox/fad diet aids. As a result, that’s the lens through which they tend to be viewed — only hardcore gym weirdos or health freaks use them.</p><p>Plenty of <a href="http://www.thelawofattraction.com/tips-beat-low-mood-depression/?utm_source=pinterest&amp;utm_medium=pin&amp;utm_campaign=pin-loa&amp;utm_content=tips-beat-low-mood-depression-23-05-2020">self-care</a> <a href="https://twitter.com/tumblrsfunnies/status/676153620027588608">guides</a> out there list nutrition and hydration as things that you should look to do when you’re experiencing an episode of depression or anxiety and I think they’re totally right.</p><p>Without calories or water, your body and especially your brain stop working like they should, which often leads to a situation where you <em>know</em> you need to eat and drink but can’t even summon up the willpower to get out of bed to nibble on a biscuit and drink some water.</p><p>Food, however, is a tricky thing — if you’re in a shitty place, you might not even <em>want</em> to eat, let alone make delicious food because all the while your brain is screaming <strong><em>“It’s going to take forever to cook and will taste awful anyway”</em></strong><em>. </em>The last thing on your mind will be <em>“I should cook something because it’ll be good for me”.</em></p><p>It’s a good idea to cook something you really like and can freeze for later. That way, when you have absolutely no inclination to cook, you can defrost/warm up frozen chicken soup and sip it from a mug.</p><p>The problem with this is that it requires some forward planning and you might not always remember to take care of Future You.</p><p>Sometimes you will have been sat at your desk working or you’ve been outside and come home and suddenly <strong>The Hunger </strong>hits you. Or maybe you’ve forgotten to eat all day because you’ve been stuck in a loop of shitty thoughts for 8 hours straight.</p><blockquote>Insta-food like Huel and Soylent is absolutely fucking phenomenal in this situation.</blockquote><p>When you absolutely have no desire to prepare anything, it’s very easy to default to eating an entire block of cheese or a bag of chips but while that’ll make you full, it can contribute to all the shitty thoughts because now your brain has yet another thing to make you feel shit about:</p><blockquote>“Look at yourself — you just ate a whole fucking bag of chips like some loser who can’t even cook for themselves. You’re a fucking failure of a human”</blockquote><p>And fuck that.</p><p>Insta-food, as I like to call it, makes use of a couple of really neat psychological nudges — side note, <a href="https://www.amazon.co.uk/Nudge-Improving-Decisions-Health-Happiness/dp/0141040017">Nudge</a> is an excellent book on how to both get people to do things and how to help yourself form habits.</p><p><strong>Making it Available</strong> (removing barriers to doing the thing)</p><p><strong>Making it Easy</strong> (reducing the time between wanting the thing and having the thing) <br><br>The aim here is not to replace your entire diet with insta-food shakes — some folk do it and thrive, but I’m not convinced. It’s not even to ensure you have an absolutely perfectly balanced nutritional intake every day — although it definitely helps.</p><p>The idea is to reduce the time from realising how hungry you are and having something that’s both filling and nutritious in your stomach to as close to zero as you can.</p><p>The effort required to mix up a batch of insta-food is about as minimal as it’s possible to be short of just shovelling down spoonfuls of the dry powder. With a little bit of foresight you can stash pre-mixed batches in the fridge for a couple of days as well.</p><blockquote>I’m not saying that insta-foods are necessarily a replacement for Actual Food, but when you’re in a shit place mentally, they can serve as a pretty fucking good starting point to get those basic nutritional needs covered so your brain can work a bit better.</blockquote><p><em>It’s not a meal replacement — it’s brain and body fuel for when you’re having trouble functioning.</em></p><h4>Addendum</h4><p>I’m awful at mornings. I like to stay in bed as long as I can, especially during the winter where anything outside the duvet is a frozen wasteland full of wolves and spiders.</p><p>As a result, I’ve historically been bad at Doing Breakfast. Morning Brain considers even arranging the things necessary to make a bowl of cereal — spoon, bowl, milk, cereal — too much effort. I realise that in the grand scheme of things it isn’t but try telling that to Morning Brain.</p><p>My morning routine is therefore compressed into the bare minimum amount of time spent outside the duvet and insta-food fills the niche of Breakfast Fuel nicely. Mixed with (instant) coffee and some honey it’s great!</p><p>Thanks for reading!</p><p>I’d love to know your thoughts on this too!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fc1a3f56c13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Women taking the lead.]]></title>
            <link>https://poolski.medium.com/women-taking-the-lead-b3843ad85bbe?source=rss-5be49cc986b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3843ad85bbe</guid>
            <category><![CDATA[sex]]></category>
            <category><![CDATA[romance]]></category>
            <category><![CDATA[relationships]]></category>
            <category><![CDATA[gender-equality]]></category>
            <dc:creator><![CDATA[Poolski]]></dc:creator>
            <pubDate>Wed, 06 Dec 2017 17:26:53 GMT</pubDate>
            <atom:updated>2017-12-12T12:47:12.037Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kkhQ9THyG4Yd7FhUG-ihWg.jpeg" /><figcaption>A metaphor for ego. The hammer is not a penis metaphor, however.</figcaption></figure><h4>Not scary. Also not about your ego.</h4><p>As guys we’re conditioned to be the ones who are in charge, in control, always making the first move, the first kiss, the first anything — all the way up to initiating sex.</p><p>But when a lady grabs you by the tie and whispers <em>“Take your clothes off, I want you right now.”</em>, some of you might recoil. Your manhood is under attack — this is all wrong, it’s your job to say that: you’re the Man!</p><p>It feels like pressure. Suddenly you’re expected to perform. The focus is now on you. You must carry the show, as it were.</p><p>And here’s the thing: you’re not. It’s not. You don’t have to.</p><p>It’s a signal that she’s really into you. Like, <strong>really</strong> into you. However, underneath, nothing’s changed. It’s still a game of two (or more, depending) players. She’s not expecting you to suddenly transform into Imeros himself and blow her clothes off with your laser dick.</p><p>What about your Manly Manhood?</p><p>What about it? Will your ego be totally destroyed by encountering a person who is just as in control of their sexuality as any other sentient being with a sense of agency? Probably not.</p><p>Like dating a woman who totally has her shit together and has her own life that isn’t solely defined by being your breasted satellite, a sexual partner who owns that shit and isn’t afraid to say what they want isn’t scary — it’s empowering.</p><p>It’s not about you.</p><p>As with everything that could possibly involve humans, none of this is set in stone. There are myriad sexual and romantic dynamics out there and your mileage may vary, but as a broad guideline, it’s pretty sound.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3843ad85bbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A message to #yesallmen]]></title>
            <link>https://poolski.medium.com/a-message-to-yesallmen-2a89733788f0?source=rss-5be49cc986b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a89733788f0</guid>
            <category><![CDATA[feminism]]></category>
            <category><![CDATA[men]]></category>
            <category><![CDATA[sexual-assault]]></category>
            <category><![CDATA[women]]></category>
            <category><![CDATA[metoo]]></category>
            <dc:creator><![CDATA[Poolski]]></dc:creator>
            <pubDate>Mon, 16 Oct 2017 12:20:40 GMT</pubDate>
            <atom:updated>2017-10-16T12:20:40.908Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ygfdu8F9MYcAIVC-SiMu4Q.jpeg" /></figure><h4>What’s this #MeToo hashtag?</h4><p>This shit’s been covered by now from hundreds of angles, so this is nothing new, but I’m going to add my voice.</p><p>If you’ve been on social media anytime in the past week, you will have seen just how many women are coming forward with their own stories of sexual harassment/abuse.</p><p>Listen. Pay attention.</p><p>Pay attention to <strong>just how fucking many </strong>of your female friends have been sexually assaulted/groped/yelled at/sworn at/abused by total strangers or <strong>by people you both know</strong>.</p><p>Let it sink in.</p><p>This shit is not <em>something that happens to other people. </em>It’s happened to women in your life, people close to you. It’s <em>happening</em> to women you know.</p><p>If you’re feeling like you’re under sudden attack, please realise that <strong>it’s not about you</strong>. It’s about the culture that</p><ul><li>Tells us that it’s socially acceptable to yell at women in the street because they like the look of them.</li><li>Treats grabbing a stranger’s arse as “just a bit of harmless fun”</li><li>Makes women frightened of coming forward to report their abusers because their life choices will be microscopically examined to justify the abuse.</li><li>Convinces people that they and their friends live in an isolated bubble of perfection where the harassment, abuse, molestation and catcalling happens <em>to other people, not us.</em></li></ul><p>Step back and look at just how many of your friends are sharing their stories. <strong>This shit is everywhere.</strong> It’s not “just a few cases”.</p><p>Chances are, someone you know has been yelled at/catcalled/groped today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a89733788f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recovering Windows Server 2012 on Xen Server]]></title>
            <link>https://poolski.medium.com/recovering-windows-server-2012-on-xen-server-f16ef6c685f?source=rss-5be49cc986b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f16ef6c685f</guid>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[virtualization]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[Poolski]]></dc:creator>
            <pubDate>Mon, 31 Jul 2017 11:19:28 GMT</pubDate>
            <atom:updated>2017-07-31T11:19:28.659Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IutJzMkTq_6yyv2HTy2KJw.jpeg" /><figcaption>Windows never does things by half measures…</figcaption></figure><p>Greetings!</p><p>In this post I want to cover what to do when Windows Server 2012 decides to corrupt its Xen I/O drivers, paravirtualisation drivers, thus rendering the Citrix Xen Management Tools unable to communicate with their host server.</p><p>I’ve yet to figure out why Windows does this — I’ve already lost one server to it before I managed to fix the second to succumb to this problem.</p><h3>Symptoms:</h3><ul><li>Unresponsiveness to reboot commands from CLI or XenCenter.</li><li>Needing to force reboot/shut down affected VM.</li><li>Affected VMs take up to 20 minutes to boot and show the login screen.</li><li>Login takes anywhere between 10 minutes and an hour.</li><li>You’re unable to launch any processes whatsoever — no Task Manager, Windows Explorer, etc.</li></ul><p>Basically, in this state, nothing works and it’s impossible to reinstall the XenServer tools because the Xen storage drivers are FUBAR so even though guest-tools.iso mounts, you can&#39;t do anything with it.</p><p>Usually, this is compounded by services failing to start. This includes the Windows Installer Service (MSIServer) which makes it even harder to fix the problem.</p><h3>My Solution</h3><p>Turns out not all is lost. <br>All you need is:</p><ul><li>A working Windows 10 ISO image. Any flavour will do.</li><li>A working copy of Citrix XenCenter on a Windows machine, connected to your hypervisor/pool.</li><li>Local administrator access to your VM.</li></ul><p><strong>Step 1: Enable and boot into Safe Mode</strong></p><ol><li>Mount the Windows 10 ISO image into the affected VM. <br>It doesn’t matter what state the VM is in as we’ll likely end up force rebooting it.</li><li>Reboot the VM. You’ll likely need to force reboot it using either XenCenter or by issuing xe vm-reboot --force vm=vm_name_here from the CLI.</li><li>As it’s rebooting, watch the console for the <em>press any key to boot from DVD</em> message. Press a key.</li><li>Once the Windows 10 installation screen comes up, click <strong>Repair your computer</strong> in the bottom left corner.</li><li>Once you get to the repair screen, click <strong>Troubleshoot</strong>.</li><li>On the Troubleshooting screen, click <strong>Advanced options</strong></li><li>From there, click <strong>Startup Settings</strong></li><li>Select option 4 — <strong>Enable Safe Mode</strong></li><li>Continue and restart.</li></ol><p><strong>Step 2: Reinstall Xen Tools</strong></p><p>Once you boot into Safe Mode, you should be able to actually <em>do</em> stuff with your machine. <br>First things first — you need to configure Windows to allow the Windows Installer Service (MSIService) and Citrix Management Agent (XenSvc) to start in Safe Mode. They’re blocked from doing so by default.</p><p>To do this, you will need to make some modifications to the Registry.</p><ol><li>Open the Registry Editor. Hit Win+R and type regedit in the box or fire up the Start Menu and run Registry Editor.</li><li>Browse to HKLM\System\CurrentControlSet\Control\SafeBoot\Minimal, assuming you booted into regular Safe Mode. If you booted into Safe Mode with Command Propmt, you&#39;ll need to edit Miniman and if you booted into Safe Mode with Networking, you&#39;re looking for Network.</li><li>Right click on the right folder (assuming Minimal here) and select New and Key.</li><li>In the Name field, type MSIServer.</li><li>Open the new key, double click on the (Default) entry and enter Service in the value. Uppercase.</li><li>Create another key for XenSvc and do the same as above.</li></ol><p>Now you need to remove the previous broken version of the Xen Tools. Head to your Control Panel and <strong>remove</strong> the Citrix Xen Management Tools. <br><strong>Don’t reboot, though</strong>.</p><p>Once that’s done, you can mount the guest-tools.iso image in your machine from XenCenter.</p><p>Open up Windows Explorer, browse to the DVD drive and run Setup.exe as Administrator for good measure (right click &gt; Run As Administrator). It should run through the setup without any issues and complete.</p><p>Once it’s done, you can unmount the disk and reboot — everything should come up as normal.</p><p>Please leave a comment and share if this has helped you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f16ef6c685f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>