From 5da6bc5d791560a53f733a377eda384459acaf5a Mon Sep 17 00:00:00 2001 From: Brooklyn Date: Thu, 14 Mar 2024 09:27:34 +0000 Subject: [PATCH] Add limit to number of open files to prevent memory leak and fix typo in dev_environment.md --- Dockerfile | 3 +++ dev_environment.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index eea1aa8c33b..b20b5d21658 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,9 @@ RUN ln -s /usr/sbin/service /usr/bin/initctl # Persist this folder to keep the generated TLS certificates on the first start VOLUME /home/build/ovirt/etc/pki/ovirt-engine +# Edit the /etc/security/limits.conf file to set the number of open files to prevent memory leak https://pagure.io/python-daemon/issue/40 +RUN echo "build soft nofile 2048" >> /etc/security/limits.conf + # Set default User USER $USERNAME diff --git a/dev_environment.md b/dev_environment.md index 1de1da6b8dd..091665e6bce 100644 --- a/dev_environment.md +++ b/dev_environment.md @@ -81,6 +81,6 @@ Now we can safely boot the websocket service: /home/build/ovirt/share/ovirt-engine/services/ovirt-websocket-proxy/ovirt-websocket-proxy.py start ``` -Next, go to your newly created VM and click on the 'v' arrow next to console. Navigate to 'Console Options' and set 'Console Invocation' to 'noVCN'. You can save this and click on the 'Console' button. +Next, go to your newly created VM and click on the 'v' arrow next to console. iNavigate to 'Console Options' and set 'Console Invocation' to 'noVCN'. You can save this and click on the 'Console' button. You will see an error: "Something went wrong, connection is closed", this is normal. You need to accept the SSL certificate in your browser. You can do this by opening your browser development console and copying the `wss://XXXXX` url to your browser URL bar. Replace `wss` with `https` and navigate to the url. You can accept the certificate here. You can now reopen the console via the oVirt administrator panel. \ No newline at end of file