SlideShare uma empresa Scribd logo
1 de 31
Baixar para ler offline
Operating	
  your	
  OpenStack	
  
                    Private	
  Cloud


                                    Ryan	
  Richard
                               OpenStack	
  Engineer
                           ryan.richard@rackspace.com
                                     @rackninja



                                                    October 12, 2012


Thursday, October 18, 12
Monitoring	
  and	
  Reporting
         Where	
  we	
  were	
  -­‐	
  April	
  2012

                  Basic	
  CDM




                                                       RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Monitoring	
  and	
  Reporting
         Where	
  we	
  were	
  -­‐	
  April	
  2012

                  Basic	
  CDM
                                                       Now




                                                             RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Monitoring	
  and	
  Reporting
         Where	
  we	
  were	
  -­‐	
  April	
  2012

                  Basic	
  CDM
                                                       Now




                                                             RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Tools

        There	
  is	
  no	
  good	
  way	
  to	
  get	
  the	
  following	
  info:

               I	
  need	
  a	
  list	
  of	
  instances	
  on	
  a	
  host	
  and	
  their	
  IPs

               I	
  need	
  to	
  gracefully	
  start/stop	
  all	
  instances	
  on	
  a	
  host

               Some	
  tools	
  needs	
  hostname,	
  some	
  need	
  id	
  (decimal	
  or	
  hex),	
  
               some	
  	
  need	
  uuid




                                                                                                     RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Tools

        There	
  is	
  no	
  good	
  way	
  to	
  get	
  the	
  following	
  info:

               I	
  need	
  a	
  list	
  of	
  instances	
  on	
  a	
  host	
  and	
  their	
  IPs

               I	
  need	
  to	
  gracefully	
  start/stop	
  all	
  instances	
  on	
  a	
  host

               Some	
  tools	
  needs	
  hostname,	
  some	
  need	
  id	
  (decimal	
  or	
  hex),	
  
               some	
  	
  need	
  uuid

        SELECT
        instances.id,instances.hostname,instances.project_id,fixed_ips.address
        as fixed_address,floating_ips.address as floating_address FROM instances
        LEFT JOIN fixed_ips ON instances.id=fixed_ips.instance_id LEFT JOIN
        floating_ips ON floating_ips.fixed_ip_id=fixed_ips.id WHERE
        instances.deleted="NULL" AND instances.host="<hostname of physical
        machine>" ORDER BY instances.id;

                                                                                                     RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Tools
                           WE	
  NEED	
  BETTER	
  OPS	
  TOOLS!




                                                                   RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM   4




Thursday, October 18, 12
Tools
                                          WE	
  NEED	
  BETTER	
  OPS	
  TOOLS!



     Pulsar

            https://github.com/
            rsoprivatecloud/pulsar

            “nova	
  swiss	
  army	
  knife”

            requires	
  direct	
  nova	
  database	
  
            access




                                                                                  RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM   4




Thursday, October 18, 12
Tools
                                          WE	
  NEED	
  BETTER	
  OPS	
  TOOLS!



     Pulsar

            https://github.com/
            rsoprivatecloud/pulsar

            “nova	
  swiss	
  army	
  knife”

            requires	
  direct	
  nova	
  database	
  
            access




                                                                                  RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM   4




Thursday, October 18, 12
Tools
      Holland	
  (opensource	
  database	
  backup	
  framework)

             Written	
  by	
  Rackspace	
  DBAs

             http://wiki.hollandbackup.org/




                                                                   RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Tools
     dsh

           dsh -Mcg compute uname-a




                                              RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Tools
     dsh

           dsh -Mcg compute uname-a




                                              RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Tools
     dsh

           dsh -Mcg compute uname-a




     bashfoo

           for	
  i	
  in	
  `knife	
  node	
  list	
  |	
  grep	
  cpu`;	
  do	
  knife	
  node	
  run_list	
  add	
  $i	
  
           "role[single-­‐compute]";	
  done

           for	
  k	
  in	
  `seq	
  1	
  20`;	
  do	
  for	
  i	
  in	
  {compute,network};	
  do	
  nova-­‐manage	
  
           service	
  disable	
  computevm0$k	
  nova-­‐$i;	
  done;	
  done



                                                                                                                       RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations
       Disk	
  IO

             For	
  high	
  performance	
  use	
  
             remote	
  block	
  storage

             For	
  “local”	
  disk	
  IO,	
  raw	
  
             image	
  type	
  is	
  only	
  slightly	
  
             faster	
  than	
  qcow2


              IO	
  will	
  degrade	
  while	
  Glance	
  
              copies	
  images	
  between	
  
              machines


              scheduler=cfq,	
  KVM	
  
              cache=none



                                                             RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations
       Disk	
  IO                                                                                                   Async&Random&IO&

                                                                               rs/speed/test12"(cfq,"host"deadline,"cache=none)"


                                                                                      Rs/speed/test13"(noop,"cache=writeback)"

             For	
  high	
  performance	
  use	
                                        rs/speed/test13"(cfq,"cache=writeback)"

             remote	
  block	
  storage                                                    Rs/speed/test12"(noop"cache=none)"

                                                                                                                                                                                           randW"(direct)"
                                                                                             Rs/speed/test12"(cfq"cache=none)"
                                                                                                                                                                                           randR"(direct)"



             For	
  “local”	
  disk	
  IO,	
  raw	
  
                                                                                                                                                                                           randW"
                                                                                      Rs/speed/test13"(cfq,"cache=none,"no"ht)"
                                                                                                                                                                                           randR"


             image	
  type	
  is	
  only	
  slightly	
                                  Rs/speed/test13"(deadline"cache=none)"



             faster	
  than	
  qcow2                                                                   compute/host"(deadline)"


                                                                                                          compute/host"(no"ht)"


                                                                                                                   compute/host"




              IO	
  will	
  degrade	
  while	
  Glance	
  
                                                                                                                                   0"    200"   400"   600"      800"     1000"    1200"    1400"     1600"


                                                                                                                     Host&vs.&Instance&
              copies	
  images	
  between	
                  14000"


              machines                                       12000"



                                                             10000"




              scheduler=cfq,	
  KVM	
                         8000"



              cache=none
                                                                                                                                                                        compute/host"
                                                              6000"                                                                                                     Rs/speed/test12"(cfq"cache=none)"



                                                              4000"



                                                              2000"



                                                                 0"
                                                                      randR"   randW"       randR"     randW"        seqR"         seqW"RACKSPACE® HOSTING
                                                                                                                                            seqR"     seqw"        |    WWW.RACKSPACE.COM
                                                                                           (direct)"   (direct)"                           (direct)" (direct)"




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations

     Glance	
  chunk	
  Size

           200Mb	
  chunk	
  size




           1GB	
  chunk	
  size




           5GB	
  chunk	
  size




                                             RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations

     Glance	
  chunk	
  Size

           200Mb	
  chunk	
  size




           1GB	
  chunk	
  size




           5GB	
  chunk	
  size




                                             RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations

     Glance	
  chunk	
  Size

           200Mb	
  chunk	
  size




           1GB	
  chunk	
  size




           5GB	
  chunk	
  size




                                             RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations

     Glance	
  chunk	
  Size

           200Mb	
  chunk	
  size




           1GB	
  chunk	
  size




           5GB	
  chunk	
  size




                                             RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations
                              Swift	
  disk	
  usage	
  with	
  different	
  chunk	
  sizes




                           5	
  zones	
  -­‐	
  4	
  x	
  1TB	
  disks	
  per	
  zone
                                20TB	
  raw	
  -­‐	
  6.67TB	
  usable                       RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations
                           Swift	
  disk	
  usage	
  with	
  different	
  chunk	
  sizes




                                                                                          RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations



                       Glance	
  chunk	
  size

                             Too	
  high	
  and	
  swift	
  can	
  become	
  unbalanced

                             What	
  are	
  the	
  downsides	
  to	
  being	
  too	
  low?




                                                                                             RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations

         Glance

                Disk	
  Tuning	
  (swift)

                        read	
  ahead	
  on	
  your	
  block	
  device(s)	
  -­‐	
  no	
  noticeable	
  gain

                        deadline	
  scheduler	
  -­‐	
  no	
  noticeable	
  gain

                Best	
  thing	
  for	
  glance	
  performance	
  -­‐	
  Caching




                                                                                                    RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations

         Glance

                Disk	
  Tuning	
  (swift)

                        read	
  ahead	
  on	
  your	
  block	
  device(s)	
  -­‐	
  no	
  noticeable	
  gain

                        deadline	
  scheduler	
  -­‐	
  no	
  noticeable	
  gain

                Best	
  thing	
  for	
  glance	
  performance	
  -­‐	
  Caching

                              Image	
  Size               Not	
  Cached                 Cached

                                  1.4GB                      20secs                       1sec

                                 16.4GB                   2min	
  21secs                  1sec

                                                                                                    RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations

         Glance

                Disk	
  Tuning	
  (swift)

                        read	
  ahead	
  on	
  your	
  block	
  device(s)	
  -­‐	
  no	
  noticeable	
  gain

                        deadline	
  scheduler	
  -­‐	
  no	
  noticeable	
  gain

                Best	
  thing	
  for	
  glance	
  performance	
  -­‐	
  Caching

                              Image	
  Size               Not	
  Cached                 Cached              *times	
  from	
  “creating	
  
                                                                                                            image”	
  to	
  	
  “qemu-­‐img	
  
                                  1.4GB                      20secs                       1sec                        create”

                                 16.4GB                   2min	
  21secs                  1sec

                                                                                                    RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Performance	
  and	
  Scale	
  Considerations

     Scheduler

           What	
  we	
  use	
  by	
  default:




      scheduler	
  tasks	
  are	
  not	
  processed	
  in	
  parallel

      Adding	
  additional	
  schedulers	
  helps	
  provide	
  HA	
  but	
  they	
  don’t	
  speed	
  up	
  overall	
  times	
  to	
  
      complete	
  requests


                                                                                                   RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Automated	
  Config	
  Management


                           Chef:	
  http://github.com/rcbops/chef-­‐cookbooks

                               time	
  to	
  stand	
  up	
  

                                        controller	
  -­‐	
  less	
  than	
  20	
  minutes

                                        compute	
  node	
  -­‐	
  less	
  than	
  2	
  min




                                                                                             RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Day	
  to	
  Day	
  tasks

                 Dealing	
  with	
  new	
  issues

                           resize	
  	
  -­‐	
  all	
  nova-­‐compute	
  processes	
  need	
  to	
  be	
  able	
  to	
  log	
  into	
  all	
  
                           other	
  compute	
  nodes	
  via	
  ssh	
  keys


                Hardware	
  failures

                           We’re	
  still	
  managing	
  infrastructure,	
  failures	
  happen




                                                                                                                 RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Lessons	
  Learned

                 We	
  need	
  better	
  Operations	
  tools!

                 Network	
  Design	
  can	
  be	
  confusing	
  for	
  people	
  used	
  to	
  “the	
  old	
  way”

                 OpenStack	
  is	
  still	
  relatively	
  new,	
  help	
  your	
  organization	
  understand	
  it.

                 It’s	
  easy	
  to	
  forget	
  we’re	
  working	
  with	
  Linux	
  machines

                 It’s	
  not	
  you,	
  it’s	
  a	
  bug	
  :)




                                                                                                 RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
But....




                   But	
  this	
  is	
  a	
  design	
  summit	
  also

                           Open	
  to	
  discussions/thoughts/questions




                                                                          RACKSPACE® HOSTING   |   WWW.RACKSPACE.COM




Thursday, October 18, 12
Rackspace	
  is	
  hiring
                                            www.rackertalent.com

                                                        RACKSPACE® HOSTING                    |   5000 WALZEM ROAD     |  SAN ANTONIO, TX 78218
                                                    US SALES: 1-800-961-2888 |                 US SUPPORT: 1-800-961-4454  |   WWW.RACKSPACE.COM


    RACKSPACE® HOSTING   |   © RACKSPACE US, INC.   |   RACKSPACE® AND FANATICAL SUPPORT® ARE SERVICE MARKS OF RACKSPACE US, INC. REGISTERED IN THE UNITED STATES AND OTHER COUNTRIES.   |   WWW.RACKSPACE.COM




Thursday, October 18, 12

Mais conteúdo relacionado

Destaque

Project RedDwarf - Database Services in the Cloud.pptx
Project RedDwarf - Database Services in the Cloud.pptxProject RedDwarf - Database Services in the Cloud.pptx
Project RedDwarf - Database Services in the Cloud.pptxOpenStack Foundation
 
Gonzalez barahona community_board_metrics_0415162
Gonzalez barahona community_board_metrics_0415162Gonzalez barahona community_board_metrics_0415162
Gonzalez barahona community_board_metrics_0415162OpenStack Foundation
 
How DreamHost builds a public cloud with OpenStack.pdf
How DreamHost builds a public cloud with OpenStack.pdfHow DreamHost builds a public cloud with OpenStack.pdf
How DreamHost builds a public cloud with OpenStack.pdfOpenStack Foundation
 
Cherian networking in_the_cloud_041613
Cherian networking in_the_cloud_041613Cherian networking in_the_cloud_041613
Cherian networking in_the_cloud_041613OpenStack Foundation
 
Solving the OpenStack Talent Gap
Solving the OpenStack Talent Gap Solving the OpenStack Talent Gap
Solving the OpenStack Talent Gap Niki Acosta
 
Chef for OpenStack December 2012
Chef for OpenStack December 2012Chef for OpenStack December 2012
Chef for OpenStack December 2012Matt Ray
 
Private Clouds and OpenStack: WFT?
Private Clouds and OpenStack: WFT?Private Clouds and OpenStack: WFT?
Private Clouds and OpenStack: WFT?Ivan Kolodyazhny
 
OpenStack101: Introductions to Private and Hybrid Clouds (BrightTALK)
OpenStack101: Introductions to Private and Hybrid Clouds (BrightTALK)OpenStack101: Introductions to Private and Hybrid Clouds (BrightTALK)
OpenStack101: Introductions to Private and Hybrid Clouds (BrightTALK)Niki Acosta
 
OpenStack: The Linux of Cloud hosted by LPI
OpenStack: The Linux of Cloud hosted by LPIOpenStack: The Linux of Cloud hosted by LPI
OpenStack: The Linux of Cloud hosted by LPINiki Acosta
 
Openstack portal-bestpractices-campbell mcneill
Openstack portal-bestpractices-campbell mcneillOpenstack portal-bestpractices-campbell mcneill
Openstack portal-bestpractices-campbell mcneillOpenStack Foundation
 
Growing the OpenStack International Community
Growing the OpenStack International CommunityGrowing the OpenStack International Community
Growing the OpenStack International CommunityOpenStack Foundation
 
Enterprise-Grade Networking in OpenStack
Enterprise-Grade Networking in OpenStackEnterprise-Grade Networking in OpenStack
Enterprise-Grade Networking in OpenStackMarten Hauville
 
Best of Breed OpenStack Compute & Block Storage Cloud... .pdf
Best of Breed OpenStack Compute & Block Storage Cloud... .pdfBest of Breed OpenStack Compute & Block Storage Cloud... .pdf
Best of Breed OpenStack Compute & Block Storage Cloud... .pdfOpenStack Foundation
 
Behind the Curtain: Operating an OpenStack Powered Private Cloud
Behind the Curtain: Operating an OpenStack Powered Private CloudBehind the Curtain: Operating an OpenStack Powered Private Cloud
Behind the Curtain: Operating an OpenStack Powered Private CloudNiki Acosta
 

Destaque (15)

Project RedDwarf - Database Services in the Cloud.pptx
Project RedDwarf - Database Services in the Cloud.pptxProject RedDwarf - Database Services in the Cloud.pptx
Project RedDwarf - Database Services in the Cloud.pptx
 
Gonzalez barahona community_board_metrics_0415162
Gonzalez barahona community_board_metrics_0415162Gonzalez barahona community_board_metrics_0415162
Gonzalez barahona community_board_metrics_0415162
 
dodai_grizzly.pdf
dodai_grizzly.pdfdodai_grizzly.pdf
dodai_grizzly.pdf
 
How DreamHost builds a public cloud with OpenStack.pdf
How DreamHost builds a public cloud with OpenStack.pdfHow DreamHost builds a public cloud with OpenStack.pdf
How DreamHost builds a public cloud with OpenStack.pdf
 
Cherian networking in_the_cloud_041613
Cherian networking in_the_cloud_041613Cherian networking in_the_cloud_041613
Cherian networking in_the_cloud_041613
 
Solving the OpenStack Talent Gap
Solving the OpenStack Talent Gap Solving the OpenStack Talent Gap
Solving the OpenStack Talent Gap
 
Chef for OpenStack December 2012
Chef for OpenStack December 2012Chef for OpenStack December 2012
Chef for OpenStack December 2012
 
Private Clouds and OpenStack: WFT?
Private Clouds and OpenStack: WFT?Private Clouds and OpenStack: WFT?
Private Clouds and OpenStack: WFT?
 
OpenStack101: Introductions to Private and Hybrid Clouds (BrightTALK)
OpenStack101: Introductions to Private and Hybrid Clouds (BrightTALK)OpenStack101: Introductions to Private and Hybrid Clouds (BrightTALK)
OpenStack101: Introductions to Private and Hybrid Clouds (BrightTALK)
 
OpenStack: The Linux of Cloud hosted by LPI
OpenStack: The Linux of Cloud hosted by LPIOpenStack: The Linux of Cloud hosted by LPI
OpenStack: The Linux of Cloud hosted by LPI
 
Openstack portal-bestpractices-campbell mcneill
Openstack portal-bestpractices-campbell mcneillOpenstack portal-bestpractices-campbell mcneill
Openstack portal-bestpractices-campbell mcneill
 
Growing the OpenStack International Community
Growing the OpenStack International CommunityGrowing the OpenStack International Community
Growing the OpenStack International Community
 
Enterprise-Grade Networking in OpenStack
Enterprise-Grade Networking in OpenStackEnterprise-Grade Networking in OpenStack
Enterprise-Grade Networking in OpenStack
 
Best of Breed OpenStack Compute & Block Storage Cloud... .pdf
Best of Breed OpenStack Compute & Block Storage Cloud... .pdfBest of Breed OpenStack Compute & Block Storage Cloud... .pdf
Best of Breed OpenStack Compute & Block Storage Cloud... .pdf
 
Behind the Curtain: Operating an OpenStack Powered Private Cloud
Behind the Curtain: Operating an OpenStack Powered Private CloudBehind the Curtain: Operating an OpenStack Powered Private Cloud
Behind the Curtain: Operating an OpenStack Powered Private Cloud
 

Semelhante a Operating your OpenStack Private Cloud.pdf

Consideration for Building a Private Cloud
Consideration for Building a Private CloudConsideration for Building a Private Cloud
Consideration for Building a Private CloudOpenStack Foundation
 
Nova network, the dirty details 041613
Nova network, the dirty details 041613Nova network, the dirty details 041613
Nova network, the dirty details 041613OpenStack Foundation
 
Considerations for building your private cloud folsom update
Considerations for building your private cloud   folsom updateConsiderations for building your private cloud   folsom update
Considerations for building your private cloud folsom updateRyan Richard
 
Considerations for Building Your Private Cloud.pdf
Considerations for Building Your Private Cloud.pdfConsiderations for Building Your Private Cloud.pdf
Considerations for Building Your Private Cloud.pdfOpenStack Foundation
 
Isolated Networks in the Cloud
Isolated Networks in the CloudIsolated Networks in the Cloud
Isolated Networks in the CloudHart Hoover
 
Solve the Cross-Cloud Conundrum with jclouds
Solve the Cross-Cloud Conundrum with jcloudsSolve the Cross-Cloud Conundrum with jclouds
Solve the Cross-Cloud Conundrum with jcloudsEverett Toews
 
Be a Cloud Native
Be a Cloud NativeBe a Cloud Native
Be a Cloud NativeInnoTech
 
Rupy2012 ArangoDB Workshop Part1
Rupy2012 ArangoDB Workshop Part1Rupy2012 ArangoDB Workshop Part1
Rupy2012 ArangoDB Workshop Part1ArangoDB Database
 
Autoscaling Best Practices
Autoscaling Best PracticesAutoscaling Best Practices
Autoscaling Best PracticesMarc Cluet
 
How we setup Rsync-powered Incremental Backups
How we setup Rsync-powered Incremental BackupsHow we setup Rsync-powered Incremental Backups
How we setup Rsync-powered Incremental Backupsnicholaspaun
 
Control the Clouds - Developer Experience with jclouds.pptx
Control the Clouds - Developer Experience with jclouds.pptxControl the Clouds - Developer Experience with jclouds.pptx
Control the Clouds - Developer Experience with jclouds.pptxOpenStack Foundation
 
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012Matt Tesauro
 
It's in the cloud
It's in the cloudIt's in the cloud
It's in the cloudkenperkins
 
DevOpsDays Amsterdam - Monitoring at Service Provider Scale
DevOpsDays Amsterdam - Monitoring at Service Provider ScaleDevOpsDays Amsterdam - Monitoring at Service Provider Scale
DevOpsDays Amsterdam - Monitoring at Service Provider ScaleChris Jackson
 
OpenStack Summit :: Redundancy Doesn't Always Mean "HA" or "Cluster"
OpenStack Summit :: Redundancy Doesn't Always Mean "HA" or "Cluster"OpenStack Summit :: Redundancy Doesn't Always Mean "HA" or "Cluster"
OpenStack Summit :: Redundancy Doesn't Always Mean "HA" or "Cluster"Randy Bias
 
Software Development kits
Software Development kitsSoftware Development kits
Software Development kitsEverett Toews
 
Building cloudy apps
Building cloudy appsBuilding cloudy apps
Building cloudy appstonytcampbell
 
jclouds Support Training
jclouds Support Trainingjclouds Support Training
jclouds Support TrainingEverett Toews
 

Semelhante a Operating your OpenStack Private Cloud.pdf (20)

Consideration for Building a Private Cloud
Consideration for Building a Private CloudConsideration for Building a Private Cloud
Consideration for Building a Private Cloud
 
Nova-Network The Dirty Details
Nova-Network The Dirty DetailsNova-Network The Dirty Details
Nova-Network The Dirty Details
 
Nova network, the dirty details 041613
Nova network, the dirty details 041613Nova network, the dirty details 041613
Nova network, the dirty details 041613
 
Considerations for building your private cloud folsom update
Considerations for building your private cloud   folsom updateConsiderations for building your private cloud   folsom update
Considerations for building your private cloud folsom update
 
Considerations for Building Your Private Cloud.pdf
Considerations for Building Your Private Cloud.pdfConsiderations for Building Your Private Cloud.pdf
Considerations for Building Your Private Cloud.pdf
 
Isolated Networks in the Cloud
Isolated Networks in the CloudIsolated Networks in the Cloud
Isolated Networks in the Cloud
 
Solve the Cross-Cloud Conundrum with jclouds
Solve the Cross-Cloud Conundrum with jcloudsSolve the Cross-Cloud Conundrum with jclouds
Solve the Cross-Cloud Conundrum with jclouds
 
Be a Cloud Native
Be a Cloud NativeBe a Cloud Native
Be a Cloud Native
 
Rupy2012 ArangoDB Workshop Part1
Rupy2012 ArangoDB Workshop Part1Rupy2012 ArangoDB Workshop Part1
Rupy2012 ArangoDB Workshop Part1
 
Autoscaling Best Practices
Autoscaling Best PracticesAutoscaling Best Practices
Autoscaling Best Practices
 
How we setup Rsync-powered Incremental Backups
How we setup Rsync-powered Incremental BackupsHow we setup Rsync-powered Incremental Backups
How we setup Rsync-powered Incremental Backups
 
Control the Clouds - Developer Experience with jclouds.pptx
Control the Clouds - Developer Experience with jclouds.pptxControl the Clouds - Developer Experience with jclouds.pptx
Control the Clouds - Developer Experience with jclouds.pptx
 
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
 
It's in the cloud
It's in the cloudIt's in the cloud
It's in the cloud
 
Making WordPress Fly
Making WordPress FlyMaking WordPress Fly
Making WordPress Fly
 
DevOpsDays Amsterdam - Monitoring at Service Provider Scale
DevOpsDays Amsterdam - Monitoring at Service Provider ScaleDevOpsDays Amsterdam - Monitoring at Service Provider Scale
DevOpsDays Amsterdam - Monitoring at Service Provider Scale
 
OpenStack Summit :: Redundancy Doesn't Always Mean "HA" or "Cluster"
OpenStack Summit :: Redundancy Doesn't Always Mean "HA" or "Cluster"OpenStack Summit :: Redundancy Doesn't Always Mean "HA" or "Cluster"
OpenStack Summit :: Redundancy Doesn't Always Mean "HA" or "Cluster"
 
Software Development kits
Software Development kitsSoftware Development kits
Software Development kits
 
Building cloudy apps
Building cloudy appsBuilding cloudy apps
Building cloudy apps
 
jclouds Support Training
jclouds Support Trainingjclouds Support Training
jclouds Support Training
 

Mais de OpenStack Foundation

Sponsor Webinar - OpenStack Summit Vancouver 2018
Sponsor Webinar  - OpenStack Summit Vancouver 2018Sponsor Webinar  - OpenStack Summit Vancouver 2018
Sponsor Webinar - OpenStack Summit Vancouver 2018OpenStack Foundation
 
OpenStack Summits 101: A Guide For Attendees
OpenStack Summits 101: A Guide For AttendeesOpenStack Summits 101: A Guide For Attendees
OpenStack Summits 101: A Guide For AttendeesOpenStack Foundation
 
OpenStack Marketing Plan - Community Presentation
OpenStack Marketing Plan - Community PresentationOpenStack Marketing Plan - Community Presentation
OpenStack Marketing Plan - Community PresentationOpenStack Foundation
 
OpenStack 5th Birthday - User Group Parties
OpenStack 5th Birthday - User Group PartiesOpenStack 5th Birthday - User Group Parties
OpenStack 5th Birthday - User Group PartiesOpenStack Foundation
 
Liberty release: Preliminary marketing materials & messages
Liberty release: Preliminary marketing materials & messagesLiberty release: Preliminary marketing materials & messages
Liberty release: Preliminary marketing materials & messagesOpenStack Foundation
 
OpenStack Foundation 2H 2015 Marketing Plan
OpenStack Foundation 2H 2015 Marketing PlanOpenStack Foundation 2H 2015 Marketing Plan
OpenStack Foundation 2H 2015 Marketing PlanOpenStack Foundation
 
OpenStack Summit Tokyo Sponsor Webinar
OpenStack Summit Tokyo Sponsor Webinar OpenStack Summit Tokyo Sponsor Webinar
OpenStack Summit Tokyo Sponsor Webinar OpenStack Foundation
 
Neutron Updates - Liberty Edition
Neutron Updates - Liberty Edition Neutron Updates - Liberty Edition
Neutron Updates - Liberty Edition OpenStack Foundation
 
Searchlight Updates - Liberty Edition
Searchlight Updates - Liberty EditionSearchlight Updates - Liberty Edition
Searchlight Updates - Liberty EditionOpenStack Foundation
 
Congress Updates - Liberty Edition
Congress Updates - Liberty EditionCongress Updates - Liberty Edition
Congress Updates - Liberty EditionOpenStack Foundation
 
Release Cycle Management Updates - Liberty Edition
Release Cycle Management Updates - Liberty EditionRelease Cycle Management Updates - Liberty Edition
Release Cycle Management Updates - Liberty EditionOpenStack Foundation
 
OpenStack Day CEE 2015: Real-World Use Cases
OpenStack Day CEE 2015: Real-World Use CasesOpenStack Day CEE 2015: Real-World Use Cases
OpenStack Day CEE 2015: Real-World Use CasesOpenStack Foundation
 

Mais de OpenStack Foundation (20)

Sponsor Webinar - OpenStack Summit Vancouver 2018
Sponsor Webinar  - OpenStack Summit Vancouver 2018Sponsor Webinar  - OpenStack Summit Vancouver 2018
Sponsor Webinar - OpenStack Summit Vancouver 2018
 
OpenStack Summits 101: A Guide For Attendees
OpenStack Summits 101: A Guide For AttendeesOpenStack Summits 101: A Guide For Attendees
OpenStack Summits 101: A Guide For Attendees
 
OpenStack Marketing Plan - Community Presentation
OpenStack Marketing Plan - Community PresentationOpenStack Marketing Plan - Community Presentation
OpenStack Marketing Plan - Community Presentation
 
OpenStack 5th Birthday - User Group Parties
OpenStack 5th Birthday - User Group PartiesOpenStack 5th Birthday - User Group Parties
OpenStack 5th Birthday - User Group Parties
 
Liberty release: Preliminary marketing materials & messages
Liberty release: Preliminary marketing materials & messagesLiberty release: Preliminary marketing materials & messages
Liberty release: Preliminary marketing materials & messages
 
OpenStack Foundation 2H 2015 Marketing Plan
OpenStack Foundation 2H 2015 Marketing PlanOpenStack Foundation 2H 2015 Marketing Plan
OpenStack Foundation 2H 2015 Marketing Plan
 
OpenStack Summit Tokyo Sponsor Webinar
OpenStack Summit Tokyo Sponsor Webinar OpenStack Summit Tokyo Sponsor Webinar
OpenStack Summit Tokyo Sponsor Webinar
 
Cinder Updates - Liberty Edition
Cinder Updates - Liberty Edition Cinder Updates - Liberty Edition
Cinder Updates - Liberty Edition
 
Glance Updates - Liberty Edition
Glance Updates - Liberty EditionGlance Updates - Liberty Edition
Glance Updates - Liberty Edition
 
Heat Updates - Liberty Edition
Heat Updates - Liberty EditionHeat Updates - Liberty Edition
Heat Updates - Liberty Edition
 
Neutron Updates - Liberty Edition
Neutron Updates - Liberty Edition Neutron Updates - Liberty Edition
Neutron Updates - Liberty Edition
 
Nova Updates - Liberty Edition
Nova Updates - Liberty EditionNova Updates - Liberty Edition
Nova Updates - Liberty Edition
 
Sahara Updates - Liberty Edition
Sahara Updates - Liberty EditionSahara Updates - Liberty Edition
Sahara Updates - Liberty Edition
 
Searchlight Updates - Liberty Edition
Searchlight Updates - Liberty EditionSearchlight Updates - Liberty Edition
Searchlight Updates - Liberty Edition
 
Trove Updates - Liberty Edition
Trove Updates - Liberty EditionTrove Updates - Liberty Edition
Trove Updates - Liberty Edition
 
OpenStack: five years in
OpenStack: five years inOpenStack: five years in
OpenStack: five years in
 
Swift Updates - Liberty Edition
Swift Updates - Liberty EditionSwift Updates - Liberty Edition
Swift Updates - Liberty Edition
 
Congress Updates - Liberty Edition
Congress Updates - Liberty EditionCongress Updates - Liberty Edition
Congress Updates - Liberty Edition
 
Release Cycle Management Updates - Liberty Edition
Release Cycle Management Updates - Liberty EditionRelease Cycle Management Updates - Liberty Edition
Release Cycle Management Updates - Liberty Edition
 
OpenStack Day CEE 2015: Real-World Use Cases
OpenStack Day CEE 2015: Real-World Use CasesOpenStack Day CEE 2015: Real-World Use Cases
OpenStack Day CEE 2015: Real-World Use Cases
 

Operating your OpenStack Private Cloud.pdf

  • 1. Operating  your  OpenStack   Private  Cloud Ryan  Richard OpenStack  Engineer ryan.richard@rackspace.com @rackninja October 12, 2012 Thursday, October 18, 12
  • 2. Monitoring  and  Reporting Where  we  were  -­‐  April  2012 Basic  CDM RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 3. Monitoring  and  Reporting Where  we  were  -­‐  April  2012 Basic  CDM Now RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 4. Monitoring  and  Reporting Where  we  were  -­‐  April  2012 Basic  CDM Now RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 5. Tools There  is  no  good  way  to  get  the  following  info: I  need  a  list  of  instances  on  a  host  and  their  IPs I  need  to  gracefully  start/stop  all  instances  on  a  host Some  tools  needs  hostname,  some  need  id  (decimal  or  hex),   some    need  uuid RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 6. Tools There  is  no  good  way  to  get  the  following  info: I  need  a  list  of  instances  on  a  host  and  their  IPs I  need  to  gracefully  start/stop  all  instances  on  a  host Some  tools  needs  hostname,  some  need  id  (decimal  or  hex),   some    need  uuid SELECT instances.id,instances.hostname,instances.project_id,fixed_ips.address as fixed_address,floating_ips.address as floating_address FROM instances LEFT JOIN fixed_ips ON instances.id=fixed_ips.instance_id LEFT JOIN floating_ips ON floating_ips.fixed_ip_id=fixed_ips.id WHERE instances.deleted="NULL" AND instances.host="<hostname of physical machine>" ORDER BY instances.id; RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 7. Tools WE  NEED  BETTER  OPS  TOOLS! RACKSPACE® HOSTING | WWW.RACKSPACE.COM 4 Thursday, October 18, 12
  • 8. Tools WE  NEED  BETTER  OPS  TOOLS! Pulsar https://github.com/ rsoprivatecloud/pulsar “nova  swiss  army  knife” requires  direct  nova  database   access RACKSPACE® HOSTING | WWW.RACKSPACE.COM 4 Thursday, October 18, 12
  • 9. Tools WE  NEED  BETTER  OPS  TOOLS! Pulsar https://github.com/ rsoprivatecloud/pulsar “nova  swiss  army  knife” requires  direct  nova  database   access RACKSPACE® HOSTING | WWW.RACKSPACE.COM 4 Thursday, October 18, 12
  • 10. Tools Holland  (opensource  database  backup  framework) Written  by  Rackspace  DBAs http://wiki.hollandbackup.org/ RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 11. Tools dsh dsh -Mcg compute uname-a RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 12. Tools dsh dsh -Mcg compute uname-a RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 13. Tools dsh dsh -Mcg compute uname-a bashfoo for  i  in  `knife  node  list  |  grep  cpu`;  do  knife  node  run_list  add  $i   "role[single-­‐compute]";  done for  k  in  `seq  1  20`;  do  for  i  in  {compute,network};  do  nova-­‐manage   service  disable  computevm0$k  nova-­‐$i;  done;  done RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 14. Performance  and  Scale  Considerations Disk  IO For  high  performance  use   remote  block  storage For  “local”  disk  IO,  raw   image  type  is  only  slightly   faster  than  qcow2 IO  will  degrade  while  Glance   copies  images  between   machines scheduler=cfq,  KVM   cache=none RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 15. Performance  and  Scale  Considerations Disk  IO Async&Random&IO& rs/speed/test12"(cfq,"host"deadline,"cache=none)" Rs/speed/test13"(noop,"cache=writeback)" For  high  performance  use   rs/speed/test13"(cfq,"cache=writeback)" remote  block  storage Rs/speed/test12"(noop"cache=none)" randW"(direct)" Rs/speed/test12"(cfq"cache=none)" randR"(direct)" For  “local”  disk  IO,  raw   randW" Rs/speed/test13"(cfq,"cache=none,"no"ht)" randR" image  type  is  only  slightly   Rs/speed/test13"(deadline"cache=none)" faster  than  qcow2 compute/host"(deadline)" compute/host"(no"ht)" compute/host" IO  will  degrade  while  Glance   0" 200" 400" 600" 800" 1000" 1200" 1400" 1600" Host&vs.&Instance& copies  images  between   14000" machines 12000" 10000" scheduler=cfq,  KVM   8000" cache=none compute/host" 6000" Rs/speed/test12"(cfq"cache=none)" 4000" 2000" 0" randR" randW" randR" randW" seqR" seqW"RACKSPACE® HOSTING seqR" seqw" | WWW.RACKSPACE.COM (direct)" (direct)" (direct)" (direct)" Thursday, October 18, 12
  • 16. Performance  and  Scale  Considerations Glance  chunk  Size 200Mb  chunk  size 1GB  chunk  size 5GB  chunk  size RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 17. Performance  and  Scale  Considerations Glance  chunk  Size 200Mb  chunk  size 1GB  chunk  size 5GB  chunk  size RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 18. Performance  and  Scale  Considerations Glance  chunk  Size 200Mb  chunk  size 1GB  chunk  size 5GB  chunk  size RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 19. Performance  and  Scale  Considerations Glance  chunk  Size 200Mb  chunk  size 1GB  chunk  size 5GB  chunk  size RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 20. Performance  and  Scale  Considerations Swift  disk  usage  with  different  chunk  sizes 5  zones  -­‐  4  x  1TB  disks  per  zone 20TB  raw  -­‐  6.67TB  usable RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 21. Performance  and  Scale  Considerations Swift  disk  usage  with  different  chunk  sizes RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 22. Performance  and  Scale  Considerations Glance  chunk  size Too  high  and  swift  can  become  unbalanced What  are  the  downsides  to  being  too  low? RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 23. Performance  and  Scale  Considerations Glance Disk  Tuning  (swift) read  ahead  on  your  block  device(s)  -­‐  no  noticeable  gain deadline  scheduler  -­‐  no  noticeable  gain Best  thing  for  glance  performance  -­‐  Caching RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 24. Performance  and  Scale  Considerations Glance Disk  Tuning  (swift) read  ahead  on  your  block  device(s)  -­‐  no  noticeable  gain deadline  scheduler  -­‐  no  noticeable  gain Best  thing  for  glance  performance  -­‐  Caching Image  Size Not  Cached Cached 1.4GB 20secs 1sec 16.4GB 2min  21secs 1sec RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 25. Performance  and  Scale  Considerations Glance Disk  Tuning  (swift) read  ahead  on  your  block  device(s)  -­‐  no  noticeable  gain deadline  scheduler  -­‐  no  noticeable  gain Best  thing  for  glance  performance  -­‐  Caching Image  Size Not  Cached Cached *times  from  “creating   image”  to    “qemu-­‐img   1.4GB 20secs 1sec create” 16.4GB 2min  21secs 1sec RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 26. Performance  and  Scale  Considerations Scheduler What  we  use  by  default: scheduler  tasks  are  not  processed  in  parallel Adding  additional  schedulers  helps  provide  HA  but  they  don’t  speed  up  overall  times  to   complete  requests RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 27. Automated  Config  Management Chef:  http://github.com/rcbops/chef-­‐cookbooks time  to  stand  up   controller  -­‐  less  than  20  minutes compute  node  -­‐  less  than  2  min RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 28. Day  to  Day  tasks Dealing  with  new  issues resize    -­‐  all  nova-­‐compute  processes  need  to  be  able  to  log  into  all   other  compute  nodes  via  ssh  keys Hardware  failures We’re  still  managing  infrastructure,  failures  happen RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 29. Lessons  Learned We  need  better  Operations  tools! Network  Design  can  be  confusing  for  people  used  to  “the  old  way” OpenStack  is  still  relatively  new,  help  your  organization  understand  it. It’s  easy  to  forget  we’re  working  with  Linux  machines It’s  not  you,  it’s  a  bug  :) RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 30. But.... But  this  is  a  design  summit  also Open  to  discussions/thoughts/questions RACKSPACE® HOSTING | WWW.RACKSPACE.COM Thursday, October 18, 12
  • 31. Rackspace  is  hiring www.rackertalent.com RACKSPACE® HOSTING | 5000 WALZEM ROAD | SAN ANTONIO, TX 78218 US SALES: 1-800-961-2888 | US SUPPORT: 1-800-961-4454 | WWW.RACKSPACE.COM RACKSPACE® HOSTING | © RACKSPACE US, INC. | RACKSPACE® AND FANATICAL SUPPORT® ARE SERVICE MARKS OF RACKSPACE US, INC. REGISTERED IN THE UNITED STATES AND OTHER COUNTRIES. | WWW.RACKSPACE.COM Thursday, October 18, 12