Toast cloud for beginners

  • Published on
    07-Jan-2017

  • View
    628

  • Download
    1

Embed Size (px)

Transcript

  • Toast Cloud For Beginners

    v.1.3

    2015 9 16

    2015 NHN Entertainment Corp.

  • 1. Toast Cloud Products

  • 3 / Toast Cloud for Beginner

    Products - Infrastructure

    Compute

    Instances

    Images

    Volumes

    Network & Security

    Security Groups

    Key Pairs

    Floating IPs

    Networks

    Load Balancer

    Storage

    Object Storage

    Monitoring

    Monitoring

  • 4 / Toast Cloud for Beginner

    Products Platform as a Service (PaaS)

    Contents

    Image

    CDN

    Analytics

    Game Analytics

    Log & Crash Search

    Game

    Leaderboard

    Game Server ()

    Game Data ()

    Security

    AppGuard

    Common

    Launching

    IAP

    Mobile Test (Beta)

    Image

    Address Search

    Push ()

    Performance Test ()

  • 2. Toast Cloud Console

  • 6 / Toast Cloud for Beginner

    Toast Cloud Console

    Project

    , , /

    , ,

    Product

    /

  • 7 / Toast Cloud for Beginner

    Admin Member

    Project O View

    O View

    Member O X

    O X

    Product

    O View

    O View

    O O

    Billing O X

    Infrastructure(Network ) Edit Edit

    Infrastructure(Network) Edit View

    Game Analytics Edit Edit

    Log & Crash Search Edit Edit

    Leaderboard Edit Edit

    Launching Edit Edit

    IAP Edit Edit

    Mobile Test Edit Edit

  • 3. Instance

  • 9 / Toast Cloud for Beginner

    Instance - Basics

    Access

    Instance

    Key Pair

    (1)

    Security

    Group (2)

    Floating

    IP (3)

  • 10 / Toast Cloud for Beginner

    Instance - Key Pair

    Instance (Linux)

    (Asymmetric-key Cryptograph) (Encrypt) / (Decrypt) (public-key), (private-key) (public-key cryptography)

    Key Pair instance instance

    1.

    2. SSH

    3. /

    4. /

    client Instance

  • 11 / Toast Cloud for Beginner

    inbound / outbound traffic

    : , admin page ingress rule IP IP IP

    Instance - Security Groups

    Internet

    Ingress

    Egress Instance

  • 12 / Toast Cloud for Beginner

    Instance - Floating IP

    Public 192.168.0.x

    Network Node 1:1 NAT Mapping

    192.168.0.x = 119.x.x.x

    1:1 NAT Mapping Instance Floating IP Console

    Tip : - curl http://bot.whatismyipaddress.com .

    IP

    http://bot.whatismyipaddress.com/

  • 13 / Toast Cloud for Beginner

    Instance

    KR-x Zone

    Internet Key Pair Security Group - Security Group - Security Group Rule Instance Floating IP PEM (Key Pair) PPK Instance w/ Putty

  • 14 / Toast Cloud for Beginner

    Instance -

    : PuTTY , : xShell

    PuTTYGen : PuTTY Toast Cloud Key Pair (*.pem) . PuTTY *.ppk .

    Download URL PuTTY : http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe PuTTYGen : http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe

    http://the.earth.li/~sgtatham/putty/latest/x86/putty.exehttp://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exehttp://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe

  • 15 / Toast Cloud for Beginner

    Instance PEM PPK

    PuTTYGen Key Pair Load Private Key

  • 16 / Toast Cloud for Beginner

    Instance

    PuTTY Command Line PuTTY GUI

    Session

    Host Name (or IP address) : Floating IP Port : 22 (Default) Connection type : SSH

    Connection Data

    Auto-login username : root / ubuntu / debian

    Connection SSH Auth PuTTYGen Key Pair PPK

    Linux, Mac PEM Key instance password : $ ssh -i demo_keypair.pem root@192.168.0.2 @@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0777 for demo_keypair.pem' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: demo_keypair.pem root@192.168.0.2's password: : PEM Key Password . : / chmod 700 demo_keypair.pem

  • 4. High Availability / Failover

  • 18 / Toast Cloud for Beginner

    Instance

    ( Virtual Machine) , Openstack Instance .

    Hypervisor KR Pool

    Zone kr-a / kr-b zone random hypervisor

    kr-a kr-a zone random hypervisor

    kr-b kr-b zone random hypervisor

    kr-a zone kr-a zone KR-A Zone Hypervisor Pool kr-a zone

    kr-a zone KR-B Zone Hypervisor Pool

  • 19 / Toast Cloud for Beginner

    instance

    L4 Proxy mode vs. DSR mode

    Load Balancer (LBaaS)

    Instances Internet

    LBaaS

    Round Robin, Least Connections,

    Source IP

    Proxy Mode DSR Mode

    Server Client L4 Server Client L4 Direct

    Client L4 Server L4 Client Client L4 Server Client L4 Server , Client IP Server

    * Subnet IP L4 *

    * L4 Client L4 , * Client IP Server

    * L4

    * Subnet Server(IP) L4 *

  • 20 / Toast Cloud for Beginner

    KR-A Zone KR-B Zone

    LBaaS / ABZone

    Internet

    Master Slave

    : 192.168.0.2 : 192.168.0.3

    : 192.168.0.4 : 192.168.0.5

    : 192.168.0.6

    Toast Cloud LBaaS : 119.x.x.x

    Round Robin

  • 5. Tips

  • 22 / Toast Cloud for Beginner

    Image

    Public Image Create instance

    Install software

    & configure

    instance

    Create Private

    Image Create instance

    + Apache Tomcat

    User Data

    Apache Tomcat

    User Data +

    Apache Tomcat

    User Data

    + Apache Tomcat

    User Data

    Instance attach volume Image

    + Apache Tomcat

    User Data

    OS Instance - Public : - Private : Instance - Shared : Private

  • 23 / Toast Cloud for Beginner

    Volume

    Instance

    Default Disk

    20 GB

    Create

    Volume

    Volume

    Attach

    Format &

    mount

    Volume

    Configure

    fstab

    +

    +

    +

    Default Volume 20 GB

    Volume 50 GB

    Default Volume 20 GB

    mkfs.ext4 L disk2 /dev/vdb mkdir p /home1 mount /dev/vdb /home1

    /dev/vdb /home1 ext4 defaults 0 0

    Volume 50 GB

    Instance volume instance

  • 24 / Toast Cloud for Beginner

    Volume / Floating IP

    Instance +

    Volume (Data) +

    Floating IP

    Instance

    (Hacking )

    Private Image

    Instance

    Volume /

    Floating IP

    Detach

    Instance

    Volume /

    Floating IP Attach

  • 25 / Toast Cloud for Beginner

    LBaaS Client IP

    X-Forwarded-For (XFF) HTTP Header HTTP Server Client IP .

    Client IP : A Header : A

    Internet

    Public 192.168.0.x

    Floating IP (Pub) 119.xxx.xxx.xxx Header : A, B

    LBaaS, L4, Proxy, etc IP : B Header : A, B

  • 6. Developers Guide / Devcenter

  • 27 / Toast Cloud for Beginner

    Console Devcenter

  • 28 / Toast Cloud for Beginner

    http://cloud.toast.com

    http://cloud.toast.com/

  • Thank You.