pimp my cloud.pdf

Click here to load reader

Post on 12-May-2015

312 views

Category:

Documents

1 download

Embed Size (px)

DESCRIPTION

true

TRANSCRIPT

  • 1.Pimp My CloudNova Configuration Hints and Tricks Joe GordonCCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 1Wednesday, October 17, 12

2. About MeEngineer at CloudscalingContributorDeployerFolsom Contributions o Top 10 developer(by commits) o Mostly in Novahttp://bitergia.com/public/reports/openstack/2012_09_folsom/CCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses.2Wednesday, October 17, 12 3. By the Numbers: Nova Folsom190+ Contributors ReleasePython LinesOther LinesPython Files Other Files Folsom186,738 242,721666 788 Essex 150,894 221,109593 302 Diablo110,581 110,393427 389Code churn:Release Lines Insertions Lines DeletionsInsertions/LoC % Folsom 110,308 71,911 59.0%Essex 182,298138,346 120.8%Code churn generated with git log --numstat --pretty="%H" $A..$B| grep .py$ | awk NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%dn", plus,minus)} CCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.* * All unlicensed or borrowed works retain their original licenses.3Wednesday, October 17, 12 4. Who Wrote Nova Folsom?1138Russell Bryant 2112Johannes Erdfelt 3 97Dan Prince 4 88Vishvananda Ishaya 5 81Joe Gordon 6 63Michael Still 7 59Mark McLoughlin 8 58Rick Harris 9 50Yun Mao 10 45Daniel P. Berrange 11 36Chris Behrens 12 31Eoghan Glynn 13 29Brian Waldon 14 26Pdraig Brady 15 25Chuck Short 16 23Sean Dague 17 21Alex Meade 18 18Kevin L. Mitchell 19 17Brian Elliott 20 17Zhongyue Luo 21 16John Griffith 22 13Dan Smith 23 13Andrew Bogott 24 12Renuka Apte 25 12Thierry Carrez git shortlog -sne --since="Tue Mar 20 26 12Monty Taylor 08:17:40 2012 +0100" --no-merges | cat -n 27 10MotoKen CCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 4Wednesday, October 17, 12 5. OpenStack ArchitectureCCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 5Wednesday, October 17, 12 6. Nova ArchitectureCCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 6Wednesday, October 17, 12 7. Vanilla NovaDevstackAll in OneRabbitMQKVMMySQLDefault configuration optionsCCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 7Wednesday, October 17, 12 8. Customize NovaChoose a o Hypervisor o Database o Message Queue o Network Model o SchedulerConfiguration o Any of the 500+ optionsCustom Services o Any service can be swapped out for one you writeCCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 8Wednesday, October 17, 12 9. Customize NovaChoose a o Hypervisor o Database o Message Queue o Network Model o SchedulerConfiguration o Any of the 500+ optionsCustom Services o Any service can be swapped out for one you writeCCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 9Wednesday, October 17, 12 10. What Makes Openstack Open3 RPC backends3+ DB backends6+ Virtualization backends500+ configuration optionsCCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 10Wednesday, October 17, 12 11. New Options for Folsom1 RPC backends o ZeroMQ2 virt backends o Hyper-V o PowerVM100+ configuration optionsCCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 11Wednesday, October 17, 12 12. New Features for Folsom by BlueprintGeneral host aggregates (operator)Disable API extensionsRootwrap pluggable filters (operator)Multi-scheduler support (operator)Flavor extra-specsLVM ephemeral disk images (operator)Project specific flavorsMulti-process API services (operator)CCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 12Wednesday, October 17, 12 13. Backend ChoicesCCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 13Wednesday, October 17, 12 14. RPC ComparisonsRPCProtocol Company AffiliationsBrokerless Language Backendkombu AMQP 0-9-1Erlang(rabbitMQ)qpid AMQP 0-10 Java, C++ZeroMQ Python, C++CCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses.14Wednesday, October 17, 12 15. Database ComparisonsDatabase Simultaneous writes High AvailabilityNative python client ?CCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 15Wednesday, October 17, 12 16. Virtualization ComparisonsVirtualizationBackendmaintained byFastOpen Source type Baremetal N/A N/AUMLparavirt onlyLXCcontainerXen full/paravirtKVM full Qemuqemu.org fullHyper-V full PowerVMfull VMware ESX fullCCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 16Wednesday, October 17, 12 17. Configuration OptionsCCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 17Wednesday, October 17, 12 18. Configuration Options by Type Boolean 68 Floats 6 Ints 11913% Lists 181% MultiString 6 String 29023% 57%4% 1%CCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 18Wednesday, October 17, 12 19. New Config Options in Folsom allowed_rpc_exception_modules max_age api_url netapp_storage_service_prefix auth_blob nfs_mount_point_base backdoor_port non_inheritable_image_properties base_dir_name notify_on_any_change cinder_*notify_on_state_change claim_timeout_seconds osapi_max_request_body_size config_drive_format osapi_volume_workers config_drive_skip_versionsperiodic_fuzzy_delay config_drive_tempdirport default_scheduler_driverpowervm_* defer_iptables_applyquantum_* ec2_strict_validation quota_driver ec2_workers quota_key_pairs fatal_deprecationsquota_security_group_rules force_config_drivequota_security_groups glance_api_insecure rbd_* hyperv_attaching_volume_retry_count reservation_expire hyperv_wait_between_attach_retryrootwrap_config image_info_filename_pattern rpc_cast_timeout instance_build_timeoutrpc_zmq_* instance_uuid_formatserver libvirt_cpu_modeserver_ca_file libvirt_cpu_model snapshot_same_host libvirt_images_type sql_connection_debug libvirt_images_volume_group sql_connection_trace libvirt_inject_keystorwize_* libvirt_inject_partitionsyslog_log_facility libvirt_snapshots_directory until_refresh libvirt_sparse_logical_volumesvswitch_name limit_cpu_featuresxenapi_check_host matchmaker_ringfile xenapi_num_vbd_unplug_retries CCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.* * All unlicensed or borrowed works retain their original licenses.19Wednesday, October 17, 12 20. Virtualization options 1.pick a compute RPC topic scheduler_topic=compute 2.pick a compute manager compute_manager=nova.compute.manager.ComputeManager 3.compute manager options instances_path=$state_path/instances base_dir_name=_base compute_driver=libvirt.LibvirtDriver console_host=socket.getfqdn() live_migration_retry_count=30 reboot_timeout=0 instance_build_timeout=0 rescue_timeout=0 resize_confirm_window=0 *_interval= running_deleted_instance_timeout=0 running_deleted_instance_action=log instance_usage_audit=false 4.compute driver options rescue_*_id= libvirt_type=kvm libvirt_inject_password=false libvirt_inject_key=true *_migration_= libvirt_cpu_mode= libvirt_cpu_model= ...CCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 20Wednesday, October 17, 12 21. compute.manager options cfg.IntOpt(live_migration_retry_count, default=30, help="Number of 1 second retries needed in live_migration"), cfg.IntOpt("reboot_timeout", default=0, help="Automatically hard reboot an instance if it has been " "stuck in a rebooting state longer than N seconds. " "Set to 0 to disable."), cfg.IntOpt("instance_build_timeout", default=0, help="Amount of time in seconds an instance can be in BUILD " "before going into ERROR status." "Set to 0 to disable."), cfg.IntOpt("rescue_timeout", default=0, help="Automatically unrescue an instance after N seconds. " "Set to 0 to disable."), cfg.IntOpt("resize_confirm_window", default=0, help="Automatically confirm resizes after N seconds. " "Set to 0 to disable."), ... cfg.StrOpt("running_deleted_instance_action", default="log", help="Action to take if a running deleted instance is detected." "Valid options are noop, log and reap. " "Set to noop to disable."),CCA - NoDerivs 3.0 Unported License - Usage OK, no modifications, full attribution.** All unlicensed or borrowed works retain their original licenses. 21Wednesday, October 17, 12 22. reap running deleted instancescfg.IntOpt("running_deleted_instance_timeout", default=0, help="Number of seconds after being deleted when a running " "instance should be considered eligible for cleanup."), cfg.IntOpt("running_deleted_instance_interval", default=30, help="Number of periodic scheduler ticks to wait between runs of " "the cleanup task."), cfg.StrOpt("running_deleted_i