File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 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,
252252 if step == CREATE_PHYSICAL_POOL {
253253 options [comm .KEY_CREATE_POOL_TYPE ] = comm .POOL_TYPE_PHYSICAL
254254 options [comm .KEY_POOLSET ] = poolset
255+ options [comm .KEY_NUMBER_OF_CHUNKSERVER ] = calcNumOfChunkserver (curveadm , dcs )
255256 } else if step == CREATE_LOGICAL_POOL {
256257 options [comm .KEY_CREATE_POOL_TYPE ] = comm .POOL_TYPE_LOGICAL
257258 options [comm .POOLSET ] = poolset
258259 options [comm .POOLSET_DISK_TYPE ] = diskType
260+ options [comm .KEY_NUMBER_OF_CHUNKSERVER ] = calcNumOfChunkserver (curveadm , dcs )
259261 }
260262
261263 pb .AddStep (& playbook.PlaybookStep {
Original file line number Diff line number Diff line change @@ -339,6 +339,8 @@ func genScaleOutPlaybook(curveadm *cli.CurveAdm,
339339 options [comm .KEY_CREATE_POOL_TYPE ] = comm .POOL_TYPE_PHYSICAL
340340 options [comm .KEY_SCALE_OUT_CLUSTER ] = dcs2scaleOut
341341 options [comm .KEY_NEW_TOPOLOGY_DATA ] = data
342+ options [comm .KEY_NUMBER_OF_CHUNKSERVER ] = calcNumOfChunkserver (curveadm , dcs ) +
343+ calcNumOfChunkserver (curveadm , dcs2scaleOut )
342344 options [comm .KEY_POOLSET ] = poolset
343345 case CREATE_LOGICAL_POOL :
344346 options [comm .KEY_CREATE_POOL_TYPE ] = comm .POOL_TYPE_LOGICAL
You can’t perform that action at this time.
0 commit comments