Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure and enable PPROF for every component #12230

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/check-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ jobs:

- name: Replace pprof enabled value with false
run: |
grep 'NSM_PPROF_ENABLED' -rl * | xargs sed -i '/name: NSM_PPROF_ENABLED/{ n; s/value: .*/value: false/g }'
grep 'NSM_PPROF_ENABLED' -rl * | xargs sed -i '/name: NSM_PPROF_ENABLED/{ n; s/value: .*/value: "false"/g }'
grep 'NSM_PPROF_ENABLED' -rl * | xargs sed -i 's/NSM_PPROF_ENABLED: .*/NSM_PPROF_ENABLED: "false"/g'
grep 'NSM_PPROF_ENABLED' -rl * | xargs sed -i 's/NSM_PPROF_ENABLED=true/NSM_PPROF_ENABLED=false/g'

git add -- .
git commit -s -m "Replace pprof enabled value with false"
Expand Down
6 changes: 5 additions & 1 deletion apps/admission-webhook-k8s/admission-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
- name: NSM_LABELS
value: spiffe.io/spiffe-id:true
- name: NSM_ENVS
value: NSM_LOG_LEVEL=TRACE
value: "NSM_LOG_LEVEL=TRACE,NSM_PPROF_ENABLED=true,NSM_PPROF_LISTEN_ON=localhost:6060"
- name: NSM_SIDECAR_LIMITS_MEMORY
value: 80Mi
- name: NSM_SIDECAR_REQUESTS_MEMORY
Expand All @@ -56,6 +56,10 @@ spec:
value: 200m
- name: NSM_SIDECAR_REQUESTS_CPU
value: 100m
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/cluster-info/cluster-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
imagePullPolicy: IfNotPresent
name: cluster-info
volumeMounts:
Expand Down
4 changes: 4 additions & 0 deletions apps/csi-driver/csi-driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ spec:
value: "/nsm-csi/csi.sock"
- name: NSM_VERSION
value: cmd-csi-driver:811999f
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
# The volume containing the Network Service API socket.
# The NSM CSI driver will mount this directory into containers.
Expand Down
4 changes: 4 additions & 0 deletions apps/dashboard/dashboard-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ spec:
value: unix:///run/spire/sockets/agent.sock
- name: NSM_REGISTRY_URL
value: "registry:5002"
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/forwarder-ovs/forwarder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/forwarder-sriov/forwarder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ spec:
value: TRACE
- name: NSM_SRIOV_CONFIG_FILE
value: /var/lib/networkservicemesh/sriov.config
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 2 additions & 2 deletions apps/forwarder-vpp/forwarder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ spec:
fieldPath: metadata.name
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_PORT
value: "6060"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/nsc-kernel/nsc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/nsc-memif/nsc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
2 changes: 2 additions & 0 deletions apps/nsc-simple-docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ services:
NSM_FEDERATES_WITH: k8s.nsm
NSM_TRUST_DOMAIN: docker.nsm
NSM_LOG_LEVEL: TRACE
NSM_PPROF_ENABLED: "true"
NSM_PPROF_LISTEN_ON: "localhost:6060"
4 changes: 4 additions & 0 deletions apps/nsc-vfio/nsc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ spec:
value: vfio://pingpong?sriovToken=worker.domain/10G
- name: NSM_LIVENESS_CHECK_ENABLED
value: "false"
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/nse-firewall-vpp/nse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
value: TRACE
- name: NSM_CONNECT_TO
value: unix:///var/lib/networkservicemesh/nsm.io.sock
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/nse-kernel/nse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
value: TRACE
- name: NSM_CONNECT_TO
value: unix:///var/lib/networkservicemesh/nsm.io.sock
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/nse-memif/nse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
value: "$(POD_NAME)"
- name: NSM_LOG_LEVEL
value: TRACE
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/nse-noop/nse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
value: TRACE
- name: NSM_SERVICE_NAMES
value: "pingpong: { addr: 0a:55:44:33:22:11 }"
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/nse-remote-vlan/nse-remote-vlan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ spec:
value: "tcp://:5003"
- name: NSM_LOG_LEVEL
value: TRACE
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
2 changes: 2 additions & 0 deletions apps/nse-simple-vl3-docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ services:
NSM_FEDERATES_WITH: k8s.nsm
NSM_TRUST_DOMAIN: docker.nsm
NSM_LOG_LEVEL: TRACE
NSM_PPROF_ENABLED: "true"
NSM_PPROF_LISTEN_ON: "localhost:6060"
4 changes: 4 additions & 0 deletions apps/nse-supplier-k8s/supplier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spec:
fieldPath: metadata.name
- name: NSM_LOG_LEVEL
value: TRACE
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/nse-vfio/nse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ spec:
value: TRACE
- name: NSM_SERVICE_NAMES
value: "pingpong: { addr: 0a:55:44:33:22:11 }"
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/nse-vl3-vpp/nse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions apps/nse-vlan-vpp/nse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
value: TRACE
- name: NSM_CONNECT_TO
value: unix:///var/lib/networkservicemesh/nsm.io.sock
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
8 changes: 8 additions & 0 deletions apps/nsmgr-proxy/nsmgr-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ spec:
fieldPath: status.podIP
- name: NSM_MAP_IP_FILE_PATH
value: "/etc/mapip/config.yaml"
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand All @@ -66,6 +70,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: mapip-volume
mountPath: /etc/mapip
Expand Down
8 changes: 6 additions & 2 deletions apps/nsmgr/nsmgr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ spec:
value: TRACE
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_PORT
value: "6060"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
- name: NSM_REGISTRY_URL
value: "registry:5002"
# - name: DLV_LISTEN_NSMGR
Expand Down Expand Up @@ -91,6 +91,10 @@ spec:
env:
- name: NSM_LOG_LEVEL
value: TRACE
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: exclude-prefixes-volume
mountPath: /var/lib/networkservicemesh/config/
Expand Down
4 changes: 2 additions & 2 deletions apps/registry-k8s/registry-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ spec:
value: nsmgr-proxy:5004
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_PORT
value: "6060"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
imagePullPolicy: IfNotPresent
name: registry
ports:
Expand Down
4 changes: 4 additions & 0 deletions apps/registry-memory/registry-memory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ spec:
value: TRACE
- name: NSM_PROXY_REGISTRY_URL
value: nsmgr-proxy:5004
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
imagePullPolicy: IfNotPresent
name: registry
ports:
Expand Down
4 changes: 4 additions & 0 deletions apps/registry-proxy-dns/registry-proxy-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ spec:
value: tcp://:5005
- name: NSM_LOG_LEVEL
value: TRACE
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
imagePullPolicy: IfNotPresent
name: registry
ports:
Expand Down
4 changes: 4 additions & 0 deletions apps/vl3-ipam/vl3-ipam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ spec:
value: 172.16.0.0/16
- name: NSM_LOG_LEVEL
value: TRACE
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
imagePullPolicy: IfNotPresent
name: vl3-ipam
ports:
Expand Down
4 changes: 4 additions & 0 deletions apps/vl3-lb/lb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
value: "80"
- name: NSM_LOG_LEVEL
value: TRACE
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions examples/features/exclude-prefixes-client/nse-kernel-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ spec:
value: 172.16.1.96/29
- name: NSM_SERVICE_NAMES
value: nsm-service-1
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions examples/features/exclude-prefixes-client/nse-kernel-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ spec:
value: 172.16.1.96/29
- name: NSM_SERVICE_NAMES
value: nsm-service-2
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions examples/features/multiple-services/first-nse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
value: "multiple-services-1"
- name: NSM_REGISTER_SERVICE
value: "false"
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions examples/features/multiple-services/second-nse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
value: "multiple-services-2"
- name: NSM_REGISTER_SERVICE
value: "false"
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
4 changes: 4 additions & 0 deletions examples/features/mutually-aware-nses/nse-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ spec:
value: TRACE
- name: NSM_CONNECT_TO
value: unix:///var/lib/networkservicemesh/nsm.io.sock
- name: NSM_PPROF_ENABLED
value: "true"
- name: NSM_PPROF_LISTEN_ON
value: "localhost:6060"
volumeMounts:
- name: spire-agent-socket
mountPath: /run/spire/sockets
Expand Down
Loading
Loading