File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -252,10 +252,12 @@ func genDeployPlaybook(curveadm *cli.CurveAdm,
252
252
if step == CREATE_PHYSICAL_POOL {
253
253
options [comm .KEY_CREATE_POOL_TYPE ] = comm .POOL_TYPE_PHYSICAL
254
254
options [comm .KEY_POOLSET ] = poolset
255
+ options [comm .KEY_NUMBER_OF_CHUNKSERVER ] = calcNumOfChunkserver (curveadm , dcs )
255
256
} else if step == CREATE_LOGICAL_POOL {
256
257
options [comm .KEY_CREATE_POOL_TYPE ] = comm .POOL_TYPE_LOGICAL
257
258
options [comm .POOLSET ] = poolset
258
259
options [comm .POOLSET_DISK_TYPE ] = diskType
260
+ options [comm .KEY_NUMBER_OF_CHUNKSERVER ] = calcNumOfChunkserver (curveadm , dcs )
259
261
}
260
262
261
263
pb .AddStep (& playbook.PlaybookStep {
Original file line number Diff line number Diff line change @@ -339,6 +339,8 @@ func genScaleOutPlaybook(curveadm *cli.CurveAdm,
339
339
options [comm .KEY_CREATE_POOL_TYPE ] = comm .POOL_TYPE_PHYSICAL
340
340
options [comm .KEY_SCALE_OUT_CLUSTER ] = dcs2scaleOut
341
341
options [comm .KEY_NEW_TOPOLOGY_DATA ] = data
342
+ options [comm .KEY_NUMBER_OF_CHUNKSERVER ] = calcNumOfChunkserver (curveadm , dcs ) +
343
+ calcNumOfChunkserver (curveadm , dcs2scaleOut )
342
344
options [comm .KEY_POOLSET ] = poolset
343
345
case CREATE_LOGICAL_POOL :
344
346
options [comm .KEY_CREATE_POOL_TYPE ] = comm .POOL_TYPE_LOGICAL
You can’t perform that action at this time.
0 commit comments