#!/usr/bin/env python3
from util import *

node_list = ['13.59.22.153', '3.133.154.202','3.136.22.199','3.133.136.113']
generate_node_conf(node_list,len(node_list), 4)

cmd_list = ['stopall','bin','initdb','gdata 1', 'runselect','runcount','stopall']
for item in cmd_list:
    cmd = './prepare.py %s' % item
    output('>' + item)
    exec_comand_system(cmd, True)
output('FINISH')