the next generation
play

THE NEXT GENERATION CERTAINTY IN SHARED STORAGE ENVIRONMENTS Adam - PowerPoint PPT Presentation

THE NEXT GENERATION CERTAINTY IN SHARED STORAGE ENVIRONMENTS Adam Litke - alitke@redhat.com Senior Soware Engineer - Red Hat FOSDEM 2017 - 04 February 2017 The Next Generation - FOSDEM 04.02.2017 AGENDA oVirt shared storage architecture


  1. THE NEXT GENERATION CERTAINTY IN SHARED STORAGE ENVIRONMENTS Adam Litke - alitke@redhat.com Senior So�ware Engineer - Red Hat FOSDEM 2017 - 04 February 2017 The Next Generation - FOSDEM 04.02.2017

  2. AGENDA oVirt shared storage architecture 😲 MAYHEM! 😍 Order. Examples The Next Generation - FOSDEM 04.02.2017

  3. OVIRT SHARED STORAGE x 1000s VM iSCSI NFS Fibre x 100s Channel Gluster Gluster Ceph Engine x 1 The Next Generation - FOSDEM 04.02.2017

  4. OVIRT IMAGE Volumes A C B D The Next Generation - FOSDEM 04.02.2017

  5. OVIRT VOLUME Metadata Lease Data The Next Generation - FOSDEM 04.02.2017

  6. STORAGE OPERATIONS VM Datapath Metadata The Next Generation - FOSDEM 04.02.2017

  7. STORAGE JOBS Encapsulate a singular storage operation on a host Engine selects a host and submits the job Host performs work asynchronously Engine polls host for job status Job status only available on host while job is active The Next Generation - FOSDEM 04.02.2017

  8. THE WORLD IS A CHAOTIC PLACE Power outages Network outages Hardware failure So�ware bugs The Next Generation - FOSDEM 04.02.2017

  9. FAILED HOST Host A Storage Vol 1 Engine Vol 2 Host B Vol 3 The Next Generation - FOSDEM 04.02.2017

  10. RESTORING ORDER Determine the status of outstanding storage jobs The answers to all questions must come from storage Wait or abort active jobs on unresponsive hosts Check final status of jobs that have ended The Next Generation - FOSDEM 04.02.2017

  11. VOLUME LEASES Implemented using Sanlock Lockspace is on shared storage Metadata Lease alongside the volumes A lease grants a host exclusive Data access to a volume Failing hosts will be fenced by Sanlock if they hold leases The Next Generation - FOSDEM 04.02.2017

  12. VOLUME GENERATIONS Monotonically increasing value Stored in volume metadata area Metadata Lease Changeable only while holding the volume lease Data Allows sequencing of storage jobs The Next Generation - FOSDEM 04.02.2017

  13. STORAGE JOB STRUCTURE 1. Acquire volume lease 2. Validate volume generation 3. Do work 4. Increment volume generation 5. Release volume lease The Next Generation - FOSDEM 04.02.2017

  14. EXAMPLE: NORMAL FLOW The Next Generation - FOSDEM 04.02.2017

  15. SCHEDULE JOB Host A Storage Job Job Lease Vol 1 Engine Vol 2 Host B Vol 3 The Next Generation - FOSDEM 04.02.2017

  16. ACQUIRE VOLUME LEASE Host A Storage Job Job Lease Vol 1 Engine Vol 2 Host B Vol 3 The Next Generation - FOSDEM 04.02.2017

  17. VALIDATE VOLUME GENERATION Host A Storage Job Job Lease 1 Vol 1 1 Engine Vol 2 Host B Vol 3 The Next Generation - FOSDEM 04.02.2017

  18. WRITE VOLUME Host A Storage ! Job Job Lease Vol 1 50% Engine Vol 2 Host B Vol 3 The Next Generation - FOSDEM 04.02.2017

  19. INCREMENT VOLUME GENERATION Host A Storage Job Job Lease 2 Vol 1 Engine Vol 2 Host B Vol 3 The Next Generation - FOSDEM 04.02.2017

  20. RELEASE VOLUME LEASE Host A Storage Job Job Lease Vol 1 Engine Vol 2 Host B Vol 3 The Next Generation - FOSDEM 04.02.2017

  21. DONE EVENT Host A Storage ! Job Job Lease Vol 1 Engine Vol 2 Host B Vol 3 The Next Generation - FOSDEM 04.02.2017 The Next Generation - FOSDEM 04.02.2017

  22. SCENARIO: UNRESPONSIVE HOST The Next Generation - FOSDEM 04.02.2017

  23. JOB SCHEDULED ON HOST A Host A Storage Job Job Vol 1 1 Engine Vol 2 Host B Vol 3 The Next Generation - FOSDEM 04.02.2017

  24. HOST A BECOMES UNRESPONSIVE Host A Storage ? ? Lease ??? Vol 1 Engine Vol 2 Host B Vol 3 The Next Generation - FOSDEM 04.02.2017

  25. VOLUME RECONNAISSANCE Special storage job that resolves volume status Checks if a job is running Option to use sanlock fencing to free the lease If volume is free, uses generation to check status Increments generation to preempt pending jobs The Next Generation - FOSDEM 04.02.2017

  26. SELECT ANY AVAILABLE HOST Host A Storage ? ? Lease ??? Vol 1 Engine Vol 2 Host B Job Job Vol 3 1 The Next Generation - FOSDEM 04.02.2017

  27. ACQUIRE OR REQUEST LEASE Host B Job Job Lease ! Job Vol 1 Running or Host B ... Job Job Lease Vol 1 The Next Generation - FOSDEM 04.02.2017

  28. COMPARE AND BUMP GENERATION Host B Job Job Lease ! Job 1 Vol 1 Vol 1 1 Failed 2 or Host B Job Job Lease ! Job 2 Vol 1 1 Succeeded The Next Generation - FOSDEM 04.02.2017

  29. PREEMPTED JOB Host A Storage Job Job Lease 2 Vol 1 1 Engine Vol 2 Host B Vol 3 The Next Generation - FOSDEM 04.02.2017 The Next Generation - FOSDEM 04.02.2017

  30. FUTURE WORK Shared lease support Parallel job scheduling Integrate with VM leases The Next Generation - FOSDEM 04.02.2017

  31. JOIN US! http://www.ovirt.org irc://irc.o�c.net/ovirt http://lists.ovirt.org/mailman/listinfo/devel http://lists.ovirt.org/mailman/listinfo/users The Next Generation - FOSDEM 04.02.2017

  32. QUESTIONS? The Next Generation - FOSDEM 04.02.2017

Recommend


More recommend