Skip to content

Conversation

@Nagachandan-P
Copy link
Contributor

updated as shell-scripts in cloud-init with integrated logging

@Omnia-svc
Copy link
Collaborator

Can one of the admins verify this patch?

ansible.builtin.set_fact:
total_mem_mb: >-
{{
mem_info.json.Members
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add default in case Members not read


- name: Calculate 90% of real memory
ansible.builtin.set_fact:
real_memory: "{{ ((total_memory_mb | float) * 0.90) | int }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not using it anywhere remove it


- name: Calculate total memory in MB (GiB → MB)
ansible.builtin.set_fact:
total_memory_mb: "{{ (mem_info.json.MemorySummary.TotalSystemMemoryGiB | default(default_real_memory)) * 1024 | int }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

int conversion before multiplying is better


- name: Calculate 90% of real memory
ansible.builtin.set_fact:
real_memory: "{{ ((total_memory_mb | float) * 0.90) | int }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This var not being used anywhere

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the MaxRAMPercent under cgroup default

@jagadeeshnv jagadeeshnv merged commit 0693c0a into dell:pub/k8s_telemetry Dec 2, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants