Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions modules/python/clusterloader2/autoscale/autoscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,17 +328,17 @@ def collect_clusterloader2(
run_id,
run_url,
result_file,
cl2_config_file,
pod_cpu_request,
pod_memory_request,
cl2_config_file="config.yaml",
pod_cpu_request="",
pod_memory_request="",
):
index_pattern = re.compile(r"(\d+)$")
raw_data = parse_xml_to_json(os.path.join(cl2_report_dir, "junit.xml"), indent=2)

json_data = json.loads(raw_data)
testsuites = json_data["testsuites"]

is_complex_config = "ms_complex_config.yaml" == cl2_config_file
is_complex_config = cl2_config_file == "ms_complex_config.yaml"

if testsuites:
content = _process_test_results(
Expand Down Expand Up @@ -571,9 +571,9 @@ def main():
args.run_id,
args.run_url,
args.result_file,
args.pod_cpu_request,
args.pod_memory_request,
args.cl2_config_file,
cl2_config_file=args.cl2_config_file,
pod_cpu_request=args.pod_cpu_request,
pod_memory_request=args.pod_memory_request,
)


Expand Down
2 changes: 1 addition & 1 deletion modules/python/tests/test_autoscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def test_collect_command(self, mock_collect):
mock_collect.assert_called_once_with(
4, 'on-demand', 3, 200, 'report-dir',
'aws-info', 'run-123', 'http://run.url', 'results.json',
None, None, 'config.yaml'
cl2_config_file='config.yaml', pod_cpu_request=None, pod_memory_request=None
)

if __name__ == '__main__':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ spec:
values:
- "Standard_D96ds_v5"
- "Standard_D96d_v5"
- "Standard_D96_v5"
Comment thread
xinWeiWei24 marked this conversation as resolved.
Resolved
- "Standard_D96s_v5"
- key: topology.kubernetes.io/zone
operator: In
values:
Expand Down Expand Up @@ -76,7 +74,7 @@ spec:
values: ["spot"]
- key: karpenter.azure.com/sku-name
operator: In
values: [Standard_D2_v5]
values: [Standard_D16s_v5]
---
apiVersion: karpenter.sh/v1
kind: NodePool
Expand Down Expand Up @@ -114,18 +112,19 @@ spec:
- key: karpenter.azure.com/sku-name
operator: In
values:
- Standard_D16_v3
- Standard_D16s_v5
- key: topology.kubernetes.io/zone
operator: In
values:
- eastus2-1
- eastus2-2
- eastus2-3
startupTaints:
- effect: NoExecute
key: node.cilium.io/agent-not-ready
value: "true"
taints:
- effect: NoSchedule
key: CriticalAddonsOnly
value: "true"
# TODO: enable when cilium is fixed
# startupTaints:
# - effect: NoExecute
# key: node.cilium.io/agent-not-ready
# value: "true"
51 changes: 30 additions & 21 deletions scenarios/perf-eval/nap-complex/terraform-inputs/azure.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@ firewall_config_list = [
"*.windows.net", "*.azurecr.io", "*.ubuntu.com", "AzureKubernetesService",
"mcr-0001.mcr-msedge.net", "*.microsoft.com",
"*.microsoftonline.com", "*.microsoftonline.co", "*.azureedge.net",
"packages.aks.azure.com"]
"packages.aks.azure.com", "mcr.microsoft.com",
"*.mcr.microsoft.com",
"*.data.mcr.microsoft.com",
"*.azurecr.io",
"*.blob.core.windows.net",
"*.hcp.eastus2.azmk8s.io",
"management.azure.com",
"login.microsoftonline.com"]
protocols = [
{ port = "80", type = "Http" },
{ port = "443", type = "Https" }
Expand Down Expand Up @@ -134,28 +141,30 @@ route_table_config_list = [

aks_cli_config_list = [
{
role = "nap"
aks_name = "nap-complex"
sku_tier = "standard"
subnet_name = "nap-subnet-ms"
managed_identity_name = "nap-identity"
kubernetes_version = "1.33"
role = "nap"
aks_name = "nap-complex"
sku_tier = "standard"
subnet_name = "nap-subnet-ms"
managed_identity_name = "nap-identity"
kubernetes_version = "1.33"
api_server_subnet_name = "apiserver-subnet"
kms_config = {
key_name = "kms-nap"
key_vault_name = "akskms"
network_access = "Private"
}
default_node_pool = {
name = "system"
node_count = 10
vm_size = "Standard_D16s_v5"
name = "system"
os_disk_type = "Ephemeral"
node_count = 10
vm_size = "Standard_D16s_v5"
}
extra_node_pool = [
{
name = "prompool"
node_count = 1
vm_size = "Standard_D16_v5"
name = "prompool"
node_count = 1
os_disk_type = "Ephemeral"
vm_size = "Standard_D16_v5"
optional_parameters = [
{
name = "labels"
Expand Down Expand Up @@ -208,15 +217,15 @@ aks_cli_config_list = [
{
name = "enable-image-cleaner"
value = ""
},
{
name = "network-dataplane"
value = "cilium"
},
{
name = "network-policy"
value = "cilium"
}
# {
# name = "network-dataplane"
# value = "cilium"
# },
# {
# name = "network-policy"
# value = "cilium"
# }
# TODO: enable private cluster after bug fix for hyperscale has been rolled out
# {
# name = "enable-private-cluster"
Expand Down