introductionof taskflow

14
Introduction of Taskflow @harubelle2001

Upload: harubelle

Post on 24-Jun-2015

501 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Introductionof taskflow

Introduction ofTaskflow

@harubelle2001

Page 3: Introductionof taskflow

Agenga

● What is Taskflow?● How relate to OpenStack?● How to use taskflow?● Others

Page 4: Introductionof taskflow

What is Taskflow? 1

● One of Python library○ https://pypi.python.org/pypi/taskflow/0.1.1

Page 5: Introductionof taskflow

What is Taskflow? 2

unexpected accident

③you can resume process with tracking id!Happy Happy :)

④create instance

② get tracking id

Page 6: Introductionof taskflow

What is Taskflow? 3

● logbooks table

● flowdetails table

Page 7: Introductionof taskflow

What is Taskflow? 4

● taskdetails table

Page 8: Introductionof taskflow

What is Taskflow? 5

get IP

locate image

download image

driver boot vm

volume format

task

run instance

flow

We can continue run instance process again from point where flow failed.

Page 9: Introductionof taskflow

What is Taskflow? 6

と今まで説明ゼロでしたが…● 処理をtaskという単位に細分化する● そうすると、それらの処理を永続化することによって、例外時

の復旧ができる● 追跡もしやすい● コードも見やすい

というライブラリです。

Page 10: Introductionof taskflow

How relate to OpenStack? 1● 元々はOpenstack Block strage service(Cinder) を、よいものにするために導入した仕組み

○ https://blueprints.launchpad.net/cinder/+spec/cinder-state-machine● CinderAPI/Scheduler/Managerの個々のworkflowの要素をさらにtaskという単位で分割し、より

シンプルな構成にした● この仕組みをライブラリにした● Havanaで導入されたTaskflow適用第一弾パッチ(Create Volume)は、主にリファクタリング

○ https://review.openstack.org/#/c/29862/● その後Bug修正等を経て、Taskflowの0.1.1版が作成される● さらに、この0.1.1版がCreate Volumeに再適用された(2013/12/14)

○ https://review.openstack.org/#/c/58724/● 0.1.1版が適用され、何がパワーアップしたか?

○ Cinderから見て、taskflowを完全にライブラリ化した■ ex) import taskflow.engines

Page 11: Introductionof taskflow

How relate to OpenStack? 3

● Taskflowを適用する予定のProject○ と言っても一気に進めるわけではなく、まずは1APIずつ

選んでやってみるという感じです■ Nova■ Cinder■ Glance■ Mistral■ Rally

Page 12: Introductionof taskflow

How relate to OpenStack? 3

Taskflowはまだまだ成長中です。

皆さん参加してより良いものにしていきましょう!

(IRCもあるよ :-P)

Page 14: Introductionof taskflow

Thanks

Have a nice nice Xmas :-)