Sunday, February 5, 2023
GCP Juara GCP

Debugging Applications for Site Reliability Engineers

reliability

“Debugging Applications for Site Reliability Engineers”

Pengantar

Cloud Debugger memungkinkan developer men-debug kode yang sedang berjalan dengan data permintaan langsung. Di lab ini, Anda akan menyetel breakpoint dan log point untuk memeriksa apa yang menyebabkan masalah performa aplikasi.

Praktikum

Task 1. Using Debugger

Download source code

cd ~
wget https://storage.googleapis.com/kochasoft/gsp989/cloud-ops-sandbox-next19.tar.gz
tar -xvf cloud-ops-sandbox-next19.tar.gz
cd cloud-ops-sandbox-next19
  • Klik More (three dots More icon) -> download ke local beri nama cloud-ops-sandbox-next19

Upload source code to Debugger

  • Pada Debugger home page, select the recommendationservice in the Application dropdown
  • Dibawah Alternative source code pilih Select Source
  • Kemudian upload file yang sebelumnya di download

Create a snapshot

  • Buka recommendation_server.py
  • Pada baris 63 klik Create Snapshot
  • Klik Left Menu > GKE > Services & Ingress.
  • Klik frontend-external IP address , nanti akan muncul website
  • Pada Cloud Debugger

Create a logpoint

  • click on line 63 of recommendation_server.py
  • Pada Message field pilih type testing logpoint
  • setting File and Line field to recommendation_server.py:63
  • Klik Add button

Penutup

Sahabat Blog Learning & Doing demikianlah penjelasan mengenai Debugging Applications for Site Reliability Engineers. Semoga Bermanfaat . Sampai ketemu lagi di postingan berikut nya.

(Visited 11 times, 1 visits today)
Baca Juga :  Using Cloud Error Reporting to Remediate Workload Issues on GKE

Similar Posts