Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Ingress
    • Helm Chart
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Spinnaker
    • Jenkins
  • Coding
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
    • Golang
    • Laravel
    • Jquery & JavaScript
    • Git
    • Selenium
  • Log & Monitor
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
  • Toggle search form

[Istio] Analyzing Istio Performance by pprof

Posted on October 7, 2021October 7, 2021 By nim No Comments on [Istio] Analyzing Istio Performance by pprof

Bỗng dưng 1 hôm bạn nhận được request rằng đám istiod nó Peak CPU kinh vậy

Monitor Pod/Node của istiod

Tiền đâu thì links tham khảo:
https://github.com/istio/istio/issues/23031
https://github.com/istio/istio/wiki/Analyzing-Istio-Performance
https://jvns.ca/blog/2017/09/24/profiling-go-with-pprof/

Để có thể Analyzing Istio Performance thì chúng ta cần tool là pprof và kubectl trên máy tính và browser.
Mình thích chạy trên windows vì:
– thứ nhất là mình hay làm việc workspace: windows.
– thứ 2 cài mấy cái này trên windows với khó chứ MAC hày Linux nó dễ lắm

Giờ thì làm sao để chạy được pprof.

Bước 1 cài golang lên máy tính:

Bạn cần cài kubectl trên máy

https://kubernetes.io/vi/docs/tasks/tools/install-kubectl/
links tải file exe dành cho windows:
https://storage.googleapis.com/kubernetes-release/release/v1.22.0/bin/windows/amd64/kubectl.exe

Mình sẽ hay để các file chạy kiểu này folder user.
Vì khi bạn mở CMD lên nay ở vị trí này đỡ cd ra chỗ khác.
Cũng như trên linux thì chúng ta cũng có file config trong thư mục .kube
PS C:\Users\mrnim> .\kubectl.exe get ns
>>> lệnh trên windows thì là chút
.\kubectl.exe -n istio-system port-forward deployment.apps/istiod 8080:8080

Lúc này chúng ta cần truy cập port 8080 dùng cách trên he.

go tool pprof -http=:8888 localhost:8080/debug/pprof/profile

Lúc này nó auto mở browser ở laptop của mình.
và bạn sẽ thấy dòng chữ trên Browser.
could not execute dot may need to install graphviz

Giờ chúng ta cần cài graphviz
http://www.graphviz.org/download/
https://bobswift.atlassian.net/wiki/spaces/GVIZ/pages/20971549/How+to+install+Graphviz+software

Vẫn là chỉ file cài windows, tải về và cài nhé các bạn

https://bobswift.atlassian.net/wiki/spaces/GVIZ/pages/20971549/How+to+install+Graphviz+software

Chúng ta sẽ cần hỉnh lại path:

Thêm vào text này vào trong 2 cái đó
C:\Program Files\Graphviz\bin
nhập xong là cứ ok ok và khới động lại máy
go tool pprof -http=:8888 localhost:8080/debug/pprof/profile

Sau khi gõ lại chúng ta, nó âuto mở browser.

To be Continue…

Isito-EnvoyFilter

Post navigation

Previous Post: [letsencrypt] DST Root CA X3 Expiration (September 2021)
Next Post: [Grafana] Hướng dấn tạo Menu Dropdown trên Grafana

More Related Articles

[Prometheus/Istio] Research about Recording Rules in Prometheus and reduce metrics of istio cluster. Isito-EnvoyFilter
[Prometheus/Kiali] Setting Prometheus or Kiali for multi-cluster Istio mode. Isito-EnvoyFilter
[Istio-Multi Cluster] Tutorial is very detailed to install Primary-Remote on different networks Isito-EnvoyFilter
[istio] Sử dụng istio-operator và istioctl để cài đặt Istio Isito-EnvoyFilter
[istio] Discover route TCP in Cluster Istio Isito-EnvoyFilter
[istio] There are a few problems inside mode “POD to POD” when using Istio Isito-EnvoyFilter

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • [Argocd/Vault] Integrate Vault inside Argocd by the plugin July 1, 2022
  • [Vault] Using Service Acount of Kubernetes to login Vault system. June 28, 2022
  • Protected: My Assignment  June 24, 2022
  • [Spinnaker] Spinnaker writes too many logs – Reduce spinnaker log level June 22, 2022
  • [Jenkins] Jobs will be created automatically by Jenkins Job Builder June 20, 2022

Archives

  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • BareMetal
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Jenkins
    • Spinnaker
  • Coding
    • Git
    • Golang
    • Jquery & JavaScript
    • Laravel
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kubernetes
      • Ingress
    • Longhorn – Storage
    • Vault
    • VictoriaMetrics
  • Log & Monitor
    • ELK
      • Kibana
      • Logstash
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2022 NimTechnology.