Skip to content

Commit

Permalink
[PLAT-15918] Determine scope of systemd service before setting up the…
Browse files Browse the repository at this point in the history
… units

Summary: Determine scope of systemd service before setting up the units

Test Plan:
Created alma9 universe.
Changed the max memory allowed for cgroup
Resize the node.
Verified new limits are running

Reviewers: dshubin, nbhatia, daniel

Reviewed By: nbhatia

Subscribers: yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D39590
  • Loading branch information
Vars-07 committed Oct 31, 2024
1 parent 686a87a commit f1513e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions managed/devops/roles/setup-cgroup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
# to create and setup the cgroup. If we created the cgroup in ansible, it would be deleted when the
# vm reboots. This instead ensures that the cgroup always exists before the tserver gets started
- block:
- name: Determine system or user scope
stat:
path: "{{ yb_home_dir | default('/home/yugabyte') }}/.config/systemd/user/"
register: systemd_user

- block:
- set_fact:
systemd_dir: "/etc/systemd/system"
Expand Down

0 comments on commit f1513e3

Please sign in to comment.