Create Volume operation (part II)-Play with OpenStack (51) 5 minutes a day

Source: Internet
Author: User

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160621-1466484815061027651.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160623-1466685216049003874.jpg "style=" border:0px;float:none; "/>

In the previous section we discussed the first part of Cinder creating Volume, Cinder-api operation, this section continues the second part, Cinder-scheduler scheduling work.

cinder-scheduler Execution Scheduling

Cinder-scheduler executes the scheduling algorithm and selects the optimal storage node log for/opt/stack/logs/c-sch.log through Filter and Weigher.

Cinder-scheduler performs the dispatch work through Flow Volume_create_scheduler.

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160623-1466685098545096926.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160623-1466685216291088448.jpg "style=" border:0px;float:none; "/>

The Flow executes Extractschedulerspectask and schedulecreatevolumetask in turn.

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160623-1466685098660057255.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160623-1466685216366074591.jpg "style=" border:0px;white-space:normal;float:none; "/>

The main filter and weighting work is done by Schedulecreatevolumetask.

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160623-1466685098718023177.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160623-1466685216487089336.jpg "style=" border:0px;white-space:normal;float:none; "/>

After Availabilityzonefilter, Capacityfilter, Capabilitiesfilter and capacityweigher layers of filtering, the storage node was finally selected [email protected]# Lvmdriver-1.

Flow Volume_create_scheduler completes the dispatch and the status changes to SUCCESS.

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160623-1466685098622086175.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160623-1466685216680013650.jpg "style=" border:0px;white-space:normal;float:none; "/>

Cinder-scheduler sending Messages

Cinder-scheduler send a message to Cinder-volume, let it create volume source/opt/stack/cinder/cinder/scheduler/filter_scheduler.py, method for Schedule_create_volume.

650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160623-1466685098724062746.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160623-1466685216794088544.jpg "style=" border:0px;white-space:normal;float:none; "/>

In the next section we discuss the last part of Create Volume: the cinder-volume process.

650) this.width=650; "title=" "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160623-1466685216893031579.jpg "style=" Border:0px;vertical-align:middle;color:rgb ( 63,63,63); font-family: ' Microsoft Yahei '; Font-size:15px;line-height:21.75px;text-align:justify;background-color: RGB (246,246,246); "/>

Create Volume operation (part II)-Play with OpenStack (51) 5 minutes a day

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.