This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIICpzCCAk2gAwIBAgIUDWOb2bgBLZ+Vuqr7H0dlNxpyfoIwCgYIKoZIzj0EAwIw | |
FDESMBAGA1UEAxMJVGVzdCBDQSAxMB4XDTE4MDYxOTE2NDMyMFoXDTI4MDYxNjE2 | |
NDMyMFowFDESMBAGA1UEAxMJVGVzdCBDQSAxMFkwEwYHKoZIzj0CAQYIKoZIzj0D | |
AQcDQgAEOF9GX0vk+fia1Es114uBi3w+4AK1k+VLvladnJQQzosePPLSnOdE36MY | |
/cYnc+hAWasoqGoZFFCt/xA7+B0HaaOCAXswggF3MA4GA1UdDwEB/wQEAwIBhjAP | |
BgNVHRMBAf8EBTADAQH/MGgGA1UdDgRhBF84YTpjNDozZjo2Mjo5MDo5NzoxMzo1 | |
ODpiOTo4Zjo3NTpmYjplMDo1Yzo5Yjo2Nzo3YTplZjo2Nzo4YjozMjozNTo1Nzow | |
YjowMzpiYzpiNTphMzo5Zjo5YjozMjpkYTBqBgNVHSMEYzBhgF84YTpjNDozZjo2 | |
Mjo5MDo5NzoxMzo1ODpiOTo4Zjo3NTpmYjplMDo1Yzo5Yjo2Nzo3YTplZjo2Nzo4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test setup | |
========== | |
DO droplet with 8vcpu 32GB RAM 640GB SSD/ | |
// Master (boltdb log store) | |
Running 10s test @ http://localhost:8500/v1/kv/foo | |
4 threads and 50 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 4.91ms 2.84ms 49.55ms 91.78% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package watchpool | |
import ( | |
"context" | |
"sync" | |
"time" | |
) | |
// WatchPool is a shared container for watch channels that are closed to notify | |
// multiple observers of a change. It allows sharing the monitor goroutine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"net" | |
"os" | |
"os/signal" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"log" | |
"math" | |
"math/rand" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package state | |
import ( | |
"fmt" | |
"testing" | |
"github.com/hashicorp/go-memdb" | |
"github.com/hashicorp/consul/agent/structs" | |
"github.com/hashicorp/consul/api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var UVCControl = require('uvc-control'); | |
var camera = new UVCControl(0x046d, 0x082d); | |
camera.get('autoFocus', function (error, value) { | |
console.log('Before AutoFocus setting:', value); | |
}); | |
camera.set('autoFocus', 0, function (error) { | |
if (error != undefined) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"fmt" | |
"github.com/hashicorp/go-msgpack/codec" | |
) | |
var h codec.MsgpackHandle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attaching to envoy_consul_1 | |
consul_1 | ==> Starting Consul agent... | |
consul_1 | ==> Consul agent running! | |
consul_1 | Version: 'v1.4.4-285-g19361f073-dev (19361f073+CHANGES)' | |
consul_1 | Node ID: '6d9e3780-cd4a-4520-c4a7-e59a58cb69a5' | |
consul_1 | Node name: 'a21b7272d6b9' | |
consul_1 | Datacenter: 'dc1' (Segment: '<all>') | |
consul_1 | Server: true (Bootstrap: false) | |
consul_1 | Client Addr: [0.0.0.0] (HTTP: 8500, HTTPS: -1, gRPC: 8502, DNS: 8600) | |
consul_1 | Cluster Addr: 127.0.0.1 (LAN: 8301, WAN: 8302) |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goroutine 643475 [running]: | |
runtime/pprof.writeGoroutineStacks(0x3628a40, 0xd01a7ad7a0, 0x0, 0x0) | |
/usr/local/go/src/runtime/pprof/pprof.go:679 +0x9d | |
runtime/pprof.writeGoroutine(0x3628a40, 0xd01a7ad7a0, 0x2, 0x0, 0x0) | |
/usr/local/go/src/runtime/pprof/pprof.go:668 +0x44 | |
runtime/pprof.(*Profile).WriteTo(0x566ef00, 0x3628a40, 0xd01a7ad7a0, 0x2, 0xd01a7ad7a0, 0x7f8ec613a460) | |
/usr/local/go/src/runtime/pprof/pprof.go:329 +0x390 | |
net/http/pprof.handler.ServeHTTP(0xcf94a9c4f1, 0x9, 0x36771a0, 0xd01a7ad7a0, 0xc6c6572b00) | |
/usr/local/go/src/net/http/pprof/pprof.go:245 +0x356 |