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