Giter Club home page Giter Club logo

monolith_to_microservices's Introduction

Monolith to Microservices

ticketmonster

In this module you'll learn how to migrate a monolithic application to the cloud and how to fearlessly break it up into microservices. Therefore, we want to walk you through the different stages of identifying and extracting a microservice, as well as strangling it around its origin โ€“ the monolith. For this purpose, the module provides step-by-step instructions and labs showing the best practices we have identified for migrating a monolith to the cloud. This module goes along with a blog post series, which you can find here. Please take a look at the different blog posts to learn more about certain migration steps.

Prepare Environment for Labs

  1. Clone the repository from monolith to microservices

    git clone https://github.com/dynatrace-innovationlab/monolith-to-microservice-openshift.git
    
  2. Create the project in OpenShift

    oc login <OurClusterIP:port>
    
    • User: userXX (XX is your assigned number)
    • Password: ask instructor
  3. After the successful login, create your own project:

    oc new-project <project-XX>
    
  4. Set up a management zone for your OpenShift project

    1. Login to the Dynatrace tenant: tenant-url (Please ask instructor for Dynatrace tenant and login credentials.)
    2. Go to Settings, Preferences, and click on Management zones.
    3. Click Create management zone and set name to project-XX (XX is your assigned number).
    4. Click Add new rule and set rule applies to Process groups.
    5. As condition define: Kubernetes namespace > begins with > enable Case sensitive > name of your project project-XX
    6. Enable both checkboxes: Apply to underlying hosts of matching process groups and Apply to all services provided by the process groups
    7. Finally, click Save.

Troubleshooting

Some useful OpenShift CLI commands:

  • oc get pods: retrieve all pods
  • oc get services: retrieve all services
  • oc get routes: get all exposed routes
  • oc delete all -l app=<yourappname>: delete an app and all assigned resources to this app
  • oc logs <pod-name>: get the logs of a pod
  • oc rsh <pod-name>: open a remote shell on this pod

monolith_to_microservices's People

Watchers

James Cloos 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.