added option to specify scratch disk parameters on the vpg level in vpg.py, updated example

This commit is contained in:
Kosta Mushkin
2025-07-25 11:49:41 -04:00
parent 4ff43b659a
commit b6325c6ce4
2 changed files with 15 additions and 5 deletions
+10 -2
View File
@@ -220,11 +220,19 @@ def main():
}
}
}
scratch = {
"Limitation": {
"HardLimitInMB": 407200,
"HardLimitInPercent": 0,
"WarningThresholdInMB": 400000,
"WarningThresholdInPercent": 0
}
}
input("Press Enter to create the first VPG...")
vpg_id = client1.vpgs.create_vpg(basic=basic, journal=journal,
recovery=recovery, networks=networks, sync=True)
recovery=recovery, networks=networks, scratch=scratch, sync=True)
logging.info(f"VPG ID: {vpg_id} created successfully.")
# Add VMs to the first VPG