> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmo/frequently-asked-questions/pf9-consul-logs-utilising-more-diskspace-impacting-the-workload.md).

# pf9-consul Service Logs Utilising More Diskspace Impacting the Workloads

## Problem

* Observing diskspace exhaustion in the Hypervisors by *pf9-consul* logs with errors flooding as below:

{% tabs %}
{% tab title="pf9-consul.log" %}

```javascript
2024/07/18 02:13:37 [ERR] consul.rpc: failed to accept RPC conn: accept tcp 16.228.38.14:8300: accept4: too many open files
2024/07/18 02:13:37 [ERR] memberlist: Error accepting TCP connection: accept tcp 16.228.38.14:8301: accept4: too many open files
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - v5.8.2 and higher.

## Answer

The errors are observed because the consul user does not have enough File Descriptor value to perform its operations. The workaround is to increase the file descriptor values.

## Workaround

The current soft limit is set to 1024, and the hard limit is 4096 which is the maximum allowed. Consul has already used up these available File Descriptors, which is causing it to dump continuous error logs.

The Consul File Descriptor limit needs to be set two times higher than the expected number of clients in the cluster.

To fix this, it is required to increase the File Descriptor limit.

Increase the default File Descriptor limit per user using the following steps.

1. Modify */etc/security/limits.conf.*
2. Add the following lines to */etc/security/limits.conf* to set the file descriptor limits for all users.

{% tabs %}
{% tab title="/limits.conf" %}

```javascript
* soft nofile 65536
* hard nofile 65536
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Info**

If the file **/*****etc/security/limits.conf*** is managed by Chef and local changes are reverted, then the customer needs to adjust the config with Chef accordingly.
{% endhint %}

## Additional Information

* Platform9 team has opened a Jira **IAAS-10787** to track this issue, and the mentioned changes will be reflected in the PMO-5.10.X release; ETA is by the end of September 2024.
* For more details, refer the official documentation: <https://developer.hashicorp.com/consul/docs/architecture/scale>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://platform9.com/kb/pmo/frequently-asked-questions/pf9-consul-logs-utilising-more-diskspace-impacting-the-workload.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
