SlideShare a Scribd company logo
1YugaByte Confidential © 2018 All rights reserved.
YugaByte DB on K8S
Karthik Ranganathan
Co-Founder & CTO
June 2018
2© 2018 All rights reserved.
Not Portable
Not Portable
Open Source
Not Portable
Open Source
Open Source
High Performance, Transactional, Planet-Scale High Performance, Transactional, Planet-Scale
High Performance, Transactional, Planet-Scale High Performance, Transactional, Planet-Scale
System-of-Record DBs for Global Apps
3© 2018 All rights reserved.
TRANSACTIONAL PLANET-SCALEHIGH PERFORMANCE
Distributed ACID Transactions
Document-Based, Strongly
Consistent Storage
Low Latency, Tunable Reads
High Throughput
CLOUD-NATIVE OPEN SOURCE
Apache 2.0
Popular APIs Extended
Apache Cassandra, Redis and PostgreSQL (BETA)
Built For The Container Era
Self-Healing, Fault-Tolerant
Auto Sharding & Rebalancing
Global Data Distribution
Design Goals
4© 2018 All rights reserved.
Inside The Hood - 3 Node Cluster
DocDB Storage Engine
Purpose-built for ever-growing data, extended from RocksDB
yb-master1
yb-master3
yb-master2
YB-Master
Manage shard metadata &
coordinate cluster-wide ops
node1
node3
node2
Global Transaction Manager
Tracks ACID txns across multi-row ops, incl. clock skew mgmt.
Raft Consensus Replication
Highly resilient, used for both data replication & leader election
tablet 1’
tablet 1’
yb-tserver1 yb-tserver2
yb-tserver3
tablet 1’
tablet2-leader
tablet3-leader
tablet1-leaderYB-TServer
Stores/serves data in/from
tablets (shards)
tablet1-follower
tablet1-follower
tablet3-follower
tablet2-follower
tablet3-follower
tablet2-follower
…
…
…
5© 2018 All rights reserved.
YugaByte DB on StatefulSets
https://docs.yugabyte.com/deploy/multi-node-cluster/
Stable network IDs Persistent volumesOrdered operations
STATEFUL
1. Start all yb-masters first (usually 3)
2. Start as many yb-tservers as needed
6© 2018 All rights reserved.
A Real-World Example
Yugastore – E-Commerce app on the YERN stack
Deployed on
github.com/YugaByte/yugastore
7© 2018 All rights reserved.
Kubernetes Deployment Architecture
yb-master
StatefulSet yugabytedb
yb-master-1 pod
yugabytedb
yb-master-0 pod
yugabytedb
yb-master-2 pod
yb-tserver
StatefulSet
tablet 1’
yugabytedb
yb-tserver-1 podtablet 1’
yugabytedb
yb-tserver-0 pod tablet 1’
yugabytedb
yb-tserver-2 pod
yb-masters
Headless Service
yb-master-ui
LoadBalancer Service
yb-tservers
Headless Service yugastore
Deployment
tablet 1’
yugastore
yugastore-1 podtablet 1’
yugastore
yugastore-0 pod
yugastore
LoadBalancer Service
End User
Admin User
8© 2018 All rights reserved.
Store less dynamic data
using the YCQL API
Example: description
Highly dynamic data
using the YEDIS API
Example: number of
reviews
Multi-API, Multi-Model in Action
9© 2018 All rights reserved.
Products modeled as a table
Show me an book in the
business category
Dynamic sets modeled as
Redis SORTED SETs
Show me the top 2 book with the
most reviews
Multi-API, Multi-Model in Action
10© 2018 All rights reserved.
Step 1
Deploy YugaByte DB cluster
https://docs.yugabyte.com/latest/deploy/kubernetes/local-ssd/
kubectl apply -f yugabyte-statefulset.yaml
11© 2018 All rights reserved.
Step 2
Deploy Yugastore app
kubectl run yugastore 
--image=yugabytedb/yugastore 
--port=3001 
--command start-for-kubernetes.sh
12© 2018 All rights reserved.
Step 3
Expose the Yugastore app as a service
kubectl expose 
deployment yugastore 
--type=LoadBalancer
13© 2018 All rights reserved.
Step 4
Run a workload
kubectl exec -it 
yugastore-<container-id> 
node yugastore/test/sample-user.js
14© 2018 All rights reserved.
Step 5
Scale out YugaByte DB
kubectl scale statefulset yb-tserver --replicas=4
15© 2018 All rights reserved.
gitter.im/YugaByte
@YugaByte
Thank You!
Ad

Recommended

Microsoft Windows Server 2022 Overview
Microsoft Windows Server 2022 Overview
David J Rosenthal
 
Basic unix commands
Basic unix commands
srinivas damarla
 
Windows Server 2019 -InspireTech 2019
Windows Server 2019 -InspireTech 2019
Diana Carolina Torres Viasus
 
Linux Server vs Windows Server
Linux Server vs Windows Server
KongChunLeong1
 
Windows 2019
Windows 2019
Gary Williams
 
Azure Network Security Groups (NSG)
Azure Network Security Groups (NSG)
Shawn Ismail
 
Linux
Linux
shamxsa
 
The NFS Version 4 Protocol
The NFS Version 4 Protocol
Kelum Senanayake
 
Linux
Linux
Gouthaman V
 
Networking in Windows Operating System
Networking in Windows Operating System
Mohammed Adam
 
An Introduction to Windows PowerShell
An Introduction to Windows PowerShell
Dale Lane
 
Windows Server 2016 First Look (Part 1)
Windows Server 2016 First Look (Part 1)
Tuan Yang
 
A Deepdive into Azure Networking
A Deepdive into Azure Networking
Karim Vaes
 
DLAU Vortrag.pdf
DLAU Vortrag.pdf
DNUG e.V.
 
Azure Training + Certification Guide.pdf
Azure Training + Certification Guide.pdf
AnonymousN22tyB6UN
 
KubeConEU - NATS Deep Dive
KubeConEU - NATS Deep Dive
wallyqs
 
windows vs linux
windows vs linux
G Sai Bhargav
 
Windows Server 2019.pptx
Windows Server 2019.pptx
masbulosoke
 
Single Sign On using ADFS.pptx
Single Sign On using ADFS.pptx
Alireza Vafi
 
4. install and configure hyper v
4. install and configure hyper v
Hameda Hurmat
 
Ansible - Introduction
Ansible - Introduction
Stephane Manciot
 
Trends in IIoT and OT Security
Trends in IIoT and OT Security
Oliver Pfaff
 
GFS - Google File System
GFS - Google File System
tutchiio
 
5.distributed file systems
5.distributed file systems
Gd Goenka University
 
dlux - Splunk Technical Overview
dlux - Splunk Technical Overview
David Lutz
 
rbdmap in ceph
rbdmap in ceph
Yashar Esmaildokht
 
Microsoft Remote Desktop Services
Microsoft Remote Desktop Services
Ronnie Isherwood
 
Red Hat Enterprise Linux 8
Red Hat Enterprise Linux 8
Kangaroot
 
Running Stateful Apps on Kubernetes
Running Stateful Apps on Kubernetes
Yugabyte
 
Demystifying Kubernetes Statefulsets
Demystifying Kubernetes Statefulsets
Yugabyte
 

More Related Content

What's hot (20)

Linux
Linux
Gouthaman V
 
Networking in Windows Operating System
Networking in Windows Operating System
Mohammed Adam
 
An Introduction to Windows PowerShell
An Introduction to Windows PowerShell
Dale Lane
 
Windows Server 2016 First Look (Part 1)
Windows Server 2016 First Look (Part 1)
Tuan Yang
 
A Deepdive into Azure Networking
A Deepdive into Azure Networking
Karim Vaes
 
DLAU Vortrag.pdf
DLAU Vortrag.pdf
DNUG e.V.
 
Azure Training + Certification Guide.pdf
Azure Training + Certification Guide.pdf
AnonymousN22tyB6UN
 
KubeConEU - NATS Deep Dive
KubeConEU - NATS Deep Dive
wallyqs
 
windows vs linux
windows vs linux
G Sai Bhargav
 
Windows Server 2019.pptx
Windows Server 2019.pptx
masbulosoke
 
Single Sign On using ADFS.pptx
Single Sign On using ADFS.pptx
Alireza Vafi
 
4. install and configure hyper v
4. install and configure hyper v
Hameda Hurmat
 
Ansible - Introduction
Ansible - Introduction
Stephane Manciot
 
Trends in IIoT and OT Security
Trends in IIoT and OT Security
Oliver Pfaff
 
GFS - Google File System
GFS - Google File System
tutchiio
 
5.distributed file systems
5.distributed file systems
Gd Goenka University
 
dlux - Splunk Technical Overview
dlux - Splunk Technical Overview
David Lutz
 
rbdmap in ceph
rbdmap in ceph
Yashar Esmaildokht
 
Microsoft Remote Desktop Services
Microsoft Remote Desktop Services
Ronnie Isherwood
 
Red Hat Enterprise Linux 8
Red Hat Enterprise Linux 8
Kangaroot
 
Networking in Windows Operating System
Networking in Windows Operating System
Mohammed Adam
 
An Introduction to Windows PowerShell
An Introduction to Windows PowerShell
Dale Lane
 
Windows Server 2016 First Look (Part 1)
Windows Server 2016 First Look (Part 1)
Tuan Yang
 
A Deepdive into Azure Networking
A Deepdive into Azure Networking
Karim Vaes
 
DLAU Vortrag.pdf
DLAU Vortrag.pdf
DNUG e.V.
 
Azure Training + Certification Guide.pdf
Azure Training + Certification Guide.pdf
AnonymousN22tyB6UN
 
KubeConEU - NATS Deep Dive
KubeConEU - NATS Deep Dive
wallyqs
 
Windows Server 2019.pptx
Windows Server 2019.pptx
masbulosoke
 
Single Sign On using ADFS.pptx
Single Sign On using ADFS.pptx
Alireza Vafi
 
4. install and configure hyper v
4. install and configure hyper v
Hameda Hurmat
 
Trends in IIoT and OT Security
Trends in IIoT and OT Security
Oliver Pfaff
 
GFS - Google File System
GFS - Google File System
tutchiio
 
dlux - Splunk Technical Overview
dlux - Splunk Technical Overview
David Lutz
 
Microsoft Remote Desktop Services
Microsoft Remote Desktop Services
Ronnie Isherwood
 
Red Hat Enterprise Linux 8
Red Hat Enterprise Linux 8
Kangaroot
 

Similar to YugaByte DB on Kubernetes - An Introduction (20)

Running Stateful Apps on Kubernetes
Running Stateful Apps on Kubernetes
Yugabyte
 
Demystifying Kubernetes Statefulsets
Demystifying Kubernetes Statefulsets
Yugabyte
 
YugaByte + PKS CloudFoundry Meetup 10/15/2018
YugaByte + PKS CloudFoundry Meetup 10/15/2018
AlanCaldera
 
Meetup-#1-Getting-Started.pdf
Meetup-#1-Getting-Started.pdf
Gwenn Etourneau
 
YugabyteDB - Distributed SQL Database on Kubernetes
YugabyteDB - Distributed SQL Database on Kubernetes
DoKC
 
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
Carlos Andrés García
 
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
VMware Tanzu
 
YugaByte DB Internals - Storage Engine and Transactions
YugaByte DB Internals - Storage Engine and Transactions
Yugabyte
 
Meetup - YugabyteDB - Introduction and key features
Meetup - YugabyteDB - Introduction and key features
Franck Pachot
 
How YugaByte DB Implements Distributed PostgreSQL
How YugaByte DB Implements Distributed PostgreSQL
Yugabyte
 
Cairo Kubernetes Meetup - October event Talk #1
Cairo Kubernetes Meetup - October event Talk #1
omehelba
 
Kubernetes
Kubernetes
Sang-Min Park
 
Kubernetes for Java developers
Kubernetes for Java developers
Robert Barr
 
Scale Transactional Apps Across Multiple Regions with Low Latency
Scale Transactional Apps Across Multiple Regions with Low Latency
Yugabyte
 
Powering Microservices with MongoDB, Docker, Kubernetes & Kafka – MongoDB Eur...
Powering Microservices with MongoDB, Docker, Kubernetes & Kafka – MongoDB Eur...
Andrew Morgan
 
YugaByte DB—A Planet-Scale Database for Low Latency Transactional Apps
YugaByte DB—A Planet-Scale Database for Low Latency Transactional Apps
VMware Tanzu
 
Containerize! Between Docker and Jube.
Containerize! Between Docker and Jube.
Henryk Konsek
 
MongoDB Europe 2016 - Powering Microservices with Docker, Kubernetes, and Kafka
MongoDB Europe 2016 - Powering Microservices with Docker, Kubernetes, and Kafka
MongoDB
 
Where should I run my code? Serverless, Containers, Virtual Machines and more
Where should I run my code? Serverless, Containers, Virtual Machines and more
Bret McGowen - NYC Google Developer Advocate
 
stupid-simple-kubernetes-final.pdf
stupid-simple-kubernetes-final.pdf
DaniloQueirozMota
 
Running Stateful Apps on Kubernetes
Running Stateful Apps on Kubernetes
Yugabyte
 
Demystifying Kubernetes Statefulsets
Demystifying Kubernetes Statefulsets
Yugabyte
 
YugaByte + PKS CloudFoundry Meetup 10/15/2018
YugaByte + PKS CloudFoundry Meetup 10/15/2018
AlanCaldera
 
Meetup-#1-Getting-Started.pdf
Meetup-#1-Getting-Started.pdf
Gwenn Etourneau
 
YugabyteDB - Distributed SQL Database on Kubernetes
YugabyteDB - Distributed SQL Database on Kubernetes
DoKC
 
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
Carlos Andrés García
 
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
VMware Tanzu
 
YugaByte DB Internals - Storage Engine and Transactions
YugaByte DB Internals - Storage Engine and Transactions
Yugabyte
 
Meetup - YugabyteDB - Introduction and key features
Meetup - YugabyteDB - Introduction and key features
Franck Pachot
 
How YugaByte DB Implements Distributed PostgreSQL
How YugaByte DB Implements Distributed PostgreSQL
Yugabyte
 
Cairo Kubernetes Meetup - October event Talk #1
Cairo Kubernetes Meetup - October event Talk #1
omehelba
 
Kubernetes for Java developers
Kubernetes for Java developers
Robert Barr
 
Scale Transactional Apps Across Multiple Regions with Low Latency
Scale Transactional Apps Across Multiple Regions with Low Latency
Yugabyte
 
Powering Microservices with MongoDB, Docker, Kubernetes & Kafka – MongoDB Eur...
Powering Microservices with MongoDB, Docker, Kubernetes & Kafka – MongoDB Eur...
Andrew Morgan
 
YugaByte DB—A Planet-Scale Database for Low Latency Transactional Apps
YugaByte DB—A Planet-Scale Database for Low Latency Transactional Apps
VMware Tanzu
 
Containerize! Between Docker and Jube.
Containerize! Between Docker and Jube.
Henryk Konsek
 
MongoDB Europe 2016 - Powering Microservices with Docker, Kubernetes, and Kafka
MongoDB Europe 2016 - Powering Microservices with Docker, Kubernetes, and Kafka
MongoDB
 
stupid-simple-kubernetes-final.pdf
stupid-simple-kubernetes-final.pdf
DaniloQueirozMota
 
Ad

Recently uploaded (20)

Mastering AI Workflows with FME by Mark Döring
Mastering AI Workflows with FME by Mark Döring
Safe Software
 
The Future of Technology: 2025-2125 by Saikat Basu.pdf
The Future of Technology: 2025-2125 by Saikat Basu.pdf
Saikat Basu
 
Cluster-Based Multi-Objective Metamorphic Test Case Pair Selection for Deep N...
Cluster-Based Multi-Objective Metamorphic Test Case Pair Selection for Deep N...
janeliewang985
 
10 Key Challenges for AI within the EU Data Protection Framework.pdf
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Safe Software
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
Mastering AI Workflows with FME by Mark Döring
Mastering AI Workflows with FME by Mark Döring
Safe Software
 
The Future of Technology: 2025-2125 by Saikat Basu.pdf
The Future of Technology: 2025-2125 by Saikat Basu.pdf
Saikat Basu
 
Cluster-Based Multi-Objective Metamorphic Test Case Pair Selection for Deep N...
Cluster-Based Multi-Objective Metamorphic Test Case Pair Selection for Deep N...
janeliewang985
 
10 Key Challenges for AI within the EU Data Protection Framework.pdf
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
"Scaling in space and time with Temporal", Andriy Lupa.pdf
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Safe Software
 
UserCon Belgium: Honey, VMware increased my bill
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
Ad

YugaByte DB on Kubernetes - An Introduction

  • 1. 1YugaByte Confidential © 2018 All rights reserved. YugaByte DB on K8S Karthik Ranganathan Co-Founder & CTO June 2018
  • 2. 2© 2018 All rights reserved. Not Portable Not Portable Open Source Not Portable Open Source Open Source High Performance, Transactional, Planet-Scale High Performance, Transactional, Planet-Scale High Performance, Transactional, Planet-Scale High Performance, Transactional, Planet-Scale System-of-Record DBs for Global Apps
  • 3. 3© 2018 All rights reserved. TRANSACTIONAL PLANET-SCALEHIGH PERFORMANCE Distributed ACID Transactions Document-Based, Strongly Consistent Storage Low Latency, Tunable Reads High Throughput CLOUD-NATIVE OPEN SOURCE Apache 2.0 Popular APIs Extended Apache Cassandra, Redis and PostgreSQL (BETA) Built For The Container Era Self-Healing, Fault-Tolerant Auto Sharding & Rebalancing Global Data Distribution Design Goals
  • 4. 4© 2018 All rights reserved. Inside The Hood - 3 Node Cluster DocDB Storage Engine Purpose-built for ever-growing data, extended from RocksDB yb-master1 yb-master3 yb-master2 YB-Master Manage shard metadata & coordinate cluster-wide ops node1 node3 node2 Global Transaction Manager Tracks ACID txns across multi-row ops, incl. clock skew mgmt. Raft Consensus Replication Highly resilient, used for both data replication & leader election tablet 1’ tablet 1’ yb-tserver1 yb-tserver2 yb-tserver3 tablet 1’ tablet2-leader tablet3-leader tablet1-leaderYB-TServer Stores/serves data in/from tablets (shards) tablet1-follower tablet1-follower tablet3-follower tablet2-follower tablet3-follower tablet2-follower … … …
  • 5. 5© 2018 All rights reserved. YugaByte DB on StatefulSets https://docs.yugabyte.com/deploy/multi-node-cluster/ Stable network IDs Persistent volumesOrdered operations STATEFUL 1. Start all yb-masters first (usually 3) 2. Start as many yb-tservers as needed
  • 6. 6© 2018 All rights reserved. A Real-World Example Yugastore – E-Commerce app on the YERN stack Deployed on github.com/YugaByte/yugastore
  • 7. 7© 2018 All rights reserved. Kubernetes Deployment Architecture yb-master StatefulSet yugabytedb yb-master-1 pod yugabytedb yb-master-0 pod yugabytedb yb-master-2 pod yb-tserver StatefulSet tablet 1’ yugabytedb yb-tserver-1 podtablet 1’ yugabytedb yb-tserver-0 pod tablet 1’ yugabytedb yb-tserver-2 pod yb-masters Headless Service yb-master-ui LoadBalancer Service yb-tservers Headless Service yugastore Deployment tablet 1’ yugastore yugastore-1 podtablet 1’ yugastore yugastore-0 pod yugastore LoadBalancer Service End User Admin User
  • 8. 8© 2018 All rights reserved. Store less dynamic data using the YCQL API Example: description Highly dynamic data using the YEDIS API Example: number of reviews Multi-API, Multi-Model in Action
  • 9. 9© 2018 All rights reserved. Products modeled as a table Show me an book in the business category Dynamic sets modeled as Redis SORTED SETs Show me the top 2 book with the most reviews Multi-API, Multi-Model in Action
  • 10. 10© 2018 All rights reserved. Step 1 Deploy YugaByte DB cluster https://docs.yugabyte.com/latest/deploy/kubernetes/local-ssd/ kubectl apply -f yugabyte-statefulset.yaml
  • 11. 11© 2018 All rights reserved. Step 2 Deploy Yugastore app kubectl run yugastore --image=yugabytedb/yugastore --port=3001 --command start-for-kubernetes.sh
  • 12. 12© 2018 All rights reserved. Step 3 Expose the Yugastore app as a service kubectl expose deployment yugastore --type=LoadBalancer
  • 13. 13© 2018 All rights reserved. Step 4 Run a workload kubectl exec -it yugastore-<container-id> node yugastore/test/sample-user.js
  • 14. 14© 2018 All rights reserved. Step 5 Scale out YugaByte DB kubectl scale statefulset yb-tserver --replicas=4
  • 15. 15© 2018 All rights reserved. gitter.im/YugaByte @YugaByte Thank You!