SlideShare a Scribd company logo
1 of 40
Download to read offline
Containerizing Couchbase With Microservice
Architecture On Mesosphere DC/OS
Anil Kumar
Principal Product Manager
Couchbase, Inc.
LinkedIn – https://www.linkedin.com/in/anilkumar29
Twitter – @anilkumar1129
Ravi Yadav
Technology Partnerships Lead, Ecosystem
Development
Mesosphere, Inc.
Twitter: @RaaveYadav
Agenda
• Containerizing Couchbase
• Couchbase on Container Orchestration Technologies
• Mesosphere DC/OS
• Kubernetes / RedHat OpenShift Enterprise
• Overview of Mesosphere DC/OS
• DEMO !!!
• Couchbase and Mesosphere: Better Together
Containerizing Couchbase
Containers - Business Benefits
● DevOps & Continuous Delivery
○ Low impact & risk; update one container at a time
● Build Once & Run Anywhere
○ Instantiate clones for development, testing and production
● Scalability
○ Scale-up or Scale-down containers easily based on demand
● Isolation
○ Safely run multiple microservice containers with isolation
● High Availability
○ Redundancy from multiple containers fulfilling a role
● Performance
○ Minimal impact from container overhead
Containerizing Couchbase
Why Couchbase is Good-fit for Containers?
Microservice Architecture
COUCHBASE SERVER CLUSTER
Container 3 Container 4 Container 5 Container 6 Container 7 Container 7 Container 9
Container
10
Container
11
QUERY SERVICE INDEX SERVICE
DATA SERVICE
Container
1
Container
2
SEARCH SERVICE
Containerizing Couchbase
Couchbase Container Production Certified
• We production certify Couchbase Docker image and
RHEL image with every version (x.x.x)
• New images gets published to https://hub.docker.com
and
• Everything you want to know about ‘Running
Couchbase in Container’ -
https://www.couchbase.com/containers
• Best Practices -
http://developer.couchbase.com/documentation/server
/current/install/deploy-with-docker-hub.html
Couchbase on Container
Orchestration Technologies
Mesosphere DC/OS provides the built-in automation to manage the lifecycle of Couchbase
Cluster using data services which includes -
● The deployment, placement, security, scalability, availability, failure recovery, and in-place
upgrades of the services.
DC/OS simplifies storage management for Couchbase Server with Stateful data service
● Couchbase can be easily deployed with only a few clicks from the DC/OS Universe or a single
command from the DC/OS CLI
● Mesosphere DC/OS provides options for local persistent storage and external volumes
Benefits of Running Couchbase on Mesosphere DC/OS
Common Customer - Verizon Labs IoT/ThingSpace & Couchbase
Couchbase on Container Orchestration Technologies
Run Couchbase cluster on Container Orchestration
Technologies
• [Developer Preview] Couchbase running on
Mesosphere
http://www.infoworld.com/article/3180698/data-center
/mesosphere-dcos-brings-elastic-scale-to-redis-couchb
ase.html
• [Developer Preview] Couchbase running on OpenShift
Enterprise 3.5 (Kubernetes 1.5)
https://www.youtube.com/watch?v=fxox6DD96HQ
Overview of Mesosphere
DC/OS
THE WORLD HAS CHANGED AND WE
ARE ALL NOW SOFTWARE
COMPANIES.
Software is eating the world.
Marc Andreessen
WE LIVE IN THE
ALWAYS
CONNECTED
ECONOMY. 3.7BMobile Broadband Users
80%New Data is Unstructured
13Connected Devices per
Household
(N. Amer)
40%Annual Enterprise Data Growth
Sources: IHS Markit, IDG, KPCB, Ericsson
IN THE ALWAYS CONNECTED ECONOMY
SOFTWARE IS YOUR BUSINESS.
Build more apps.
Personal and meaningful customer
experiences
Innovate faster.
Capture value from new value
streams and actionable data insights
Modernize IT.
Always-available services that are
secure and cost effective
MODERN ENTERPRISE
APPS REQUIRE NEW
CAPABILITIES.
Distributed computing
expertise.
Engineering and operations of
secure & highly reliable services at
scale
DevOps process &
culture.
Frequent & reliable releases
supported by an automated CI/CD
toolchain
Cloud-native
technologies.
Containers, microservices, data
services (e.g., Spark, Kafka,
Cassandra)
CLOUD BENEFITS
+ AGILITY
+ ELASTICITY
+ SCALE
AWS
PLATFORM SERVICES
OPERATIONS & TOOLS
ADMINISTRATORS OPERATIONAL PROCESSES PROPRIETARY TECHNOLOGIES
CONTAINER
ORCHESTRATIO
N
CI/CD
BIG DATA
ANALYTICS
MESSAGE
QUEUE
DISTRIBUTED
DATABASE
SEARCH
AWS INFRASTRUCTURE (EC2)
BUSINESS APPS
BUSINESS APPS
$
$ $
$
$ $
$
$
$
$
$
$
$$
$$
$ $
$
$ $
$
$
$
$
$
$
CLOUD LIMITATIONS
- LOCK-IN
- HIGH COST
- NO CONTROL
AWS
PLATFORM SERVICES
OPERATIONS & TOOLS
ADMINISTRATORS OPERATIONAL PROCESSES PROPRIETARY TECHNOLOGIES
CONTAINER
ORCHESTRATIO
N
CI/CD
BIG DATA
ANALYTICS
MESSAGE
QUEUE
DISTRIBUTED
DATABASE
SEARCH
AWS INFRASTRUCTURE (EC2)
WHERE IS YOUR
CUSTOMER
DATA?
WHO CONTROLS
YOUR IT
STRATEGY?
WHAT IS THE
COST OF NO
CONTROL?
BUSINESS APPS
$
$ $
$
$ $
$
$
$
$
$
$
$$
$$
$ $
$
$ $
$
$
$
$
$
$
AWS
PLATFORM SERVICES
OPERATIONS & TOOLS
ADMINISTRATORS OPERATIONAL PROCESSES PROPRIETARY TECHNOLOGIES
CONTAINER
ORCHESTRATIO
N
CI/CD
BIG DATA
ANALYTICS
MESSAGE
QUEUE
DISTRIBUTED
DATABASE
SEARCH
AWS INFRASTRUCTURE (EC2)
BUSINESS APPS
MESOSPHERE ENTERPRISE DC/OS
CONTAINER
ORCHESTRATIO
N
CI/CD
BIG DATA
ANALYTICS
MESSAGE
QUEUE
DISTRIBUTED
DATABASE
SEARCH
PLATFORM SERVICES
RESOURCE
MANAGEMENT
OPERATIONS SECURITY MULTI-TENANCY
DATACENTER-CLOUD OPERATING SYSTEM
APACHE MESOS
PRIVATE CLOUD AWS INFRASTRUCTURE
(EC2)
GOOGLE CLOUD MICROSOFT AZURE
THE POWER OF CLOUD
PLATFORM SERVICES,
THE FREEDOM TO USE
ANY INFRASTRUCTURE
YOUR DATACENTER OR CLOUD
IS NOW ONE GIANT COMPUTER
PLATFORM SERVICES
INSTALLED ACROSS
DATACENTER OR
CLOUD IN A SINGLE
COMMAND
We are building for the coming IoT market..
If I build everything in a silo, I have no chance...
With Mesosphere DC/OS, I have one single contiguous cluster ...
I can ingest data, store it and run all my apps as well,
and that's a huge advantage
Larry Rau
Director Architecture & Infrastructure, Verizon Labs
We’re running real time analytics and visualization of data from
connected sensors. Before DC/OS we had no where near the scale we
had today, from thousands of to millions of events per second.
Next, we’re doing predictive GIS.
Adam Mollenkopf
Real Time Geospatial Information Systems Capability Lead
Writing complex stateful services is
hard...
© 2015 Mesosphere, Inc. All Rights Reserved. 27
● Failure recovery (basic stickiness, for
transient failures)
● Snowflake failure recovery
(complicated semantics for
permanent failures)
● Deployment preparation (often
manual, infrequent tasks)
● Legacy software in a containerized
world (pets vs cattle)
● Placement constraints (more
complicated than stateless services)
Considerations
© 2016 Mesosphere, Inc. All Rights Reserved. 28
DC/OS SDK
For Stateful Services
github.com/mesosphere/dcos-commons
© 2016 Mesosphere, Inc. All Rights Reserved. 29
DC/OS SDK OVERVIEW
DC/OS
Documentation
Tools and Utilities
Apache Mesos API
DC/OS Capabilities API
Couchbase
Update with Rollback
Maintenance Plans
Failure Recovery
Packaging
Configuration
Networking
Discovery
Storage
Security
Observability
Offer Evaluation
Resource Accounting
Task Reconciliation
Developer Environment
Integration Test Harness
Developer Guide
Tutorials
Code Samples
API Reference
Application Lifecycle
Value
SDK
Platform
Problem
● How can we make it simple to integrate
stateful workloads with Apache Mesos
and DC/OS?
Solution
● Create a "default scheduler" for stateful
services with extensible interfaces
● Enable developers with simple-to-use
declarative YAML and Java APIs
● Provide default interface
implementations and allow developers
to build their own in Java
© 2016 Mesosphere, Inc. All Rights Reserved. 30
Simple things should be simple; complicated things should be complicated
~1,000 LOC
~100 LOC
10K+ LOC
● Simple YAML interface
● Default, customizable behaviors
● Most services probably fall here
● Need to be a service expert
● Need to write a little Java code
● Don’t need to understand DC/OS
● Can’t use the defaults
● Don't mind writing a lot of Java
● Willing to understand DC/OS
Custom
Plans & Strategies
Build Your Own Scheduler
with commons libraries
Defaults
© 2016 Mesosphere, Inc. All Rights Reserved. 31
Simple things should be simple; complicated things should be complicated
~1,000 LOC
~100 LOC
10K+ LOC
● Simple YAML interface
● Default, customizable behaviors
● Most services probably fall here
● Need to be a service expert
● Need to write a little Java code
● Don’t need to understand DC/OS
● Can’t use the defaults
● Don't mind writing a lot of Java
● Willing to understand DC/OS
Custom
Plans & Strategies
Build Your Own Scheduler
with commons libraries
Defaults
32
HOW DOES IT
WORK?
Components
● Scheduler
● Task
● Persistent
Volume
Marathon
[Scheduler of Schedulers]
Task
PV
Task
hello-world
[Scheduler]
PV
hello-0-server
[Task]
PV
Task
PV
Task
PV
world-0-server
[Task]
PV
© 2016 Mesosphere, Inc. All Rights Reserved. 33
DC/OS SDK
● Declarative
● Goal-oriented
● Foundation for
○ Couchbase
○ Kafka
○ HDFS
○ Elastic
○ And more
Current
Service
Specification
Updated
Service
Specification
A B
name: "hello-world"
pods:
hello:
count: 1
tasks:
server:
cpus: 0.1
memory: 512
world:
count: 1
tasks:
server:
cpus: 0.2
memory: 1024
name: "hello-world"
pods:
hello:
count: 1
tasks:
server:
cpus: 0.3
memory: 512
world:
count: 2
tasks:
server:
cpus: 0.2
memory: 1024
© 2016 Mesosphere, Inc. All Rights Reserved. 34
DEMO
© 2017 Mesosphere, Inc. All Rights Reserved.
WHY DATA SERVICES ON DC/OS?
On-demand provisioning1
2
3
Simplified operations
Elastic data infrastructure
● Single command install of services
● Runtime software upgrade
● Runtime application settings update
● Monitoring & metrics
● Managed persistent storage volumes
● Data services and containerized apps share resources
● Deploy instances with different versions on the same
infra
● Resize instances
● Add more instances
© 2017 Mesosphere, Inc. All Rights Reserved.
COUCHBASE ON MESOSPHERE DC/OS
Develop with agility, operate at any scale
Couchbase
Mesosphere Enterprise DC/OS
Any Infrastructure
Build apps once in DC/OS, and run
anywhere
Runs distributed apps anywhere as simply
as running apps on your laptop
Enable devs to build applications
easier and faster
The Couchbase Connect
mobile app
Take our in-app survey!
Share your opinion on Couchbase
1. Go here: http://gtnr.it/2eRxYWn
2. Create a profile
3. Provide feedback (~15 minutes)
Thank You!
Follow us on social media
Twitter
@couchbase
Facebook
/couchbase
Instagram
@couchbase
Linkedin
/company/couchbase

More Related Content

What's hot

Stay productive while slicing up the monolith
Stay productive while slicing up the monolith Stay productive while slicing up the monolith
Stay productive while slicing up the monolith
Markus Eisele
 
Quarkus - a next-generation Kubernetes Native Java framework
Quarkus - a next-generation Kubernetes Native Java frameworkQuarkus - a next-generation Kubernetes Native Java framework
Quarkus - a next-generation Kubernetes Native Java framework
SVDevOps
 
Microservices Docker @Bonn Agile
Microservices Docker @Bonn AgileMicroservices Docker @Bonn Agile
Microservices Docker @Bonn Agile
Timo Derstappen
 
DockerCon SF 2015: How to Build a Secure DevOps Environment for the Government
DockerCon SF 2015: How to Build a Secure DevOps Environment for the GovernmentDockerCon SF 2015: How to Build a Secure DevOps Environment for the Government
DockerCon SF 2015: How to Build a Secure DevOps Environment for the Government
Docker, Inc.
 
Dockerizing CS50: From Cluster to Cloud to Appliance to Container by David Ma...
Dockerizing CS50: From Cluster to Cloud to Appliance to Container by David Ma...Dockerizing CS50: From Cluster to Cloud to Appliance to Container by David Ma...
Dockerizing CS50: From Cluster to Cloud to Appliance to Container by David Ma...
Docker, Inc.
 
Achieving Cost and Resource Efficiency through Docker, OpenShift and Kubernetes
Achieving Cost and Resource Efficiency through Docker, OpenShift and KubernetesAchieving Cost and Resource Efficiency through Docker, OpenShift and Kubernetes
Achieving Cost and Resource Efficiency through Docker, OpenShift and Kubernetes
Dean Delamont
 

What's hot (20)

IBM: The Linux Ecosystem
IBM: The Linux EcosystemIBM: The Linux Ecosystem
IBM: The Linux Ecosystem
 
Webinar: OpenStack Benefits for VMware
Webinar: OpenStack Benefits for VMwareWebinar: OpenStack Benefits for VMware
Webinar: OpenStack Benefits for VMware
 
Cloud Computing, Docker, Mesos, DCOS, Container, Big Data, Paas
Cloud Computing, Docker, Mesos, DCOS, Container, Big Data, PaasCloud Computing, Docker, Mesos, DCOS, Container, Big Data, Paas
Cloud Computing, Docker, Mesos, DCOS, Container, Big Data, Paas
 
Stay productive while slicing up the monolith
Stay productive while slicing up the monolith Stay productive while slicing up the monolith
Stay productive while slicing up the monolith
 
Cloud Foundry Summit 2015: Managing Hybrid Deployments Using Cloud Foundry on...
Cloud Foundry Summit 2015: Managing Hybrid Deployments Using Cloud Foundry on...Cloud Foundry Summit 2015: Managing Hybrid Deployments Using Cloud Foundry on...
Cloud Foundry Summit 2015: Managing Hybrid Deployments Using Cloud Foundry on...
 
Azure Site Recovery Loves Business Continuity
Azure Site Recovery Loves Business ContinuityAzure Site Recovery Loves Business Continuity
Azure Site Recovery Loves Business Continuity
 
NoSQL - Vital Open Source Ingredient for Modern Success
NoSQL - Vital Open Source Ingredient for Modern SuccessNoSQL - Vital Open Source Ingredient for Modern Success
NoSQL - Vital Open Source Ingredient for Modern Success
 
Quarkus - a next-generation Kubernetes Native Java framework
Quarkus - a next-generation Kubernetes Native Java frameworkQuarkus - a next-generation Kubernetes Native Java framework
Quarkus - a next-generation Kubernetes Native Java framework
 
Containers and VMs and Clouds: Oh My. by Mike Coleman
Containers and VMs and Clouds: Oh My. by Mike ColemanContainers and VMs and Clouds: Oh My. by Mike Coleman
Containers and VMs and Clouds: Oh My. by Mike Coleman
 
Containers, microservices and serverless for realists
Containers, microservices and serverless for realistsContainers, microservices and serverless for realists
Containers, microservices and serverless for realists
 
Microservices Docker @Bonn Agile
Microservices Docker @Bonn AgileMicroservices Docker @Bonn Agile
Microservices Docker @Bonn Agile
 
Comparing open source private cloud platforms
Comparing open source private cloud platformsComparing open source private cloud platforms
Comparing open source private cloud platforms
 
DockerCon SF 2015: From Months to Minutes
DockerCon SF 2015: From Months to MinutesDockerCon SF 2015: From Months to Minutes
DockerCon SF 2015: From Months to Minutes
 
Introduction To Apache Mesos
Introduction To Apache MesosIntroduction To Apache Mesos
Introduction To Apache Mesos
 
Why docker | OSCON 2013
Why docker | OSCON 2013Why docker | OSCON 2013
Why docker | OSCON 2013
 
DockerCon SF 2015: How to Build a Secure DevOps Environment for the Government
DockerCon SF 2015: How to Build a Secure DevOps Environment for the GovernmentDockerCon SF 2015: How to Build a Secure DevOps Environment for the Government
DockerCon SF 2015: How to Build a Secure DevOps Environment for the Government
 
Dockerizing CS50: From Cluster to Cloud to Appliance to Container by David Ma...
Dockerizing CS50: From Cluster to Cloud to Appliance to Container by David Ma...Dockerizing CS50: From Cluster to Cloud to Appliance to Container by David Ma...
Dockerizing CS50: From Cluster to Cloud to Appliance to Container by David Ma...
 
DockerCon SF 2015: Using Docker to Keep Houses Warm: Highly Distributed Micro...
DockerCon SF 2015: Using Docker to Keep Houses Warm: Highly Distributed Micro...DockerCon SF 2015: Using Docker to Keep Houses Warm: Highly Distributed Micro...
DockerCon SF 2015: Using Docker to Keep Houses Warm: Highly Distributed Micro...
 
Auto Scaling for Multi-Tier Containers Topology
Auto Scaling for Multi-Tier Containers TopologyAuto Scaling for Multi-Tier Containers Topology
Auto Scaling for Multi-Tier Containers Topology
 
Achieving Cost and Resource Efficiency through Docker, OpenShift and Kubernetes
Achieving Cost and Resource Efficiency through Docker, OpenShift and KubernetesAchieving Cost and Resource Efficiency through Docker, OpenShift and Kubernetes
Achieving Cost and Resource Efficiency through Docker, OpenShift and Kubernetes
 

Similar to Containerizing couchbase with microservice architecture on mesosphere.pptx

Thinking in Terms of a Data Center Operating System
Thinking in Terms of a Data Center Operating SystemThinking in Terms of a Data Center Operating System
Thinking in Terms of a Data Center Operating System
Weston Bassler
 
Highly efficient container orchestration and continuous delivery with DC/OS a...
Highly efficient container orchestration and continuous delivery with DC/OS a...Highly efficient container orchestration and continuous delivery with DC/OS a...
Highly efficient container orchestration and continuous delivery with DC/OS a...
Christian Bogeberg
 

Similar to Containerizing couchbase with microservice architecture on mesosphere.pptx (20)

Modernizing Applications with Microservices and DC/OS (Lightbend/Mesosphere c...
Modernizing Applications with Microservices and DC/OS (Lightbend/Mesosphere c...Modernizing Applications with Microservices and DC/OS (Lightbend/Mesosphere c...
Modernizing Applications with Microservices and DC/OS (Lightbend/Mesosphere c...
 
Modern Elastic Datacenter Architecture
Modern Elastic Datacenter ArchitectureModern Elastic Datacenter Architecture
Modern Elastic Datacenter Architecture
 
Webinar: End-to-End CI/CD with GitLab and DC/OS
Webinar: End-to-End CI/CD with GitLab and DC/OSWebinar: End-to-End CI/CD with GitLab and DC/OS
Webinar: End-to-End CI/CD with GitLab and DC/OS
 
Using DC/OS for Continuous Delivery - DevPulseCon 2017
Using DC/OS for Continuous Delivery - DevPulseCon 2017Using DC/OS for Continuous Delivery - DevPulseCon 2017
Using DC/OS for Continuous Delivery - DevPulseCon 2017
 
Journey to the Modern App with Containers, Microservices and Big Data
Journey to the Modern App with Containers, Microservices and Big DataJourney to the Modern App with Containers, Microservices and Big Data
Journey to the Modern App with Containers, Microservices and Big Data
 
Electric Microservices Land - Tsuyoshi Ushio
Electric Microservices Land - Tsuyoshi UshioElectric Microservices Land - Tsuyoshi Ushio
Electric Microservices Land - Tsuyoshi Ushio
 
Doing Dropbox the Native Cloud Native Way
Doing Dropbox the Native Cloud Native WayDoing Dropbox the Native Cloud Native Way
Doing Dropbox the Native Cloud Native Way
 
create auto scale jboss cluster with openshift
create auto scale jboss cluster with openshiftcreate auto scale jboss cluster with openshift
create auto scale jboss cluster with openshift
 
Deploying Containers in Production and at Scale
Deploying Containers in Production and at ScaleDeploying Containers in Production and at Scale
Deploying Containers in Production and at Scale
 
DevOps LA Meetup Intro to Habitat
DevOps LA Meetup Intro to HabitatDevOps LA Meetup Intro to Habitat
DevOps LA Meetup Intro to Habitat
 
Architecture: When, how, and if to Adopt Microservices
Architecture: When, how, and if to Adopt MicroservicesArchitecture: When, how, and if to Adopt Microservices
Architecture: When, how, and if to Adopt Microservices
 
HBaseCon2017 Splice Machine as a Service: Multi-tenant HBase using DCOS (Meso...
HBaseCon2017 Splice Machine as a Service: Multi-tenant HBase using DCOS (Meso...HBaseCon2017 Splice Machine as a Service: Multi-tenant HBase using DCOS (Meso...
HBaseCon2017 Splice Machine as a Service: Multi-tenant HBase using DCOS (Meso...
 
OS for AI: Elastic Microservices & the Next Gen of ML
OS for AI: Elastic Microservices & the Next Gen of MLOS for AI: Elastic Microservices & the Next Gen of ML
OS for AI: Elastic Microservices & the Next Gen of ML
 
DOO-007_How to run containers in production, at scale!
DOO-007_How to run containers in production, at scale!DOO-007_How to run containers in production, at scale!
DOO-007_How to run containers in production, at scale!
 
Thinking in Terms of a Data Center Operating System
Thinking in Terms of a Data Center Operating SystemThinking in Terms of a Data Center Operating System
Thinking in Terms of a Data Center Operating System
 
Kubernetes on DC/OS
Kubernetes on DC/OSKubernetes on DC/OS
Kubernetes on DC/OS
 
The Future of Cloud Innovation, featuring Adrian Cockcroft
The Future of Cloud Innovation, featuring Adrian CockcroftThe Future of Cloud Innovation, featuring Adrian Cockcroft
The Future of Cloud Innovation, featuring Adrian Cockcroft
 
Apache Mesos Overview and Integration
Apache Mesos Overview and IntegrationApache Mesos Overview and Integration
Apache Mesos Overview and Integration
 
Introduction to Apache Mesos and DC/OS
Introduction to Apache Mesos and DC/OSIntroduction to Apache Mesos and DC/OS
Introduction to Apache Mesos and DC/OS
 
Highly efficient container orchestration and continuous delivery with DC/OS a...
Highly efficient container orchestration and continuous delivery with DC/OS a...Highly efficient container orchestration and continuous delivery with DC/OS a...
Highly efficient container orchestration and continuous delivery with DC/OS a...
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 

Containerizing couchbase with microservice architecture on mesosphere.pptx

  • 1. Containerizing Couchbase With Microservice Architecture On Mesosphere DC/OS
  • 2. Anil Kumar Principal Product Manager Couchbase, Inc. LinkedIn – https://www.linkedin.com/in/anilkumar29 Twitter – @anilkumar1129
  • 3. Ravi Yadav Technology Partnerships Lead, Ecosystem Development Mesosphere, Inc. Twitter: @RaaveYadav
  • 4. Agenda • Containerizing Couchbase • Couchbase on Container Orchestration Technologies • Mesosphere DC/OS • Kubernetes / RedHat OpenShift Enterprise • Overview of Mesosphere DC/OS • DEMO !!! • Couchbase and Mesosphere: Better Together
  • 6. Containers - Business Benefits ● DevOps & Continuous Delivery ○ Low impact & risk; update one container at a time ● Build Once & Run Anywhere ○ Instantiate clones for development, testing and production ● Scalability ○ Scale-up or Scale-down containers easily based on demand ● Isolation ○ Safely run multiple microservice containers with isolation ● High Availability ○ Redundancy from multiple containers fulfilling a role ● Performance ○ Minimal impact from container overhead
  • 7. Containerizing Couchbase Why Couchbase is Good-fit for Containers? Microservice Architecture COUCHBASE SERVER CLUSTER Container 3 Container 4 Container 5 Container 6 Container 7 Container 7 Container 9 Container 10 Container 11 QUERY SERVICE INDEX SERVICE DATA SERVICE Container 1 Container 2 SEARCH SERVICE
  • 8. Containerizing Couchbase Couchbase Container Production Certified • We production certify Couchbase Docker image and RHEL image with every version (x.x.x) • New images gets published to https://hub.docker.com and • Everything you want to know about ‘Running Couchbase in Container’ - https://www.couchbase.com/containers • Best Practices - http://developer.couchbase.com/documentation/server /current/install/deploy-with-docker-hub.html
  • 10. Mesosphere DC/OS provides the built-in automation to manage the lifecycle of Couchbase Cluster using data services which includes - ● The deployment, placement, security, scalability, availability, failure recovery, and in-place upgrades of the services. DC/OS simplifies storage management for Couchbase Server with Stateful data service ● Couchbase can be easily deployed with only a few clicks from the DC/OS Universe or a single command from the DC/OS CLI ● Mesosphere DC/OS provides options for local persistent storage and external volumes Benefits of Running Couchbase on Mesosphere DC/OS
  • 11. Common Customer - Verizon Labs IoT/ThingSpace & Couchbase
  • 12. Couchbase on Container Orchestration Technologies Run Couchbase cluster on Container Orchestration Technologies • [Developer Preview] Couchbase running on Mesosphere http://www.infoworld.com/article/3180698/data-center /mesosphere-dcos-brings-elastic-scale-to-redis-couchb ase.html • [Developer Preview] Couchbase running on OpenShift Enterprise 3.5 (Kubernetes 1.5) https://www.youtube.com/watch?v=fxox6DD96HQ
  • 14. THE WORLD HAS CHANGED AND WE ARE ALL NOW SOFTWARE COMPANIES. Software is eating the world. Marc Andreessen
  • 15. WE LIVE IN THE ALWAYS CONNECTED ECONOMY. 3.7BMobile Broadband Users 80%New Data is Unstructured 13Connected Devices per Household (N. Amer) 40%Annual Enterprise Data Growth Sources: IHS Markit, IDG, KPCB, Ericsson
  • 16. IN THE ALWAYS CONNECTED ECONOMY SOFTWARE IS YOUR BUSINESS. Build more apps. Personal and meaningful customer experiences Innovate faster. Capture value from new value streams and actionable data insights Modernize IT. Always-available services that are secure and cost effective
  • 17. MODERN ENTERPRISE APPS REQUIRE NEW CAPABILITIES. Distributed computing expertise. Engineering and operations of secure & highly reliable services at scale DevOps process & culture. Frequent & reliable releases supported by an automated CI/CD toolchain Cloud-native technologies. Containers, microservices, data services (e.g., Spark, Kafka, Cassandra)
  • 18. CLOUD BENEFITS + AGILITY + ELASTICITY + SCALE AWS PLATFORM SERVICES OPERATIONS & TOOLS ADMINISTRATORS OPERATIONAL PROCESSES PROPRIETARY TECHNOLOGIES CONTAINER ORCHESTRATIO N CI/CD BIG DATA ANALYTICS MESSAGE QUEUE DISTRIBUTED DATABASE SEARCH AWS INFRASTRUCTURE (EC2) BUSINESS APPS
  • 19. BUSINESS APPS $ $ $ $ $ $ $ $ $ $ $ $ $$ $$ $ $ $ $ $ $ $ $ $ $ $ CLOUD LIMITATIONS - LOCK-IN - HIGH COST - NO CONTROL AWS PLATFORM SERVICES OPERATIONS & TOOLS ADMINISTRATORS OPERATIONAL PROCESSES PROPRIETARY TECHNOLOGIES CONTAINER ORCHESTRATIO N CI/CD BIG DATA ANALYTICS MESSAGE QUEUE DISTRIBUTED DATABASE SEARCH AWS INFRASTRUCTURE (EC2)
  • 20. WHERE IS YOUR CUSTOMER DATA? WHO CONTROLS YOUR IT STRATEGY? WHAT IS THE COST OF NO CONTROL? BUSINESS APPS $ $ $ $ $ $ $ $ $ $ $ $ $$ $$ $ $ $ $ $ $ $ $ $ $ $ AWS PLATFORM SERVICES OPERATIONS & TOOLS ADMINISTRATORS OPERATIONAL PROCESSES PROPRIETARY TECHNOLOGIES CONTAINER ORCHESTRATIO N CI/CD BIG DATA ANALYTICS MESSAGE QUEUE DISTRIBUTED DATABASE SEARCH AWS INFRASTRUCTURE (EC2)
  • 21. BUSINESS APPS MESOSPHERE ENTERPRISE DC/OS CONTAINER ORCHESTRATIO N CI/CD BIG DATA ANALYTICS MESSAGE QUEUE DISTRIBUTED DATABASE SEARCH PLATFORM SERVICES RESOURCE MANAGEMENT OPERATIONS SECURITY MULTI-TENANCY DATACENTER-CLOUD OPERATING SYSTEM APACHE MESOS PRIVATE CLOUD AWS INFRASTRUCTURE (EC2) GOOGLE CLOUD MICROSOFT AZURE THE POWER OF CLOUD PLATFORM SERVICES, THE FREEDOM TO USE ANY INFRASTRUCTURE
  • 22. YOUR DATACENTER OR CLOUD IS NOW ONE GIANT COMPUTER
  • 23. PLATFORM SERVICES INSTALLED ACROSS DATACENTER OR CLOUD IN A SINGLE COMMAND
  • 24. We are building for the coming IoT market.. If I build everything in a silo, I have no chance... With Mesosphere DC/OS, I have one single contiguous cluster ... I can ingest data, store it and run all my apps as well, and that's a huge advantage Larry Rau Director Architecture & Infrastructure, Verizon Labs
  • 25. We’re running real time analytics and visualization of data from connected sensors. Before DC/OS we had no where near the scale we had today, from thousands of to millions of events per second. Next, we’re doing predictive GIS. Adam Mollenkopf Real Time Geospatial Information Systems Capability Lead
  • 26. Writing complex stateful services is hard...
  • 27. © 2015 Mesosphere, Inc. All Rights Reserved. 27 ● Failure recovery (basic stickiness, for transient failures) ● Snowflake failure recovery (complicated semantics for permanent failures) ● Deployment preparation (often manual, infrequent tasks) ● Legacy software in a containerized world (pets vs cattle) ● Placement constraints (more complicated than stateless services) Considerations
  • 28. © 2016 Mesosphere, Inc. All Rights Reserved. 28 DC/OS SDK For Stateful Services github.com/mesosphere/dcos-commons
  • 29. © 2016 Mesosphere, Inc. All Rights Reserved. 29 DC/OS SDK OVERVIEW DC/OS Documentation Tools and Utilities Apache Mesos API DC/OS Capabilities API Couchbase Update with Rollback Maintenance Plans Failure Recovery Packaging Configuration Networking Discovery Storage Security Observability Offer Evaluation Resource Accounting Task Reconciliation Developer Environment Integration Test Harness Developer Guide Tutorials Code Samples API Reference Application Lifecycle Value SDK Platform Problem ● How can we make it simple to integrate stateful workloads with Apache Mesos and DC/OS? Solution ● Create a "default scheduler" for stateful services with extensible interfaces ● Enable developers with simple-to-use declarative YAML and Java APIs ● Provide default interface implementations and allow developers to build their own in Java
  • 30. © 2016 Mesosphere, Inc. All Rights Reserved. 30 Simple things should be simple; complicated things should be complicated ~1,000 LOC ~100 LOC 10K+ LOC ● Simple YAML interface ● Default, customizable behaviors ● Most services probably fall here ● Need to be a service expert ● Need to write a little Java code ● Don’t need to understand DC/OS ● Can’t use the defaults ● Don't mind writing a lot of Java ● Willing to understand DC/OS Custom Plans & Strategies Build Your Own Scheduler with commons libraries Defaults
  • 31. © 2016 Mesosphere, Inc. All Rights Reserved. 31 Simple things should be simple; complicated things should be complicated ~1,000 LOC ~100 LOC 10K+ LOC ● Simple YAML interface ● Default, customizable behaviors ● Most services probably fall here ● Need to be a service expert ● Need to write a little Java code ● Don’t need to understand DC/OS ● Can’t use the defaults ● Don't mind writing a lot of Java ● Willing to understand DC/OS Custom Plans & Strategies Build Your Own Scheduler with commons libraries Defaults
  • 32. 32 HOW DOES IT WORK? Components ● Scheduler ● Task ● Persistent Volume Marathon [Scheduler of Schedulers] Task PV Task hello-world [Scheduler] PV hello-0-server [Task] PV Task PV Task PV world-0-server [Task] PV
  • 33. © 2016 Mesosphere, Inc. All Rights Reserved. 33 DC/OS SDK ● Declarative ● Goal-oriented ● Foundation for ○ Couchbase ○ Kafka ○ HDFS ○ Elastic ○ And more Current Service Specification Updated Service Specification A B name: "hello-world" pods: hello: count: 1 tasks: server: cpus: 0.1 memory: 512 world: count: 1 tasks: server: cpus: 0.2 memory: 1024 name: "hello-world" pods: hello: count: 1 tasks: server: cpus: 0.3 memory: 512 world: count: 2 tasks: server: cpus: 0.2 memory: 1024
  • 34. © 2016 Mesosphere, Inc. All Rights Reserved. 34 DEMO
  • 35. © 2017 Mesosphere, Inc. All Rights Reserved. WHY DATA SERVICES ON DC/OS? On-demand provisioning1 2 3 Simplified operations Elastic data infrastructure ● Single command install of services ● Runtime software upgrade ● Runtime application settings update ● Monitoring & metrics ● Managed persistent storage volumes ● Data services and containerized apps share resources ● Deploy instances with different versions on the same infra ● Resize instances ● Add more instances
  • 36. © 2017 Mesosphere, Inc. All Rights Reserved. COUCHBASE ON MESOSPHERE DC/OS Develop with agility, operate at any scale Couchbase Mesosphere Enterprise DC/OS Any Infrastructure Build apps once in DC/OS, and run anywhere Runs distributed apps anywhere as simply as running apps on your laptop Enable devs to build applications easier and faster
  • 37. The Couchbase Connect mobile app Take our in-app survey!
  • 38. Share your opinion on Couchbase 1. Go here: http://gtnr.it/2eRxYWn 2. Create a profile 3. Provide feedback (~15 minutes)
  • 40. Follow us on social media Twitter @couchbase Facebook /couchbase Instagram @couchbase Linkedin /company/couchbase