Commit 4011d586 authored by Katrin Leinweber's avatar Katrin Leinweber Committed by Achilleas Pipinellis

Docs: Troubleshoot NFS requests with bash and perf

parent 8d2e4071
...@@ -402,14 +402,19 @@ Additionally, this configuration is specifically warned against in the ...@@ -402,14 +402,19 @@ Additionally, this configuration is specifically warned against in the
For supported database architecture, see our documentation about For supported database architecture, see our documentation about
[configuring a database for replication and failover](postgresql/replication_and_failover.md). [configuring a database for replication and failover](postgresql/replication_and_failover.md).
<!-- ## Troubleshooting ## Troubleshooting
Include any troubleshooting steps that you can foresee. If you know beforehand what issues ### Finding the requests that are being made to NFS
one might have when setting this up, or when something is changed, or on upgrading, it's
important to describe those, too. Think of things that may go wrong and include them here.
This is important to minimize requests for support, and to avoid doc comments with
questions that you know someone might ask.
Each scenario can be a third-level heading, e.g. `### Getting error message X`. In case of NFS-related problems, it can be helpful to trace
If you have none to add when creating a doc, leave this section in place the filesystem requests that are being made by using `perf`:
but commented out to help encourage others to add to it in the future. -->
```shell
sudo perf trace -e 'nfs4:*' -p $(pgrep -fd ',' puma && pgrep -fd ',' unicorn)
```
On Ubuntu 16.04, use:
```shell
sudo perf trace --no-syscalls --event 'nfs4:*' -p $(pgrep -fd ',' puma && pgrep -fd ',' unicorn)
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment