From 04f2c06f34ae9c2cd91af8d665bf158b9c7d824e Mon Sep 17 00:00:00 2001 From: GuangrongFu Date: Tue, 22 Sep 2020 14:38:32 +0800 Subject: Added Resource Limits to Holmes Containers Issue-ID: HOLMES-357 Change-Id: I3de21a2e0d33ef0a73878716749c4e72718921ce Signed-off-by: GuangrongFu --- blueprints/k8s-holmes-engine.yaml | 24 +++++++++++++++++++++++- blueprints/k8s-holmes-rules.yaml | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/blueprints/k8s-holmes-engine.yaml b/blueprints/k8s-holmes-engine.yaml index db87ba3..1684851 100644 --- a/blueprints/k8s-holmes-engine.yaml +++ b/blueprints/k8s-holmes-engine.yaml @@ -54,7 +54,18 @@ inputs: service_component_name_override: type: string default: "holmes-engine-mgmt" - + dcae-analytics-holmes-engine-mgt_cpu_limit: + type: string + default: "500m" + dcae-analytics-holmes-engine-mgt_cpu_request: + type: string + default: "500m" + dcae-analytics-holmes-engine-mgt_memory_limit: + type: string + default: "1024Mi" + dcae-analytics-holmes-engine-mgt_memory_request: + type: string + default: "256Mi" node_templates: pgaasvm: type: dcae.nodes.pgaas.database @@ -105,6 +116,17 @@ node_templates: image: { get_input: he_image } # need to use truncated name!! #service_component_type: dcae-analytics-holmes-engin-management + resource_config: + limits: + cpu: + get_input: dcae-analytics-holmes-engine-mgt_cpu_limit + memory: + get_input: dcae-analytics-holmes-engine-mgt_memory_limit + requests: + cpu: + get_input: dcae-analytics-holmes-engine-mgt_cpu_request + memory: + get_input: dcae-analytics-holmes-engine-mgt_memory_request relationships: - type: cloudify.relationships.depends_on target: pgaasvm diff --git a/blueprints/k8s-holmes-rules.yaml b/blueprints/k8s-holmes-rules.yaml index 830db47..fd89fc2 100644 --- a/blueprints/k8s-holmes-rules.yaml +++ b/blueprints/k8s-holmes-rules.yaml @@ -47,6 +47,18 @@ inputs: service_component_name_override: type: string default: "holmes-rule-mgmt" + dcae-analytics-holmes-rule-mgt_cpu_limit: + type: string + default: "250m" + dcae-analytics-holmes-rule-mgt_cpu_request: + type: string + default: "250m" + dcae-analytics-holmes-rule-mgt_memory_limit: + type: string + default: "1024Mi" + dcae-analytics-holmes-rule-mgt_memory_request: + type: string + default: "256Mi" node_templates: pgaasvm: type: dcae.nodes.pgaas.database @@ -86,6 +98,17 @@ node_templates: streams_subscribes: {} image: { get_input: hr_image } #service_component_type: dcae-analytics-holmes-rule-management + resource_config: + limits: + cpu: + get_input: dcae-analytics-holmes-rule-mgt_cpu_limit + memory: + get_input: dcae-analytics-holmes-rule-mgt_memory_limit + requests: + cpu: + get_input: dcae-analytics-holmes-rule-mgt_cpu_request + memory: + get_input: dcae-analytics-holmes-rule-mgt_memory_request relationships: - type: cloudify.relationships.depends_on target: pgaasvm -- cgit 1.2.3-korg