Skip to content

Instantly share code, notes, and snippets.

@gyliu513
gyliu513 / WatsonxInstrumentor.py
Last active November 15, 2023 17:42
WatsonxInstrumentor
class WatsonxInstrumentor(BaseInstrumentor):
"""An instrumentor for Watsonx's client library."""
def instrumentation_dependencies(self) -> Collection[str]:
return _instruments
def _instrument(self, **kwargs):
print("calling instrument")
tracer_provider = kwargs.get("tracer_provider")
tracer = get_tracer(__name__, __version__, tracer_provider)
# https://docs.docker.com/engine/admin/systemd/
Many Linux distributions use systemd to start the Docker daemon. This document shows a few examples of how to customize Docker’s settings.
Starting the Docker daemon
Once Docker is installed, you will need to start the Docker daemon.
$ sudo systemctl start docker
# or on older distributions, you may need to use
$ sudo service docker start
If you want Docker to start at boot, you should also:
root@jupiter-vm1254:/# tcpdump -nn host 10.1.103.192
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tunl0, link-type RAW (Raw IP), capture size 262144 bytes
05:35:39.908731 IP 10.1.103.192.33148 > 10.1.228.196.80: Flags [S], seq 1406795194, win 27800, options [mss 1390,sackOK,TS val 299880142 ecr 0,nop,wscale 7], length 0
05:35:39.909613 IP 10.1.228.196.80 > 10.1.103.192.33148: Flags [S.], seq 565181304, ack 1406795195, win 28960, options [mss 1460,sackOK,TS val 119945795 ecr 299880142,nop,wscale 7], length 0
05:35:39.909638 IP 10.1.103.192.33148 > 10.1.228.196.80: Flags [.], ack 1, win 218, options [nop,nop,TS val 299880142 ecr 119945795], length 0
ingress controller
```
[ubuntu@perfbriggs3 fs]$ kc -n kube-system get ds nginx-ingress-lb-ppc64le -oyaml
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"extensions/v1beta1","kind":"DaemonSet","metadata":{"annotations":{},"name":"nginx-ingress-lb-ppc64le","namespace":"kube-system"},"spec":{"minReadySeconds":0,"template":{"metadata":{"labels":{"arch":"ppc64le","name":"nginx-ingress-lb"}},"spec":{"containers":[{"args":["/nginx-ingress-controller","--default-backend-service=$(POD_NAMESPACE)/default-http-backend","--configmap=$(POD_NAMESPACE)/nginx-load-balancer-conf"],"env":[{"name":"POD_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.name"}}},{"name":"POD_NAMESPACE","valueFrom":{"fieldRef":{"fieldPath":"metadata.namespace"}}}],"image":"ibmcom/nginx-ingress-controller-ppc64le:0.9.0-beta.13","imagePullPolicy":"IfNotPresent","livenessProbe":{"httpGet":{"path":"/healthz","port":10254,"scheme":"HTTP"},"initialDel
@gyliu513
gyliu513 / gist:8a4500d6d4dea3307631c50d997a45c9
Created February 1, 2017 02:10
Commit mesos code with apach account
https://gyliu@git-wip-us.apache.org/repos/asf/mesos.git
https://reference.apache.org/committer/git#committers
Git global setup
git config --global user.name "Guangya Liu"
git config --global user.email "gyliu@apache.com"
git config --global user.name "Guangya Liu"
git config --global user.email "gyliu513@gmail.com"
git config user.name "Guangya Liu"
git config user.email "gyliu513@gmail.com"
http://feisky.xyz/k8s/
go test -v k8s.io/kubernetes/pkg/kubelet
http://kubernetes.kansea.com/docs/admin/multi-cluster/
http://kubernetes.io/docs/user-guide/service-accounts/
https://helm.sh/
https://github.com/kubernetes/community/blob/master/contributors/devel/development.md
KUBE_ENABLE_CLUSTER_DNS=true
KUBE_DNS_SERVER_IP="10.0.0.10"
KUBE_DNS_DOMAIN="cluster.local"
./hack/local-up-cluster.sh -O
git remote add upstream https://github.com/kubernetes/community
111 git fetch upstream
git config --global http.proxy http://9.21.54.14:3128
git config --global https.proxy https://9.21.54.14:3128
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
ELKF: http://www.linuxidc.com/Linux/2016-06/132616.htm
http://blog.csdn.net/hiyun9/article/details/51602428
[root@kvm ~]# yum install httpd
[root@kvm ~]# echo "<html>10.0.0.137</html>" > /var/www/html/index.html
[root@lvs-backup ~]# yum install httpd
[root@lvs-backup~]# echo "<html>10.0.0.111</html>" > /var/www/html/index.html
2.看下效果: