Skip to content

Instantly share code, notes, and snippets.

Avatar

Masroor Hasan masroorhasan

View GitHub Profile
View ch_parts_query.sql
SELECT
parts.*,
columns.compressed_size,
columns.uncompressed_size
FROM
(
SELECT
table,
formatReadableSize(sum(data_uncompressed_bytes)) AS uncompressed_size,
formatReadableSize(sum(data_compressed_bytes)) AS compressed_size
View etcd_txn_stm.go
package main
import (
"context"
"flag"
"fmt"
"log"
"sync"
"time"
View flagger_canary.yaml
apiVersion: flagger.app/v1alpha3
kind: Canary
metadata:
name: resnet-serving
spec:
# deployment reference
targetRef:
apiVersion: apps/v1
kind: Deployment
name: resnet-serving
View resnet_v2_routing.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: resnet-serving
spec:
hosts:
- "*"
gateways:
- resnet-serving-gateway
http:
View resnet_v2_canary.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: resnet-serving
spec:
hosts:
- "*"
gateways:
- resnet-serving-gateway
http:
View resnet_serving_v2.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: resnet-serving-v2
labels:
app: resnet-serving
version: v2
spec:
revisionHistoryLimit: 3
strategy:
View resnet_v1_routing.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: resnet-serving
spec:
hosts:
- "*"
gateways:
- resnet-serving-gateway
http:
View resnet_gateway.yaml
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: resnet-serving-gateway
spec:
selector:
istio: ingressgateway # use istio default controller
servers:
- port:
number: 31400
View resnet_egress.yaml
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: aws-s3
spec:
hosts:
- s3.us-east-2.amazonaws.com
ports:
- number: 80
name: http-port
View resnet-serving-ingress-gateway.yaml
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: resnet-serving-gateway
spec:
selector:
istio: ingressgateway # use istio default controller
servers:
- port:
number: 31400