From f5852aedc5fe44a9e4a52a2523c1dac26c86f0ad Mon Sep 17 00:00:00 2001 From: Rudi Schlatte Date: Mon, 9 Dec 2024 11:50:11 +0100 Subject: [PATCH] Always use two or more cores for Nebulous nodes --- .../eu/nebulouscloud/optimiser/kubevela/KubevelaAnalyzer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/nebulous-requirements-extractor/src/main/java/eu/nebulouscloud/optimiser/kubevela/KubevelaAnalyzer.java b/nebulous-requirements-extractor/src/main/java/eu/nebulouscloud/optimiser/kubevela/KubevelaAnalyzer.java index 422a39e..6c825e2 100644 --- a/nebulous-requirements-extractor/src/main/java/eu/nebulouscloud/optimiser/kubevela/KubevelaAnalyzer.java +++ b/nebulous-requirements-extractor/src/main/java/eu/nebulouscloud/optimiser/kubevela/KubevelaAnalyzer.java @@ -218,6 +218,7 @@ public static void addNebulousRequirements(JsonNode component, List RequirementOperator.EQ, loc)); } reqs.add(new AttributeRequirement("hardware", "ram", RequirementOperator.GEQ, "2048")); + reqs.add(new AttributeRequirement("hardware", "cores", RequirementOperator.GEQ, "2")); } /**