This file contains hidden or 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" | |
| "fmt" | |
| "math/rand" | |
| "os" | |
| "os/signal" | |
| "syscall" | |
| "time" |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| yum install -y wget | |
| mkdir -p /opt/misc | |
| pushd /opt/misc | |
| wget https://downloads.yugabyte.com/yugabyte-2.0.1.0-linux.tar.gz | |
| tar xf yugabyte-2.0.1.0-linux.tar.gz |
This file contains hidden or 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
| 2019/07/27 13:38:09 [DEBUG] agent: Check "agreement-api-debug-10.128.15.247-24465-ttl-alive" in sync | |
| 2019/07/27 13:38:09 [DEBUG] agent: Check "agreement-api-debug-10.128.15.247-20721-ttl-alive" in sync | |
| 2019/07/27 13:38:09 [DEBUG] agent: Check "agreement-api-services-10.128.15.247-22584-ttl-alive" in sync | |
| 2019/07/27 13:38:09 [DEBUG] agent: Check "service:agreement-api-services-10.128.15.247-22584:2" in sync | |
| 2019/07/27 13:38:09 [DEBUG] agent: Check "agreement-api-services-10.128.15.247-22584-ttl-alive" status is now passing | |
| 2019/07/27 13:38:09 [DEBUG] agent: Service "agreement-api-services-10.128.15.247-22584" in sync | |
| 2019/07/27 13:38:09 [DEBUG] agent: Service "agreement-api-debug-10.128.15.247-20721" in sync | |
| 2019/07/27 13:38:09 [DEBUG] agent: Service "agreement-api-debug-10.128.15.247-24465" in sync | |
| 2019/07/27 13:38:09 [DEBUG] agent: Check "agreement-api-services-10.128.15.247-22584-ttl-alive" in sync | |
| 2019/07/27 13:38:09 [DEBUG] agent: Check "service:agreement-api-services-10.128.15.247-22584:2" in sync |
This file contains hidden or 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" | |
| "math/rand" | |
| "net/http" | |
| _ "net/http/pprof" | |
| "os" | |
| "os/signal" |
This file contains hidden or 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 c radix.Client | |
| var raw resp2.RawMessage | |
| err = conn.Do(radix.Cmd(&raw, "CLUSTER", "SLOTS")) | |
| if err == nil { | |
| var ct radix.ClusterTopo | |
| var rerr resp2.Error | |
| if ct.UnmarshalRESP(bufio.NewReaderSize(bytes.NewReader(raw), len(raw))) == nil { | |
| c, err = radix.NewCluster([]string{ar.Addr}, | |
| radix.ClusterPoolFunc(df), | |
| ) |
This file contains hidden or 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" | |
| "math/rand" | |
| "net/http" | |
| _ "net/http/pprof" | |
| "os" | |
| "os/signal" |
This file contains hidden or 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" | |
| "math/rand" | |
| "net/http" | |
| _ "net/http/pprof" | |
| "os" | |
| "os/signal" |
This file contains hidden or 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 ( | |
| "flag" | |
| "io" | |
| "log" | |
| "net" | |
| "runtime" | |
| "sync/atomic" | |
| "time" |
This file contains hidden or 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" | |
| "time" | |
| "github.com/levenlabs/go-llog" | |
| "cloud.google.com/go/pubsub" | |
| "google.golang.org/grpc/codes" |
This file contains hidden or 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 corednslmetric | |
| import ( | |
| "fmt" | |
| "log" | |
| "net" | |
| "net/http" | |
| "bitbucket.org/levenlabs/llib/lmetric" | |
| "github.com/coredns/coredns/plugin/metrics" | |
| "github.com/gogo/protobuf/proto" | |
| "github.com/prometheus/client_golang/prometheus" |
NewerOlder