Guest User

Untitled

a guest
Jan 21st, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 KB | None | 0 0
  1. # Observability Workshop: Kubernetes, Tracing, and Metrics
  2.  
  3. Time Requirements:
  4.  
  5. - w/ Audience Participation: 2-3 hours
  6. - Instructor Only: 1.5 hours
  7.  
  8. ---
  9.  
  10. The goal of this workshop is to familiarize application and site reliability engineers with the benefits that modern observability tools provide to the builders and curators of cloud native applications.
  11.  
  12. In this workshop attendees will configure a RBAC-enabled vanilla K8S cluster in GKE, deploy prometheus and jaeger in support of observing and monitoring a distributed microservice application, instrument that application by introducing libraries and tooling to support capturing business metrics as well. Each attendee will configure, update, and deploy a cloud native application utilizing the following technologies:
  13.  
  14. * Google Kubernetes Engine - we will bootstrap a small K8S cluster using Googles free $300 trial.
  15. * Gitlab - we will implement a CI/CD pipeline with our cloud native application in order to build and deploy our application while we integrate Prometheus, Opentracing and Jaeger into our application.
  16. * Helm - we will utilize Helm to deploy policies, monitoring services, ingress rules, operators, and our demo application.
  17. * Spring Petclinic Microservices - we will utilize a distributed Java/Springboot/Angular based cloud native application. We will start with an unmonitored version and work together to bring observability to our application.
  18. * Grafana / Prometheus - we will demonstrate how to utilize prometheus operators to configure prometheus scrape targets. We will utilize micrometer to expose JMX metrics, install custom dashboards, and setup custom business metric dashboards and alerting rules.
  19. * Jaeger / Opentracing - we will demonstrate how to utilize the Jaeger client and opentracing libraries to gain visibility into the communication happening between your microservices and database systems.
  20.  
  21. During this workshop we will discuss and explore some of the following topics:
  22.  
  23. * How Distributed Tracing works and why it's become a requirement when deploying cloud native applications.
  24. * The pitfalls, challenges, and solutions to managing and deploying observability at scale.
  25. * What's missing? Important aspects of our operations are't being monitored, let's find out what and, more importantly, how to fix it.
  26. * The history of Spring Petclinic and the decision behind refactoring to no longer depend on Eureka/Zuul (Spring Cloud).
  27. * Challenges of utilizing Opentracing implementation in non-java languages/frameworks along with some code samples.
  28. * We'll uncover why service meshes, such as Istio, will reduce the technical costs of observability.
  29. * Troubleshooting and Root Cause Analysis 101. We'll do our best to _not_ DDOS the conference wifi and put some stress on our newly deployed applications by simulating load from a GCE instance.
  30. * Where is the innovation happening in observability? Let's discuss automation, AI, and the future.
  31.  
  32. Technical Requirements
  33.  
  34. * Modern unix-like OS and a browser (windows should work, if you have git bash)
  35. * git, code editor, openssh, vim, bash
  36. * basic understanding and recent experience using these tools will be beneficial when participating with the group during the lab sessions
  37. * google cloud account with or without billing enabled*
  38. * gitlab account**
  39.  
  40. > \* : Google offers a $300 voucher to use for their trial. However, Google Cloud requires a credit card when signing up to verify you're not a bitcoin miner. Even if you have an account I recommend creating a new gmail account (if necessary) and using that.
  41. > \** : Gitlab is free. You'll be forking a repository and pushing code/configuration changes to that fork.
  42.  
  43. Developer Requirements
  44.  
  45. * Some programming experience [java, c, php, python, etc]
  46. * Development tooling experience [make, mvn, yaml, vim]
  47. * Unix-like tooling [bash, scripting, vim]
  48. * Basic networking (DNS/routing)
  49. * We will use `nip.io` to give our application a public wildcard domain. If you manage your own domains you could alternatively use your own domain name (we will only cover using `nip.io` in the workshop)
  50.  
  51. Q+A:
  52.  
  53. > Q: Will we walk through signing up for Google Cloud and Gitlab at the beginning of the workshop?
  54. > A: Yes. However, I highly recommend you do this prior to the workshop. Google `new gitlab account` and `google cloud trial` for answers.
  55.  
  56. > Q: Why Gitlab / Google?
  57. > A: Gitlab has a built-in CI/CD pipeline system and integration with K8S tooling. Google has an extremely mature and feature-rich managed solution for k8s. Also, it's free.
  58.  
  59. > Q: I already have a "company", "personal", "sandbox" Google Cloud account, can I just use that?
  60. > A: This would not be recommended. Your account could have policies or restrictions which would prevent you from following along with the exercise.
  61.  
  62. > Q: I got this, I know more about Google Cloud than Google does. How much will this cost me?
  63. > A: Free if you just sign up for a new account. Otherwise, it's about $10-15 for the compute/network/etc time over the course of the workshop.
  64.  
  65. > Q: Why can't we just use minikube?
  66. > A: This workshop was built using a 2018 XPS 13 w/ a quad core and 16gb ram using minikube. The project quickly outgrew this machine and operationally requires at minumum of 8 real cores and 20gb of ram (at load).
  67.  
  68. > Q: Wow, your laptop sucks. I have a 12-core alienware with 64gb of ram. Can I just use minikube?
  69. > The project itself includes dependencies on large frameworks and libraries, requires heavy weight compilers, and multiple build tools. By operationalizing this project, we offload all of the network and compute requirements to the cloud - we only need our local machines to make code changes and commit them.
  70. > To answer your question, yes, you can. But please, don't.
Add Comment
Please, Sign In to add comment