oracle nosql database - aioug.org hol - anand... · title: how to use the powerpoint template...

20

Upload: vonga

Post on 04-Apr-2018

214 views

Category:

Documents


1 download

TRANSCRIPT

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Oracle NOSQL Database Setup and Install a cluster in 30 minutes or less.

Anand Chandak Principal Product Manager NoSQL Database

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Program Agenda

Oracle NoSQL DB Overview

Overview of Hands-On Lab

1

2

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Program Agenda

Oracle NoSQL DB Overview

Overview of Hands-On Lab

1

2

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

• Features

– Distributed, Highly available

– Elastic configuration

– Flexible schema (Tables / JSON / Binary

• Differentiators

– Configurable transactions

– Online rolling upgrades

– Streaming large object support

– Oracle technology integrated

– Engineered Systems and Commodity HW

6

Application

Storage Nodes Datacenter B

Storage Nodes Datacenter A

Application

NoSQL DB Driver

Application

NoSQL DB Driver

Application – Simple

Administration

– Data Center Support

– Secondary Indexes

– Secure Access

[email protected] & [email protected]

Oracle NoSQL DB

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Program Agenda

Oracle NoSQL DB Overview

Overview of Hands-On Lab

1

2

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Overview of Hands-On Lab

• Cluster Deployment (3x3)

– Deploy a 9 nodes cluster

• Cluster Expansion (4x3) and Rebalancing

– Expand the cluster by adding a new shard

• Expansion across Datacenter (4x4)

– Add a datacenter to the cluster

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Cluster Deployment (3x3)

Houston

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Cluster Deployment Steps

• Bootstrap Storage Node (SN)

• Start Storage Node Agent (SNA)

• Run admin steps to deploy cluster

– Create Store

– Create Datacenter

– Assign Storage Nodes (SN) to a DC

– Deploy MxN topology based on the resource available

Storage Node 1 (SN)

SNA

RN 1

RN 2

RN 3

$KVROOT/config.xml

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

makebootconfig cmd

Bootstrap Storage Node

########### Bootstrap Storage Node ##########

$java -jar $KVHOME/lib/kvstore.jar makebootconfig \

-root <KVROOT> \

-capacity <# of disks> \

-harange 5010,5030 \

-admin 5001 \

-port 5000 \

-memory_mb 48000 \

-host <hostname> \

-storagedir <disk-1-mount-point> \

-storagedir <disk-2-mount-point> \

-storagedir <disk-N-mount-point> \

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Cluster Expansion and Rebalance • Elasticity improves the KVStore:

– Storage capacity

– Read performance

– Write performance

You can expand a KVStore by:

1. Adding a shard

2. Increasing the replication factor

Master Node

Master Node

Master Node

Master Node

Replica Node

Replica Node

Replica Node

Replica Node

Replica Node

Replica Node

Replica Node

Replica Node

KVStore Shard

Master Node

Master Node

Master Node

Replica Node

Replica Node

Replica Node

Replica Node

Replica Node

Replica Node

Replica Node

Replica Node

Replica Node

When you expand a KVStore by:

• Increasing the replication factor: Read performance is improved.

• Adding a shard: Read and write performances are improved.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

New SN SN 1

Replica Node

Replica Node

Replica Node

SN 2 SN 3

Replica Node

Replica Node

SN fails

Replica Node

Replica Node

Cluster Expansion and Rebalance

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Cluster Expansion and Rebalancing (4X3)

Houston

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Expansion Across Datacenter (4x4)

Houston

Dallas

Four Shard topology spread across two datacenters (Houston and Dallas) with each datacenter having full copy of data. Houston RF=3 and Dallas RF=1.Combined replication factor of the store is 4

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Summary

• Steps to create Oracle NoSQL cluster • makebootconfig command to Boostrap SN • Deploy a 3x3 cluster • Cluster expansion and rebalancing by adding a new shard • Adding a new datacenter.

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Thank You

18

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Join NoSQL Database Community

Twitter https://twitter.com/#!/OracleNoSQL

LinkedIn http://www.linkedin.com/groups?gid=4147754

Oracle’s NoSQL DB blog https://blogs.oracle.com/nosql

Oracle Technology Network

http://bit.ly/1f0d8wU

Developer Webcast Series

http://bit.ly/1doV2jl

Oracle.com/BigData

19

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |