Skip to content

Commit c85eda3

Browse files
committed
Adding two commands to increase user watch/instance and increase the file descriptor limit
1 parent 1f3a62b commit c85eda3

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

articles/iot-operations/develop-edge-apps/quickstart-get-started-sdks.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,32 @@ GitHub Codespaces provides the most streamlined experience and can get the devel
8282
1. Set up port forwarding for ports `1883`, `8883`, and `8884` to enable TLS
8383
1. Create a local container registry
8484

85-
1. For the next step you will need non-root access to the cluster, run the following command:
85+
1. For the nexts step you will need non-root access to the cluster, run the following command:
8686

8787
```bash
8888
mkdir ~/.kube; sudo install -o $USER -g $USER -m 600 /root/.kube/config ~/.kube/config
8989
```
9090

9191
This command gives your non-root user access to the Kubernetes cluster by copying the cluster configuration file from the root account to your user account, ensuring you have the correct permissions to use Kubernetes tools like kubectl without needing root access.
9292

93+
1. Run the following command to increase the [user watch/instance limits](https://www.suse.com/support/kb/doc/?id=000020048).
94+
95+
```bash
96+
echo fs.inotify.max_user_instances=8192 | sudo tee -a /etc/sysctl.conf
97+
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
98+
99+
sudo sysctl -p
100+
```
101+
102+
1. For better performance, increase the file descriptor limit:
103+
104+
```bash
105+
echo fs.file-max = 100000 | sudo tee -a /etc/sysctl.conf
106+
107+
sudo sysctl -p
108+
```
109+
110+
93111
### [Visual Studio Code Dev Containers](#tab/vscode-dev-containers)
94112

95113
> [!WARNING]

0 commit comments

Comments
 (0)