<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Does Splunk support cgroups v2 for Workload Management? in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Does-Splunk-support-cgroups-v2-for-Workload-Management/m-p/586916#M11287</link>
    <description>&lt;P&gt;I just encountered this issue with Fedora 33&lt;/P&gt;&lt;P&gt;My fix was to edit&amp;nbsp;/etc/systemd/system/Splunkd.service then change the&amp;nbsp;ExecStartPost commands to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;# old cgroups v1 method installed by Splunk. Comment these out
# ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/cpu/system.slice/%n"
# ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/memory/system.slice/%n"

# new cgroups v2 method
ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/system.slice/%n"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Don't forget to run "systemctl daemon-reload" after changing the file.&lt;/P&gt;&lt;P&gt;Edit: Not sure if there are other implications with cgroups v2 as I haven't tested workload management but at least Splunk starts with that fix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2022 00:01:36 GMT</pubDate>
    <dc:creator>cameronjust</dc:creator>
    <dc:date>2022-03-01T00:01:36Z</dc:date>
    <item>
      <title>Does Splunk support cgroups v2 for Workload Management?</title>
      <link>https://community.splunk.com/t5/Installation/Does-Splunk-support-cgroups-v2-for-Workload-Management/m-p/559373#M7580</link>
      <description>&lt;P&gt;I'm looking to enable Workload Management for Splunk and I'm just trying to understand whether this is fully supported on a deployment which is using cgroups v2.&lt;/P&gt;&lt;P&gt;Based on the documentation, the wording on the&amp;nbsp;&lt;A title="Configure Linux systemd for workload management" href="https://docs.splunk.com/Documentation/Splunk/8.0.6/Workloads/Configuresystemd" target="_self"&gt;Configure Linux systemd for workload management&lt;/A&gt;&amp;nbsp;page suggests that Splunk understands cgroups v1:&lt;/P&gt;&lt;PRE&gt;CPU: /sys/fs/cgroup/cpu/system.slice/&amp;lt;SPLUNK_SERVER_NAME&amp;gt;.service
Memory: /sys/fs/cgroup/memory/system.slice/&amp;lt;SPLUNK_SERVER_NAME&amp;gt;.service&lt;/PRE&gt;&lt;P&gt;But there is nothing (except the diagram) that suggests it can operate under cgroups v2 as well.&lt;/P&gt;&lt;P&gt;Does anyone know whether Splunk fully supports cgroups v2, or will our deployment need to be cgroups v1?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit:&amp;nbsp;&lt;/STRONG&gt;Some investigation suggests that Splunk fails to start with Workload Management enabled on a cgroups v2 host:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Jul 15 10:30:50 hostnamehere splunk[16311]: Couldn't open dir /sys/fs/cgroup/cpu/: No such file or directory
Jul 15 10:30:50 hostnamehere splunk[16311]: Error perform systemd preparation: No such file or directory&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Jul 2021 10:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Does-Splunk-support-cgroups-v2-for-Workload-Management/m-p/559373#M7580</guid>
      <dc:creator>AlexHaydock</dc:creator>
      <dc:date>2021-07-15T10:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk support cgroups v2 for Workload Management?</title>
      <link>https://community.splunk.com/t5/Installation/Does-Splunk-support-cgroups-v2-for-Workload-Management/m-p/586916#M11287</link>
      <description>&lt;P&gt;I just encountered this issue with Fedora 33&lt;/P&gt;&lt;P&gt;My fix was to edit&amp;nbsp;/etc/systemd/system/Splunkd.service then change the&amp;nbsp;ExecStartPost commands to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;# old cgroups v1 method installed by Splunk. Comment these out
# ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/cpu/system.slice/%n"
# ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/memory/system.slice/%n"

# new cgroups v2 method
ExecStartPost=/bin/bash -c "chown -R splunk:splunk /sys/fs/cgroup/system.slice/%n"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Don't forget to run "systemctl daemon-reload" after changing the file.&lt;/P&gt;&lt;P&gt;Edit: Not sure if there are other implications with cgroups v2 as I haven't tested workload management but at least Splunk starts with that fix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 00:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Does-Splunk-support-cgroups-v2-for-Workload-Management/m-p/586916#M11287</guid>
      <dc:creator>cameronjust</dc:creator>
      <dc:date>2022-03-01T00:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk support cgroups v2 for Workload Management?</title>
      <link>https://community.splunk.com/t5/Installation/Does-Splunk-support-cgroups-v2-for-Workload-Management/m-p/616078#M11991</link>
      <description>&lt;P&gt;This is the same thing I needed to do for RHEL 9.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 02:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Does-Splunk-support-cgroups-v2-for-Workload-Management/m-p/616078#M11991</guid>
      <dc:creator>nortonjco</dc:creator>
      <dc:date>2022-10-06T02:37:51Z</dc:date>
    </item>
  </channel>
</rss>

