Giter Club home page Giter Club logo

tracing-training's Introduction

Distributed tracing training

  1. Установка jaeger
kubectl create -f https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/master/all-in-one/jaeger-all-in-one-template.yml
  1. Развертывание приложений
kubectl apply -f manifests.yaml
  1. Убеждаемся, что всё корректно разложилось:
kubectl get po --all-namespaces
  1. Определяем IP сервиса api-gateway и делаем тестовые запросы:

Получение автомобилей:

minikube ssh -- curl -i $(kubectl get po -n api-gateway -o jsonpath='{.items[*].status.podIP}'):8090/cars

Покупка:

minikube ssh -- "curl -i -d '{\"name\": \"chevy s-10\"}' $(kubectl get po -n api-gateway -o jsonpath='{.items[*].status.podIP}'):8090/process"
  1. Откроем интерфейс jaeger
minikube service jaeger-query
  1. Получите информацию:
  • Как происходит запрос /cars? Какие сервисы затрагивает и в какой последовательности?
  • Как происходит запрос /process? Какие сервисы затрагивает? Есть ли параллельные вызовы?
  1. Задеплойте вторую версию:
kubectl apply -f manifestsv2.yaml
  1. Дождитесь Running:
kubectl get po --all-namespaces
  1. Выполните запросы из пункта 4 (несколько раз до получения 500 ошибки).

  2. С помощью jaeger UI получите информацию в чем root cause ошибки.

tracing-training's People

Contributors

lookyan avatar

Stargazers

 avatar Evgeny avatar  avatar Nikolay Ignatev avatar Evgeniy Maynagashev avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.