Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 67 additions & 1 deletion install/advanced/core/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,26 @@ At this point your command prompt shows a ``(geonode)`` prefix, this indicates t
pip install -e . --upgrade
pip install pygdal=="`gdal-config --version`.*"

Edit ``/opt/geonode/celery-cmd``.

.. _configure_dbs_core:
.. code-block:: shell

CELERY__STATE_DB=${CELERY__STATE_DB:-"/opt/geonode/worker@%h.state"}

Edit ``/opt/geonode/geonode/settings.py``.

.. code-block:: python

FILE_UPLOAD_DIRECTORY_PERMISSIONS = 0o777
FILE_UPLOAD_PERMISSIONS = 0o777

Edit ``/opt/geonode/uwsgi.ini``.

.. code-block:: ini

chdir = /opt/geonode/

touch-reload = /opt/geonode/geonode/wsgi.py

3. Postgis database Setup
^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -551,6 +569,24 @@ Let's now configure the ``JAVA_OPTS``, i.e. the parameters to run the Servlet Co

.. warning:: The default options we are going to add to the Servlet Container, assume you can reserve at least ``4GB`` of ``RAM`` to ``GeoServer`` (see the option ``-Xmx4096m``). You must be sure your machine has enough memory to run both ``GeoServer`` and ``GeoNode``, which in this case means at least ``4GB`` for ``GeoServer`` plus at least ``2GB`` for ``GeoNode``. A total of at least ``6GB`` of ``RAM`` available on your machine. If you don't have enough ``RAM`` available, you can lower down the values ``-Xms512m -Xmx4096m``. Consider that with less ``RAM`` available, the performances of your services will be highly impacted.

.. code-block:: shell

# Create the Logrotate config
sudo tee /etc/logrotate.d/geoserver <<EOF
/opt/data/geoserver_logs/geoserver.log
/opt/tomcat/apache-tomcat-*/logs/*.log
/opt/tomcat/apache-tomcat-*/logs/*.out
/opt/tomcat/apache-tomcat-*/logs/*.txt
{
copytruncate
daily
rotate 5
delaycompress
missingok
su tomcat tomcat
}
EOF

Conifgure the Geofence DB
............................

Expand Down Expand Up @@ -744,6 +780,21 @@ Serving {“geonode”, “geoserver”} via NGINX
sudo systemctl status geonode-uwsgi.service
sudo systemctl enable geonode-uwsgi.service

.. code-block:: shell

# Create the Logrotate config
sudo tee /etc/logrotate.d/uwsgi-geonode <<EOF
"/var/log/geonode.log" {
copytruncate
daily
rotate 5
delaycompress
missingok
notifempty
su root root
}
EOF

.. code-block:: shell

# Backup the original NGINX config
Expand Down Expand Up @@ -1214,6 +1265,21 @@ Daemonize and configure Celery
[Install]
WantedBy=multi-user.target

.. code-block:: shell

# Create the Logrotate config
sudo tee /etc/logrotate.d/celery <<EOF
"/var/log/celery.log" {
copytruncate
daily
rotate 5
delaycompress
missingok
notifempty
su root root
}
EOF

----

**Manage Celery**
Expand Down