Skip to content

Instantly share code, notes, and snippets.

user_id: '54eee748ec1e417d7e42e8fb', value: { profile: { service_type: 'page', profile_id: [Object], service: 'google' }, partner_source: '', via: 'api', placement: null, shared_now: false, num_profiles: 4, top: false, source: 'api', version: null, update_id: { '$oid': '558a6751f73c1407578b456c' }, client_id: { '$oid': '5022676c169f37db0e00001c' }, partner_placement: '', scheduled_at: { '$date': 1435159200000 } }, metric: 'event.updates', date: 1435133777000 }
http://kibana.buffer.com/#/visualize/create?type=histogram&indexPattern=event_data&_g=(refreshInterval:(display:Off,section:0,value:0),time:(from:now-4h,mode:quick,to:now))&_a=(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'_type:event.api.capped')),vis:(aggs:!((id:'1',params:(),schema:metric,type:count),(id:'2',params:(extended_bounds:(),field:date,interval:auto,min_doc_count:1),schema:segment,type:date_histogram)),listeners:(),params:(addLegend:!t,addTooltip:!t,defaultYExtents:!f,mode:stacked,shareYAxis:!t),type:histogram))
version: '2'
services:
ghost:
image: ghost:1.16.2
volumes:
- ./ghost-db/:/var/lib/ghost/content/
expose:
- "2368"
environment:
url: https://steven.news
real_ip_header X-Forwarded-For;
set_real_ip_from 0.0.0.0/0;
split_clients "$remote_addr" $variant {
50% "google.com";
* "yahoo.com";
}
server {
listen 80;
package main
import (
"fmt"
"log"
"net/http"
"runtime"
"time"
"github.com/opentracing-contrib/go-stdlib/nethttp"
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: myhelloworld
name: myhelloworld
spec:
replicas: 1
template:
metadata:

When Istio Meets Jaeger - An Example of End-to-end Distributed Tracing

Kubernetes is great! It helps many engineering teams to realize the dream of SOA (Service Oriented Architecture). For the longest time, we build our applications around the concept of monolith mindset, which is essentially having a large computational instance running all services provided in an application. Things like account management, billing, report generation are all running from a shared resource. This worked pretty well until SOA came along and promised us a much brighter future. By breaking down applications to smaller components, and having them to talk to each other using REST or gRPC. We hope expect things will only get better from there but only to realize a new set of challenges awaits. How about cross services communication? How about observability between microservices such as logging or tracing? This post demonstrates how to set up OpenTracing inside a Kubernetes cluster that enables end-to-end tracing between serv

$ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
sudo apt-key add -
$ curl -s -L https://nvidia.github.io/nvidia-docker/debian9/amd64/nvidia-docker.list | \
sudo tee /etc/apt/sources.list.d/nvidia-docker.list
$ sudo apt-get update && sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
spec:
image: kope.io/k8s-1.8-debian-stretch-amd64-hvm-ebs-2018-01-05
kubelet:
featureGates:
DevicePlugins: "true"
machineType: p2.xlarge
maxSize: 2
minSize: 2
apiVersion: v1
kind: Pod
metadata:
name: gpu-pod
spec:
containers:
- name: cuda-container
image: nvidia/cuda:9.0
resources:
limits: