DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Data Engineering
  3. Data
  4. Running a Microservice Application on DC/OS

Running a Microservice Application on DC/OS

Learn how to get a local development cluster running on DC/OS using dcos-vagrant and the dcos-cli.

Kevin Crawley user avatar by
Kevin Crawley
·
Sep. 15, 18 · Tutorial
Like (4)
Save
Tweet
Share
4.84K Views

Join the DZone community and get the full member experience.

Join For Free

There are multiple methods of deploying a DC/OS cluster, today we’ll be focused on getting a local development cluster running using dcos-vagrant. We’ll also be using the dcos-cli.

The Instana agent and Stan’s Robot Shop is capable of running on any modern laptop with a quad-core processor and 16GB of ram.

Start up the development DC/OS cluster and authenticate through the DC/OS CLI tool:

$ vagrant up
$ dcos auth login


Deploy Stan’s Robot Shop

Return to your command line prompt and change directory into the robot-shop/DCOS folder. Run the deploy.sh script:

$ cd robot-shop/DCOS
$ ./deploy.sh


While you’re waiting for the deployment to complete, this is a good opportunity to install the Instana agent to monitor your sample microservice application.

Deploy the Instana Agent

Next, you’ll need to install the Instana agent. Open the DC/OS web portal in your browser, click the Catalog menu item on the left, search for Instana, click on instana-agent, then click Review & Run. You’ll need to configure your agent key, set agent-zone name and click Review & Run again, then finally click Run Service.

Once the Instana agent is running, you should find a healthy set of services in Services > robotshop in your DC/OS web portal. Click the web service, find the running task, click on it, and then click on the Endpoint hyperlink.

Once you’ve landed on the shop page, feel free to click around, buy some stuff. Once you’re done buying a truckload of squishy Stan's you may notice Instana has automatically discovered all the services we just deployed and is now monitoring them.

As you fill your cart with R2D2s you’ll notice the service map is automatically built and the request is traced end-to-end.

Monitoring Your Applications on DC/OS

Monitoring DC/OS with Instana is so easy, even a K9 robot could do it.

You have reached microservice monitoring Guru status and achieved a Zen-like inner peace not having to worry about how your application is performing. What are you going to do with all the time you have just got back?

application microservice

Published at DZone with permission of Kevin Crawley, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Data Mesh vs. Data Fabric: A Tale of Two New Data Paradigms
  • The Real Democratization of AI, and Why It Has to Be Closely Monitored
  • Data Engineering Trends for 2023
  • The 31 Flavors of Data Lineage and Why Vanilla Doesn’t Cut It

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: