Deploying Couchbase Server on Microsoft Azure Cloud – Couchbase Connect 2016

Post on 15-Apr-2017

267 views 0 download

transcript

©2016 Couchbase Inc. 1

Couchbase Server on Microsoft Azure

©2016 Couchbase Inc. 2

The Couchbase Connect16 mobile appTake our in-app survey!

©2016 Couchbase Inc. 3

Rafael Godinho Evangelist/Senior SDE MicrosoftEmail - rafael.godinho@microsoft.comTwitter - @rafaelgodinho

©2016 Couchbase Inc. 4

Anil Kumar Senior Product Manager CouchbaseEmail: anil@couchbase.comTwitter: @anilkumar1129

©2016 Couchbase Inc.©2016 Couchbase Inc.

• Part I - Azure Intro • Azure Cloud Overview

• Part II - Provisioning Virtual Machines in Azure• Live Demo

• Part III – Setting up Couchbase on Azure Virtual Machines• Best Practices with Azure

VM SKUs, Network Config, Availability Set Configuration and more…• Part IV - New Azure Resource Manager (ARM) Template for Deploying

Couchbase Cluster• Live Demo

• Part V – Q&A

Agenda

5

©2016 Couchbase Inc. 6

PART 1Intro to Azure

Nearly 50 million Office Online users

48 Million Subscribers in 41 countries

Outlook.com has over 400 Million active users and is the world’s fastest growing email service

1 Billion mobile notifications a month

Bing holds 20.2 percent of US market share

- comScore

Yammer has over 8 million registered users

Over 250 million people use OneDrive

On average, Skype users use the service 50

Billion minutes/mo

Xbox delivered over 740 million hours of entertainment

Office for iOS has been downloaded over 80M times

©2016 Couchbase Inc.

Analyst reports

©2016 Couchbase Inc.

Achieve global scale, in local regions

34 regions

©2016 Couchbase Inc.

Azure Cloud

HybridEnterprise Grade

Hyper-scale

HybridEnterprise

Grade

Hyper-Scale

Game sessions hosted using Azure

Hosted using >100,000 Azure Virtual Machines

©2016 Couchbase Inc.

Platform Services

Infrastructure ServicesCompute Storage

Datacenter Infrastructure

Application Platform

WebApps

MobileApps

API Apps

Notification Hubs

HybridCloud

Backup

StorSimple

Azure SiteRecovery

Import/Export

Networking

DataSQL Database DocumentDB

Redis Cache

AzureSearch

StorageTables

SQL DataWarehouse

Azure AD Health Monitoring

Virtual Network

ExpressRoute

Blob Files DisksVirtual Machines

AD PrivilegedIdentity Management

Traffic Manager

AppGateway

OperationalAnalytics

Compute Services

Cloud Services

Batch RemoteApp

ServiceFabric

Developer Services

Visual Studio

ApplicationInsights

VS Team Services

Containers DNS VPN GatewayLoad Balancer

Domain Services

Analytics & IoT

HDInsight MachineLearning Stream Analytics

Data FactoryEvent

Hubs

Data LakeAnalytics Service

IoT Hub

Data Catalog

Security & Management

Azure ActiveDirectory

Multi-FactorAuthentication

Automation

Portal

Key Vault

Store/Marketplace

VM Image Gallery& VM Depot

Azure ADB2C

Scheduler

Xamarin

HockeyAppPower BI Embedded

SQL Server Stretch Database

MobileEngagement

Functions

IntelligenceCognitive Services Bot Framework Cortana

Security Center

Container Service

Queues

VM Scale Sets

Data Lake Store

Dev/Test Lab

Integration

BizTalkServices

Service BusLogic Apps

API Management

Media & CDNContent DeliveryNetwork

Media Services

Media Analytics

©2016 Couchbase Inc. 13

PART 2Provisioning

Couchbase VMs in Azure

©2016 Couchbase Inc.

Launch Windows Server and Linux in minutes Scale from 1 to 1000s of VM Instances Save money with per-minute billing Open and extensible

Azure Virtual Machines

©2016 Couchbase Inc.

New Disk Persisted in

Storage

Cloud

Provisioning VMSelect Image and VM SizeGetting Started

Management Portal

>_Scripting

(Windows, Linux and Mac)

REST API

Boot VM from New DiskWindows Server

Linux

General PurposeBasicStandard

Optimized ComputePerformance OptimizedNetwork Optimized

©2016 Couchbase Inc.

VM disk layoutTemporary Storage Disk• Local (Not

Persistent)• SATA• Drive D:

Data Disk(s)• Persistent• SCSI• Customer Defined

Letter

OS Disk• Persisten

t• SATA• Drive C:

©2016 Couchbase Inc.©2016 Couchbase Inc.

Azure Storage

• Azure Storage has embeded high availability for your data

VM Disks

©2016 Couchbase Inc.©2016 Couchbase Inc.

DEMO

18

©2016 Couchbase Inc. 19

PART 3Best Practices -

Couchbase Server on Azure Cloud

©2016 Couchbase Inc.©2016 Couchbase Inc.

• Minimum HW Recommendation for Couchbase• 2 cores and 4GB for development

• >= A3• >= D2 or D2_v2• >= G1

• 4 cores and 16GB for production• >= A6• D/DS4 or D/DS4_v2• D/DS5_v2• >= D/DS12 or D/DS12_v2• >= G/GS2

Azure VM Instance Type & Couchbase Recommendedation

20

©2016 Couchbase Inc.©2016 Couchbase Inc.

• Virtual Network are the most efficient way to communicate!• Configure a Virtual Network for Nodes & Apps Per DC/Region• Setup Vnet to Vnet connection between DCs/Regions• Private IPs are faster to route compared to public IPs

Configuring Azure Network for Couchbase Clusters

21

Availability Set

VNETVNet to VNet Availability Set

VNET

West US East US

©2016 Couchbase Inc.©2016 Couchbase Inc.

• Hybrid environment• Site-to-Site VPN• ExpressRoute

Configuring Azure Network for Couchbase Clusters

22

Availability Set

VNET

Azure On Premises

or

©2016 Couchbase Inc.©2016 Couchbase Inc.

• Ensure that application servers are deployed to the same Vnet. • Use privateIPs (10.0.x.x) for websites, VM applications or cloud services.

• SSL based client-server communications• SSL based view access: https://couchbase_server:18092/

Configuring Couchbase Client-Server Communications

23

©2016 Couchbase Inc.©2016 Couchbase Inc.

• Configure Availability Sets & Server Groups for Full Protection• Ensure Protection against Upgrades and Rack Failures• Ensure all nodes are in the same availability set• Ensure all nodes are in separate groups in Couchbase Cluster

Configuring Azure Availability Set & Couchbase Server Group

24

©2016 Couchbase Inc.©2016 Couchbase Inc.

• Mount data disks and stripe across with RAID 0.• Do not use ephemeral drive, which will be reset under node restart.• Do not use OS drive because it is limited in size.• Place the disks for each VM into a separate storage account to ensure that

they do not have to compete with other VMs or services for storage throughput.

Storage Configuration

25

RAID 0

...

©2016 Couchbase Inc.©2016 Couchbase Inc.

• Admin Endpoint: Couchbase Admin Console & CLI: 18091

• 18091 is SSL encrypted. • NSG 189091 for added security• No need to open any other port!

• Encrypt XDCR Traffic: Cross DC/Region Traffic with SSL

Security Best Practices

©2014 Couchbase, Inc. 26

©2016 Couchbase Inc. 27

PART 4New Azure Resource

Manager (ARM) Template for

Deploying Couchbase Cluster

©2016 Couchbase Inc.©2016 Couchbase Inc.

DEMO

30

©2016 Couchbase Inc. 31

Q & A

©2016 Couchbase Inc. 32

Thank You!

©2016 Couchbase Inc. 33

Share your opinion on Couchbase

1. Go here: http://gtnr.it/2eRxYWn

2. Create a profile

3. Provide feedback (~15 minutes)

©2016 Couchbase Inc. 34

The Couchbase Connect16 mobile appTake our in-app survey!