#!/usr/bin/env python3
'''
Use this to test increase scale of per node
'''
from util import *

totle = 2

cmd_list = ['stopall','bin','initdb','gdata 1', 'runselectall']

cmd_list.append('increasedata 1')
cmd_list.append('runselectall')

cmd_list.append('increasedata 3')
cmd_list.append('runselectall')

cmd_list.append('increasedata 5')
cmd_list.append('runselectall')

cmd_list.append('increasedata 10')
cmd_list.append('runselectall')

cmd_list.append('increasedata 10')
cmd_list.append('runselectall')

cmd_list.append('stopall')

for item in cmd_list:
    cmd = './prepare.py %s' % item
    output('>' + item)
    exec_comand_system(cmd, True)
output('FINISH')
